configure revision 549e21da
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libFS 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libFS' 573PACKAGE_TARNAME='libFS' 574PACKAGE_VERSION='1.0.3' 575PACKAGE_STRING='libFS 1.0.3' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='am__EXEEXT_FALSE 616am__EXEEXT_TRUE 617LTLIBOBJS 618LIBOBJS 619MAKE_LINT_LIB_FALSE 620MAKE_LINT_LIB_TRUE 621LINTLIB 622LINT_FALSE 623LINT_TRUE 624LINT_FLAGS 625LINT 626XTMALLOC_ZERO_CFLAGS 627XMALLOC_ZERO_CFLAGS 628MALLOC_ZERO_CFLAGS 629XTRANS_LIBS 630XTRANS_CFLAGS 631FS_LIBS 632FS_CFLAGS 633OTOOL64 634OTOOL 635LIPO 636NMEDIT 637DSYMUTIL 638RANLIB 639AR 640OBJDUMP 641LN_S 642NM 643ac_ct_DUMPBIN 644DUMPBIN 645LD 646FGREP 647LIBTOOL 648AM_BACKSLASH 649AM_DEFAULT_VERBOSITY 650MAN_SUBSTS 651XORG_MAN_PAGE 652ADMIN_MAN_DIR 653DRIVER_MAN_DIR 654MISC_MAN_DIR 655FILE_MAN_DIR 656LIB_MAN_DIR 657APP_MAN_DIR 658ADMIN_MAN_SUFFIX 659DRIVER_MAN_SUFFIX 660MISC_MAN_SUFFIX 661FILE_MAN_SUFFIX 662LIB_MAN_SUFFIX 663APP_MAN_SUFFIX 664SED 665host_os 666host_vendor 667host_cpu 668host 669build_os 670build_vendor 671build_cpu 672build 673INSTALL_CMD 674PKG_CONFIG 675CHANGELOG_CMD 676CWARNFLAGS 677EGREP 678GREP 679CPP 680am__fastdepCC_FALSE 681am__fastdepCC_TRUE 682CCDEPMODE 683AMDEPBACKSLASH 684AMDEP_FALSE 685AMDEP_TRUE 686am__quote 687am__include 688DEPDIR 689OBJEXT 690EXEEXT 691ac_ct_CC 692CPPFLAGS 693LDFLAGS 694CFLAGS 695CC 696MAINT 697MAINTAINER_MODE_FALSE 698MAINTAINER_MODE_TRUE 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722target_alias 723host_alias 724build_alias 725LIBS 726ECHO_T 727ECHO_N 728ECHO_C 729DEFS 730mandir 731localedir 732libdir 733psdir 734pdfdir 735dvidir 736htmldir 737infodir 738docdir 739oldincludedir 740includedir 741localstatedir 742sharedstatedir 743sysconfdir 744datadir 745datarootdir 746libexecdir 747sbindir 748bindir 749program_transform_name 750prefix 751exec_prefix 752PACKAGE_URL 753PACKAGE_BUGREPORT 754PACKAGE_STRING 755PACKAGE_VERSION 756PACKAGE_TARNAME 757PACKAGE_NAME 758PATH_SEPARATOR 759SHELL' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_maintainer_mode 764enable_dependency_tracking 765enable_strict_compilation 766enable_silent_rules 767enable_shared 768enable_static 769with_pic 770enable_fast_install 771with_gnu_ld 772enable_libtool_lock 773enable_unix_transport 774enable_tcp_transport 775enable_ipv6 776enable_local_transport 777enable_malloc0returnsnull 778with_lint 779enable_lint_library 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789CPP 790PKG_CONFIG 791FS_CFLAGS 792FS_LIBS 793XTRANS_CFLAGS 794XTRANS_LIBS 795LINT 796LINT_FLAGS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=\$ac_optarg ;; 1147 1148 -without-* | --without-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183Try \`$0 --help' for more information" 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 case $ac_envvar in #( 1190 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192 esac 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 as_fn_error $? "missing argument to $ac_option" 1210fi 1211 1212if test -n "$ac_unrecognized_opts"; then 1213 case $enable_option_checking in 1214 no) ;; 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217 esac 1218fi 1219 1220# Check all directory arguments for consistency. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 # Remove trailing slashes. 1228 case $ac_val in 1229 */ ) 1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231 eval $ac_var=\$ac_val;; 1232 esac 1233 # Be sure to have absolute directory names. 1234 case $ac_val in 1235 [\\/$]* | ?:[\\/]* ) continue;; 1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237 esac 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239done 1240 1241# There might be people who depend on the old broken behavior: `$host' 1242# used to hold the argument of --host etc. 1243# FIXME: To remove some day. 1244build=$build_alias 1245host=$host_alias 1246target=$target_alias 1247 1248# FIXME: To remove some day. 1249if test "x$host_alias" != x; then 1250 if test "x$build_alias" = x; then 1251 cross_compiling=maybe 1252 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1253 If a cross compiler is detected then cross compile mode will be used" >&2 1254 elif test "x$build_alias" != "x$host_alias"; then 1255 cross_compiling=yes 1256 fi 1257fi 1258 1259ac_tool_prefix= 1260test -n "$host_alias" && ac_tool_prefix=$host_alias- 1261 1262test "$silent" = yes && exec 6>/dev/null 1263 1264 1265ac_pwd=`pwd` && test -n "$ac_pwd" && 1266ac_ls_di=`ls -di .` && 1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1268 as_fn_error $? "working directory cannot be determined" 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1270 as_fn_error $? "pwd does not report name of working directory" 1271 1272 1273# Find the source files, if location was not specified. 1274if test -z "$srcdir"; then 1275 ac_srcdir_defaulted=yes 1276 # Try the directory containing this script, then the parent directory. 1277 ac_confdir=`$as_dirname -- "$as_myself" || 1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1279 X"$as_myself" : 'X\(//\)[^/]' \| \ 1280 X"$as_myself" : 'X\(//\)$' \| \ 1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1282$as_echo X"$as_myself" | 1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)[^/].*/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\).*/{ 1296 s//\1/ 1297 q 1298 } 1299 s/.*/./; q'` 1300 srcdir=$ac_confdir 1301 if test ! -r "$srcdir/$ac_unique_file"; then 1302 srcdir=.. 1303 fi 1304else 1305 ac_srcdir_defaulted=no 1306fi 1307if test ! -r "$srcdir/$ac_unique_file"; then 1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1310fi 1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1312ac_abs_confdir=`( 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1314 pwd)` 1315# When building in place, set srcdir=. 1316if test "$ac_abs_confdir" = "$ac_pwd"; then 1317 srcdir=. 1318fi 1319# Remove unnecessary trailing slashes from srcdir. 1320# Double slashes in file names in object file debugging info 1321# mess up M-x gdb in Emacs. 1322case $srcdir in 1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1324esac 1325for ac_var in $ac_precious_vars; do 1326 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_env_${ac_var}_value=\$${ac_var} 1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1330done 1331 1332# 1333# Report the --help message. 1334# 1335if test "$ac_init_help" = "long"; then 1336 # Omit some internal or obsolete options to make the list less imposing. 1337 # This message is too long to be a string in the A/UX 3.1 sh. 1338 cat <<_ACEOF 1339\`configure' configures libFS 1.0.3 to adapt to many kinds of systems. 1340 1341Usage: $0 [OPTION]... [VAR=VALUE]... 1342 1343To assign environment variables (e.g., CC, CFLAGS...), specify them as 1344VAR=VALUE. See below for descriptions of some of the useful variables. 1345 1346Defaults for the options are specified in brackets. 1347 1348Configuration: 1349 -h, --help display this help and exit 1350 --help=short display options specific to this package 1351 --help=recursive display the short help of all the included packages 1352 -V, --version display version information and exit 1353 -q, --quiet, --silent do not print \`checking ...' messages 1354 --cache-file=FILE cache test results in FILE [disabled] 1355 -C, --config-cache alias for \`--cache-file=config.cache' 1356 -n, --no-create do not create output files 1357 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1358 1359Installation directories: 1360 --prefix=PREFIX install architecture-independent files in PREFIX 1361 [$ac_default_prefix] 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1363 [PREFIX] 1364 1365By default, \`make install' will install all the files in 1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1367an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1368for instance \`--prefix=\$HOME'. 1369 1370For better control, use the options below. 1371 1372Fine tuning of the installation directories: 1373 --bindir=DIR user executables [EPREFIX/bin] 1374 --sbindir=DIR system admin executables [EPREFIX/sbin] 1375 --libexecdir=DIR program executables [EPREFIX/libexec] 1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of libFS 1.0.3:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-maintainer-mode enable make rules and dependencies not useful 1418 (and sometimes confusing) to the casual installer 1419 --disable-dependency-tracking speeds up one-time build 1420 --enable-dependency-tracking do not reject slow dependency extractors 1421 --enable-strict-compilation 1422 Enable all warnings from compiler and make them 1423 errors (default: disabled) 1424 --enable-silent-rules less verbose build output (undo: `make V=1') 1425 --disable-silent-rules verbose build output (undo: `make V=0') 1426 --enable-shared[=PKGS] build shared libraries [default=yes] 1427 --enable-static[=PKGS] build static libraries [default=yes] 1428 --enable-fast-install[=PKGS] 1429 optimize for fast installation [default=yes] 1430 --disable-libtool-lock avoid locking (might break parallel builds) 1431 --enable-unix-transport Enable UNIX domain socket transport 1432 --enable-tcp-transport Enable TCP socket transport 1433 --enable-ipv6 Enable IPv6 support 1434 --enable-local-transport 1435 Enable os-specific local transport 1436 --enable-malloc0returnsnull 1437 malloc(0) returns NULL (default: auto) 1438 --enable-lint-library Create lint library (default: disabled) 1439 1440Optional Packages: 1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1443 --with-pic try to use only PIC/non-PIC objects [default=use 1444 both] 1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1446 --with-lint Use a lint-style source code checker (default: 1447 disabled) 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 CPP C preprocessor 1458 PKG_CONFIG path to pkg-config utility 1459 FS_CFLAGS C compiler flags for FS, overriding pkg-config 1460 FS_LIBS linker flags for FS, overriding pkg-config 1461 XTRANS_CFLAGS 1462 C compiler flags for XTRANS, overriding pkg-config 1463 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config 1464 LINT Path to a lint-style command 1465 LINT_FLAGS Flags for the lint-style command 1466 1467Use these variables to override the choices made by `configure' or to help 1468it to find libraries and programs with nonstandard names/locations. 1469 1470Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1471_ACEOF 1472ac_status=$? 1473fi 1474 1475if test "$ac_init_help" = "recursive"; then 1476 # If there are subdirs, report their specific --help. 1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1478 test -d "$ac_dir" || 1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1480 continue 1481 ac_builddir=. 1482 1483case "$ac_dir" in 1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485*) 1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1487 # A ".." for each directory in $ac_dir_suffix. 1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1489 case $ac_top_builddir_sub in 1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1492 esac ;; 1493esac 1494ac_abs_top_builddir=$ac_pwd 1495ac_abs_builddir=$ac_pwd$ac_dir_suffix 1496# for backward compatibility: 1497ac_top_builddir=$ac_top_build_prefix 1498 1499case $srcdir in 1500 .) # We are building in place. 1501 ac_srcdir=. 1502 ac_top_srcdir=$ac_top_builddir_sub 1503 ac_abs_top_srcdir=$ac_pwd ;; 1504 [\\/]* | ?:[\\/]* ) # Absolute name. 1505 ac_srcdir=$srcdir$ac_dir_suffix; 1506 ac_top_srcdir=$srcdir 1507 ac_abs_top_srcdir=$srcdir ;; 1508 *) # Relative name. 1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1510 ac_top_srcdir=$ac_top_build_prefix$srcdir 1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1512esac 1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1514 1515 cd "$ac_dir" || { ac_status=$?; continue; } 1516 # Check for guested configure. 1517 if test -f "$ac_srcdir/configure.gnu"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1520 elif test -f "$ac_srcdir/configure"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure" --help=recursive 1523 else 1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1525 fi || ac_status=$? 1526 cd "$ac_pwd" || { ac_status=$?; break; } 1527 done 1528fi 1529 1530test -n "$ac_init_help" && exit $ac_status 1531if $ac_init_version; then 1532 cat <<\_ACEOF 1533libFS configure 1.0.3 1534generated by GNU Autoconf 2.68 1535 1536Copyright (C) 2010 Free Software Foundation, Inc. 1537This configure script is free software; the Free Software Foundation 1538gives unlimited permission to copy, distribute and modify it. 1539_ACEOF 1540 exit 1541fi 1542 1543## ------------------------ ## 1544## Autoconf initialization. ## 1545## ------------------------ ## 1546 1547# ac_fn_c_try_compile LINENO 1548# -------------------------- 1549# Try to compile conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_compile () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 rm -f conftest.$ac_objext 1554 if { { ac_try="$ac_compile" 1555case "(($ac_try" in 1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1557 *) ac_try_echo=$ac_try;; 1558esac 1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1560$as_echo "$ac_try_echo"; } >&5 1561 (eval "$ac_compile") 2>conftest.err 1562 ac_status=$? 1563 if test -s conftest.err; then 1564 grep -v '^ *+' conftest.err >conftest.er1 1565 cat conftest.er1 >&5 1566 mv -f conftest.er1 conftest.err 1567 fi 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } && { 1570 test -z "$ac_c_werror_flag" || 1571 test ! -s conftest.err 1572 } && test -s conftest.$ac_objext; then : 1573 ac_retval=0 1574else 1575 $as_echo "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_compile 1584 1585# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1586# --------------------------------------------- 1587# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1588# accordingly. 1589ac_fn_c_check_decl () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 as_decl_name=`echo $2|sed 's/ *(.*//'` 1593 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1595$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1596if eval \${$3+:} false; then : 1597 $as_echo_n "(cached) " >&6 1598else 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600/* end confdefs.h. */ 1601$4 1602int 1603main () 1604{ 1605#ifndef $as_decl_name 1606#ifdef __cplusplus 1607 (void) $as_decl_use; 1608#else 1609 (void) $as_decl_name; 1610#endif 1611#endif 1612 1613 ; 1614 return 0; 1615} 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO"; then : 1618 eval "$3=yes" 1619else 1620 eval "$3=no" 1621fi 1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1623fi 1624eval ac_res=\$$3 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1626$as_echo "$ac_res" >&6; } 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 1629} # ac_fn_c_check_decl 1630 1631# ac_fn_c_try_cpp LINENO 1632# ---------------------- 1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_cpp () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_cpp conftest.$ac_ext" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } > conftest.i && { 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_cpp 1667 1668# ac_fn_c_try_run LINENO 1669# ---------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1671# that executables *can* be run. 1672ac_fn_c_try_run () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>&5 1683 ac_status=$? 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1686 { { case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_try") 2>&5 1693 ac_status=$? 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; }; }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: program exited with status $ac_status" >&5 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=$ac_status 1703fi 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_run 1709 1710# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1711# ------------------------------------------------------- 1712# Tests whether HEADER exists and can be compiled using the include files in 1713# INCLUDES, setting the cache variable VAR accordingly. 1714ac_fn_c_check_header_compile () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1718$as_echo_n "checking for $2... " >&6; } 1719if eval \${$3+:} false; then : 1720 $as_echo_n "(cached) " >&6 1721else 1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723/* end confdefs.h. */ 1724$4 1725#include <$2> 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 eval "$3=yes" 1729else 1730 eval "$3=no" 1731fi 1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733fi 1734eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736$as_echo "$ac_res" >&6; } 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 1739} # ac_fn_c_check_header_compile 1740 1741# ac_fn_c_try_link LINENO 1742# ----------------------- 1743# Try to link conftest.$ac_ext, and return whether this succeeded. 1744ac_fn_c_try_link () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 rm -f conftest.$ac_objext conftest$ac_exeext 1748 if { { ac_try="$ac_link" 1749case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752esac 1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754$as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_link") 2>conftest.err 1756 ac_status=$? 1757 if test -s conftest.err; then 1758 grep -v '^ *+' conftest.err >conftest.er1 1759 cat conftest.er1 >&5 1760 mv -f conftest.er1 conftest.err 1761 fi 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; } && { 1764 test -z "$ac_c_werror_flag" || 1765 test ! -s conftest.err 1766 } && test -s conftest$ac_exeext && { 1767 test "$cross_compiling" = yes || 1768 $as_test_x conftest$ac_exeext 1769 }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1779 # interfere with the next link command; also delete a directory that is 1780 # left behind by Apple's compiler. We do this before executing the actions. 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_link 1786 1787# ac_fn_c_check_func LINENO FUNC VAR 1788# ---------------------------------- 1789# Tests whether FUNC exists, setting the cache variable VAR accordingly 1790ac_fn_c_check_func () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1802#define $2 innocuous_$2 1803 1804/* System header to define __stub macros and hopefully few prototypes, 1805 which can conflict with char $2 (); below. 1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1807 <limits.h> exists even on freestanding compilers. */ 1808 1809#ifdef __STDC__ 1810# include <limits.h> 1811#else 1812# include <assert.h> 1813#endif 1814 1815#undef $2 1816 1817/* Override any GCC internal prototype to avoid an error. 1818 Use char because int might match the return type of a GCC 1819 builtin and then its argument prototype would still apply. */ 1820#ifdef __cplusplus 1821extern "C" 1822#endif 1823char $2 (); 1824/* The GNU C library defines this for functions which it implements 1825 to always fail with ENOSYS. Some functions are actually named 1826 something starting with __ and the normal name is an alias. */ 1827#if defined __stub_$2 || defined __stub___$2 1828choke me 1829#endif 1830 1831int 1832main () 1833{ 1834return $2 (); 1835 ; 1836 return 0; 1837} 1838_ACEOF 1839if ac_fn_c_try_link "$LINENO"; then : 1840 eval "$3=yes" 1841else 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext \ 1845 conftest$ac_exeext conftest.$ac_ext 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_c_check_func 1853 1854# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1855# ---------------------------------------------------- 1856# Tries to find if the field MEMBER exists in type AGGR, after including 1857# INCLUDES, setting cache variable VAR accordingly. 1858ac_fn_c_check_member () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1862$as_echo_n "checking for $2.$3... " >&6; } 1863if eval \${$4+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1867/* end confdefs.h. */ 1868$5 1869int 1870main () 1871{ 1872static $2 ac_aggr; 1873if (ac_aggr.$3) 1874return 0; 1875 ; 1876 return 0; 1877} 1878_ACEOF 1879if ac_fn_c_try_compile "$LINENO"; then : 1880 eval "$4=yes" 1881else 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884$5 1885int 1886main () 1887{ 1888static $2 ac_aggr; 1889if (sizeof ac_aggr.$3) 1890return 0; 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 eval "$4=yes" 1897else 1898 eval "$4=no" 1899fi 1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903fi 1904eval ac_res=\$$4 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1906$as_echo "$ac_res" >&6; } 1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1908 1909} # ac_fn_c_check_member 1910 1911# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1912# ------------------------------------------- 1913# Tests whether TYPE exists after having included INCLUDES, setting cache 1914# variable VAR accordingly. 1915ac_fn_c_check_type () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 eval "$3=no" 1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926$4 1927int 1928main () 1929{ 1930if (sizeof ($2)) 1931 return 0; 1932 ; 1933 return 0; 1934} 1935_ACEOF 1936if ac_fn_c_try_compile "$LINENO"; then : 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939$4 1940int 1941main () 1942{ 1943if (sizeof (($2))) 1944 return 0; 1945 ; 1946 return 0; 1947} 1948_ACEOF 1949if ac_fn_c_try_compile "$LINENO"; then : 1950 1951else 1952 eval "$3=yes" 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955fi 1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1957fi 1958eval ac_res=\$$3 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1960$as_echo "$ac_res" >&6; } 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1962 1963} # ac_fn_c_check_type 1964cat >config.log <<_ACEOF 1965This file contains any messages produced by compilers while 1966running configure, to aid debugging if configure makes a mistake. 1967 1968It was created by libFS $as_me 1.0.3, which was 1969generated by GNU Autoconf 2.68. Invocation command line was 1970 1971 $ $0 $@ 1972 1973_ACEOF 1974exec 5>>config.log 1975{ 1976cat <<_ASUNAME 1977## --------- ## 1978## Platform. ## 1979## --------- ## 1980 1981hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1982uname -m = `(uname -m) 2>/dev/null || echo unknown` 1983uname -r = `(uname -r) 2>/dev/null || echo unknown` 1984uname -s = `(uname -s) 2>/dev/null || echo unknown` 1985uname -v = `(uname -v) 2>/dev/null || echo unknown` 1986 1987/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1988/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1989 1990/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1991/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1992/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1993/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1994/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1995/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1996/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1997 1998_ASUNAME 1999 2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2001for as_dir in $PATH 2002do 2003 IFS=$as_save_IFS 2004 test -z "$as_dir" && as_dir=. 2005 $as_echo "PATH: $as_dir" 2006 done 2007IFS=$as_save_IFS 2008 2009} >&5 2010 2011cat >&5 <<_ACEOF 2012 2013 2014## ----------- ## 2015## Core tests. ## 2016## ----------- ## 2017 2018_ACEOF 2019 2020 2021# Keep a trace of the command line. 2022# Strip out --no-create and --no-recursion so they do not pile up. 2023# Strip out --silent because we don't want to record it for future runs. 2024# Also quote any args containing shell meta-characters. 2025# Make two passes to allow for proper duplicate-argument suppression. 2026ac_configure_args= 2027ac_configure_args0= 2028ac_configure_args1= 2029ac_must_keep_next=false 2030for ac_pass in 1 2 2031do 2032 for ac_arg 2033 do 2034 case $ac_arg in 2035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2037 | -silent | --silent | --silen | --sile | --sil) 2038 continue ;; 2039 *\'*) 2040 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2041 esac 2042 case $ac_pass in 2043 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2044 2) 2045 as_fn_append ac_configure_args1 " '$ac_arg'" 2046 if test $ac_must_keep_next = true; then 2047 ac_must_keep_next=false # Got value, back to normal. 2048 else 2049 case $ac_arg in 2050 *=* | --config-cache | -C | -disable-* | --disable-* \ 2051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2053 | -with-* | --with-* | -without-* | --without-* | --x) 2054 case "$ac_configure_args0 " in 2055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2056 esac 2057 ;; 2058 -* ) ac_must_keep_next=true ;; 2059 esac 2060 fi 2061 as_fn_append ac_configure_args " '$ac_arg'" 2062 ;; 2063 esac 2064 done 2065done 2066{ ac_configure_args0=; unset ac_configure_args0;} 2067{ ac_configure_args1=; unset ac_configure_args1;} 2068 2069# When interrupted or exit'd, cleanup temporary files, and complete 2070# config.log. We remove comments because anyway the quotes in there 2071# would cause problems or look ugly. 2072# WARNING: Use '\'' to represent an apostrophe within the trap. 2073# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2074trap 'exit_status=$? 2075 # Save into config.log some information that might help in debugging. 2076 { 2077 echo 2078 2079 $as_echo "## ---------------- ## 2080## Cache variables. ## 2081## ---------------- ##" 2082 echo 2083 # The following way of writing the cache mishandles newlines in values, 2084( 2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2086 eval ac_val=\$$ac_var 2087 case $ac_val in #( 2088 *${as_nl}*) 2089 case $ac_var in #( 2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2091$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2092 esac 2093 case $ac_var in #( 2094 _ | IFS | as_nl) ;; #( 2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2096 *) { eval $ac_var=; unset $ac_var;} ;; 2097 esac ;; 2098 esac 2099 done 2100 (set) 2>&1 | 2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2102 *${as_nl}ac_space=\ *) 2103 sed -n \ 2104 "s/'\''/'\''\\\\'\'''\''/g; 2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2106 ;; #( 2107 *) 2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2109 ;; 2110 esac | 2111 sort 2112) 2113 echo 2114 2115 $as_echo "## ----------------- ## 2116## Output variables. ## 2117## ----------------- ##" 2118 echo 2119 for ac_var in $ac_subst_vars 2120 do 2121 eval ac_val=\$$ac_var 2122 case $ac_val in 2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2124 esac 2125 $as_echo "$ac_var='\''$ac_val'\''" 2126 done | sort 2127 echo 2128 2129 if test -n "$ac_subst_files"; then 2130 $as_echo "## ------------------- ## 2131## File substitutions. ## 2132## ------------------- ##" 2133 echo 2134 for ac_var in $ac_subst_files 2135 do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in 2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2139 esac 2140 $as_echo "$ac_var='\''$ac_val'\''" 2141 done | sort 2142 echo 2143 fi 2144 2145 if test -s confdefs.h; then 2146 $as_echo "## ----------- ## 2147## confdefs.h. ## 2148## ----------- ##" 2149 echo 2150 cat confdefs.h 2151 echo 2152 fi 2153 test "$ac_signal" != 0 && 2154 $as_echo "$as_me: caught signal $ac_signal" 2155 $as_echo "$as_me: exit $exit_status" 2156 } >&5 2157 rm -f core *.core core.conftest.* && 2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2159 exit $exit_status 2160' 0 2161for ac_signal in 1 2 13 15; do 2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2163done 2164ac_signal=0 2165 2166# confdefs.h avoids OS command line length limits that DEFS can exceed. 2167rm -f -r conftest* confdefs.h 2168 2169$as_echo "/* confdefs.h */" > confdefs.h 2170 2171# Predefined preprocessor variables. 2172 2173cat >>confdefs.h <<_ACEOF 2174#define PACKAGE_NAME "$PACKAGE_NAME" 2175_ACEOF 2176 2177cat >>confdefs.h <<_ACEOF 2178#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2179_ACEOF 2180 2181cat >>confdefs.h <<_ACEOF 2182#define PACKAGE_VERSION "$PACKAGE_VERSION" 2183_ACEOF 2184 2185cat >>confdefs.h <<_ACEOF 2186#define PACKAGE_STRING "$PACKAGE_STRING" 2187_ACEOF 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_URL "$PACKAGE_URL" 2195_ACEOF 2196 2197 2198# Let the site file select an alternate cache file if it wants to. 2199# Prefer an explicitly selected file to automatically selected ones. 2200ac_site_file1=NONE 2201ac_site_file2=NONE 2202if test -n "$CONFIG_SITE"; then 2203 # We do not want a PATH search for config.site. 2204 case $CONFIG_SITE in #(( 2205 -*) ac_site_file1=./$CONFIG_SITE;; 2206 */*) ac_site_file1=$CONFIG_SITE;; 2207 *) ac_site_file1=./$CONFIG_SITE;; 2208 esac 2209elif test "x$prefix" != xNONE; then 2210 ac_site_file1=$prefix/share/config.site 2211 ac_site_file2=$prefix/etc/config.site 2212else 2213 ac_site_file1=$ac_default_prefix/share/config.site 2214 ac_site_file2=$ac_default_prefix/etc/config.site 2215fi 2216for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2217do 2218 test "x$ac_site_file" = xNONE && continue 2219 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2221$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2222 sed 's/^/| /' "$ac_site_file" >&5 2223 . "$ac_site_file" \ 2224 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2226as_fn_error $? "failed to load site script $ac_site_file 2227See \`config.log' for more details" "$LINENO" 5; } 2228 fi 2229done 2230 2231if test -r "$cache_file"; then 2232 # Some versions of bash will fail to source /dev/null (special files 2233 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2234 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2236$as_echo "$as_me: loading cache $cache_file" >&6;} 2237 case $cache_file in 2238 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2239 *) . "./$cache_file";; 2240 esac 2241 fi 2242else 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2244$as_echo "$as_me: creating cache $cache_file" >&6;} 2245 >$cache_file 2246fi 2247 2248# Check that the precious variables saved in the cache have kept the same 2249# value. 2250ac_cache_corrupted=false 2251for ac_var in $ac_precious_vars; do 2252 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2253 eval ac_new_set=\$ac_env_${ac_var}_set 2254 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2255 eval ac_new_val=\$ac_env_${ac_var}_value 2256 case $ac_old_set,$ac_new_set in 2257 set,) 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2259$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2260 ac_cache_corrupted=: ;; 2261 ,set) 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2263$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2264 ac_cache_corrupted=: ;; 2265 ,);; 2266 *) 2267 if test "x$ac_old_val" != "x$ac_new_val"; then 2268 # differences in whitespace do not lead to failure. 2269 ac_old_val_w=`echo x $ac_old_val` 2270 ac_new_val_w=`echo x $ac_new_val` 2271 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2273$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2274 ac_cache_corrupted=: 2275 else 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2277$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2278 eval $ac_var=\$ac_old_val 2279 fi 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2281$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2283$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2284 fi;; 2285 esac 2286 # Pass precious variables to config.status. 2287 if test "$ac_new_set" = set; then 2288 case $ac_new_val in 2289 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2290 *) ac_arg=$ac_var=$ac_new_val ;; 2291 esac 2292 case " $ac_configure_args " in 2293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2294 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2295 esac 2296 fi 2297done 2298if $ac_cache_corrupted; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2302$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2303 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2304fi 2305## -------------------- ## 2306## Main body of script. ## 2307## -------------------- ## 2308 2309ac_ext=c 2310ac_cpp='$CPP $CPPFLAGS' 2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2313ac_compiler_gnu=$ac_cv_c_compiler_gnu 2314 2315 2316am__api_version='1.11' 2317 2318ac_aux_dir= 2319for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2320 if test -f "$ac_dir/install-sh"; then 2321 ac_aux_dir=$ac_dir 2322 ac_install_sh="$ac_aux_dir/install-sh -c" 2323 break 2324 elif test -f "$ac_dir/install.sh"; then 2325 ac_aux_dir=$ac_dir 2326 ac_install_sh="$ac_aux_dir/install.sh -c" 2327 break 2328 elif test -f "$ac_dir/shtool"; then 2329 ac_aux_dir=$ac_dir 2330 ac_install_sh="$ac_aux_dir/shtool install -c" 2331 break 2332 fi 2333done 2334if test -z "$ac_aux_dir"; then 2335 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2336fi 2337 2338# These three variables are undocumented and unsupported, 2339# and are intended to be withdrawn in a future Autoconf release. 2340# They can cause serious problems if a builder's source tree is in a directory 2341# whose full name contains unusual characters. 2342ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2343ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2344ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2345 2346 2347# Find a good install program. We prefer a C program (faster), 2348# so one script is as good as another. But avoid the broken or 2349# incompatible versions: 2350# SysV /etc/install, /usr/sbin/install 2351# SunOS /usr/etc/install 2352# IRIX /sbin/install 2353# AIX /bin/install 2354# AmigaOS /C/install, which installs bootblocks on floppy discs 2355# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2356# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2357# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2358# OS/2's system install, which has a completely different semantic 2359# ./install, which can be erroneously created by make from ./install.sh. 2360# Reject install programs that cannot install multiple files. 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2362$as_echo_n "checking for a BSD-compatible install... " >&6; } 2363if test -z "$INSTALL"; then 2364if ${ac_cv_path_install+:} false; then : 2365 $as_echo_n "(cached) " >&6 2366else 2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 # Account for people who put trailing slashes in PATH elements. 2373case $as_dir/ in #(( 2374 ./ | .// | /[cC]/* | \ 2375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2376 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2377 /usr/ucb/* ) ;; 2378 *) 2379 # OSF1 and SCO ODT 3.0 have their own names for install. 2380 # Don't use installbsd from OSF since it installs stuff as root 2381 # by default. 2382 for ac_prog in ginstall scoinst install; do 2383 for ac_exec_ext in '' $ac_executable_extensions; do 2384 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2385 if test $ac_prog = install && 2386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2387 # AIX install. It has an incompatible calling convention. 2388 : 2389 elif test $ac_prog = install && 2390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2391 # program-specific install script used by HP pwplus--don't use. 2392 : 2393 else 2394 rm -rf conftest.one conftest.two conftest.dir 2395 echo one > conftest.one 2396 echo two > conftest.two 2397 mkdir conftest.dir 2398 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2399 test -s conftest.one && test -s conftest.two && 2400 test -s conftest.dir/conftest.one && 2401 test -s conftest.dir/conftest.two 2402 then 2403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2404 break 3 2405 fi 2406 fi 2407 fi 2408 done 2409 done 2410 ;; 2411esac 2412 2413 done 2414IFS=$as_save_IFS 2415 2416rm -rf conftest.one conftest.two conftest.dir 2417 2418fi 2419 if test "${ac_cv_path_install+set}" = set; then 2420 INSTALL=$ac_cv_path_install 2421 else 2422 # As a last resort, use the slow shell script. Don't cache a 2423 # value for INSTALL within a source directory, because that will 2424 # break other packages using the cache if that directory is 2425 # removed, or if the value is a relative name. 2426 INSTALL=$ac_install_sh 2427 fi 2428fi 2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2430$as_echo "$INSTALL" >&6; } 2431 2432# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2433# It thinks the first close brace ends the variable substitution. 2434test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2435 2436test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2437 2438test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2439 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2441$as_echo_n "checking whether build environment is sane... " >&6; } 2442# Just in case 2443sleep 1 2444echo timestamp > conftest.file 2445# Reject unsafe characters in $srcdir or the absolute working directory 2446# name. Accept space and tab only in the latter. 2447am_lf=' 2448' 2449case `pwd` in 2450 *[\\\"\#\$\&\'\`$am_lf]*) 2451 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2452esac 2453case $srcdir in 2454 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2455 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2456esac 2457 2458# Do `set' in a subshell so we don't clobber the current shell's 2459# arguments. Must try -L first in case configure is actually a 2460# symlink; some systems play weird games with the mod time of symlinks 2461# (eg FreeBSD returns the mod time of the symlink's containing 2462# directory). 2463if ( 2464 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2465 if test "$*" = "X"; then 2466 # -L didn't work. 2467 set X `ls -t "$srcdir/configure" conftest.file` 2468 fi 2469 rm -f conftest.file 2470 if test "$*" != "X $srcdir/configure conftest.file" \ 2471 && test "$*" != "X conftest.file $srcdir/configure"; then 2472 2473 # If neither matched, then we have a broken ls. This can happen 2474 # if, for instance, CONFIG_SHELL is bash and it inherits a 2475 # broken ls alias from the environment. This has actually 2476 # happened. Such a system could not be considered "sane". 2477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2478alias in your environment" "$LINENO" 5 2479 fi 2480 2481 test "$2" = conftest.file 2482 ) 2483then 2484 # Ok. 2485 : 2486else 2487 as_fn_error $? "newly created file is older than distributed files! 2488Check your system clock" "$LINENO" 5 2489fi 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2491$as_echo "yes" >&6; } 2492test "$program_prefix" != NONE && 2493 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2494# Use a double $ so make ignores it. 2495test "$program_suffix" != NONE && 2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2497# Double any \ or $. 2498# By default was `s,x,x', remove it if useless. 2499ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2500program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2501 2502# expand $ac_aux_dir to an absolute path 2503am_aux_dir=`cd $ac_aux_dir && pwd` 2504 2505if test x"${MISSING+set}" != xset; then 2506 case $am_aux_dir in 2507 *\ * | *\ *) 2508 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2509 *) 2510 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2511 esac 2512fi 2513# Use eval to expand $SHELL 2514if eval "$MISSING --run true"; then 2515 am_missing_run="$MISSING --run " 2516else 2517 am_missing_run= 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2519$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2520fi 2521 2522if test x"${install_sh}" != xset; then 2523 case $am_aux_dir in 2524 *\ * | *\ *) 2525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2526 *) 2527 install_sh="\${SHELL} $am_aux_dir/install-sh" 2528 esac 2529fi 2530 2531# Installed binaries are usually stripped using `strip' when the user 2532# run `make install-strip'. However `strip' might not be the right 2533# tool to use in cross-compilation environments, therefore Automake 2534# will honor the `STRIP' environment variable to overrule this program. 2535if test "$cross_compiling" != no; then 2536 if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2538set dummy ${ac_tool_prefix}strip; ac_word=$2 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2540$as_echo_n "checking for $ac_word... " >&6; } 2541if ${ac_cv_prog_STRIP+:} false; then : 2542 $as_echo_n "(cached) " >&6 2543else 2544 if test -n "$STRIP"; then 2545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559 done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564STRIP=$ac_cv_prog_STRIP 2565if test -n "$STRIP"; then 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2567$as_echo "$STRIP" >&6; } 2568else 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2570$as_echo "no" >&6; } 2571fi 2572 2573 2574fi 2575if test -z "$ac_cv_prog_STRIP"; then 2576 ac_ct_STRIP=$STRIP 2577 # Extract the first word of "strip", so it can be a program name with args. 2578set dummy strip; ac_word=$2 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580$as_echo_n "checking for $ac_word... " >&6; } 2581if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2582 $as_echo_n "(cached) " >&6 2583else 2584 if test -n "$ac_ct_STRIP"; then 2585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2594 ac_cv_prog_ac_ct_STRIP="strip" 2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599 done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2605if test -n "$ac_ct_STRIP"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2607$as_echo "$ac_ct_STRIP" >&6; } 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610$as_echo "no" >&6; } 2611fi 2612 2613 if test "x$ac_ct_STRIP" = x; then 2614 STRIP=":" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2620ac_tool_warned=yes ;; 2621esac 2622 STRIP=$ac_ct_STRIP 2623 fi 2624else 2625 STRIP="$ac_cv_prog_STRIP" 2626fi 2627 2628fi 2629INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2630 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2632$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2633if test -z "$MKDIR_P"; then 2634 if ${ac_cv_path_mkdir+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_prog in mkdir gmkdir; do 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2645 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2646 'mkdir (GNU coreutils) '* | \ 2647 'mkdir (coreutils) '* | \ 2648 'mkdir (fileutils) '4.1*) 2649 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2650 break 3;; 2651 esac 2652 done 2653 done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658 2659 test -d ./--version && rmdir ./--version 2660 if test "${ac_cv_path_mkdir+set}" = set; then 2661 MKDIR_P="$ac_cv_path_mkdir -p" 2662 else 2663 # As a last resort, use the slow shell script. Don't cache a 2664 # value for MKDIR_P within a source directory, because that will 2665 # break other packages using the cache if that directory is 2666 # removed, or if the value is a relative name. 2667 MKDIR_P="$ac_install_sh -d" 2668 fi 2669fi 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2671$as_echo "$MKDIR_P" >&6; } 2672 2673mkdir_p="$MKDIR_P" 2674case $mkdir_p in 2675 [\\/$]* | ?:[\\/]*) ;; 2676 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2677esac 2678 2679for ac_prog in gawk mawk nawk awk 2680do 2681 # Extract the first word of "$ac_prog", so it can be a program name with args. 2682set dummy $ac_prog; ac_word=$2 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684$as_echo_n "checking for $ac_word... " >&6; } 2685if ${ac_cv_prog_AWK+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if test -n "$AWK"; then 2689 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2690else 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2698 ac_cv_prog_AWK="$ac_prog" 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708AWK=$ac_cv_prog_AWK 2709if test -n "$AWK"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2711$as_echo "$AWK" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718 test -n "$AWK" && break 2719done 2720 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2722$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2723set x ${MAKE-make} 2724ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2725if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 cat >conftest.make <<\_ACEOF 2729SHELL = /bin/sh 2730all: 2731 @echo '@@@%%%=$(MAKE)=@@@%%%' 2732_ACEOF 2733# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2734case `${MAKE-make} -f conftest.make 2>/dev/null` in 2735 *@@@%%%=?*=@@@%%%*) 2736 eval ac_cv_prog_make_${ac_make}_set=yes;; 2737 *) 2738 eval ac_cv_prog_make_${ac_make}_set=no;; 2739esac 2740rm -f conftest.make 2741fi 2742if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2744$as_echo "yes" >&6; } 2745 SET_MAKE= 2746else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748$as_echo "no" >&6; } 2749 SET_MAKE="MAKE=${MAKE-make}" 2750fi 2751 2752rm -rf .tst 2>/dev/null 2753mkdir .tst 2>/dev/null 2754if test -d .tst; then 2755 am__leading_dot=. 2756else 2757 am__leading_dot=_ 2758fi 2759rmdir .tst 2>/dev/null 2760 2761if test "`cd $srcdir && pwd`" != "`pwd`"; then 2762 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2763 # is not polluted with repeated "-I." 2764 am__isrc=' -I$(srcdir)' 2765 # test to see if srcdir already configured 2766 if test -f $srcdir/config.status; then 2767 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2768 fi 2769fi 2770 2771# test whether we have cygpath 2772if test -z "$CYGPATH_W"; then 2773 if (cygpath --version) >/dev/null 2>/dev/null; then 2774 CYGPATH_W='cygpath -w' 2775 else 2776 CYGPATH_W=echo 2777 fi 2778fi 2779 2780 2781# Define the identity of the package. 2782 PACKAGE='libFS' 2783 VERSION='1.0.3' 2784 2785 2786cat >>confdefs.h <<_ACEOF 2787#define PACKAGE "$PACKAGE" 2788_ACEOF 2789 2790 2791cat >>confdefs.h <<_ACEOF 2792#define VERSION "$VERSION" 2793_ACEOF 2794 2795# Some tools Automake needs. 2796 2797ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2798 2799 2800AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2801 2802 2803AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2804 2805 2806AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2807 2808 2809MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2810 2811# We need awk for the "check" target. The system "awk" is bad on 2812# some platforms. 2813# Always define AMTAR for backward compatibility. 2814 2815AMTAR=${AMTAR-"${am_missing_run}tar"} 2816 2817am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2818 2819 2820 2821 2822 2823 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2825$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2826 # Check whether --enable-maintainer-mode was given. 2827if test "${enable_maintainer_mode+set}" = set; then : 2828 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2829else 2830 USE_MAINTAINER_MODE=no 2831fi 2832 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2834$as_echo "$USE_MAINTAINER_MODE" >&6; } 2835 if test $USE_MAINTAINER_MODE = yes; then 2836 MAINTAINER_MODE_TRUE= 2837 MAINTAINER_MODE_FALSE='#' 2838else 2839 MAINTAINER_MODE_TRUE='#' 2840 MAINTAINER_MODE_FALSE= 2841fi 2842 2843 MAINT=$MAINTAINER_MODE_TRUE 2844 2845 2846 2847# Require xorg-macros: XORG_DEFAULT_OPTIONS 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859DEPDIR="${am__leading_dot}deps" 2860 2861ac_config_commands="$ac_config_commands depfiles" 2862 2863 2864am_make=${MAKE-make} 2865cat > confinc << 'END' 2866am__doit: 2867 @echo this is the am__doit target 2868.PHONY: am__doit 2869END 2870# If we don't find an include directive, just comment out the code. 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2872$as_echo_n "checking for style of include used by $am_make... " >&6; } 2873am__include="#" 2874am__quote= 2875_am_result=none 2876# First try GNU make style include. 2877echo "include confinc" > confmf 2878# Ignore all kinds of additional output from `make'. 2879case `$am_make -s -f confmf 2> /dev/null` in #( 2880*the\ am__doit\ target*) 2881 am__include=include 2882 am__quote= 2883 _am_result=GNU 2884 ;; 2885esac 2886# Now try BSD make style include. 2887if test "$am__include" = "#"; then 2888 echo '.include "confinc"' > confmf 2889 case `$am_make -s -f confmf 2> /dev/null` in #( 2890 *the\ am__doit\ target*) 2891 am__include=.include 2892 am__quote="\"" 2893 _am_result=BSD 2894 ;; 2895 esac 2896fi 2897 2898 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2900$as_echo "$_am_result" >&6; } 2901rm -f confinc confmf 2902 2903# Check whether --enable-dependency-tracking was given. 2904if test "${enable_dependency_tracking+set}" = set; then : 2905 enableval=$enable_dependency_tracking; 2906fi 2907 2908if test "x$enable_dependency_tracking" != xno; then 2909 am_depcomp="$ac_aux_dir/depcomp" 2910 AMDEPBACKSLASH='\' 2911fi 2912 if test "x$enable_dependency_tracking" != xno; then 2913 AMDEP_TRUE= 2914 AMDEP_FALSE='#' 2915else 2916 AMDEP_TRUE='#' 2917 AMDEP_FALSE= 2918fi 2919 2920 2921ac_ext=c 2922ac_cpp='$CPP $CPPFLAGS' 2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2925ac_compiler_gnu=$ac_cv_c_compiler_gnu 2926if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}gcc; ac_word=$2 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930$as_echo_n "checking for $ac_word... " >&6; } 2931if ${ac_cv_prog_CC+:} false; then : 2932 $as_echo_n "(cached) " >&6 2933else 2934 if test -n "$CC"; then 2935 ac_cv_prog_CC="$CC" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2944 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954CC=$ac_cv_prog_CC 2955if test -n "$CC"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957$as_echo "$CC" >&6; } 2958else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960$as_echo "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "gcc", so it can be a program name with args. 2968set dummy gcc; ac_word=$2 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970$as_echo_n "checking for $ac_word... " >&6; } 2971if ${ac_cv_prog_ac_ct_CC+:} false; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test -n "$ac_ct_CC"; then 2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2984 ac_cv_prog_ac_ct_CC="gcc" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994ac_ct_CC=$ac_cv_prog_ac_ct_CC 2995if test -n "$ac_ct_CC"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2997$as_echo "$ac_ct_CC" >&6; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000$as_echo "no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_CC" = x; then 3004 CC="" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010ac_tool_warned=yes ;; 3011esac 3012 CC=$ac_ct_CC 3013 fi 3014else 3015 CC="$ac_cv_prog_CC" 3016fi 3017 3018if test -z "$CC"; then 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}cc; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if ${ac_cv_prog_CC+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3037 ac_cv_prog_CC="${ac_tool_prefix}cc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3050$as_echo "$CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057 fi 3058fi 3059if test -z "$CC"; then 3060 # Extract the first word of "cc", so it can be a program name with args. 3061set dummy cc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if ${ac_cv_prog_CC+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070 ac_prog_rejected=no 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3079 ac_prog_rejected=yes 3080 continue 3081 fi 3082 ac_cv_prog_CC="cc" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090if test $ac_prog_rejected = yes; then 3091 # We found a bogon in the path, so make sure we never use it. 3092 set dummy $ac_cv_prog_CC 3093 shift 3094 if test $# != 0; then 3095 # We chose a different compiler from the bogus one. 3096 # However, it has the same basename, so the bogon will be chosen 3097 # first if we set CC to just the basename; use the full file name. 3098 shift 3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3100 fi 3101fi 3102fi 3103fi 3104CC=$ac_cv_prog_CC 3105if test -n "$CC"; then 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3107$as_echo "$CC" >&6; } 3108else 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3110$as_echo "no" >&6; } 3111fi 3112 3113 3114fi 3115if test -z "$CC"; then 3116 if test -n "$ac_tool_prefix"; then 3117 for ac_prog in cl.exe 3118 do 3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3120set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if ${ac_cv_prog_CC+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$CC"; then 3127 ac_cv_prog_CC="$CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149$as_echo "$CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 test -n "$CC" && break 3157 done 3158fi 3159if test -z "$CC"; then 3160 ac_ct_CC=$CC 3161 for ac_prog in cl.exe 3162do 3163 # Extract the first word of "$ac_prog", so it can be a program name with args. 3164set dummy $ac_prog; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_ac_ct_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$ac_ct_CC"; then 3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3180 ac_cv_prog_ac_ct_CC="$ac_prog" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190ac_ct_CC=$ac_cv_prog_ac_ct_CC 3191if test -n "$ac_ct_CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3193$as_echo "$ac_ct_CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 test -n "$ac_ct_CC" && break 3201done 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207yes:) 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210ac_tool_warned=yes ;; 3211esac 3212 CC=$ac_ct_CC 3213 fi 3214fi 3215 3216fi 3217 3218 3219test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error $? "no acceptable C compiler found in \$PATH 3222See \`config.log' for more details" "$LINENO" 5; } 3223 3224# Provide some information about the compiler. 3225$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3226set X $ac_compile 3227ac_compiler=$2 3228for ac_option in --version -v -V -qversion; do 3229 { { ac_try="$ac_compiler $ac_option >&5" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235$as_echo "$ac_try_echo"; } >&5 3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3237 ac_status=$? 3238 if test -s conftest.err; then 3239 sed '10a\ 3240... rest of stderr output deleted ... 3241 10q' conftest.err >conftest.er1 3242 cat conftest.er1 >&5 3243 fi 3244 rm -f conftest.er1 conftest.err 3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3246 test $ac_status = 0; } 3247done 3248 3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251 3252int 3253main () 3254{ 3255 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260ac_clean_files_save=$ac_clean_files 3261ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3262# Try to create an executable without -o first, disregard a.out. 3263# It will help us diagnose broken compilers, and finding out an intuition 3264# of exeext. 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3266$as_echo_n "checking whether the C compiler works... " >&6; } 3267ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3268 3269# The possible output files: 3270ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3271 3272ac_rmfiles= 3273for ac_file in $ac_files 3274do 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3278 esac 3279done 3280rm -f $ac_rmfiles 3281 3282if { { ac_try="$ac_link_default" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288$as_echo "$ac_try_echo"; } >&5 3289 (eval "$ac_link_default") 2>&5 3290 ac_status=$? 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3292 test $ac_status = 0; }; then : 3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3294# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3295# in a Makefile. We should not override ac_cv_exeext if it was cached, 3296# so that the user can short-circuit this test for compilers unknown to 3297# Autoconf. 3298for ac_file in $ac_files '' 3299do 3300 test -f "$ac_file" || continue 3301 case $ac_file in 3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3303 ;; 3304 [ab].out ) 3305 # We found the default executable, but exeext='' is most 3306 # certainly right. 3307 break;; 3308 *.* ) 3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3310 then :; else 3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 fi 3313 # We set ac_cv_exeext here because the later test for it is not 3314 # safe: cross compilers may not add the suffix if given an `-o' 3315 # argument, so we may need to know it at that point already. 3316 # Even if this section looks crufty: it has the advantage of 3317 # actually working. 3318 break;; 3319 * ) 3320 break;; 3321 esac 3322done 3323test "$ac_cv_exeext" = no && ac_cv_exeext= 3324 3325else 3326 ac_file='' 3327fi 3328if test -z "$ac_file"; then : 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331$as_echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336as_fn_error 77 "C compiler cannot create executables 3337See \`config.log' for more details" "$LINENO" 5; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3340$as_echo "yes" >&6; } 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3343$as_echo_n "checking for C compiler default output file name... " >&6; } 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3345$as_echo "$ac_file" >&6; } 3346ac_exeext=$ac_cv_exeext 3347 3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3349ac_clean_files=$ac_clean_files_save 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3351$as_echo_n "checking for suffix of executables... " >&6; } 3352if { { ac_try="$ac_link" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3358$as_echo "$ac_try_echo"; } >&5 3359 (eval "$ac_link") 2>&5 3360 ac_status=$? 3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3362 test $ac_status = 0; }; then : 3363 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3364# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3365# work properly (i.e., refer to `conftest.exe'), while it won't with 3366# `rm'. 3367for ac_file in conftest.exe conftest conftest.*; do 3368 test -f "$ac_file" || continue 3369 case $ac_file in 3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3372 break;; 3373 * ) break;; 3374 esac 3375done 3376else 3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3379as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3380See \`config.log' for more details" "$LINENO" 5; } 3381fi 3382rm -f conftest conftest$ac_cv_exeext 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3384$as_echo "$ac_cv_exeext" >&6; } 3385 3386rm -f conftest.$ac_ext 3387EXEEXT=$ac_cv_exeext 3388ac_exeext=$EXEEXT 3389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#include <stdio.h> 3392int 3393main () 3394{ 3395FILE *f = fopen ("conftest.out", "w"); 3396 return ferror (f) || fclose (f) != 0; 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402ac_clean_files="$ac_clean_files conftest.out" 3403# Check that the compiler produces executables we can run. If not, either 3404# the compiler is broken, or we cross compile. 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3406$as_echo_n "checking whether we are cross compiling... " >&6; } 3407if test "$cross_compiling" != yes; then 3408 { { ac_try="$ac_link" 3409case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_link") 2>&5 3416 ac_status=$? 3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3418 test $ac_status = 0; } 3419 if { ac_try='./conftest$ac_cv_exeext' 3420 { { case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3425$as_echo "$ac_try_echo"; } >&5 3426 (eval "$ac_try") 2>&5 3427 ac_status=$? 3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3429 test $ac_status = 0; }; }; then 3430 cross_compiling=no 3431 else 3432 if test "$cross_compiling" = maybe; then 3433 cross_compiling=yes 3434 else 3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437as_fn_error $? "cannot run C compiled programs. 3438If you meant to cross compile, use \`--host'. 3439See \`config.log' for more details" "$LINENO" 5; } 3440 fi 3441 fi 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3444$as_echo "$cross_compiling" >&6; } 3445 3446rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3447ac_clean_files=$ac_clean_files_save 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3449$as_echo_n "checking for suffix of object files... " >&6; } 3450if ${ac_cv_objext+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main () 3458{ 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464rm -f conftest.o conftest.obj 3465if { { ac_try="$ac_compile" 3466case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471$as_echo "$ac_try_echo"; } >&5 3472 (eval "$ac_compile") 2>&5 3473 ac_status=$? 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; then : 3476 for ac_file in conftest.o conftest.obj conftest.*; do 3477 test -f "$ac_file" || continue; 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3481 break;; 3482 esac 3483done 3484else 3485 $as_echo "$as_me: failed program was:" >&5 3486sed 's/^/| /' conftest.$ac_ext >&5 3487 3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3490as_fn_error $? "cannot compute suffix of object files: cannot compile 3491See \`config.log' for more details" "$LINENO" 5; } 3492fi 3493rm -f conftest.$ac_cv_objext conftest.$ac_ext 3494fi 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3496$as_echo "$ac_cv_objext" >&6; } 3497OBJEXT=$ac_cv_objext 3498ac_objext=$OBJEXT 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3500$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3501if ${ac_cv_c_compiler_gnu+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510#ifndef __GNUC__ 3511 choke me 3512#endif 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_compiler_gnu=yes 3520else 3521 ac_compiler_gnu=no 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524ac_cv_c_compiler_gnu=$ac_compiler_gnu 3525 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3528$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3529if test $ac_compiler_gnu = yes; then 3530 GCC=yes 3531else 3532 GCC= 3533fi 3534ac_test_CFLAGS=${CFLAGS+set} 3535ac_save_CFLAGS=$CFLAGS 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3537$as_echo_n "checking whether $CC accepts -g... " >&6; } 3538if ${ac_cv_prog_cc_g+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 ac_save_c_werror_flag=$ac_c_werror_flag 3542 ac_c_werror_flag=yes 3543 ac_cv_prog_cc_g=no 3544 CFLAGS="-g" 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main () 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_cv_prog_cc_g=yes 3558else 3559 CFLAGS="" 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562 3563int 3564main () 3565{ 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_compile "$LINENO"; then : 3572 3573else 3574 ac_c_werror_flag=$ac_save_c_werror_flag 3575 CFLAGS="-g" 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587if ac_fn_c_try_compile "$LINENO"; then : 3588 ac_cv_prog_cc_g=yes 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591fi 3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595 ac_c_werror_flag=$ac_save_c_werror_flag 3596fi 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3598$as_echo "$ac_cv_prog_cc_g" >&6; } 3599if test "$ac_test_CFLAGS" = set; then 3600 CFLAGS=$ac_save_CFLAGS 3601elif test $ac_cv_prog_cc_g = yes; then 3602 if test "$GCC" = yes; then 3603 CFLAGS="-g -O2" 3604 else 3605 CFLAGS="-g" 3606 fi 3607else 3608 if test "$GCC" = yes; then 3609 CFLAGS="-O2" 3610 else 3611 CFLAGS= 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3615$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3616if ${ac_cv_prog_cc_c89+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 ac_cv_prog_cc_c89=no 3620ac_save_CC=$CC 3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623#include <stdarg.h> 3624#include <stdio.h> 3625#include <sys/types.h> 3626#include <sys/stat.h> 3627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3628struct buf { int x; }; 3629FILE * (*rcsopen) (struct buf *, struct stat *, int); 3630static char *e (p, i) 3631 char **p; 3632 int i; 3633{ 3634 return p[i]; 3635} 3636static char *f (char * (*g) (char **, int), char **p, ...) 3637{ 3638 char *s; 3639 va_list v; 3640 va_start (v,p); 3641 s = g (p, va_arg (v,int)); 3642 va_end (v); 3643 return s; 3644} 3645 3646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3647 function prototypes and stuff, but not '\xHH' hex character constants. 3648 These don't provoke an error unfortunately, instead are silently treated 3649 as 'x'. The following induces an error, until -std is added to get 3650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3651 array size at least. It's necessary to write '\x00'==0 to get something 3652 that's true only with -std. */ 3653int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3654 3655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3656 inside strings and character constants. */ 3657#define FOO(x) 'x' 3658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3659 3660int test (int i, double x); 3661struct s1 {int (*f) (int a);}; 3662struct s2 {int (*f) (double a);}; 3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3664int argc; 3665char **argv; 3666int 3667main () 3668{ 3669return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3676do 3677 CC="$ac_save_CC $ac_arg" 3678 if ac_fn_c_try_compile "$LINENO"; then : 3679 ac_cv_prog_cc_c89=$ac_arg 3680fi 3681rm -f core conftest.err conftest.$ac_objext 3682 test "x$ac_cv_prog_cc_c89" != "xno" && break 3683done 3684rm -f conftest.$ac_ext 3685CC=$ac_save_CC 3686 3687fi 3688# AC_CACHE_VAL 3689case "x$ac_cv_prog_cc_c89" in 3690 x) 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3692$as_echo "none needed" >&6; } ;; 3693 xno) 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3695$as_echo "unsupported" >&6; } ;; 3696 *) 3697 CC="$CC $ac_cv_prog_cc_c89" 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3699$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3700esac 3701if test "x$ac_cv_prog_cc_c89" != xno; then : 3702 3703fi 3704 3705ac_ext=c 3706ac_cpp='$CPP $CPPFLAGS' 3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3709ac_compiler_gnu=$ac_cv_c_compiler_gnu 3710 3711depcc="$CC" am_compiler_list= 3712 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3714$as_echo_n "checking dependency style of $depcc... " >&6; } 3715if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3719 # We make a subdir and do the tests there. Otherwise we can end up 3720 # making bogus files that we don't know about and never remove. For 3721 # instance it was reported that on HP-UX the gcc test will end up 3722 # making a dummy file named `D' -- because `-MD' means `put the output 3723 # in D'. 3724 mkdir conftest.dir 3725 # Copy depcomp to subdir because otherwise we won't find it if we're 3726 # using a relative directory. 3727 cp "$am_depcomp" conftest.dir 3728 cd conftest.dir 3729 # We will build objects and dependencies in a subdirectory because 3730 # it helps to detect inapplicable dependency modes. For instance 3731 # both Tru64's cc and ICC support -MD to output dependencies as a 3732 # side effect of compilation, but ICC will put the dependencies in 3733 # the current directory while Tru64 will put them in the object 3734 # directory. 3735 mkdir sub 3736 3737 am_cv_CC_dependencies_compiler_type=none 3738 if test "$am_compiler_list" = ""; then 3739 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3740 fi 3741 am__universal=false 3742 case " $depcc " in #( 3743 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3744 esac 3745 3746 for depmode in $am_compiler_list; do 3747 # Setup a source with many dependencies, because some compilers 3748 # like to wrap large dependency lists on column 80 (with \), and 3749 # we should not choose a depcomp mode which is confused by this. 3750 # 3751 # We need to recreate these files for each test, as the compiler may 3752 # overwrite some of them when testing with obscure command lines. 3753 # This happens at least with the AIX C compiler. 3754 : > sub/conftest.c 3755 for i in 1 2 3 4 5 6; do 3756 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3757 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3758 # Solaris 8's {/usr,}/bin/sh. 3759 touch sub/conftst$i.h 3760 done 3761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3762 3763 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3764 # mode. It turns out that the SunPro C++ compiler does not properly 3765 # handle `-M -o', and we need to detect this. Also, some Intel 3766 # versions had trouble with output in subdirs 3767 am__obj=sub/conftest.${OBJEXT-o} 3768 am__minus_obj="-o $am__obj" 3769 case $depmode in 3770 gcc) 3771 # This depmode causes a compiler race in universal mode. 3772 test "$am__universal" = false || continue 3773 ;; 3774 nosideeffect) 3775 # after this tag, mechanisms are not by side-effect, so they'll 3776 # only be used when explicitly requested 3777 if test "x$enable_dependency_tracking" = xyes; then 3778 continue 3779 else 3780 break 3781 fi 3782 ;; 3783 msvisualcpp | msvcmsys) 3784 # This compiler won't grok `-c -o', but also, the minuso test has 3785 # not run yet. These depmodes are late enough in the game, and 3786 # so weak that their functioning should not be impacted. 3787 am__obj=conftest.${OBJEXT-o} 3788 am__minus_obj= 3789 ;; 3790 none) break ;; 3791 esac 3792 if depmode=$depmode \ 3793 source=sub/conftest.c object=$am__obj \ 3794 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3795 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3796 >/dev/null 2>conftest.err && 3797 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3799 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3801 # icc doesn't choke on unknown options, it will just issue warnings 3802 # or remarks (even with -Werror). So we grep stderr for any message 3803 # that says an option was ignored or not supported. 3804 # When given -MP, icc 7.0 and 7.1 complain thusly: 3805 # icc: Command line warning: ignoring option '-M'; no argument required 3806 # The diagnosis changed in icc 8.0: 3807 # icc: Command line remark: option '-MP' not supported 3808 if (grep 'ignoring option' conftest.err || 3809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3810 am_cv_CC_dependencies_compiler_type=$depmode 3811 break 3812 fi 3813 fi 3814 done 3815 3816 cd .. 3817 rm -rf conftest.dir 3818else 3819 am_cv_CC_dependencies_compiler_type=none 3820fi 3821 3822fi 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3824$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3825CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3826 3827 if 3828 test "x$enable_dependency_tracking" != xno \ 3829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3830 am__fastdepCC_TRUE= 3831 am__fastdepCC_FALSE='#' 3832else 3833 am__fastdepCC_TRUE='#' 3834 am__fastdepCC_FALSE= 3835fi 3836 3837 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3839$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3840if ${ac_cv_prog_cc_c99+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 ac_cv_prog_cc_c99=no 3844ac_save_CC=$CC 3845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847#include <stdarg.h> 3848#include <stdbool.h> 3849#include <stdlib.h> 3850#include <wchar.h> 3851#include <stdio.h> 3852 3853// Check varargs macros. These examples are taken from C99 6.10.3.5. 3854#define debug(...) fprintf (stderr, __VA_ARGS__) 3855#define showlist(...) puts (#__VA_ARGS__) 3856#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3857static void 3858test_varargs_macros (void) 3859{ 3860 int x = 1234; 3861 int y = 5678; 3862 debug ("Flag"); 3863 debug ("X = %d\n", x); 3864 showlist (The first, second, and third items.); 3865 report (x>y, "x is %d but y is %d", x, y); 3866} 3867 3868// Check long long types. 3869#define BIG64 18446744073709551615ull 3870#define BIG32 4294967295ul 3871#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3872#if !BIG_OK 3873 your preprocessor is broken; 3874#endif 3875#if BIG_OK 3876#else 3877 your preprocessor is broken; 3878#endif 3879static long long int bignum = -9223372036854775807LL; 3880static unsigned long long int ubignum = BIG64; 3881 3882struct incomplete_array 3883{ 3884 int datasize; 3885 double data[]; 3886}; 3887 3888struct named_init { 3889 int number; 3890 const wchar_t *name; 3891 double average; 3892}; 3893 3894typedef const char *ccp; 3895 3896static inline int 3897test_restrict (ccp restrict text) 3898{ 3899 // See if C++-style comments work. 3900 // Iterate through items via the restricted pointer. 3901 // Also check for declarations in for loops. 3902 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3903 continue; 3904 return 0; 3905} 3906 3907// Check varargs and va_copy. 3908static void 3909test_varargs (const char *format, ...) 3910{ 3911 va_list args; 3912 va_start (args, format); 3913 va_list args_copy; 3914 va_copy (args_copy, args); 3915 3916 const char *str; 3917 int number; 3918 float fnumber; 3919 3920 while (*format) 3921 { 3922 switch (*format++) 3923 { 3924 case 's': // string 3925 str = va_arg (args_copy, const char *); 3926 break; 3927 case 'd': // int 3928 number = va_arg (args_copy, int); 3929 break; 3930 case 'f': // float 3931 fnumber = va_arg (args_copy, double); 3932 break; 3933 default: 3934 break; 3935 } 3936 } 3937 va_end (args_copy); 3938 va_end (args); 3939} 3940 3941int 3942main () 3943{ 3944 3945 // Check bool. 3946 _Bool success = false; 3947 3948 // Check restrict. 3949 if (test_restrict ("String literal") == 0) 3950 success = true; 3951 char *restrict newvar = "Another string"; 3952 3953 // Check varargs. 3954 test_varargs ("s, d' f .", "string", 65, 34.234); 3955 test_varargs_macros (); 3956 3957 // Check flexible array members. 3958 struct incomplete_array *ia = 3959 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3960 ia->datasize = 10; 3961 for (int i = 0; i < ia->datasize; ++i) 3962 ia->data[i] = i * 1.234; 3963 3964 // Check named initializers. 3965 struct named_init ni = { 3966 .number = 34, 3967 .name = L"Test wide string", 3968 .average = 543.34343, 3969 }; 3970 3971 ni.number = 58; 3972 3973 int dynamic_array[ni.number]; 3974 dynamic_array[ni.number - 1] = 543; 3975 3976 // work around unused variable warnings 3977 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3978 || dynamic_array[ni.number - 1] != 543); 3979 3980 ; 3981 return 0; 3982} 3983_ACEOF 3984for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3985do 3986 CC="$ac_save_CC $ac_arg" 3987 if ac_fn_c_try_compile "$LINENO"; then : 3988 ac_cv_prog_cc_c99=$ac_arg 3989fi 3990rm -f core conftest.err conftest.$ac_objext 3991 test "x$ac_cv_prog_cc_c99" != "xno" && break 3992done 3993rm -f conftest.$ac_ext 3994CC=$ac_save_CC 3995 3996fi 3997# AC_CACHE_VAL 3998case "x$ac_cv_prog_cc_c99" in 3999 x) 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4001$as_echo "none needed" >&6; } ;; 4002 xno) 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4004$as_echo "unsupported" >&6; } ;; 4005 *) 4006 CC="$CC $ac_cv_prog_cc_c99" 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4008$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4009esac 4010if test "x$ac_cv_prog_cc_c99" != xno; then : 4011 4012fi 4013 4014 4015 4016ac_ext=c 4017ac_cpp='$CPP $CPPFLAGS' 4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4020ac_compiler_gnu=$ac_cv_c_compiler_gnu 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4022$as_echo_n "checking how to run the C preprocessor... " >&6; } 4023# On Suns, sometimes $CPP names a directory. 4024if test -n "$CPP" && test -d "$CPP"; then 4025 CPP= 4026fi 4027if test -z "$CPP"; then 4028 if ${ac_cv_prog_CPP+:} false; then : 4029 $as_echo_n "(cached) " >&6 4030else 4031 # Double quotes because CPP needs to be expanded 4032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4033 do 4034 ac_preproc_ok=false 4035for ac_c_preproc_warn_flag in '' yes 4036do 4037 # Use a header file that comes with gcc, so configuring glibc 4038 # with a fresh cross-compiler works. 4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4040 # <limits.h> exists even on freestanding compilers. 4041 # On the NeXT, cc -E runs the code through the compiler's parser, 4042 # not just through cpp. "Syntax error" is here to catch this case. 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045#ifdef __STDC__ 4046# include <limits.h> 4047#else 4048# include <assert.h> 4049#endif 4050 Syntax error 4051_ACEOF 4052if ac_fn_c_try_cpp "$LINENO"; then : 4053 4054else 4055 # Broken: fails on valid input. 4056continue 4057fi 4058rm -f conftest.err conftest.i conftest.$ac_ext 4059 4060 # OK, works on sane cases. Now check whether nonexistent headers 4061 # can be detected and how. 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063/* end confdefs.h. */ 4064#include <ac_nonexistent.h> 4065_ACEOF 4066if ac_fn_c_try_cpp "$LINENO"; then : 4067 # Broken: success on invalid input. 4068continue 4069else 4070 # Passes both tests. 4071ac_preproc_ok=: 4072break 4073fi 4074rm -f conftest.err conftest.i conftest.$ac_ext 4075 4076done 4077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4078rm -f conftest.i conftest.err conftest.$ac_ext 4079if $ac_preproc_ok; then : 4080 break 4081fi 4082 4083 done 4084 ac_cv_prog_CPP=$CPP 4085 4086fi 4087 CPP=$ac_cv_prog_CPP 4088else 4089 ac_cv_prog_CPP=$CPP 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4092$as_echo "$CPP" >&6; } 4093ac_preproc_ok=false 4094for ac_c_preproc_warn_flag in '' yes 4095do 4096 # Use a header file that comes with gcc, so configuring glibc 4097 # with a fresh cross-compiler works. 4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4099 # <limits.h> exists even on freestanding compilers. 4100 # On the NeXT, cc -E runs the code through the compiler's parser, 4101 # not just through cpp. "Syntax error" is here to catch this case. 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104#ifdef __STDC__ 4105# include <limits.h> 4106#else 4107# include <assert.h> 4108#endif 4109 Syntax error 4110_ACEOF 4111if ac_fn_c_try_cpp "$LINENO"; then : 4112 4113else 4114 # Broken: fails on valid input. 4115continue 4116fi 4117rm -f conftest.err conftest.i conftest.$ac_ext 4118 4119 # OK, works on sane cases. Now check whether nonexistent headers 4120 # can be detected and how. 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123#include <ac_nonexistent.h> 4124_ACEOF 4125if ac_fn_c_try_cpp "$LINENO"; then : 4126 # Broken: success on invalid input. 4127continue 4128else 4129 # Passes both tests. 4130ac_preproc_ok=: 4131break 4132fi 4133rm -f conftest.err conftest.i conftest.$ac_ext 4134 4135done 4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4137rm -f conftest.i conftest.err conftest.$ac_ext 4138if $ac_preproc_ok; then : 4139 4140else 4141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4143as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4144See \`config.log' for more details" "$LINENO" 5; } 4145fi 4146 4147ac_ext=c 4148ac_cpp='$CPP $CPPFLAGS' 4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4151ac_compiler_gnu=$ac_cv_c_compiler_gnu 4152 4153 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4155$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4156if ${ac_cv_path_GREP+:} false; then : 4157 $as_echo_n "(cached) " >&6 4158else 4159 if test -z "$GREP"; then 4160 ac_path_GREP_found=false 4161 # Loop through the user's path and test for each of PROGNAME-LIST 4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4164do 4165 IFS=$as_save_IFS 4166 test -z "$as_dir" && as_dir=. 4167 for ac_prog in grep ggrep; do 4168 for ac_exec_ext in '' $ac_executable_extensions; do 4169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4171# Check for GNU ac_path_GREP and select it if it is found. 4172 # Check for GNU $ac_path_GREP 4173case `"$ac_path_GREP" --version 2>&1` in 4174*GNU*) 4175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4176*) 4177 ac_count=0 4178 $as_echo_n 0123456789 >"conftest.in" 4179 while : 4180 do 4181 cat "conftest.in" "conftest.in" >"conftest.tmp" 4182 mv "conftest.tmp" "conftest.in" 4183 cp "conftest.in" "conftest.nl" 4184 $as_echo 'GREP' >> "conftest.nl" 4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4187 as_fn_arith $ac_count + 1 && ac_count=$as_val 4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4189 # Best one so far, save it but keep looking for a better one 4190 ac_cv_path_GREP="$ac_path_GREP" 4191 ac_path_GREP_max=$ac_count 4192 fi 4193 # 10*(2^10) chars as input seems more than enough 4194 test $ac_count -gt 10 && break 4195 done 4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4197esac 4198 4199 $ac_path_GREP_found && break 3 4200 done 4201 done 4202 done 4203IFS=$as_save_IFS 4204 if test -z "$ac_cv_path_GREP"; then 4205 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4206 fi 4207else 4208 ac_cv_path_GREP=$GREP 4209fi 4210 4211fi 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4213$as_echo "$ac_cv_path_GREP" >&6; } 4214 GREP="$ac_cv_path_GREP" 4215 4216 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4218$as_echo_n "checking for egrep... " >&6; } 4219if ${ac_cv_path_EGREP+:} false; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4223 then ac_cv_path_EGREP="$GREP -E" 4224 else 4225 if test -z "$EGREP"; then 4226 ac_path_EGREP_found=false 4227 # Loop through the user's path and test for each of PROGNAME-LIST 4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4230do 4231 IFS=$as_save_IFS 4232 test -z "$as_dir" && as_dir=. 4233 for ac_prog in egrep; do 4234 for ac_exec_ext in '' $ac_executable_extensions; do 4235 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4236 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4237# Check for GNU ac_path_EGREP and select it if it is found. 4238 # Check for GNU $ac_path_EGREP 4239case `"$ac_path_EGREP" --version 2>&1` in 4240*GNU*) 4241 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4242*) 4243 ac_count=0 4244 $as_echo_n 0123456789 >"conftest.in" 4245 while : 4246 do 4247 cat "conftest.in" "conftest.in" >"conftest.tmp" 4248 mv "conftest.tmp" "conftest.in" 4249 cp "conftest.in" "conftest.nl" 4250 $as_echo 'EGREP' >> "conftest.nl" 4251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4253 as_fn_arith $ac_count + 1 && ac_count=$as_val 4254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4255 # Best one so far, save it but keep looking for a better one 4256 ac_cv_path_EGREP="$ac_path_EGREP" 4257 ac_path_EGREP_max=$ac_count 4258 fi 4259 # 10*(2^10) chars as input seems more than enough 4260 test $ac_count -gt 10 && break 4261 done 4262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4263esac 4264 4265 $ac_path_EGREP_found && break 3 4266 done 4267 done 4268 done 4269IFS=$as_save_IFS 4270 if test -z "$ac_cv_path_EGREP"; then 4271 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4272 fi 4273else 4274 ac_cv_path_EGREP=$EGREP 4275fi 4276 4277 fi 4278fi 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4280$as_echo "$ac_cv_path_EGREP" >&6; } 4281 EGREP="$ac_cv_path_EGREP" 4282 4283 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4285$as_echo_n "checking for ANSI C header files... " >&6; } 4286if ${ac_cv_header_stdc+:} false; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290/* end confdefs.h. */ 4291#include <stdlib.h> 4292#include <stdarg.h> 4293#include <string.h> 4294#include <float.h> 4295 4296int 4297main () 4298{ 4299 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304if ac_fn_c_try_compile "$LINENO"; then : 4305 ac_cv_header_stdc=yes 4306else 4307 ac_cv_header_stdc=no 4308fi 4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4310 4311if test $ac_cv_header_stdc = yes; then 4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314/* end confdefs.h. */ 4315#include <string.h> 4316 4317_ACEOF 4318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4319 $EGREP "memchr" >/dev/null 2>&1; then : 4320 4321else 4322 ac_cv_header_stdc=no 4323fi 4324rm -f conftest* 4325 4326fi 4327 4328if test $ac_cv_header_stdc = yes; then 4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4331/* end confdefs.h. */ 4332#include <stdlib.h> 4333 4334_ACEOF 4335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4336 $EGREP "free" >/dev/null 2>&1; then : 4337 4338else 4339 ac_cv_header_stdc=no 4340fi 4341rm -f conftest* 4342 4343fi 4344 4345if test $ac_cv_header_stdc = yes; then 4346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4347 if test "$cross_compiling" = yes; then : 4348 : 4349else 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4351/* end confdefs.h. */ 4352#include <ctype.h> 4353#include <stdlib.h> 4354#if ((' ' & 0x0FF) == 0x020) 4355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4357#else 4358# define ISLOWER(c) \ 4359 (('a' <= (c) && (c) <= 'i') \ 4360 || ('j' <= (c) && (c) <= 'r') \ 4361 || ('s' <= (c) && (c) <= 'z')) 4362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4363#endif 4364 4365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4366int 4367main () 4368{ 4369 int i; 4370 for (i = 0; i < 256; i++) 4371 if (XOR (islower (i), ISLOWER (i)) 4372 || toupper (i) != TOUPPER (i)) 4373 return 2; 4374 return 0; 4375} 4376_ACEOF 4377if ac_fn_c_try_run "$LINENO"; then : 4378 4379else 4380 ac_cv_header_stdc=no 4381fi 4382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4383 conftest.$ac_objext conftest.beam conftest.$ac_ext 4384fi 4385 4386fi 4387fi 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4389$as_echo "$ac_cv_header_stdc" >&6; } 4390if test $ac_cv_header_stdc = yes; then 4391 4392$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4393 4394fi 4395 4396# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4397for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4398 inttypes.h stdint.h unistd.h 4399do : 4400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4401ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4402" 4403if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4404 cat >>confdefs.h <<_ACEOF 4405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4406_ACEOF 4407 4408fi 4409 4410done 4411 4412 4413 4414 4415if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4416 if test -n "$ac_tool_prefix"; then 4417 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4418set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4420$as_echo_n "checking for $ac_word... " >&6; } 4421if ${ac_cv_path_PKG_CONFIG+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 case $PKG_CONFIG in 4425 [\\/]* | ?:[\\/]*) 4426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4427 ;; 4428 *) 4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4430for as_dir in $PATH 4431do 4432 IFS=$as_save_IFS 4433 test -z "$as_dir" && as_dir=. 4434 for ac_exec_ext in '' $ac_executable_extensions; do 4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4438 break 2 4439 fi 4440done 4441 done 4442IFS=$as_save_IFS 4443 4444 ;; 4445esac 4446fi 4447PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4448if test -n "$PKG_CONFIG"; then 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4450$as_echo "$PKG_CONFIG" >&6; } 4451else 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453$as_echo "no" >&6; } 4454fi 4455 4456 4457fi 4458if test -z "$ac_cv_path_PKG_CONFIG"; then 4459 ac_pt_PKG_CONFIG=$PKG_CONFIG 4460 # Extract the first word of "pkg-config", so it can be a program name with args. 4461set dummy pkg-config; ac_word=$2 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463$as_echo_n "checking for $ac_word... " >&6; } 4464if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4465 $as_echo_n "(cached) " >&6 4466else 4467 case $ac_pt_PKG_CONFIG in 4468 [\\/]* | ?:[\\/]*) 4469 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4470 ;; 4471 *) 4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473for as_dir in $PATH 4474do 4475 IFS=$as_save_IFS 4476 test -z "$as_dir" && as_dir=. 4477 for ac_exec_ext in '' $ac_executable_extensions; do 4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4479 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4481 break 2 4482 fi 4483done 4484 done 4485IFS=$as_save_IFS 4486 4487 ;; 4488esac 4489fi 4490ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4491if test -n "$ac_pt_PKG_CONFIG"; then 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4493$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4494else 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4496$as_echo "no" >&6; } 4497fi 4498 4499 if test "x$ac_pt_PKG_CONFIG" = x; then 4500 PKG_CONFIG="" 4501 else 4502 case $cross_compiling:$ac_tool_warned in 4503yes:) 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4506ac_tool_warned=yes ;; 4507esac 4508 PKG_CONFIG=$ac_pt_PKG_CONFIG 4509 fi 4510else 4511 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4512fi 4513 4514fi 4515if test -n "$PKG_CONFIG"; then 4516 _pkg_min_version=0.9.0 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4518$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4519 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4521$as_echo "yes" >&6; } 4522 else 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524$as_echo "no" >&6; } 4525 PKG_CONFIG="" 4526 fi 4527 4528fi 4529# Make sure we can run config.sub. 4530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4531 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4532 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4534$as_echo_n "checking build system type... " >&6; } 4535if ${ac_cv_build+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 ac_build_alias=$build_alias 4539test "x$ac_build_alias" = x && 4540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4541test "x$ac_build_alias" = x && 4542 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4545 4546fi 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4548$as_echo "$ac_cv_build" >&6; } 4549case $ac_cv_build in 4550*-*-*) ;; 4551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4552esac 4553build=$ac_cv_build 4554ac_save_IFS=$IFS; IFS='-' 4555set x $ac_cv_build 4556shift 4557build_cpu=$1 4558build_vendor=$2 4559shift; shift 4560# Remember, the first character of IFS is used to create $*, 4561# except with old shells: 4562build_os=$* 4563IFS=$ac_save_IFS 4564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4565 4566 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4568$as_echo_n "checking host system type... " >&6; } 4569if ${ac_cv_host+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 if test "x$host_alias" = x; then 4573 ac_cv_host=$ac_cv_build 4574else 4575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4577fi 4578 4579fi 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4581$as_echo "$ac_cv_host" >&6; } 4582case $ac_cv_host in 4583*-*-*) ;; 4584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4585esac 4586host=$ac_cv_host 4587ac_save_IFS=$IFS; IFS='-' 4588set x $ac_cv_host 4589shift 4590host_cpu=$1 4591host_vendor=$2 4592shift; shift 4593# Remember, the first character of IFS is used to create $*, 4594# except with old shells: 4595host_os=$* 4596IFS=$ac_save_IFS 4597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4598 4599 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4601$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4602if ${ac_cv_path_SED+:} false; then : 4603 $as_echo_n "(cached) " >&6 4604else 4605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4606 for ac_i in 1 2 3 4 5 6 7; do 4607 ac_script="$ac_script$as_nl$ac_script" 4608 done 4609 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4610 { ac_script=; unset ac_script;} 4611 if test -z "$SED"; then 4612 ac_path_SED_found=false 4613 # Loop through the user's path and test for each of PROGNAME-LIST 4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4615for as_dir in $PATH 4616do 4617 IFS=$as_save_IFS 4618 test -z "$as_dir" && as_dir=. 4619 for ac_prog in sed gsed; do 4620 for ac_exec_ext in '' $ac_executable_extensions; do 4621 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4622 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4623# Check for GNU ac_path_SED and select it if it is found. 4624 # Check for GNU $ac_path_SED 4625case `"$ac_path_SED" --version 2>&1` in 4626*GNU*) 4627 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4628*) 4629 ac_count=0 4630 $as_echo_n 0123456789 >"conftest.in" 4631 while : 4632 do 4633 cat "conftest.in" "conftest.in" >"conftest.tmp" 4634 mv "conftest.tmp" "conftest.in" 4635 cp "conftest.in" "conftest.nl" 4636 $as_echo '' >> "conftest.nl" 4637 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4639 as_fn_arith $ac_count + 1 && ac_count=$as_val 4640 if test $ac_count -gt ${ac_path_SED_max-0}; then 4641 # Best one so far, save it but keep looking for a better one 4642 ac_cv_path_SED="$ac_path_SED" 4643 ac_path_SED_max=$ac_count 4644 fi 4645 # 10*(2^10) chars as input seems more than enough 4646 test $ac_count -gt 10 && break 4647 done 4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4649esac 4650 4651 $ac_path_SED_found && break 3 4652 done 4653 done 4654 done 4655IFS=$as_save_IFS 4656 if test -z "$ac_cv_path_SED"; then 4657 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4658 fi 4659else 4660 ac_cv_path_SED=$SED 4661fi 4662 4663fi 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4665$as_echo "$ac_cv_path_SED" >&6; } 4666 SED="$ac_cv_path_SED" 4667 rm -f conftest.sed 4668 4669 4670 4671 4672 4673if test "x$GCC" = xyes ; then 4674 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4675-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4676-Wbad-function-cast -Wformat=2" 4677 case `$CC -dumpversion` in 4678 3.4.* | 4.*) 4679 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4680 ;; 4681 esac 4682else 4683 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4684if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4685 SUNCC="yes" 4686else 4687 SUNCC="no" 4688fi 4689 4690 if test "x$SUNCC" = "xyes"; then 4691 CWARNFLAGS="-v" 4692 fi 4693fi 4694 4695 4696 4697# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4698 4699 4700 4701# Check whether --enable-strict-compilation was given. 4702if test "${enable_strict_compilation+set}" = set; then : 4703 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4704else 4705 STRICT_COMPILE=no 4706fi 4707 4708if test "x$STRICT_COMPILE" = "xyes"; then 4709 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4710if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4711 SUNCC="yes" 4712else 4713 SUNCC="no" 4714fi 4715 4716 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4717if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4718 INTELCC="yes" 4719else 4720 INTELCC="no" 4721fi 4722 4723 if test "x$GCC" = xyes ; then 4724 STRICT_CFLAGS="-pedantic -Werror" 4725 elif test "x$SUNCC" = "xyes"; then 4726 STRICT_CFLAGS="-errwarn" 4727 elif test "x$INTELCC" = "xyes"; then 4728 STRICT_CFLAGS="-Werror" 4729 fi 4730fi 4731CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4732 4733 4734 4735 4736cat >>confdefs.h <<_ACEOF 4737#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4738_ACEOF 4739 4740 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4741 if test "x$PVM" = "x"; then 4742 PVM="0" 4743 fi 4744 4745cat >>confdefs.h <<_ACEOF 4746#define PACKAGE_VERSION_MINOR $PVM 4747_ACEOF 4748 4749 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4750 if test "x$PVP" = "x"; then 4751 PVP="0" 4752 fi 4753 4754cat >>confdefs.h <<_ACEOF 4755#define PACKAGE_VERSION_PATCHLEVEL $PVP 4756_ACEOF 4757 4758 4759 4760CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4761mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4762|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4763echo 'git directory not found: installing possibly empty changelog.' >&2)" 4764 4765 4766 4767 4768macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4769INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4770mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4771|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4772echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4773 4774 4775 4776 4777 4778 4779if test x$APP_MAN_SUFFIX = x ; then 4780 APP_MAN_SUFFIX=1 4781fi 4782if test x$APP_MAN_DIR = x ; then 4783 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4784fi 4785 4786if test x$LIB_MAN_SUFFIX = x ; then 4787 LIB_MAN_SUFFIX=3 4788fi 4789if test x$LIB_MAN_DIR = x ; then 4790 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4791fi 4792 4793if test x$FILE_MAN_SUFFIX = x ; then 4794 case $host_os in 4795 solaris*) FILE_MAN_SUFFIX=4 ;; 4796 *) FILE_MAN_SUFFIX=5 ;; 4797 esac 4798fi 4799if test x$FILE_MAN_DIR = x ; then 4800 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4801fi 4802 4803if test x$MISC_MAN_SUFFIX = x ; then 4804 case $host_os in 4805 solaris*) MISC_MAN_SUFFIX=5 ;; 4806 *) MISC_MAN_SUFFIX=7 ;; 4807 esac 4808fi 4809if test x$MISC_MAN_DIR = x ; then 4810 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4811fi 4812 4813if test x$DRIVER_MAN_SUFFIX = x ; then 4814 case $host_os in 4815 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4816 *) DRIVER_MAN_SUFFIX=4 ;; 4817 esac 4818fi 4819if test x$DRIVER_MAN_DIR = x ; then 4820 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4821fi 4822 4823if test x$ADMIN_MAN_SUFFIX = x ; then 4824 case $host_os in 4825 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4826 *) ADMIN_MAN_SUFFIX=8 ;; 4827 esac 4828fi 4829if test x$ADMIN_MAN_DIR = x ; then 4830 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4831fi 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847XORG_MAN_PAGE="X Version 11" 4848 4849MAN_SUBSTS="\ 4850 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4851 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4852 -e 's|__xservername__|Xorg|g' \ 4853 -e 's|__xconfigfile__|xorg.conf|g' \ 4854 -e 's|__projectroot__|\$(prefix)|g' \ 4855 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4856 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4857 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4858 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4859 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4860 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4861 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4862 4863 4864 4865# Check whether --enable-silent-rules was given. 4866if test "${enable_silent_rules+set}" = set; then : 4867 enableval=$enable_silent_rules; 4868fi 4869 4870case $enable_silent_rules in 4871yes) AM_DEFAULT_VERBOSITY=0;; 4872no) AM_DEFAULT_VERBOSITY=1;; 4873*) AM_DEFAULT_VERBOSITY=0;; 4874esac 4875AM_BACKSLASH='\' 4876 4877 4878ac_config_headers="$ac_config_headers config.h" 4879 4880 4881# Check for progs 4882case `pwd` in 4883 *\ * | *\ *) 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4885$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4886esac 4887 4888 4889 4890macro_version='2.2.10' 4891macro_revision='1.3175' 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905ltmain="$ac_aux_dir/ltmain.sh" 4906 4907# Backslashify metacharacters that are still active within 4908# double-quoted strings. 4909sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4910 4911# Same as above, but do not quote variable references. 4912double_quote_subst='s/\(["`\\]\)/\\\1/g' 4913 4914# Sed substitution to delay expansion of an escaped shell variable in a 4915# double_quote_subst'ed string. 4916delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4917 4918# Sed substitution to delay expansion of an escaped single quote. 4919delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4920 4921# Sed substitution to avoid accidental globbing in evaled expressions 4922no_glob_subst='s/\*/\\\*/g' 4923 4924ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4926ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4927 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4929$as_echo_n "checking how to print strings... " >&6; } 4930# Test print first, because it will be a builtin if present. 4931if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4933 ECHO='print -r --' 4934elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4935 ECHO='printf %s\n' 4936else 4937 # Use this function as a fallback that always works. 4938 func_fallback_echo () 4939 { 4940 eval 'cat <<_LTECHO_EOF 4941$1 4942_LTECHO_EOF' 4943 } 4944 ECHO='func_fallback_echo' 4945fi 4946 4947# func_echo_all arg... 4948# Invoke $ECHO with all args, space-separated. 4949func_echo_all () 4950{ 4951 $ECHO "" 4952} 4953 4954case "$ECHO" in 4955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4956$as_echo "printf" >&6; } ;; 4957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4958$as_echo "print -r" >&6; } ;; 4959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4960$as_echo "cat" >&6; } ;; 4961esac 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4977$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4978if ${ac_cv_path_SED+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4982 for ac_i in 1 2 3 4 5 6 7; do 4983 ac_script="$ac_script$as_nl$ac_script" 4984 done 4985 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4986 { ac_script=; unset ac_script;} 4987 if test -z "$SED"; then 4988 ac_path_SED_found=false 4989 # Loop through the user's path and test for each of PROGNAME-LIST 4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4991for as_dir in $PATH 4992do 4993 IFS=$as_save_IFS 4994 test -z "$as_dir" && as_dir=. 4995 for ac_prog in sed gsed; do 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4998 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4999# Check for GNU ac_path_SED and select it if it is found. 5000 # Check for GNU $ac_path_SED 5001case `"$ac_path_SED" --version 2>&1` in 5002*GNU*) 5003 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5004*) 5005 ac_count=0 5006 $as_echo_n 0123456789 >"conftest.in" 5007 while : 5008 do 5009 cat "conftest.in" "conftest.in" >"conftest.tmp" 5010 mv "conftest.tmp" "conftest.in" 5011 cp "conftest.in" "conftest.nl" 5012 $as_echo '' >> "conftest.nl" 5013 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5015 as_fn_arith $ac_count + 1 && ac_count=$as_val 5016 if test $ac_count -gt ${ac_path_SED_max-0}; then 5017 # Best one so far, save it but keep looking for a better one 5018 ac_cv_path_SED="$ac_path_SED" 5019 ac_path_SED_max=$ac_count 5020 fi 5021 # 10*(2^10) chars as input seems more than enough 5022 test $ac_count -gt 10 && break 5023 done 5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5025esac 5026 5027 $ac_path_SED_found && break 3 5028 done 5029 done 5030 done 5031IFS=$as_save_IFS 5032 if test -z "$ac_cv_path_SED"; then 5033 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5034 fi 5035else 5036 ac_cv_path_SED=$SED 5037fi 5038 5039fi 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5041$as_echo "$ac_cv_path_SED" >&6; } 5042 SED="$ac_cv_path_SED" 5043 rm -f conftest.sed 5044 5045test -z "$SED" && SED=sed 5046Xsed="$SED -e 1s/^X//" 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5059$as_echo_n "checking for fgrep... " >&6; } 5060if ${ac_cv_path_FGREP+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5064 then ac_cv_path_FGREP="$GREP -F" 5065 else 5066 if test -z "$FGREP"; then 5067 ac_path_FGREP_found=false 5068 # Loop through the user's path and test for each of PROGNAME-LIST 5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5071do 5072 IFS=$as_save_IFS 5073 test -z "$as_dir" && as_dir=. 5074 for ac_prog in fgrep; do 5075 for ac_exec_ext in '' $ac_executable_extensions; do 5076 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5077 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5078# Check for GNU ac_path_FGREP and select it if it is found. 5079 # Check for GNU $ac_path_FGREP 5080case `"$ac_path_FGREP" --version 2>&1` in 5081*GNU*) 5082 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5083*) 5084 ac_count=0 5085 $as_echo_n 0123456789 >"conftest.in" 5086 while : 5087 do 5088 cat "conftest.in" "conftest.in" >"conftest.tmp" 5089 mv "conftest.tmp" "conftest.in" 5090 cp "conftest.in" "conftest.nl" 5091 $as_echo 'FGREP' >> "conftest.nl" 5092 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5094 as_fn_arith $ac_count + 1 && ac_count=$as_val 5095 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5096 # Best one so far, save it but keep looking for a better one 5097 ac_cv_path_FGREP="$ac_path_FGREP" 5098 ac_path_FGREP_max=$ac_count 5099 fi 5100 # 10*(2^10) chars as input seems more than enough 5101 test $ac_count -gt 10 && break 5102 done 5103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5104esac 5105 5106 $ac_path_FGREP_found && break 3 5107 done 5108 done 5109 done 5110IFS=$as_save_IFS 5111 if test -z "$ac_cv_path_FGREP"; then 5112 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5113 fi 5114else 5115 ac_cv_path_FGREP=$FGREP 5116fi 5117 5118 fi 5119fi 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5121$as_echo "$ac_cv_path_FGREP" >&6; } 5122 FGREP="$ac_cv_path_FGREP" 5123 5124 5125test -z "$GREP" && GREP=grep 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145# Check whether --with-gnu-ld was given. 5146if test "${with_gnu_ld+set}" = set; then : 5147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5148else 5149 with_gnu_ld=no 5150fi 5151 5152ac_prog=ld 5153if test "$GCC" = yes; then 5154 # Check if gcc -print-prog-name=ld gives a path. 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5156$as_echo_n "checking for ld used by $CC... " >&6; } 5157 case $host in 5158 *-*-mingw*) 5159 # gcc leaves a trailing carriage return which upsets mingw 5160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5161 *) 5162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5163 esac 5164 case $ac_prog in 5165 # Accept absolute paths. 5166 [\\/]* | ?:[\\/]*) 5167 re_direlt='/[^/][^/]*/\.\./' 5168 # Canonicalize the pathname of ld 5169 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5170 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5171 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5172 done 5173 test -z "$LD" && LD="$ac_prog" 5174 ;; 5175 "") 5176 # If it fails, then pretend we aren't using GCC. 5177 ac_prog=ld 5178 ;; 5179 *) 5180 # If it is relative, then search for the first ld in PATH. 5181 with_gnu_ld=unknown 5182 ;; 5183 esac 5184elif test "$with_gnu_ld" = yes; then 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5186$as_echo_n "checking for GNU ld... " >&6; } 5187else 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5189$as_echo_n "checking for non-GNU ld... " >&6; } 5190fi 5191if ${lt_cv_path_LD+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 if test -z "$LD"; then 5195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5196 for ac_dir in $PATH; do 5197 IFS="$lt_save_ifs" 5198 test -z "$ac_dir" && ac_dir=. 5199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5200 lt_cv_path_LD="$ac_dir/$ac_prog" 5201 # Check to see if the program is GNU ld. I'd rather use --version, 5202 # but apparently some variants of GNU ld only accept -v. 5203 # Break only if it was the GNU/non-GNU ld that we prefer. 5204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5205 *GNU* | *'with BFD'*) 5206 test "$with_gnu_ld" != no && break 5207 ;; 5208 *) 5209 test "$with_gnu_ld" != yes && break 5210 ;; 5211 esac 5212 fi 5213 done 5214 IFS="$lt_save_ifs" 5215else 5216 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5217fi 5218fi 5219 5220LD="$lt_cv_path_LD" 5221if test -n "$LD"; then 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5223$as_echo "$LD" >&6; } 5224else 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5226$as_echo "no" >&6; } 5227fi 5228test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5230$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5231if ${lt_cv_prog_gnu_ld+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5235case `$LD -v 2>&1 </dev/null` in 5236*GNU* | *'with BFD'*) 5237 lt_cv_prog_gnu_ld=yes 5238 ;; 5239*) 5240 lt_cv_prog_gnu_ld=no 5241 ;; 5242esac 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5245$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5246with_gnu_ld=$lt_cv_prog_gnu_ld 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5257$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5258if ${lt_cv_path_NM+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 if test -n "$NM"; then 5262 # Let the user override the test. 5263 lt_cv_path_NM="$NM" 5264else 5265 lt_nm_to_check="${ac_tool_prefix}nm" 5266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5267 lt_nm_to_check="$lt_nm_to_check nm" 5268 fi 5269 for lt_tmp_nm in $lt_nm_to_check; do 5270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5272 IFS="$lt_save_ifs" 5273 test -z "$ac_dir" && ac_dir=. 5274 tmp_nm="$ac_dir/$lt_tmp_nm" 5275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5276 # Check to see if the nm accepts a BSD-compat flag. 5277 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5278 # nm: unknown option "B" ignored 5279 # Tru64's nm complains that /dev/null is an invalid object file 5280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5281 */dev/null* | *'Invalid file or object type'*) 5282 lt_cv_path_NM="$tmp_nm -B" 5283 break 5284 ;; 5285 *) 5286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5287 */dev/null*) 5288 lt_cv_path_NM="$tmp_nm -p" 5289 break 5290 ;; 5291 *) 5292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5293 continue # so that we can try to find one that supports BSD flags 5294 ;; 5295 esac 5296 ;; 5297 esac 5298 fi 5299 done 5300 IFS="$lt_save_ifs" 5301 done 5302 : ${lt_cv_path_NM=no} 5303fi 5304fi 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5306$as_echo "$lt_cv_path_NM" >&6; } 5307if test "$lt_cv_path_NM" != "no"; then 5308 NM="$lt_cv_path_NM" 5309else 5310 # Didn't find any BSD compatible name lister, look for dumpbin. 5311 if test -n "$DUMPBIN"; then : 5312 # Let the user override the test. 5313 else 5314 if test -n "$ac_tool_prefix"; then 5315 for ac_prog in dumpbin "link -dump" 5316 do 5317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5318set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320$as_echo_n "checking for $ac_word... " >&6; } 5321if ${ac_cv_prog_DUMPBIN+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 if test -n "$DUMPBIN"; then 5325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5326else 5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328for as_dir in $PATH 5329do 5330 IFS=$as_save_IFS 5331 test -z "$as_dir" && as_dir=. 5332 for ac_exec_ext in '' $ac_executable_extensions; do 5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5334 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5336 break 2 5337 fi 5338done 5339 done 5340IFS=$as_save_IFS 5341 5342fi 5343fi 5344DUMPBIN=$ac_cv_prog_DUMPBIN 5345if test -n "$DUMPBIN"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5347$as_echo "$DUMPBIN" >&6; } 5348else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350$as_echo "no" >&6; } 5351fi 5352 5353 5354 test -n "$DUMPBIN" && break 5355 done 5356fi 5357if test -z "$DUMPBIN"; then 5358 ac_ct_DUMPBIN=$DUMPBIN 5359 for ac_prog in dumpbin "link -dump" 5360do 5361 # Extract the first word of "$ac_prog", so it can be a program name with args. 5362set dummy $ac_prog; ac_word=$2 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364$as_echo_n "checking for $ac_word... " >&6; } 5365if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 if test -n "$ac_ct_DUMPBIN"; then 5369 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5370else 5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372for as_dir in $PATH 5373do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382done 5383 done 5384IFS=$as_save_IFS 5385 5386fi 5387fi 5388ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5389if test -n "$ac_ct_DUMPBIN"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5391$as_echo "$ac_ct_DUMPBIN" >&6; } 5392else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5394$as_echo "no" >&6; } 5395fi 5396 5397 5398 test -n "$ac_ct_DUMPBIN" && break 5399done 5400 5401 if test "x$ac_ct_DUMPBIN" = x; then 5402 DUMPBIN=":" 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 DUMPBIN=$ac_ct_DUMPBIN 5411 fi 5412fi 5413 5414 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5415 *COFF*) 5416 DUMPBIN="$DUMPBIN -symbols" 5417 ;; 5418 *) 5419 DUMPBIN=: 5420 ;; 5421 esac 5422 fi 5423 5424 if test "$DUMPBIN" != ":"; then 5425 NM="$DUMPBIN" 5426 fi 5427fi 5428test -z "$NM" && NM=nm 5429 5430 5431 5432 5433 5434 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5436$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5437if ${lt_cv_nm_interface+:} false; then : 5438 $as_echo_n "(cached) " >&6 5439else 5440 lt_cv_nm_interface="BSD nm" 5441 echo "int some_variable = 0;" > conftest.$ac_ext 5442 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5443 (eval "$ac_compile" 2>conftest.err) 5444 cat conftest.err >&5 5445 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5446 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5447 cat conftest.err >&5 5448 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5449 cat conftest.out >&5 5450 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5451 lt_cv_nm_interface="MS dumpbin" 5452 fi 5453 rm -f conftest* 5454fi 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5456$as_echo "$lt_cv_nm_interface" >&6; } 5457 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5459$as_echo_n "checking whether ln -s works... " >&6; } 5460LN_S=$as_ln_s 5461if test "$LN_S" = "ln -s"; then 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5463$as_echo "yes" >&6; } 5464else 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5466$as_echo "no, using $LN_S" >&6; } 5467fi 5468 5469# find the maximum length of command line arguments 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5471$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5472if ${lt_cv_sys_max_cmd_len+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 i=0 5476 teststring="ABCD" 5477 5478 case $build_os in 5479 msdosdjgpp*) 5480 # On DJGPP, this test can blow up pretty badly due to problems in libc 5481 # (any single argument exceeding 2000 bytes causes a buffer overrun 5482 # during glob expansion). Even if it were fixed, the result of this 5483 # check would be larger than it should be. 5484 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5485 ;; 5486 5487 gnu*) 5488 # Under GNU Hurd, this test is not required because there is 5489 # no limit to the length of command line arguments. 5490 # Libtool will interpret -1 as no limit whatsoever 5491 lt_cv_sys_max_cmd_len=-1; 5492 ;; 5493 5494 cygwin* | mingw* | cegcc*) 5495 # On Win9x/ME, this test blows up -- it succeeds, but takes 5496 # about 5 minutes as the teststring grows exponentially. 5497 # Worse, since 9x/ME are not pre-emptively multitasking, 5498 # you end up with a "frozen" computer, even though with patience 5499 # the test eventually succeeds (with a max line length of 256k). 5500 # Instead, let's just punt: use the minimum linelength reported by 5501 # all of the supported platforms: 8192 (on NT/2K/XP). 5502 lt_cv_sys_max_cmd_len=8192; 5503 ;; 5504 5505 mint*) 5506 # On MiNT this can take a long time and run out of memory. 5507 lt_cv_sys_max_cmd_len=8192; 5508 ;; 5509 5510 amigaos*) 5511 # On AmigaOS with pdksh, this test takes hours, literally. 5512 # So we just punt and use a minimum line length of 8192. 5513 lt_cv_sys_max_cmd_len=8192; 5514 ;; 5515 5516 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5517 # This has been around since 386BSD, at least. Likely further. 5518 if test -x /sbin/sysctl; then 5519 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5520 elif test -x /usr/sbin/sysctl; then 5521 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5522 else 5523 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5524 fi 5525 # And add a safety zone 5526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5528 ;; 5529 5530 interix*) 5531 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5532 lt_cv_sys_max_cmd_len=196608 5533 ;; 5534 5535 osf*) 5536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5538 # nice to cause kernel panics so lets avoid the loop below. 5539 # First set a reasonable default. 5540 lt_cv_sys_max_cmd_len=16384 5541 # 5542 if test -x /sbin/sysconfig; then 5543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5544 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5545 esac 5546 fi 5547 ;; 5548 sco3.2v5*) 5549 lt_cv_sys_max_cmd_len=102400 5550 ;; 5551 sysv5* | sco5v6* | sysv4.2uw2*) 5552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5553 if test -n "$kargmax"; then 5554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5555 else 5556 lt_cv_sys_max_cmd_len=32768 5557 fi 5558 ;; 5559 *) 5560 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5561 if test -n "$lt_cv_sys_max_cmd_len"; then 5562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5564 else 5565 # Make teststring a little bigger before we do anything with it. 5566 # a 1K string should be a reasonable start. 5567 for i in 1 2 3 4 5 6 7 8 ; do 5568 teststring=$teststring$teststring 5569 done 5570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5571 # If test is not a shell built-in, we'll probably end up computing a 5572 # maximum length that is only half of the actual maximum length, but 5573 # we can't tell. 5574 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5575 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5576 test $i != 17 # 1/2 MB should be enough 5577 do 5578 i=`expr $i + 1` 5579 teststring=$teststring$teststring 5580 done 5581 # Only check the string length outside the loop. 5582 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5583 teststring= 5584 # Add a significant safety factor because C++ compilers can tack on 5585 # massive amounts of additional arguments before passing them to the 5586 # linker. It appears as though 1/2 is a usable value. 5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5588 fi 5589 ;; 5590 esac 5591 5592fi 5593 5594if test -n $lt_cv_sys_max_cmd_len ; then 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5596$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5597else 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5599$as_echo "none" >&6; } 5600fi 5601max_cmd_len=$lt_cv_sys_max_cmd_len 5602 5603 5604 5605 5606 5607 5608: ${CP="cp -f"} 5609: ${MV="mv -f"} 5610: ${RM="rm -f"} 5611 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5613$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5614# Try some XSI features 5615xsi_shell=no 5616( _lt_dummy="a/b/c" 5617 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5618 = c,a/b,, \ 5619 && eval 'test $(( 1 + 1 )) -eq 2 \ 5620 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5621 && xsi_shell=yes 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5623$as_echo "$xsi_shell" >&6; } 5624 5625 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5627$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5628lt_shell_append=no 5629( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5630 >/dev/null 2>&1 \ 5631 && lt_shell_append=yes 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5633$as_echo "$lt_shell_append" >&6; } 5634 5635 5636if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5637 lt_unset=unset 5638else 5639 lt_unset=false 5640fi 5641 5642 5643 5644 5645 5646# test EBCDIC or ASCII 5647case `echo X|tr X '\101'` in 5648 A) # ASCII based system 5649 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5650 lt_SP2NL='tr \040 \012' 5651 lt_NL2SP='tr \015\012 \040\040' 5652 ;; 5653 *) # EBCDIC based system 5654 lt_SP2NL='tr \100 \n' 5655 lt_NL2SP='tr \r\n \100\100' 5656 ;; 5657esac 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5668$as_echo_n "checking for $LD option to reload object files... " >&6; } 5669if ${lt_cv_ld_reload_flag+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 lt_cv_ld_reload_flag='-r' 5673fi 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5675$as_echo "$lt_cv_ld_reload_flag" >&6; } 5676reload_flag=$lt_cv_ld_reload_flag 5677case $reload_flag in 5678"" | " "*) ;; 5679*) reload_flag=" $reload_flag" ;; 5680esac 5681reload_cmds='$LD$reload_flag -o $output$reload_objs' 5682case $host_os in 5683 darwin*) 5684 if test "$GCC" = yes; then 5685 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5686 else 5687 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5688 fi 5689 ;; 5690esac 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700if test -n "$ac_tool_prefix"; then 5701 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5702set dummy ${ac_tool_prefix}objdump; ac_word=$2 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5704$as_echo_n "checking for $ac_word... " >&6; } 5705if ${ac_cv_prog_OBJDUMP+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 if test -n "$OBJDUMP"; then 5709 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5710else 5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5712for as_dir in $PATH 5713do 5714 IFS=$as_save_IFS 5715 test -z "$as_dir" && as_dir=. 5716 for ac_exec_ext in '' $ac_executable_extensions; do 5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5718 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5720 break 2 5721 fi 5722done 5723 done 5724IFS=$as_save_IFS 5725 5726fi 5727fi 5728OBJDUMP=$ac_cv_prog_OBJDUMP 5729if test -n "$OBJDUMP"; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5731$as_echo "$OBJDUMP" >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5734$as_echo "no" >&6; } 5735fi 5736 5737 5738fi 5739if test -z "$ac_cv_prog_OBJDUMP"; then 5740 ac_ct_OBJDUMP=$OBJDUMP 5741 # Extract the first word of "objdump", so it can be a program name with args. 5742set dummy objdump; ac_word=$2 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5744$as_echo_n "checking for $ac_word... " >&6; } 5745if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 if test -n "$ac_ct_OBJDUMP"; then 5749 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5750else 5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH 5753do 5754 IFS=$as_save_IFS 5755 test -z "$as_dir" && as_dir=. 5756 for ac_exec_ext in '' $ac_executable_extensions; do 5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5758 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5760 break 2 5761 fi 5762done 5763 done 5764IFS=$as_save_IFS 5765 5766fi 5767fi 5768ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5769if test -n "$ac_ct_OBJDUMP"; then 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5771$as_echo "$ac_ct_OBJDUMP" >&6; } 5772else 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5774$as_echo "no" >&6; } 5775fi 5776 5777 if test "x$ac_ct_OBJDUMP" = x; then 5778 OBJDUMP="false" 5779 else 5780 case $cross_compiling:$ac_tool_warned in 5781yes:) 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5784ac_tool_warned=yes ;; 5785esac 5786 OBJDUMP=$ac_ct_OBJDUMP 5787 fi 5788else 5789 OBJDUMP="$ac_cv_prog_OBJDUMP" 5790fi 5791 5792test -z "$OBJDUMP" && OBJDUMP=objdump 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5803$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5804if ${lt_cv_deplibs_check_method+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 lt_cv_file_magic_cmd='$MAGIC_CMD' 5808lt_cv_file_magic_test_file= 5809lt_cv_deplibs_check_method='unknown' 5810# Need to set the preceding variable on all platforms that support 5811# interlibrary dependencies. 5812# 'none' -- dependencies not supported. 5813# `unknown' -- same as none, but documents that we really don't know. 5814# 'pass_all' -- all dependencies passed with no checks. 5815# 'test_compile' -- check by making test program. 5816# 'file_magic [[regex]]' -- check by looking for files in library path 5817# which responds to the $file_magic_cmd with a given extended regex. 5818# If you have `file' or equivalent on your system and you're not sure 5819# whether `pass_all' will *always* work, you probably want this one. 5820 5821case $host_os in 5822aix[4-9]*) 5823 lt_cv_deplibs_check_method=pass_all 5824 ;; 5825 5826beos*) 5827 lt_cv_deplibs_check_method=pass_all 5828 ;; 5829 5830bsdi[45]*) 5831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5832 lt_cv_file_magic_cmd='/usr/bin/file -L' 5833 lt_cv_file_magic_test_file=/shlib/libc.so 5834 ;; 5835 5836cygwin*) 5837 # func_win32_libid is a shell function defined in ltmain.sh 5838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5839 lt_cv_file_magic_cmd='func_win32_libid' 5840 ;; 5841 5842mingw* | pw32*) 5843 # Base MSYS/MinGW do not provide the 'file' command needed by 5844 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5845 # unless we find 'file', for example because we are cross-compiling. 5846 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5847 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5849 lt_cv_file_magic_cmd='func_win32_libid' 5850 else 5851 # Keep this pattern in sync with the one in func_win32_libid. 5852 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5853 lt_cv_file_magic_cmd='$OBJDUMP -f' 5854 fi 5855 ;; 5856 5857cegcc*) 5858 # use the weaker test based on 'objdump'. See mingw*. 5859 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5860 lt_cv_file_magic_cmd='$OBJDUMP -f' 5861 ;; 5862 5863darwin* | rhapsody*) 5864 lt_cv_deplibs_check_method=pass_all 5865 ;; 5866 5867freebsd* | dragonfly*) 5868 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5869 case $host_cpu in 5870 i*86 ) 5871 # Not sure whether the presence of OpenBSD here was a mistake. 5872 # Let's accept both of them until this is cleared up. 5873 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5874 lt_cv_file_magic_cmd=/usr/bin/file 5875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5876 ;; 5877 esac 5878 else 5879 lt_cv_deplibs_check_method=pass_all 5880 fi 5881 ;; 5882 5883gnu*) 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886 5887haiku*) 5888 lt_cv_deplibs_check_method=pass_all 5889 ;; 5890 5891hpux10.20* | hpux11*) 5892 lt_cv_file_magic_cmd=/usr/bin/file 5893 case $host_cpu in 5894 ia64*) 5895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5896 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5897 ;; 5898 hppa*64*) 5899 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]' 5900 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5901 ;; 5902 *) 5903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5904 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5905 ;; 5906 esac 5907 ;; 5908 5909interix[3-9]*) 5910 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5912 ;; 5913 5914irix5* | irix6* | nonstopux*) 5915 case $LD in 5916 *-32|*"-32 ") libmagic=32-bit;; 5917 *-n32|*"-n32 ") libmagic=N32;; 5918 *-64|*"-64 ") libmagic=64-bit;; 5919 *) libmagic=never-match;; 5920 esac 5921 lt_cv_deplibs_check_method=pass_all 5922 ;; 5923 5924# This must be Linux ELF. 5925linux* | k*bsd*-gnu | kopensolaris*-gnu) 5926 lt_cv_deplibs_check_method=pass_all 5927 ;; 5928 5929netbsd*) 5930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5932 else 5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5934 fi 5935 ;; 5936 5937newos6*) 5938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5939 lt_cv_file_magic_cmd=/usr/bin/file 5940 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5941 ;; 5942 5943*nto* | *qnx*) 5944 lt_cv_deplibs_check_method=pass_all 5945 ;; 5946 5947openbsd*) 5948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5950 else 5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5952 fi 5953 ;; 5954 5955osf3* | osf4* | osf5*) 5956 lt_cv_deplibs_check_method=pass_all 5957 ;; 5958 5959rdos*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 5963solaris*) 5964 lt_cv_deplibs_check_method=pass_all 5965 ;; 5966 5967sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5968 lt_cv_deplibs_check_method=pass_all 5969 ;; 5970 5971sysv4 | sysv4.3*) 5972 case $host_vendor in 5973 motorola) 5974 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]' 5975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5976 ;; 5977 ncr) 5978 lt_cv_deplibs_check_method=pass_all 5979 ;; 5980 sequent) 5981 lt_cv_file_magic_cmd='/bin/file' 5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5983 ;; 5984 sni) 5985 lt_cv_file_magic_cmd='/bin/file' 5986 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5987 lt_cv_file_magic_test_file=/lib/libc.so 5988 ;; 5989 siemens) 5990 lt_cv_deplibs_check_method=pass_all 5991 ;; 5992 pc) 5993 lt_cv_deplibs_check_method=pass_all 5994 ;; 5995 esac 5996 ;; 5997 5998tpf*) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001esac 6002 6003fi 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6005$as_echo "$lt_cv_deplibs_check_method" >&6; } 6006file_magic_cmd=$lt_cv_file_magic_cmd 6007deplibs_check_method=$lt_cv_deplibs_check_method 6008test -z "$deplibs_check_method" && deplibs_check_method=unknown 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021if test -n "$ac_tool_prefix"; then 6022 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6023set dummy ${ac_tool_prefix}ar; ac_word=$2 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6025$as_echo_n "checking for $ac_word... " >&6; } 6026if ${ac_cv_prog_AR+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 if test -n "$AR"; then 6030 ac_cv_prog_AR="$AR" # Let the user override the test. 6031else 6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH 6034do 6035 IFS=$as_save_IFS 6036 test -z "$as_dir" && as_dir=. 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6039 ac_cv_prog_AR="${ac_tool_prefix}ar" 6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044 done 6045IFS=$as_save_IFS 6046 6047fi 6048fi 6049AR=$ac_cv_prog_AR 6050if test -n "$AR"; then 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6052$as_echo "$AR" >&6; } 6053else 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6055$as_echo "no" >&6; } 6056fi 6057 6058 6059fi 6060if test -z "$ac_cv_prog_AR"; then 6061 ac_ct_AR=$AR 6062 # Extract the first word of "ar", so it can be a program name with args. 6063set dummy ar; ac_word=$2 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6065$as_echo_n "checking for $ac_word... " >&6; } 6066if ${ac_cv_prog_ac_ct_AR+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068else 6069 if test -n "$ac_ct_AR"; then 6070 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6071else 6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6073for as_dir in $PATH 6074do 6075 IFS=$as_save_IFS 6076 test -z "$as_dir" && as_dir=. 6077 for ac_exec_ext in '' $ac_executable_extensions; do 6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6079 ac_cv_prog_ac_ct_AR="ar" 6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6081 break 2 6082 fi 6083done 6084 done 6085IFS=$as_save_IFS 6086 6087fi 6088fi 6089ac_ct_AR=$ac_cv_prog_ac_ct_AR 6090if test -n "$ac_ct_AR"; then 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6092$as_echo "$ac_ct_AR" >&6; } 6093else 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6095$as_echo "no" >&6; } 6096fi 6097 6098 if test "x$ac_ct_AR" = x; then 6099 AR="false" 6100 else 6101 case $cross_compiling:$ac_tool_warned in 6102yes:) 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6105ac_tool_warned=yes ;; 6106esac 6107 AR=$ac_ct_AR 6108 fi 6109else 6110 AR="$ac_cv_prog_AR" 6111fi 6112 6113test -z "$AR" && AR=ar 6114test -z "$AR_FLAGS" && AR_FLAGS=cru 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126if test -n "$ac_tool_prefix"; then 6127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6128set dummy ${ac_tool_prefix}strip; ac_word=$2 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130$as_echo_n "checking for $ac_word... " >&6; } 6131if ${ac_cv_prog_STRIP+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 if test -n "$STRIP"; then 6135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6136else 6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6144 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149 done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154STRIP=$ac_cv_prog_STRIP 6155if test -n "$STRIP"; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6157$as_echo "$STRIP" >&6; } 6158else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160$as_echo "no" >&6; } 6161fi 6162 6163 6164fi 6165if test -z "$ac_cv_prog_STRIP"; then 6166 ac_ct_STRIP=$STRIP 6167 # Extract the first word of "strip", so it can be a program name with args. 6168set dummy strip; ac_word=$2 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6170$as_echo_n "checking for $ac_word... " >&6; } 6171if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 if test -n "$ac_ct_STRIP"; then 6175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6176else 6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6178for as_dir in $PATH 6179do 6180 IFS=$as_save_IFS 6181 test -z "$as_dir" && as_dir=. 6182 for ac_exec_ext in '' $ac_executable_extensions; do 6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6184 ac_cv_prog_ac_ct_STRIP="strip" 6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6186 break 2 6187 fi 6188done 6189 done 6190IFS=$as_save_IFS 6191 6192fi 6193fi 6194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6195if test -n "$ac_ct_STRIP"; then 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6197$as_echo "$ac_ct_STRIP" >&6; } 6198else 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6200$as_echo "no" >&6; } 6201fi 6202 6203 if test "x$ac_ct_STRIP" = x; then 6204 STRIP=":" 6205 else 6206 case $cross_compiling:$ac_tool_warned in 6207yes:) 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6210ac_tool_warned=yes ;; 6211esac 6212 STRIP=$ac_ct_STRIP 6213 fi 6214else 6215 STRIP="$ac_cv_prog_STRIP" 6216fi 6217 6218test -z "$STRIP" && STRIP=: 6219 6220 6221 6222 6223 6224 6225if test -n "$ac_tool_prefix"; then 6226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6227set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6229$as_echo_n "checking for $ac_word... " >&6; } 6230if ${ac_cv_prog_RANLIB+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232else 6233 if test -n "$RANLIB"; then 6234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6235else 6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237for as_dir in $PATH 6238do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247done 6248 done 6249IFS=$as_save_IFS 6250 6251fi 6252fi 6253RANLIB=$ac_cv_prog_RANLIB 6254if test -n "$RANLIB"; then 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6256$as_echo "$RANLIB" >&6; } 6257else 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6259$as_echo "no" >&6; } 6260fi 6261 6262 6263fi 6264if test -z "$ac_cv_prog_RANLIB"; then 6265 ac_ct_RANLIB=$RANLIB 6266 # Extract the first word of "ranlib", so it can be a program name with args. 6267set dummy ranlib; ac_word=$2 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6269$as_echo_n "checking for $ac_word... " >&6; } 6270if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272else 6273 if test -n "$ac_ct_RANLIB"; then 6274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6275else 6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6277for as_dir in $PATH 6278do 6279 IFS=$as_save_IFS 6280 test -z "$as_dir" && as_dir=. 6281 for ac_exec_ext in '' $ac_executable_extensions; do 6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6283 ac_cv_prog_ac_ct_RANLIB="ranlib" 6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6285 break 2 6286 fi 6287done 6288 done 6289IFS=$as_save_IFS 6290 6291fi 6292fi 6293ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6294if test -n "$ac_ct_RANLIB"; then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6296$as_echo "$ac_ct_RANLIB" >&6; } 6297else 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6299$as_echo "no" >&6; } 6300fi 6301 6302 if test "x$ac_ct_RANLIB" = x; then 6303 RANLIB=":" 6304 else 6305 case $cross_compiling:$ac_tool_warned in 6306yes:) 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6309ac_tool_warned=yes ;; 6310esac 6311 RANLIB=$ac_ct_RANLIB 6312 fi 6313else 6314 RANLIB="$ac_cv_prog_RANLIB" 6315fi 6316 6317test -z "$RANLIB" && RANLIB=: 6318 6319 6320 6321 6322 6323 6324# Determine commands to create old-style static archives. 6325old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6326old_postinstall_cmds='chmod 644 $oldlib' 6327old_postuninstall_cmds= 6328 6329if test -n "$RANLIB"; then 6330 case $host_os in 6331 openbsd*) 6332 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6333 ;; 6334 *) 6335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6336 ;; 6337 esac 6338 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6339fi 6340 6341case $host_os in 6342 darwin*) 6343 lock_old_archive_extraction=yes ;; 6344 *) 6345 lock_old_archive_extraction=no ;; 6346esac 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386# If no C compiler was specified, use CC. 6387LTCC=${LTCC-"$CC"} 6388 6389# If no C compiler flags were specified, use CFLAGS. 6390LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6391 6392# Allow CC to be a program name with arguments. 6393compiler=$CC 6394 6395 6396# Check for command to grab the raw symbol name followed by C symbol from nm. 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6398$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6399if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 6403# These are sane defaults that work on at least a few old systems. 6404# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6405 6406# Character class describing NM global symbol codes. 6407symcode='[BCDEGRST]' 6408 6409# Regexp to match symbols that can be accessed directly from C. 6410sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6411 6412# Define system-specific variables. 6413case $host_os in 6414aix*) 6415 symcode='[BCDT]' 6416 ;; 6417cygwin* | mingw* | pw32* | cegcc*) 6418 symcode='[ABCDGISTW]' 6419 ;; 6420hpux*) 6421 if test "$host_cpu" = ia64; then 6422 symcode='[ABCDEGRST]' 6423 fi 6424 ;; 6425irix* | nonstopux*) 6426 symcode='[BCDEGRST]' 6427 ;; 6428osf*) 6429 symcode='[BCDEGQRST]' 6430 ;; 6431solaris*) 6432 symcode='[BDRT]' 6433 ;; 6434sco3.2v5*) 6435 symcode='[DT]' 6436 ;; 6437sysv4.2uw2*) 6438 symcode='[DT]' 6439 ;; 6440sysv5* | sco5v6* | unixware* | OpenUNIX*) 6441 symcode='[ABDT]' 6442 ;; 6443sysv4) 6444 symcode='[DFNSTU]' 6445 ;; 6446esac 6447 6448# If we're using GNU nm, then use its standard symbol codes. 6449case `$NM -V 2>&1` in 6450*GNU* | *'with BFD'*) 6451 symcode='[ABCDGIRSTW]' ;; 6452esac 6453 6454# Transform an extracted symbol line into a proper C declaration. 6455# Some systems (esp. on ia64) link data and code symbols differently, 6456# so use this general approach. 6457lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6458 6459# Transform an extracted symbol line into symbol name and symbol address 6460lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6461lt_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'" 6462 6463# Handle CRLF in mingw tool chain 6464opt_cr= 6465case $build_os in 6466mingw*) 6467 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6468 ;; 6469esac 6470 6471# Try without a prefix underscore, then with it. 6472for ac_symprfx in "" "_"; do 6473 6474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6475 symxfrm="\\1 $ac_symprfx\\2 \\2" 6476 6477 # Write the raw and C identifiers. 6478 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6479 # Fake it for dumpbin and say T for any non-static function 6480 # and D for any global variable. 6481 # Also find C++ and __fastcall symbols from MSVC++, 6482 # which start with @ or ?. 6483 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6484" {last_section=section; section=\$ 3};"\ 6485" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6486" \$ 0!~/External *\|/{next};"\ 6487" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6488" {if(hide[section]) next};"\ 6489" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6490" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6491" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6492" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6493" ' prfx=^$ac_symprfx" 6494 else 6495 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6496 fi 6497 6498 # Check to see that the pipe works correctly. 6499 pipe_works=no 6500 6501 rm -f conftest* 6502 cat > conftest.$ac_ext <<_LT_EOF 6503#ifdef __cplusplus 6504extern "C" { 6505#endif 6506char nm_test_var; 6507void nm_test_func(void); 6508void nm_test_func(void){} 6509#ifdef __cplusplus 6510} 6511#endif 6512int main(){nm_test_var='a';nm_test_func();return(0);} 6513_LT_EOF 6514 6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6516 (eval $ac_compile) 2>&5 6517 ac_status=$? 6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6519 test $ac_status = 0; }; then 6520 # Now try to grab the symbols. 6521 nlist=conftest.nm 6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6523 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6524 ac_status=$? 6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6526 test $ac_status = 0; } && test -s "$nlist"; then 6527 # Try sorting and uniquifying the output. 6528 if sort "$nlist" | uniq > "$nlist"T; then 6529 mv -f "$nlist"T "$nlist" 6530 else 6531 rm -f "$nlist"T 6532 fi 6533 6534 # Make sure that we snagged all the symbols we need. 6535 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6536 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6537 cat <<_LT_EOF > conftest.$ac_ext 6538#ifdef __cplusplus 6539extern "C" { 6540#endif 6541 6542_LT_EOF 6543 # Now generate the symbol file. 6544 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6545 6546 cat <<_LT_EOF >> conftest.$ac_ext 6547 6548/* The mapping between symbol names and symbols. */ 6549const struct { 6550 const char *name; 6551 void *address; 6552} 6553lt__PROGRAM__LTX_preloaded_symbols[] = 6554{ 6555 { "@PROGRAM@", (void *) 0 }, 6556_LT_EOF 6557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6558 cat <<\_LT_EOF >> conftest.$ac_ext 6559 {0, (void *) 0} 6560}; 6561 6562/* This works around a problem in FreeBSD linker */ 6563#ifdef FREEBSD_WORKAROUND 6564static const void *lt_preloaded_setup() { 6565 return lt__PROGRAM__LTX_preloaded_symbols; 6566} 6567#endif 6568 6569#ifdef __cplusplus 6570} 6571#endif 6572_LT_EOF 6573 # Now try linking the two files. 6574 mv conftest.$ac_objext conftstm.$ac_objext 6575 lt_save_LIBS="$LIBS" 6576 lt_save_CFLAGS="$CFLAGS" 6577 LIBS="conftstm.$ac_objext" 6578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6580 (eval $ac_link) 2>&5 6581 ac_status=$? 6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6583 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6584 pipe_works=yes 6585 fi 6586 LIBS="$lt_save_LIBS" 6587 CFLAGS="$lt_save_CFLAGS" 6588 else 6589 echo "cannot find nm_test_func in $nlist" >&5 6590 fi 6591 else 6592 echo "cannot find nm_test_var in $nlist" >&5 6593 fi 6594 else 6595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6596 fi 6597 else 6598 echo "$progname: failed program was:" >&5 6599 cat conftest.$ac_ext >&5 6600 fi 6601 rm -rf conftest* conftst* 6602 6603 # Do not use the global_symbol_pipe unless it works. 6604 if test "$pipe_works" = yes; then 6605 break 6606 else 6607 lt_cv_sys_global_symbol_pipe= 6608 fi 6609done 6610 6611fi 6612 6613if test -z "$lt_cv_sys_global_symbol_pipe"; then 6614 lt_cv_sys_global_symbol_to_cdecl= 6615fi 6616if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6618$as_echo "failed" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6621$as_echo "ok" >&6; } 6622fi 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645# Check whether --enable-libtool-lock was given. 6646if test "${enable_libtool_lock+set}" = set; then : 6647 enableval=$enable_libtool_lock; 6648fi 6649 6650test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6651 6652# Some flags need to be propagated to the compiler or linker for good 6653# libtool support. 6654case $host in 6655ia64-*-hpux*) 6656 # Find out which ABI we are using. 6657 echo 'int i;' > conftest.$ac_ext 6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6659 (eval $ac_compile) 2>&5 6660 ac_status=$? 6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6662 test $ac_status = 0; }; then 6663 case `/usr/bin/file conftest.$ac_objext` in 6664 *ELF-32*) 6665 HPUX_IA64_MODE="32" 6666 ;; 6667 *ELF-64*) 6668 HPUX_IA64_MODE="64" 6669 ;; 6670 esac 6671 fi 6672 rm -rf conftest* 6673 ;; 6674*-*-irix6*) 6675 # Find out which ABI we are using. 6676 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6678 (eval $ac_compile) 2>&5 6679 ac_status=$? 6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6681 test $ac_status = 0; }; then 6682 if test "$lt_cv_prog_gnu_ld" = yes; then 6683 case `/usr/bin/file conftest.$ac_objext` in 6684 *32-bit*) 6685 LD="${LD-ld} -melf32bsmip" 6686 ;; 6687 *N32*) 6688 LD="${LD-ld} -melf32bmipn32" 6689 ;; 6690 *64-bit*) 6691 LD="${LD-ld} -melf64bmip" 6692 ;; 6693 esac 6694 else 6695 case `/usr/bin/file conftest.$ac_objext` in 6696 *32-bit*) 6697 LD="${LD-ld} -32" 6698 ;; 6699 *N32*) 6700 LD="${LD-ld} -n32" 6701 ;; 6702 *64-bit*) 6703 LD="${LD-ld} -64" 6704 ;; 6705 esac 6706 fi 6707 fi 6708 rm -rf conftest* 6709 ;; 6710 6711x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6712s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6713 # Find out which ABI we are using. 6714 echo 'int i;' > conftest.$ac_ext 6715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6716 (eval $ac_compile) 2>&5 6717 ac_status=$? 6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6719 test $ac_status = 0; }; then 6720 case `/usr/bin/file conftest.o` in 6721 *32-bit*) 6722 case $host in 6723 x86_64-*kfreebsd*-gnu) 6724 LD="${LD-ld} -m elf_i386_fbsd" 6725 ;; 6726 x86_64-*linux*) 6727 LD="${LD-ld} -m elf_i386" 6728 ;; 6729 ppc64-*linux*|powerpc64-*linux*) 6730 LD="${LD-ld} -m elf32ppclinux" 6731 ;; 6732 s390x-*linux*) 6733 LD="${LD-ld} -m elf_s390" 6734 ;; 6735 sparc64-*linux*) 6736 LD="${LD-ld} -m elf32_sparc" 6737 ;; 6738 esac 6739 ;; 6740 *64-bit*) 6741 case $host in 6742 x86_64-*kfreebsd*-gnu) 6743 LD="${LD-ld} -m elf_x86_64_fbsd" 6744 ;; 6745 x86_64-*linux*) 6746 LD="${LD-ld} -m elf_x86_64" 6747 ;; 6748 ppc*-*linux*|powerpc*-*linux*) 6749 LD="${LD-ld} -m elf64ppc" 6750 ;; 6751 s390*-*linux*|s390*-*tpf*) 6752 LD="${LD-ld} -m elf64_s390" 6753 ;; 6754 sparc*-*linux*) 6755 LD="${LD-ld} -m elf64_sparc" 6756 ;; 6757 esac 6758 ;; 6759 esac 6760 fi 6761 rm -rf conftest* 6762 ;; 6763 6764*-*-sco3.2v5*) 6765 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6766 SAVE_CFLAGS="$CFLAGS" 6767 CFLAGS="$CFLAGS -belf" 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6769$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6770if ${lt_cv_cc_needs_belf+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 ac_ext=c 6774ac_cpp='$CPP $CPPFLAGS' 6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6777ac_compiler_gnu=$ac_cv_c_compiler_gnu 6778 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781 6782int 6783main () 6784{ 6785 6786 ; 6787 return 0; 6788} 6789_ACEOF 6790if ac_fn_c_try_link "$LINENO"; then : 6791 lt_cv_cc_needs_belf=yes 6792else 6793 lt_cv_cc_needs_belf=no 6794fi 6795rm -f core conftest.err conftest.$ac_objext \ 6796 conftest$ac_exeext conftest.$ac_ext 6797 ac_ext=c 6798ac_cpp='$CPP $CPPFLAGS' 6799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6801ac_compiler_gnu=$ac_cv_c_compiler_gnu 6802 6803fi 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6805$as_echo "$lt_cv_cc_needs_belf" >&6; } 6806 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6807 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6808 CFLAGS="$SAVE_CFLAGS" 6809 fi 6810 ;; 6811sparc*-*solaris*) 6812 # Find out which ABI we are using. 6813 echo 'int i;' > conftest.$ac_ext 6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6815 (eval $ac_compile) 2>&5 6816 ac_status=$? 6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6818 test $ac_status = 0; }; then 6819 case `/usr/bin/file conftest.o` in 6820 *64-bit*) 6821 case $lt_cv_prog_gnu_ld in 6822 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6823 *) 6824 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6825 LD="${LD-ld} -64" 6826 fi 6827 ;; 6828 esac 6829 ;; 6830 esac 6831 fi 6832 rm -rf conftest* 6833 ;; 6834esac 6835 6836need_locks="$enable_libtool_lock" 6837 6838 6839 case $host_os in 6840 rhapsody* | darwin*) 6841 if test -n "$ac_tool_prefix"; then 6842 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6843set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if ${ac_cv_prog_DSYMUTIL+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$DSYMUTIL"; then 6850 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6859 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869DSYMUTIL=$ac_cv_prog_DSYMUTIL 6870if test -n "$DSYMUTIL"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6872$as_echo "$DSYMUTIL" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 6879fi 6880if test -z "$ac_cv_prog_DSYMUTIL"; then 6881 ac_ct_DSYMUTIL=$DSYMUTIL 6882 # Extract the first word of "dsymutil", so it can be a program name with args. 6883set dummy dsymutil; ac_word=$2 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885$as_echo_n "checking for $ac_word... " >&6; } 6886if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 if test -n "$ac_ct_DSYMUTIL"; then 6890 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6891else 6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6893for as_dir in $PATH 6894do 6895 IFS=$as_save_IFS 6896 test -z "$as_dir" && as_dir=. 6897 for ac_exec_ext in '' $ac_executable_extensions; do 6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6899 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6901 break 2 6902 fi 6903done 6904 done 6905IFS=$as_save_IFS 6906 6907fi 6908fi 6909ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6910if test -n "$ac_ct_DSYMUTIL"; then 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6912$as_echo "$ac_ct_DSYMUTIL" >&6; } 6913else 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6915$as_echo "no" >&6; } 6916fi 6917 6918 if test "x$ac_ct_DSYMUTIL" = x; then 6919 DSYMUTIL=":" 6920 else 6921 case $cross_compiling:$ac_tool_warned in 6922yes:) 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6925ac_tool_warned=yes ;; 6926esac 6927 DSYMUTIL=$ac_ct_DSYMUTIL 6928 fi 6929else 6930 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6931fi 6932 6933 if test -n "$ac_tool_prefix"; then 6934 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6935set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if ${ac_cv_prog_NMEDIT+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$NMEDIT"; then 6942 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956 done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961NMEDIT=$ac_cv_prog_NMEDIT 6962if test -n "$NMEDIT"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6964$as_echo "$NMEDIT" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 6971fi 6972if test -z "$ac_cv_prog_NMEDIT"; then 6973 ac_ct_NMEDIT=$NMEDIT 6974 # Extract the first word of "nmedit", so it can be a program name with args. 6975set dummy nmedit; ac_word=$2 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6977$as_echo_n "checking for $ac_word... " >&6; } 6978if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 if test -n "$ac_ct_NMEDIT"; then 6982 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6983else 6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6985for as_dir in $PATH 6986do 6987 IFS=$as_save_IFS 6988 test -z "$as_dir" && as_dir=. 6989 for ac_exec_ext in '' $ac_executable_extensions; do 6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6991 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6993 break 2 6994 fi 6995done 6996 done 6997IFS=$as_save_IFS 6998 6999fi 7000fi 7001ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7002if test -n "$ac_ct_NMEDIT"; then 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7004$as_echo "$ac_ct_NMEDIT" >&6; } 7005else 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007$as_echo "no" >&6; } 7008fi 7009 7010 if test "x$ac_ct_NMEDIT" = x; then 7011 NMEDIT=":" 7012 else 7013 case $cross_compiling:$ac_tool_warned in 7014yes:) 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7017ac_tool_warned=yes ;; 7018esac 7019 NMEDIT=$ac_ct_NMEDIT 7020 fi 7021else 7022 NMEDIT="$ac_cv_prog_NMEDIT" 7023fi 7024 7025 if test -n "$ac_tool_prefix"; then 7026 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7027set dummy ${ac_tool_prefix}lipo; ac_word=$2 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if ${ac_cv_prog_LIPO+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$LIPO"; then 7034 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048 done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053LIPO=$ac_cv_prog_LIPO 7054if test -n "$LIPO"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7056$as_echo "$LIPO" >&6; } 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 7063fi 7064if test -z "$ac_cv_prog_LIPO"; then 7065 ac_ct_LIPO=$LIPO 7066 # Extract the first word of "lipo", so it can be a program name with args. 7067set dummy lipo; ac_word=$2 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069$as_echo_n "checking for $ac_word... " >&6; } 7070if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 if test -n "$ac_ct_LIPO"; then 7074 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7075else 7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7083 ac_cv_prog_ac_ct_LIPO="lipo" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091fi 7092fi 7093ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7094if test -n "$ac_ct_LIPO"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7096$as_echo "$ac_ct_LIPO" >&6; } 7097else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099$as_echo "no" >&6; } 7100fi 7101 7102 if test "x$ac_ct_LIPO" = x; then 7103 LIPO=":" 7104 else 7105 case $cross_compiling:$ac_tool_warned in 7106yes:) 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7109ac_tool_warned=yes ;; 7110esac 7111 LIPO=$ac_ct_LIPO 7112 fi 7113else 7114 LIPO="$ac_cv_prog_LIPO" 7115fi 7116 7117 if test -n "$ac_tool_prefix"; then 7118 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7119set dummy ${ac_tool_prefix}otool; ac_word=$2 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7121$as_echo_n "checking for $ac_word... " >&6; } 7122if ${ac_cv_prog_OTOOL+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 if test -n "$OTOOL"; then 7126 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7127else 7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129for as_dir in $PATH 7130do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7135 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139done 7140 done 7141IFS=$as_save_IFS 7142 7143fi 7144fi 7145OTOOL=$ac_cv_prog_OTOOL 7146if test -n "$OTOOL"; then 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7148$as_echo "$OTOOL" >&6; } 7149else 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7151$as_echo "no" >&6; } 7152fi 7153 7154 7155fi 7156if test -z "$ac_cv_prog_OTOOL"; then 7157 ac_ct_OTOOL=$OTOOL 7158 # Extract the first word of "otool", so it can be a program name with args. 7159set dummy otool; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$ac_ct_OTOOL"; then 7166 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7175 ac_cv_prog_ac_ct_OTOOL="otool" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180 done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7186if test -n "$ac_ct_OTOOL"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7188$as_echo "$ac_ct_OTOOL" >&6; } 7189else 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 if test "x$ac_ct_OTOOL" = x; then 7195 OTOOL=":" 7196 else 7197 case $cross_compiling:$ac_tool_warned in 7198yes:) 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7201ac_tool_warned=yes ;; 7202esac 7203 OTOOL=$ac_ct_OTOOL 7204 fi 7205else 7206 OTOOL="$ac_cv_prog_OTOOL" 7207fi 7208 7209 if test -n "$ac_tool_prefix"; then 7210 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7211set dummy ${ac_tool_prefix}otool64; ac_word=$2 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213$as_echo_n "checking for $ac_word... " >&6; } 7214if ${ac_cv_prog_OTOOL64+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 if test -n "$OTOOL64"; then 7218 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7227 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232 done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237OTOOL64=$ac_cv_prog_OTOOL64 7238if test -n "$OTOOL64"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7240$as_echo "$OTOOL64" >&6; } 7241else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 7247fi 7248if test -z "$ac_cv_prog_OTOOL64"; then 7249 ac_ct_OTOOL64=$OTOOL64 7250 # Extract the first word of "otool64", so it can be a program name with args. 7251set dummy otool64; ac_word=$2 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$ac_ct_OTOOL64"; then 7258 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7267 ac_cv_prog_ac_ct_OTOOL64="otool64" 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272 done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7278if test -n "$ac_ct_OTOOL64"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7280$as_echo "$ac_ct_OTOOL64" >&6; } 7281else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 if test "x$ac_ct_OTOOL64" = x; then 7287 OTOOL64=":" 7288 else 7289 case $cross_compiling:$ac_tool_warned in 7290yes:) 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7293ac_tool_warned=yes ;; 7294esac 7295 OTOOL64=$ac_ct_OTOOL64 7296 fi 7297else 7298 OTOOL64="$ac_cv_prog_OTOOL64" 7299fi 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7328$as_echo_n "checking for -single_module linker flag... " >&6; } 7329if ${lt_cv_apple_cc_single_mod+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 lt_cv_apple_cc_single_mod=no 7333 if test -z "${LT_MULTI_MODULE}"; then 7334 # By default we will add the -single_module flag. You can override 7335 # by either setting the environment variable LT_MULTI_MODULE 7336 # non-empty at configure time, or by adding -multi_module to the 7337 # link flags. 7338 rm -rf libconftest.dylib* 7339 echo "int foo(void){return 1;}" > conftest.c 7340 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7341-dynamiclib -Wl,-single_module conftest.c" >&5 7342 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7343 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7344 _lt_result=$? 7345 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7346 lt_cv_apple_cc_single_mod=yes 7347 else 7348 cat conftest.err >&5 7349 fi 7350 rm -rf libconftest.dylib* 7351 rm -f conftest.* 7352 fi 7353fi 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7355$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7357$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7358if ${lt_cv_ld_exported_symbols_list+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 lt_cv_ld_exported_symbols_list=no 7362 save_LDFLAGS=$LDFLAGS 7363 echo "_main" > conftest.sym 7364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_link "$LINENO"; then : 7377 lt_cv_ld_exported_symbols_list=yes 7378else 7379 lt_cv_ld_exported_symbols_list=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext \ 7382 conftest$ac_exeext conftest.$ac_ext 7383 LDFLAGS="$save_LDFLAGS" 7384 7385fi 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7387$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7389$as_echo_n "checking for -force_load linker flag... " >&6; } 7390if ${lt_cv_ld_force_load+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 lt_cv_ld_force_load=no 7394 cat > conftest.c << _LT_EOF 7395int forced_loaded() { return 2;} 7396_LT_EOF 7397 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7398 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7399 echo "$AR cru libconftest.a conftest.o" >&5 7400 $AR cru libconftest.a conftest.o 2>&5 7401 echo "$RANLIB libconftest.a" >&5 7402 $RANLIB libconftest.a 2>&5 7403 cat > conftest.c << _LT_EOF 7404int main() { return 0;} 7405_LT_EOF 7406 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7407 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7408 _lt_result=$? 7409 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7410 lt_cv_ld_force_load=yes 7411 else 7412 cat conftest.err >&5 7413 fi 7414 rm -f conftest.err libconftest.a conftest conftest.c 7415 rm -rf conftest.dSYM 7416 7417fi 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7419$as_echo "$lt_cv_ld_force_load" >&6; } 7420 case $host_os in 7421 rhapsody* | darwin1.[012]) 7422 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7423 darwin1.*) 7424 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7425 darwin*) # darwin 5.x on 7426 # if running on 10.5 or later, the deployment target defaults 7427 # to the OS version, if on x86, and 10.4, the deployment 7428 # target defaults to 10.4. Don't you love it? 7429 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7430 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7431 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7432 10.[012]*) 7433 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7434 10.*) 7435 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7436 esac 7437 ;; 7438 esac 7439 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7440 _lt_dar_single_mod='$single_module' 7441 fi 7442 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7443 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7444 else 7445 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7446 fi 7447 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7448 _lt_dsymutil='~$DSYMUTIL $lib || :' 7449 else 7450 _lt_dsymutil= 7451 fi 7452 ;; 7453 esac 7454 7455for ac_header in dlfcn.h 7456do : 7457 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7458" 7459if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7460 cat >>confdefs.h <<_ACEOF 7461#define HAVE_DLFCN_H 1 7462_ACEOF 7463 7464fi 7465 7466done 7467 7468 7469 7470 7471 7472# Set options 7473 7474 7475 7476 enable_dlopen=no 7477 7478 7479 enable_win32_dll=no 7480 7481 7482 # Check whether --enable-shared was given. 7483if test "${enable_shared+set}" = set; then : 7484 enableval=$enable_shared; p=${PACKAGE-default} 7485 case $enableval in 7486 yes) enable_shared=yes ;; 7487 no) enable_shared=no ;; 7488 *) 7489 enable_shared=no 7490 # Look at the argument we got. We use all the common list separators. 7491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7492 for pkg in $enableval; do 7493 IFS="$lt_save_ifs" 7494 if test "X$pkg" = "X$p"; then 7495 enable_shared=yes 7496 fi 7497 done 7498 IFS="$lt_save_ifs" 7499 ;; 7500 esac 7501else 7502 enable_shared=yes 7503fi 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 # Check whether --enable-static was given. 7514if test "${enable_static+set}" = set; then : 7515 enableval=$enable_static; p=${PACKAGE-default} 7516 case $enableval in 7517 yes) enable_static=yes ;; 7518 no) enable_static=no ;; 7519 *) 7520 enable_static=no 7521 # Look at the argument we got. We use all the common list separators. 7522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7523 for pkg in $enableval; do 7524 IFS="$lt_save_ifs" 7525 if test "X$pkg" = "X$p"; then 7526 enable_static=yes 7527 fi 7528 done 7529 IFS="$lt_save_ifs" 7530 ;; 7531 esac 7532else 7533 enable_static=yes 7534fi 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545# Check whether --with-pic was given. 7546if test "${with_pic+set}" = set; then : 7547 withval=$with_pic; pic_mode="$withval" 7548else 7549 pic_mode=default 7550fi 7551 7552 7553test -z "$pic_mode" && pic_mode=default 7554 7555 7556 7557 7558 7559 7560 7561 # Check whether --enable-fast-install was given. 7562if test "${enable_fast_install+set}" = set; then : 7563 enableval=$enable_fast_install; p=${PACKAGE-default} 7564 case $enableval in 7565 yes) enable_fast_install=yes ;; 7566 no) enable_fast_install=no ;; 7567 *) 7568 enable_fast_install=no 7569 # Look at the argument we got. We use all the common list separators. 7570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7571 for pkg in $enableval; do 7572 IFS="$lt_save_ifs" 7573 if test "X$pkg" = "X$p"; then 7574 enable_fast_install=yes 7575 fi 7576 done 7577 IFS="$lt_save_ifs" 7578 ;; 7579 esac 7580else 7581 enable_fast_install=yes 7582fi 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594# This can be used to rebuild libtool when needed 7595LIBTOOL_DEPS="$ltmain" 7596 7597# Always use our own libtool. 7598LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625test -z "$LN_S" && LN_S="ln -s" 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640if test -n "${ZSH_VERSION+set}" ; then 7641 setopt NO_GLOB_SUBST 7642fi 7643 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7645$as_echo_n "checking for objdir... " >&6; } 7646if ${lt_cv_objdir+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648else 7649 rm -f .libs 2>/dev/null 7650mkdir .libs 2>/dev/null 7651if test -d .libs; then 7652 lt_cv_objdir=.libs 7653else 7654 # MS-DOS does not allow filenames that begin with a dot. 7655 lt_cv_objdir=_libs 7656fi 7657rmdir .libs 2>/dev/null 7658fi 7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7660$as_echo "$lt_cv_objdir" >&6; } 7661objdir=$lt_cv_objdir 7662 7663 7664 7665 7666 7667cat >>confdefs.h <<_ACEOF 7668#define LT_OBJDIR "$lt_cv_objdir/" 7669_ACEOF 7670 7671 7672 7673 7674case $host_os in 7675aix3*) 7676 # AIX sometimes has problems with the GCC collect2 program. For some 7677 # reason, if we set the COLLECT_NAMES environment variable, the problems 7678 # vanish in a puff of smoke. 7679 if test "X${COLLECT_NAMES+set}" != Xset; then 7680 COLLECT_NAMES= 7681 export COLLECT_NAMES 7682 fi 7683 ;; 7684esac 7685 7686# Global variables: 7687ofile=libtool 7688can_build_shared=yes 7689 7690# All known linkers require a `.a' archive for static linking (except MSVC, 7691# which needs '.lib'). 7692libext=a 7693 7694with_gnu_ld="$lt_cv_prog_gnu_ld" 7695 7696old_CC="$CC" 7697old_CFLAGS="$CFLAGS" 7698 7699# Set sane defaults for various variables 7700test -z "$CC" && CC=cc 7701test -z "$LTCC" && LTCC=$CC 7702test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7703test -z "$LD" && LD=ld 7704test -z "$ac_objext" && ac_objext=o 7705 7706for cc_temp in $compiler""; do 7707 case $cc_temp in 7708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7710 \-*) ;; 7711 *) break;; 7712 esac 7713done 7714cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7715 7716 7717# Only perform the check for file, if the check method requires it 7718test -z "$MAGIC_CMD" && MAGIC_CMD=file 7719case $deplibs_check_method in 7720file_magic*) 7721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7723$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7724if ${lt_cv_path_MAGIC_CMD+:} false; then : 7725 $as_echo_n "(cached) " >&6 7726else 7727 case $MAGIC_CMD in 7728[\\/*] | ?:[\\/]*) 7729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7730 ;; 7731*) 7732 lt_save_MAGIC_CMD="$MAGIC_CMD" 7733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7735 for ac_dir in $ac_dummy; do 7736 IFS="$lt_save_ifs" 7737 test -z "$ac_dir" && ac_dir=. 7738 if test -f $ac_dir/${ac_tool_prefix}file; then 7739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7740 if test -n "$file_magic_test_file"; then 7741 case $deplibs_check_method in 7742 "file_magic "*) 7743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7746 $EGREP "$file_magic_regex" > /dev/null; then 7747 : 7748 else 7749 cat <<_LT_EOF 1>&2 7750 7751*** Warning: the command libtool uses to detect shared libraries, 7752*** $file_magic_cmd, produces output that libtool cannot recognize. 7753*** The result is that libtool may fail to recognize shared libraries 7754*** as such. This will affect the creation of libtool libraries that 7755*** depend on shared libraries, but programs linked with such libtool 7756*** libraries will work regardless of this problem. Nevertheless, you 7757*** may want to report the problem to your system manager and/or to 7758*** bug-libtool@gnu.org 7759 7760_LT_EOF 7761 fi ;; 7762 esac 7763 fi 7764 break 7765 fi 7766 done 7767 IFS="$lt_save_ifs" 7768 MAGIC_CMD="$lt_save_MAGIC_CMD" 7769 ;; 7770esac 7771fi 7772 7773MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7774if test -n "$MAGIC_CMD"; then 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7776$as_echo "$MAGIC_CMD" >&6; } 7777else 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7779$as_echo "no" >&6; } 7780fi 7781 7782 7783 7784 7785 7786if test -z "$lt_cv_path_MAGIC_CMD"; then 7787 if test -n "$ac_tool_prefix"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7789$as_echo_n "checking for file... " >&6; } 7790if ${lt_cv_path_MAGIC_CMD+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 case $MAGIC_CMD in 7794[\\/*] | ?:[\\/]*) 7795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7796 ;; 7797*) 7798 lt_save_MAGIC_CMD="$MAGIC_CMD" 7799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7801 for ac_dir in $ac_dummy; do 7802 IFS="$lt_save_ifs" 7803 test -z "$ac_dir" && ac_dir=. 7804 if test -f $ac_dir/file; then 7805 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7806 if test -n "$file_magic_test_file"; then 7807 case $deplibs_check_method in 7808 "file_magic "*) 7809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7812 $EGREP "$file_magic_regex" > /dev/null; then 7813 : 7814 else 7815 cat <<_LT_EOF 1>&2 7816 7817*** Warning: the command libtool uses to detect shared libraries, 7818*** $file_magic_cmd, produces output that libtool cannot recognize. 7819*** The result is that libtool may fail to recognize shared libraries 7820*** as such. This will affect the creation of libtool libraries that 7821*** depend on shared libraries, but programs linked with such libtool 7822*** libraries will work regardless of this problem. Nevertheless, you 7823*** may want to report the problem to your system manager and/or to 7824*** bug-libtool@gnu.org 7825 7826_LT_EOF 7827 fi ;; 7828 esac 7829 fi 7830 break 7831 fi 7832 done 7833 IFS="$lt_save_ifs" 7834 MAGIC_CMD="$lt_save_MAGIC_CMD" 7835 ;; 7836esac 7837fi 7838 7839MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7840if test -n "$MAGIC_CMD"; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7842$as_echo "$MAGIC_CMD" >&6; } 7843else 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7845$as_echo "no" >&6; } 7846fi 7847 7848 7849 else 7850 MAGIC_CMD=: 7851 fi 7852fi 7853 7854 fi 7855 ;; 7856esac 7857 7858# Use C for the default configuration in the libtool script 7859 7860lt_save_CC="$CC" 7861ac_ext=c 7862ac_cpp='$CPP $CPPFLAGS' 7863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7865ac_compiler_gnu=$ac_cv_c_compiler_gnu 7866 7867 7868# Source file extension for C test sources. 7869ac_ext=c 7870 7871# Object file extension for compiled C test sources. 7872objext=o 7873objext=$objext 7874 7875# Code to be used in simple compile tests 7876lt_simple_compile_test_code="int some_variable = 0;" 7877 7878# Code to be used in simple link tests 7879lt_simple_link_test_code='int main(){return(0);}' 7880 7881 7882 7883 7884 7885 7886 7887# If no C compiler was specified, use CC. 7888LTCC=${LTCC-"$CC"} 7889 7890# If no C compiler flags were specified, use CFLAGS. 7891LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7892 7893# Allow CC to be a program name with arguments. 7894compiler=$CC 7895 7896# Save the default compiler, since it gets overwritten when the other 7897# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7898compiler_DEFAULT=$CC 7899 7900# save warnings/boilerplate of simple test code 7901ac_outfile=conftest.$ac_objext 7902echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7903eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7904_lt_compiler_boilerplate=`cat conftest.err` 7905$RM conftest* 7906 7907ac_outfile=conftest.$ac_objext 7908echo "$lt_simple_link_test_code" >conftest.$ac_ext 7909eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7910_lt_linker_boilerplate=`cat conftest.err` 7911$RM -r conftest* 7912 7913 7914if test -n "$compiler"; then 7915 7916lt_prog_compiler_no_builtin_flag= 7917 7918if test "$GCC" = yes; then 7919 case $cc_basename in 7920 nvcc*) 7921 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7922 *) 7923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7924 esac 7925 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7927$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7928if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 lt_cv_prog_compiler_rtti_exceptions=no 7932 ac_outfile=conftest.$ac_objext 7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7934 lt_compiler_flag="-fno-rtti -fno-exceptions" 7935 # Insert the option either (1) after the last *FLAGS variable, or 7936 # (2) before a word containing "conftest.", or (3) at the end. 7937 # Note that $ac_compile itself does not contain backslashes and begins 7938 # with a dollar sign (not a hyphen), so the echo should work correctly. 7939 # The option is referenced via a variable to avoid confusing sed. 7940 lt_compile=`echo "$ac_compile" | $SED \ 7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7943 -e 's:$: $lt_compiler_flag:'` 7944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7945 (eval "$lt_compile" 2>conftest.err) 7946 ac_status=$? 7947 cat conftest.err >&5 7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7949 if (exit $ac_status) && test -s "$ac_outfile"; then 7950 # The compiler can only warn and ignore the option if not recognized 7951 # So say no if there are warnings other than the usual output. 7952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7955 lt_cv_prog_compiler_rtti_exceptions=yes 7956 fi 7957 fi 7958 $RM conftest* 7959 7960fi 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7962$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7963 7964if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7966else 7967 : 7968fi 7969 7970fi 7971 7972 7973 7974 7975 7976 7977 lt_prog_compiler_wl= 7978lt_prog_compiler_pic= 7979lt_prog_compiler_static= 7980 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7982$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7983 7984 if test "$GCC" = yes; then 7985 lt_prog_compiler_wl='-Wl,' 7986 lt_prog_compiler_static='-static' 7987 7988 case $host_os in 7989 aix*) 7990 # All AIX code is PIC. 7991 if test "$host_cpu" = ia64; then 7992 # AIX 5 now supports IA64 processor 7993 lt_prog_compiler_static='-Bstatic' 7994 fi 7995 ;; 7996 7997 amigaos*) 7998 case $host_cpu in 7999 powerpc) 8000 # see comment about AmigaOS4 .so support 8001 lt_prog_compiler_pic='-fPIC' 8002 ;; 8003 m68k) 8004 # FIXME: we need at least 68020 code to build shared libraries, but 8005 # adding the `-m68020' flag to GCC prevents building anything better, 8006 # like `-m68040'. 8007 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8008 ;; 8009 esac 8010 ;; 8011 8012 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8013 # PIC is the default for these OSes. 8014 ;; 8015 8016 mingw* | cygwin* | pw32* | os2* | cegcc*) 8017 # This hack is so that the source file can tell whether it is being 8018 # built for inclusion in a dll (and should export symbols for example). 8019 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8020 # (--disable-auto-import) libraries 8021 lt_prog_compiler_pic='-DDLL_EXPORT' 8022 ;; 8023 8024 darwin* | rhapsody*) 8025 # PIC is the default on this platform 8026 # Common symbols not allowed in MH_DYLIB files 8027 lt_prog_compiler_pic='-fno-common' 8028 ;; 8029 8030 haiku*) 8031 # PIC is the default for Haiku. 8032 # The "-static" flag exists, but is broken. 8033 lt_prog_compiler_static= 8034 ;; 8035 8036 hpux*) 8037 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8038 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8039 # sets the default TLS model and affects inlining. 8040 case $host_cpu in 8041 hppa*64*) 8042 # +Z the default 8043 ;; 8044 *) 8045 lt_prog_compiler_pic='-fPIC' 8046 ;; 8047 esac 8048 ;; 8049 8050 interix[3-9]*) 8051 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8052 # Instead, we relocate shared libraries at runtime. 8053 ;; 8054 8055 msdosdjgpp*) 8056 # Just because we use GCC doesn't mean we suddenly get shared libraries 8057 # on systems that don't support them. 8058 lt_prog_compiler_can_build_shared=no 8059 enable_shared=no 8060 ;; 8061 8062 *nto* | *qnx*) 8063 # QNX uses GNU C++, but need to define -shared option too, otherwise 8064 # it will coredump. 8065 lt_prog_compiler_pic='-fPIC -shared' 8066 ;; 8067 8068 sysv4*MP*) 8069 if test -d /usr/nec; then 8070 lt_prog_compiler_pic=-Kconform_pic 8071 fi 8072 ;; 8073 8074 *) 8075 lt_prog_compiler_pic='-fPIC' 8076 ;; 8077 esac 8078 8079 case $cc_basename in 8080 nvcc*) # Cuda Compiler Driver 2.2 8081 lt_prog_compiler_wl='-Xlinker ' 8082 lt_prog_compiler_pic='-Xcompiler -fPIC' 8083 ;; 8084 esac 8085 else 8086 # PORTME Check for flag to pass linker flags through the system compiler. 8087 case $host_os in 8088 aix*) 8089 lt_prog_compiler_wl='-Wl,' 8090 if test "$host_cpu" = ia64; then 8091 # AIX 5 now supports IA64 processor 8092 lt_prog_compiler_static='-Bstatic' 8093 else 8094 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8095 fi 8096 ;; 8097 8098 mingw* | cygwin* | pw32* | os2* | cegcc*) 8099 # This hack is so that the source file can tell whether it is being 8100 # built for inclusion in a dll (and should export symbols for example). 8101 lt_prog_compiler_pic='-DDLL_EXPORT' 8102 ;; 8103 8104 hpux9* | hpux10* | hpux11*) 8105 lt_prog_compiler_wl='-Wl,' 8106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8107 # not for PA HP-UX. 8108 case $host_cpu in 8109 hppa*64*|ia64*) 8110 # +Z the default 8111 ;; 8112 *) 8113 lt_prog_compiler_pic='+Z' 8114 ;; 8115 esac 8116 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8117 lt_prog_compiler_static='${wl}-a ${wl}archive' 8118 ;; 8119 8120 irix5* | irix6* | nonstopux*) 8121 lt_prog_compiler_wl='-Wl,' 8122 # PIC (with -KPIC) is the default. 8123 lt_prog_compiler_static='-non_shared' 8124 ;; 8125 8126 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8127 case $cc_basename in 8128 # old Intel for x86_64 which still supported -KPIC. 8129 ecc*) 8130 lt_prog_compiler_wl='-Wl,' 8131 lt_prog_compiler_pic='-KPIC' 8132 lt_prog_compiler_static='-static' 8133 ;; 8134 # icc used to be incompatible with GCC. 8135 # ICC 10 doesn't accept -KPIC any more. 8136 icc* | ifort*) 8137 lt_prog_compiler_wl='-Wl,' 8138 lt_prog_compiler_pic='-fPIC' 8139 lt_prog_compiler_static='-static' 8140 ;; 8141 # Lahey Fortran 8.1. 8142 lf95*) 8143 lt_prog_compiler_wl='-Wl,' 8144 lt_prog_compiler_pic='--shared' 8145 lt_prog_compiler_static='--static' 8146 ;; 8147 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8148 # Portland Group compilers (*not* the Pentium gcc compiler, 8149 # which looks to be a dead project) 8150 lt_prog_compiler_wl='-Wl,' 8151 lt_prog_compiler_pic='-fpic' 8152 lt_prog_compiler_static='-Bstatic' 8153 ;; 8154 ccc*) 8155 lt_prog_compiler_wl='-Wl,' 8156 # All Alpha code is PIC. 8157 lt_prog_compiler_static='-non_shared' 8158 ;; 8159 xl* | bgxl* | bgf* | mpixl*) 8160 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8161 lt_prog_compiler_wl='-Wl,' 8162 lt_prog_compiler_pic='-qpic' 8163 lt_prog_compiler_static='-qstaticlink' 8164 ;; 8165 *) 8166 case `$CC -V 2>&1 | sed 5q` in 8167 *Sun\ F* | *Sun*Fortran*) 8168 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8169 lt_prog_compiler_pic='-KPIC' 8170 lt_prog_compiler_static='-Bstatic' 8171 lt_prog_compiler_wl='' 8172 ;; 8173 *Sun\ C*) 8174 # Sun C 5.9 8175 lt_prog_compiler_pic='-KPIC' 8176 lt_prog_compiler_static='-Bstatic' 8177 lt_prog_compiler_wl='-Wl,' 8178 ;; 8179 esac 8180 ;; 8181 esac 8182 ;; 8183 8184 newsos6) 8185 lt_prog_compiler_pic='-KPIC' 8186 lt_prog_compiler_static='-Bstatic' 8187 ;; 8188 8189 *nto* | *qnx*) 8190 # QNX uses GNU C++, but need to define -shared option too, otherwise 8191 # it will coredump. 8192 lt_prog_compiler_pic='-fPIC -shared' 8193 ;; 8194 8195 osf3* | osf4* | osf5*) 8196 lt_prog_compiler_wl='-Wl,' 8197 # All OSF/1 code is PIC. 8198 lt_prog_compiler_static='-non_shared' 8199 ;; 8200 8201 rdos*) 8202 lt_prog_compiler_static='-non_shared' 8203 ;; 8204 8205 solaris*) 8206 lt_prog_compiler_pic='-KPIC' 8207 lt_prog_compiler_static='-Bstatic' 8208 case $cc_basename in 8209 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8210 lt_prog_compiler_wl='-Qoption ld ';; 8211 *) 8212 lt_prog_compiler_wl='-Wl,';; 8213 esac 8214 ;; 8215 8216 sunos4*) 8217 lt_prog_compiler_wl='-Qoption ld ' 8218 lt_prog_compiler_pic='-PIC' 8219 lt_prog_compiler_static='-Bstatic' 8220 ;; 8221 8222 sysv4 | sysv4.2uw2* | sysv4.3*) 8223 lt_prog_compiler_wl='-Wl,' 8224 lt_prog_compiler_pic='-KPIC' 8225 lt_prog_compiler_static='-Bstatic' 8226 ;; 8227 8228 sysv4*MP*) 8229 if test -d /usr/nec ;then 8230 lt_prog_compiler_pic='-Kconform_pic' 8231 lt_prog_compiler_static='-Bstatic' 8232 fi 8233 ;; 8234 8235 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8236 lt_prog_compiler_wl='-Wl,' 8237 lt_prog_compiler_pic='-KPIC' 8238 lt_prog_compiler_static='-Bstatic' 8239 ;; 8240 8241 unicos*) 8242 lt_prog_compiler_wl='-Wl,' 8243 lt_prog_compiler_can_build_shared=no 8244 ;; 8245 8246 uts4*) 8247 lt_prog_compiler_pic='-pic' 8248 lt_prog_compiler_static='-Bstatic' 8249 ;; 8250 8251 *) 8252 lt_prog_compiler_can_build_shared=no 8253 ;; 8254 esac 8255 fi 8256 8257case $host_os in 8258 # For platforms which do not support PIC, -DPIC is meaningless: 8259 *djgpp*) 8260 lt_prog_compiler_pic= 8261 ;; 8262 *) 8263 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8264 ;; 8265esac 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8267$as_echo "$lt_prog_compiler_pic" >&6; } 8268 8269 8270 8271 8272 8273 8274# 8275# Check to make sure the PIC flag actually works. 8276# 8277if test -n "$lt_prog_compiler_pic"; then 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8279$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8280if ${lt_cv_prog_compiler_pic_works+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 lt_cv_prog_compiler_pic_works=no 8284 ac_outfile=conftest.$ac_objext 8285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8286 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8287 # Insert the option either (1) after the last *FLAGS variable, or 8288 # (2) before a word containing "conftest.", or (3) at the end. 8289 # Note that $ac_compile itself does not contain backslashes and begins 8290 # with a dollar sign (not a hyphen), so the echo should work correctly. 8291 # The option is referenced via a variable to avoid confusing sed. 8292 lt_compile=`echo "$ac_compile" | $SED \ 8293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8295 -e 's:$: $lt_compiler_flag:'` 8296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8297 (eval "$lt_compile" 2>conftest.err) 8298 ac_status=$? 8299 cat conftest.err >&5 8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8301 if (exit $ac_status) && test -s "$ac_outfile"; then 8302 # The compiler can only warn and ignore the option if not recognized 8303 # So say no if there are warnings other than the usual output. 8304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8307 lt_cv_prog_compiler_pic_works=yes 8308 fi 8309 fi 8310 $RM conftest* 8311 8312fi 8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8314$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8315 8316if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8317 case $lt_prog_compiler_pic in 8318 "" | " "*) ;; 8319 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8320 esac 8321else 8322 lt_prog_compiler_pic= 8323 lt_prog_compiler_can_build_shared=no 8324fi 8325 8326fi 8327 8328 8329 8330 8331 8332 8333# 8334# Check to make sure the static flag actually works. 8335# 8336wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8338$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8339if ${lt_cv_prog_compiler_static_works+:} false; then : 8340 $as_echo_n "(cached) " >&6 8341else 8342 lt_cv_prog_compiler_static_works=no 8343 save_LDFLAGS="$LDFLAGS" 8344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8345 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8347 # The linker can only warn and ignore the option if not recognized 8348 # So say no if there are warnings 8349 if test -s conftest.err; then 8350 # Append any errors to the config.log. 8351 cat conftest.err 1>&5 8352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8354 if diff conftest.exp conftest.er2 >/dev/null; then 8355 lt_cv_prog_compiler_static_works=yes 8356 fi 8357 else 8358 lt_cv_prog_compiler_static_works=yes 8359 fi 8360 fi 8361 $RM -r conftest* 8362 LDFLAGS="$save_LDFLAGS" 8363 8364fi 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8366$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8367 8368if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8369 : 8370else 8371 lt_prog_compiler_static= 8372fi 8373 8374 8375 8376 8377 8378 8379 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8381$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8382if ${lt_cv_prog_compiler_c_o+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 lt_cv_prog_compiler_c_o=no 8386 $RM -r conftest 2>/dev/null 8387 mkdir conftest 8388 cd conftest 8389 mkdir out 8390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8391 8392 lt_compiler_flag="-o out/conftest2.$ac_objext" 8393 # Insert the option either (1) after the last *FLAGS variable, or 8394 # (2) before a word containing "conftest.", or (3) at the end. 8395 # Note that $ac_compile itself does not contain backslashes and begins 8396 # with a dollar sign (not a hyphen), so the echo should work correctly. 8397 lt_compile=`echo "$ac_compile" | $SED \ 8398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8400 -e 's:$: $lt_compiler_flag:'` 8401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8402 (eval "$lt_compile" 2>out/conftest.err) 8403 ac_status=$? 8404 cat out/conftest.err >&5 8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8406 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8407 then 8408 # The compiler can only warn and ignore the option if not recognized 8409 # So say no if there are warnings 8410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8413 lt_cv_prog_compiler_c_o=yes 8414 fi 8415 fi 8416 chmod u+w . 2>&5 8417 $RM conftest* 8418 # SGI C++ compiler will create directory out/ii_files/ for 8419 # template instantiation 8420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8421 $RM out/* && rmdir out 8422 cd .. 8423 $RM -r conftest 8424 $RM conftest* 8425 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8428$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8429 8430 8431 8432 8433 8434 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8437if ${lt_cv_prog_compiler_c_o+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439else 8440 lt_cv_prog_compiler_c_o=no 8441 $RM -r conftest 2>/dev/null 8442 mkdir conftest 8443 cd conftest 8444 mkdir out 8445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8446 8447 lt_compiler_flag="-o out/conftest2.$ac_objext" 8448 # Insert the option either (1) after the last *FLAGS variable, or 8449 # (2) before a word containing "conftest.", or (3) at the end. 8450 # Note that $ac_compile itself does not contain backslashes and begins 8451 # with a dollar sign (not a hyphen), so the echo should work correctly. 8452 lt_compile=`echo "$ac_compile" | $SED \ 8453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8455 -e 's:$: $lt_compiler_flag:'` 8456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8457 (eval "$lt_compile" 2>out/conftest.err) 8458 ac_status=$? 8459 cat out/conftest.err >&5 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8462 then 8463 # The compiler can only warn and ignore the option if not recognized 8464 # So say no if there are warnings 8465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8468 lt_cv_prog_compiler_c_o=yes 8469 fi 8470 fi 8471 chmod u+w . 2>&5 8472 $RM conftest* 8473 # SGI C++ compiler will create directory out/ii_files/ for 8474 # template instantiation 8475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8476 $RM out/* && rmdir out 8477 cd .. 8478 $RM -r conftest 8479 $RM conftest* 8480 8481fi 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8483$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8484 8485 8486 8487 8488hard_links="nottested" 8489if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8490 # do not overwrite the value of need_locks provided by the user 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8492$as_echo_n "checking if we can lock with hard links... " >&6; } 8493 hard_links=yes 8494 $RM conftest* 8495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8496 touch conftest.a 8497 ln conftest.a conftest.b 2>&5 || hard_links=no 8498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8500$as_echo "$hard_links" >&6; } 8501 if test "$hard_links" = no; then 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8503$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8504 need_locks=warn 8505 fi 8506else 8507 need_locks=no 8508fi 8509 8510 8511 8512 8513 8514 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8516$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8517 8518 runpath_var= 8519 allow_undefined_flag= 8520 always_export_symbols=no 8521 archive_cmds= 8522 archive_expsym_cmds= 8523 compiler_needs_object=no 8524 enable_shared_with_static_runtimes=no 8525 export_dynamic_flag_spec= 8526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8527 hardcode_automatic=no 8528 hardcode_direct=no 8529 hardcode_direct_absolute=no 8530 hardcode_libdir_flag_spec= 8531 hardcode_libdir_flag_spec_ld= 8532 hardcode_libdir_separator= 8533 hardcode_minus_L=no 8534 hardcode_shlibpath_var=unsupported 8535 inherit_rpath=no 8536 link_all_deplibs=unknown 8537 module_cmds= 8538 module_expsym_cmds= 8539 old_archive_from_new_cmds= 8540 old_archive_from_expsyms_cmds= 8541 thread_safe_flag_spec= 8542 whole_archive_flag_spec= 8543 # include_expsyms should be a list of space-separated symbols to be *always* 8544 # included in the symbol list 8545 include_expsyms= 8546 # exclude_expsyms can be an extended regexp of symbols to exclude 8547 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8548 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8549 # as well as any symbol that contains `d'. 8550 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8551 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8552 # platforms (ab)use it in PIC code, but their linkers get confused if 8553 # the symbol is explicitly referenced. Since portable code cannot 8554 # rely on this symbol name, it's probably fine to never include it in 8555 # preloaded symbol tables. 8556 # Exclude shared library initialization/finalization symbols. 8557 extract_expsyms_cmds= 8558 8559 case $host_os in 8560 cygwin* | mingw* | pw32* | cegcc*) 8561 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8562 # When not using gcc, we currently assume that we are using 8563 # Microsoft Visual C++. 8564 if test "$GCC" != yes; then 8565 with_gnu_ld=no 8566 fi 8567 ;; 8568 interix*) 8569 # we just hope/assume this is gcc and not c89 (= MSVC++) 8570 with_gnu_ld=yes 8571 ;; 8572 openbsd*) 8573 with_gnu_ld=no 8574 ;; 8575 esac 8576 8577 ld_shlibs=yes 8578 8579 # On some targets, GNU ld is compatible enough with the native linker 8580 # that we're better off using the native interface for both. 8581 lt_use_gnu_ld_interface=no 8582 if test "$with_gnu_ld" = yes; then 8583 case $host_os in 8584 aix*) 8585 # The AIX port of GNU ld has always aspired to compatibility 8586 # with the native linker. However, as the warning in the GNU ld 8587 # block says, versions before 2.19.5* couldn't really create working 8588 # shared libraries, regardless of the interface used. 8589 case `$LD -v 2>&1` in 8590 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8591 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8592 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8593 *) 8594 lt_use_gnu_ld_interface=yes 8595 ;; 8596 esac 8597 ;; 8598 *) 8599 lt_use_gnu_ld_interface=yes 8600 ;; 8601 esac 8602 fi 8603 8604 if test "$lt_use_gnu_ld_interface" = yes; then 8605 # If archive_cmds runs LD, not CC, wlarc should be empty 8606 wlarc='${wl}' 8607 8608 # Set some defaults for GNU ld with shared library support. These 8609 # are reset later if shared libraries are not supported. Putting them 8610 # here allows them to be overridden if necessary. 8611 runpath_var=LD_RUN_PATH 8612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8613 export_dynamic_flag_spec='${wl}--export-dynamic' 8614 # ancient GNU ld didn't support --whole-archive et. al. 8615 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8616 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8617 else 8618 whole_archive_flag_spec= 8619 fi 8620 supports_anon_versioning=no 8621 case `$LD -v 2>&1` in 8622 *GNU\ gold*) supports_anon_versioning=yes ;; 8623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8626 *\ 2.11.*) ;; # other 2.11 versions 8627 *) supports_anon_versioning=yes ;; 8628 esac 8629 8630 # See if GNU ld supports shared libraries. 8631 case $host_os in 8632 aix[3-9]*) 8633 # On AIX/PPC, the GNU linker is very broken 8634 if test "$host_cpu" != ia64; then 8635 ld_shlibs=no 8636 cat <<_LT_EOF 1>&2 8637 8638*** Warning: the GNU linker, at least up to release 2.19, is reported 8639*** to be unable to reliably create shared libraries on AIX. 8640*** Therefore, libtool is disabling shared libraries support. If you 8641*** really care for shared libraries, you may want to install binutils 8642*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8643*** You will then need to restart the configuration process. 8644 8645_LT_EOF 8646 fi 8647 ;; 8648 8649 amigaos*) 8650 case $host_cpu in 8651 powerpc) 8652 # see comment about AmigaOS4 .so support 8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8654 archive_expsym_cmds='' 8655 ;; 8656 m68k) 8657 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)' 8658 hardcode_libdir_flag_spec='-L$libdir' 8659 hardcode_minus_L=yes 8660 ;; 8661 esac 8662 ;; 8663 8664 beos*) 8665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8666 allow_undefined_flag=unsupported 8667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8668 # support --undefined. This deserves some investigation. FIXME 8669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8670 else 8671 ld_shlibs=no 8672 fi 8673 ;; 8674 8675 cygwin* | mingw* | pw32* | cegcc*) 8676 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8677 # as there is no search path for DLLs. 8678 hardcode_libdir_flag_spec='-L$libdir' 8679 export_dynamic_flag_spec='${wl}--export-all-symbols' 8680 allow_undefined_flag=unsupported 8681 always_export_symbols=no 8682 enable_shared_with_static_runtimes=yes 8683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8684 8685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8687 # If the export-symbols file already is a .def file (1st line 8688 # is EXPORTS), use it as is; otherwise, prepend... 8689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8690 cp $export_symbols $output_objdir/$soname.def; 8691 else 8692 echo EXPORTS > $output_objdir/$soname.def; 8693 cat $export_symbols >> $output_objdir/$soname.def; 8694 fi~ 8695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8696 else 8697 ld_shlibs=no 8698 fi 8699 ;; 8700 8701 haiku*) 8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8703 link_all_deplibs=yes 8704 ;; 8705 8706 interix[3-9]*) 8707 hardcode_direct=no 8708 hardcode_shlibpath_var=no 8709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8710 export_dynamic_flag_spec='${wl}-E' 8711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8712 # Instead, shared libraries are loaded at an image base (0x10000000 by 8713 # default) and relocated if they conflict, which is a slow very memory 8714 # consuming and fragmenting process. To avoid this, we pick a random, 8715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8716 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8718 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' 8719 ;; 8720 8721 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8722 tmp_diet=no 8723 if test "$host_os" = linux-dietlibc; then 8724 case $cc_basename in 8725 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8726 esac 8727 fi 8728 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8729 && test "$tmp_diet" = no 8730 then 8731 tmp_addflag= 8732 tmp_sharedflag='-shared' 8733 case $cc_basename,$host_cpu in 8734 pgcc*) # Portland Group C compiler 8735 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' 8736 tmp_addflag=' $pic_flag' 8737 ;; 8738 pgf77* | pgf90* | pgf95* | pgfortran*) 8739 # Portland Group f77 and f90 compilers 8740 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' 8741 tmp_addflag=' $pic_flag -Mnomain' ;; 8742 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8743 tmp_addflag=' -i_dynamic' ;; 8744 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8745 tmp_addflag=' -i_dynamic -nofor_main' ;; 8746 ifc* | ifort*) # Intel Fortran compiler 8747 tmp_addflag=' -nofor_main' ;; 8748 lf95*) # Lahey Fortran 8.1 8749 whole_archive_flag_spec= 8750 tmp_sharedflag='--shared' ;; 8751 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8752 tmp_sharedflag='-qmkshrobj' 8753 tmp_addflag= ;; 8754 nvcc*) # Cuda Compiler Driver 2.2 8755 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' 8756 compiler_needs_object=yes 8757 ;; 8758 esac 8759 case `$CC -V 2>&1 | sed 5q` in 8760 *Sun\ C*) # Sun C 5.9 8761 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' 8762 compiler_needs_object=yes 8763 tmp_sharedflag='-G' ;; 8764 *Sun\ F*) # Sun Fortran 8.3 8765 tmp_sharedflag='-G' ;; 8766 esac 8767 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8768 8769 if test "x$supports_anon_versioning" = xyes; then 8770 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8772 echo "local: *; };" >> $output_objdir/$libname.ver~ 8773 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8774 fi 8775 8776 case $cc_basename in 8777 xlf* | bgf* | bgxlf* | mpixlf*) 8778 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8779 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8780 hardcode_libdir_flag_spec= 8781 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8782 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8783 if test "x$supports_anon_versioning" = xyes; then 8784 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8786 echo "local: *; };" >> $output_objdir/$libname.ver~ 8787 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8788 fi 8789 ;; 8790 esac 8791 else 8792 ld_shlibs=no 8793 fi 8794 ;; 8795 8796 netbsd*) 8797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8798 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8799 wlarc= 8800 else 8801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8803 fi 8804 ;; 8805 8806 solaris*) 8807 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8808 ld_shlibs=no 8809 cat <<_LT_EOF 1>&2 8810 8811*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8812*** create shared libraries on Solaris systems. Therefore, libtool 8813*** is disabling shared libraries support. We urge you to upgrade GNU 8814*** binutils to release 2.9.1 or newer. Another option is to modify 8815*** your PATH or compiler configuration so that the native linker is 8816*** used, and then restart. 8817 8818_LT_EOF 8819 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8822 else 8823 ld_shlibs=no 8824 fi 8825 ;; 8826 8827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8828 case `$LD -v 2>&1` in 8829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8830 ld_shlibs=no 8831 cat <<_LT_EOF 1>&2 8832 8833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8834*** reliably create shared libraries on SCO systems. Therefore, libtool 8835*** is disabling shared libraries support. We urge you to upgrade GNU 8836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8837*** your PATH or compiler configuration so that the native linker is 8838*** used, and then restart. 8839 8840_LT_EOF 8841 ;; 8842 *) 8843 # For security reasons, it is highly recommended that you always 8844 # use absolute paths for naming shared libraries, and exclude the 8845 # DT_RUNPATH tag from executables and libraries. But doing so 8846 # requires that you compile everything twice, which is a pain. 8847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8851 else 8852 ld_shlibs=no 8853 fi 8854 ;; 8855 esac 8856 ;; 8857 8858 sunos4*) 8859 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8860 wlarc= 8861 hardcode_direct=yes 8862 hardcode_shlibpath_var=no 8863 ;; 8864 8865 *) 8866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8869 else 8870 ld_shlibs=no 8871 fi 8872 ;; 8873 esac 8874 8875 if test "$ld_shlibs" = no; then 8876 runpath_var= 8877 hardcode_libdir_flag_spec= 8878 export_dynamic_flag_spec= 8879 whole_archive_flag_spec= 8880 fi 8881 else 8882 # PORTME fill in a description of your system's linker (not GNU ld) 8883 case $host_os in 8884 aix3*) 8885 allow_undefined_flag=unsupported 8886 always_export_symbols=yes 8887 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' 8888 # Note: this linker hardcodes the directories in LIBPATH if there 8889 # are no directories specified by -L. 8890 hardcode_minus_L=yes 8891 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8892 # Neither direct hardcoding nor static linking is supported with a 8893 # broken collect2. 8894 hardcode_direct=unsupported 8895 fi 8896 ;; 8897 8898 aix[4-9]*) 8899 if test "$host_cpu" = ia64; then 8900 # On IA64, the linker does run time linking by default, so we don't 8901 # have to do anything special. 8902 aix_use_runtimelinking=no 8903 exp_sym_flag='-Bexport' 8904 no_entry_flag="" 8905 else 8906 # If we're using GNU nm, then we don't want the "-C" option. 8907 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8908 # Also, AIX nm treats weak defined symbols like other global 8909 # defined symbols, whereas GNU nm marks them as "W". 8910 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8911 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' 8912 else 8913 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' 8914 fi 8915 aix_use_runtimelinking=no 8916 8917 # Test if we are trying to use run time linking or normal 8918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8919 # need to do runtime linking. 8920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8921 for ld_flag in $LDFLAGS; do 8922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8923 aix_use_runtimelinking=yes 8924 break 8925 fi 8926 done 8927 ;; 8928 esac 8929 8930 exp_sym_flag='-bexport' 8931 no_entry_flag='-bnoentry' 8932 fi 8933 8934 # When large executables or shared objects are built, AIX ld can 8935 # have problems creating the table of contents. If linking a library 8936 # or program results in "error TOC overflow" add -mminimal-toc to 8937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8939 8940 archive_cmds='' 8941 hardcode_direct=yes 8942 hardcode_direct_absolute=yes 8943 hardcode_libdir_separator=':' 8944 link_all_deplibs=yes 8945 file_list_spec='${wl}-f,' 8946 8947 if test "$GCC" = yes; then 8948 case $host_os in aix4.[012]|aix4.[012].*) 8949 # We only want to do this on AIX 4.2 and lower, the check 8950 # below for broken collect2 doesn't work under 4.3+ 8951 collect2name=`${CC} -print-prog-name=collect2` 8952 if test -f "$collect2name" && 8953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8954 then 8955 # We have reworked collect2 8956 : 8957 else 8958 # We have old collect2 8959 hardcode_direct=unsupported 8960 # It fails to find uninstalled libraries when the uninstalled 8961 # path is not listed in the libpath. Setting hardcode_minus_L 8962 # to unsupported forces relinking 8963 hardcode_minus_L=yes 8964 hardcode_libdir_flag_spec='-L$libdir' 8965 hardcode_libdir_separator= 8966 fi 8967 ;; 8968 esac 8969 shared_flag='-shared' 8970 if test "$aix_use_runtimelinking" = yes; then 8971 shared_flag="$shared_flag "'${wl}-G' 8972 fi 8973 else 8974 # not using gcc 8975 if test "$host_cpu" = ia64; then 8976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8977 # chokes on -Wl,-G. The following line is correct: 8978 shared_flag='-G' 8979 else 8980 if test "$aix_use_runtimelinking" = yes; then 8981 shared_flag='${wl}-G' 8982 else 8983 shared_flag='${wl}-bM:SRE' 8984 fi 8985 fi 8986 fi 8987 8988 export_dynamic_flag_spec='${wl}-bexpall' 8989 # It seems that -bexpall does not export symbols beginning with 8990 # underscore (_), so it is better to generate a list of symbols to export. 8991 always_export_symbols=yes 8992 if test "$aix_use_runtimelinking" = yes; then 8993 # Warning - without using the other runtime loading flags (-brtl), 8994 # -berok will link without error, but may produce a broken library. 8995 allow_undefined_flag='-berok' 8996 # Determine the default libpath from the value encoded in an 8997 # empty executable. 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999/* end confdefs.h. */ 9000 9001int 9002main () 9003{ 9004 9005 ; 9006 return 0; 9007} 9008_ACEOF 9009if ac_fn_c_try_link "$LINENO"; then : 9010 9011lt_aix_libpath_sed=' 9012 /Import File Strings/,/^$/ { 9013 /^0/ { 9014 s/^0 *\(.*\)$/\1/ 9015 p 9016 } 9017 }' 9018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9019# Check for a 64-bit object if we didn't find anything. 9020if test -z "$aix_libpath"; then 9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9022fi 9023fi 9024rm -f core conftest.err conftest.$ac_objext \ 9025 conftest$ac_exeext conftest.$ac_ext 9026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9027 9028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9029 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" 9030 else 9031 if test "$host_cpu" = ia64; then 9032 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9033 allow_undefined_flag="-z nodefs" 9034 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" 9035 else 9036 # Determine the default libpath from the value encoded in an 9037 # empty executable. 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040 9041int 9042main () 9043{ 9044 9045 ; 9046 return 0; 9047} 9048_ACEOF 9049if ac_fn_c_try_link "$LINENO"; then : 9050 9051lt_aix_libpath_sed=' 9052 /Import File Strings/,/^$/ { 9053 /^0/ { 9054 s/^0 *\(.*\)$/\1/ 9055 p 9056 } 9057 }' 9058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9059# Check for a 64-bit object if we didn't find anything. 9060if test -z "$aix_libpath"; then 9061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9062fi 9063fi 9064rm -f core conftest.err conftest.$ac_objext \ 9065 conftest$ac_exeext conftest.$ac_ext 9066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9067 9068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9069 # Warning - without using the other run time loading flags, 9070 # -berok will link without error, but may produce a broken library. 9071 no_undefined_flag=' ${wl}-bernotok' 9072 allow_undefined_flag=' ${wl}-berok' 9073 if test "$with_gnu_ld" = yes; then 9074 # We only use this code for GNU lds that support --whole-archive. 9075 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9076 else 9077 # Exported symbols can be pulled into shared objects from archives 9078 whole_archive_flag_spec='$convenience' 9079 fi 9080 archive_cmds_need_lc=yes 9081 # This is similar to how AIX traditionally builds its shared libraries. 9082 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' 9083 fi 9084 fi 9085 ;; 9086 9087 amigaos*) 9088 case $host_cpu in 9089 powerpc) 9090 # see comment about AmigaOS4 .so support 9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9092 archive_expsym_cmds='' 9093 ;; 9094 m68k) 9095 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)' 9096 hardcode_libdir_flag_spec='-L$libdir' 9097 hardcode_minus_L=yes 9098 ;; 9099 esac 9100 ;; 9101 9102 bsdi[45]*) 9103 export_dynamic_flag_spec=-rdynamic 9104 ;; 9105 9106 cygwin* | mingw* | pw32* | cegcc*) 9107 # When not using gcc, we currently assume that we are using 9108 # Microsoft Visual C++. 9109 # hardcode_libdir_flag_spec is actually meaningless, as there is 9110 # no search path for DLLs. 9111 hardcode_libdir_flag_spec=' ' 9112 allow_undefined_flag=unsupported 9113 # Tell ltmain to make .lib files, not .a files. 9114 libext=lib 9115 # Tell ltmain to make .dll files, not .so files. 9116 shrext_cmds=".dll" 9117 # FIXME: Setting linknames here is a bad hack. 9118 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9119 # The linker will automatically build a .lib file if we build a DLL. 9120 old_archive_from_new_cmds='true' 9121 # FIXME: Should let the user specify the lib program. 9122 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9123 fix_srcfile_path='`cygpath -w "$srcfile"`' 9124 enable_shared_with_static_runtimes=yes 9125 ;; 9126 9127 darwin* | rhapsody*) 9128 9129 9130 archive_cmds_need_lc=no 9131 hardcode_direct=no 9132 hardcode_automatic=yes 9133 hardcode_shlibpath_var=unsupported 9134 if test "$lt_cv_ld_force_load" = "yes"; then 9135 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\"`' 9136 else 9137 whole_archive_flag_spec='' 9138 fi 9139 link_all_deplibs=yes 9140 allow_undefined_flag="$_lt_dar_allow_undefined" 9141 case $cc_basename in 9142 ifort*) _lt_dar_can_shared=yes ;; 9143 *) _lt_dar_can_shared=$GCC ;; 9144 esac 9145 if test "$_lt_dar_can_shared" = "yes"; then 9146 output_verbose_link_cmd=func_echo_all 9147 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9148 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9149 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}" 9150 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}" 9151 9152 else 9153 ld_shlibs=no 9154 fi 9155 9156 ;; 9157 9158 dgux*) 9159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9160 hardcode_libdir_flag_spec='-L$libdir' 9161 hardcode_shlibpath_var=no 9162 ;; 9163 9164 freebsd1*) 9165 ld_shlibs=no 9166 ;; 9167 9168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9169 # support. Future versions do this automatically, but an explicit c++rt0.o 9170 # does not break anything, and helps significantly (at the cost of a little 9171 # extra space). 9172 freebsd2.2*) 9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9174 hardcode_libdir_flag_spec='-R$libdir' 9175 hardcode_direct=yes 9176 hardcode_shlibpath_var=no 9177 ;; 9178 9179 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9180 freebsd2*) 9181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9182 hardcode_direct=yes 9183 hardcode_minus_L=yes 9184 hardcode_shlibpath_var=no 9185 ;; 9186 9187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9188 freebsd* | dragonfly*) 9189 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9190 hardcode_libdir_flag_spec='-R$libdir' 9191 hardcode_direct=yes 9192 hardcode_shlibpath_var=no 9193 ;; 9194 9195 hpux9*) 9196 if test "$GCC" = yes; then 9197 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' 9198 else 9199 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' 9200 fi 9201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9202 hardcode_libdir_separator=: 9203 hardcode_direct=yes 9204 9205 # hardcode_minus_L: Not really in the search PATH, 9206 # but as the default location of the library. 9207 hardcode_minus_L=yes 9208 export_dynamic_flag_spec='${wl}-E' 9209 ;; 9210 9211 hpux10*) 9212 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9213 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9214 else 9215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9216 fi 9217 if test "$with_gnu_ld" = no; then 9218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9219 hardcode_libdir_flag_spec_ld='+b $libdir' 9220 hardcode_libdir_separator=: 9221 hardcode_direct=yes 9222 hardcode_direct_absolute=yes 9223 export_dynamic_flag_spec='${wl}-E' 9224 # hardcode_minus_L: Not really in the search PATH, 9225 # but as the default location of the library. 9226 hardcode_minus_L=yes 9227 fi 9228 ;; 9229 9230 hpux11*) 9231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9232 case $host_cpu in 9233 hppa*64*) 9234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9235 ;; 9236 ia64*) 9237 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9238 ;; 9239 *) 9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9241 ;; 9242 esac 9243 else 9244 case $host_cpu in 9245 hppa*64*) 9246 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9247 ;; 9248 ia64*) 9249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9250 ;; 9251 *) 9252 9253 # Older versions of the 11.00 compiler do not understand -b yet 9254 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9256$as_echo_n "checking if $CC understands -b... " >&6; } 9257if ${lt_cv_prog_compiler__b+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 lt_cv_prog_compiler__b=no 9261 save_LDFLAGS="$LDFLAGS" 9262 LDFLAGS="$LDFLAGS -b" 9263 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9265 # The linker can only warn and ignore the option if not recognized 9266 # So say no if there are warnings 9267 if test -s conftest.err; then 9268 # Append any errors to the config.log. 9269 cat conftest.err 1>&5 9270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9272 if diff conftest.exp conftest.er2 >/dev/null; then 9273 lt_cv_prog_compiler__b=yes 9274 fi 9275 else 9276 lt_cv_prog_compiler__b=yes 9277 fi 9278 fi 9279 $RM -r conftest* 9280 LDFLAGS="$save_LDFLAGS" 9281 9282fi 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9284$as_echo "$lt_cv_prog_compiler__b" >&6; } 9285 9286if test x"$lt_cv_prog_compiler__b" = xyes; then 9287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9288else 9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9290fi 9291 9292 ;; 9293 esac 9294 fi 9295 if test "$with_gnu_ld" = no; then 9296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9297 hardcode_libdir_separator=: 9298 9299 case $host_cpu in 9300 hppa*64*|ia64*) 9301 hardcode_direct=no 9302 hardcode_shlibpath_var=no 9303 ;; 9304 *) 9305 hardcode_direct=yes 9306 hardcode_direct_absolute=yes 9307 export_dynamic_flag_spec='${wl}-E' 9308 9309 # hardcode_minus_L: Not really in the search PATH, 9310 # but as the default location of the library. 9311 hardcode_minus_L=yes 9312 ;; 9313 esac 9314 fi 9315 ;; 9316 9317 irix5* | irix6* | nonstopux*) 9318 if test "$GCC" = yes; then 9319 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' 9320 # Try to use the -exported_symbol ld option, if it does not 9321 # work, assume that -exports_file does not work either and 9322 # implicitly export all symbols. 9323 save_LDFLAGS="$LDFLAGS" 9324 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9326/* end confdefs.h. */ 9327int foo(void) {} 9328_ACEOF 9329if ac_fn_c_try_link "$LINENO"; then : 9330 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' 9331 9332fi 9333rm -f core conftest.err conftest.$ac_objext \ 9334 conftest$ac_exeext conftest.$ac_ext 9335 LDFLAGS="$save_LDFLAGS" 9336 else 9337 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' 9338 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' 9339 fi 9340 archive_cmds_need_lc='no' 9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9342 hardcode_libdir_separator=: 9343 inherit_rpath=yes 9344 link_all_deplibs=yes 9345 ;; 9346 9347 netbsd*) 9348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9350 else 9351 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9352 fi 9353 hardcode_libdir_flag_spec='-R$libdir' 9354 hardcode_direct=yes 9355 hardcode_shlibpath_var=no 9356 ;; 9357 9358 newsos6) 9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9360 hardcode_direct=yes 9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9362 hardcode_libdir_separator=: 9363 hardcode_shlibpath_var=no 9364 ;; 9365 9366 *nto* | *qnx*) 9367 ;; 9368 9369 openbsd*) 9370 if test -f /usr/libexec/ld.so; then 9371 hardcode_direct=yes 9372 hardcode_shlibpath_var=no 9373 hardcode_direct_absolute=yes 9374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9378 export_dynamic_flag_spec='${wl}-E' 9379 else 9380 case $host_os in 9381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9383 hardcode_libdir_flag_spec='-R$libdir' 9384 ;; 9385 *) 9386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9388 ;; 9389 esac 9390 fi 9391 else 9392 ld_shlibs=no 9393 fi 9394 ;; 9395 9396 os2*) 9397 hardcode_libdir_flag_spec='-L$libdir' 9398 hardcode_minus_L=yes 9399 allow_undefined_flag=unsupported 9400 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' 9401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9402 ;; 9403 9404 osf3*) 9405 if test "$GCC" = yes; then 9406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9407 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' 9408 else 9409 allow_undefined_flag=' -expect_unresolved \*' 9410 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' 9411 fi 9412 archive_cmds_need_lc='no' 9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9414 hardcode_libdir_separator=: 9415 ;; 9416 9417 osf4* | osf5*) # as osf3* with the addition of -msym flag 9418 if test "$GCC" = yes; then 9419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9420 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' 9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9422 else 9423 allow_undefined_flag=' -expect_unresolved \*' 9424 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' 9425 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~ 9426 $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' 9427 9428 # Both c and cxx compiler support -rpath directly 9429 hardcode_libdir_flag_spec='-rpath $libdir' 9430 fi 9431 archive_cmds_need_lc='no' 9432 hardcode_libdir_separator=: 9433 ;; 9434 9435 solaris*) 9436 no_undefined_flag=' -z defs' 9437 if test "$GCC" = yes; then 9438 wlarc='${wl}' 9439 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9441 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9442 else 9443 case `$CC -V 2>&1` in 9444 *"Compilers 5.0"*) 9445 wlarc='' 9446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9449 ;; 9450 *) 9451 wlarc='${wl}' 9452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9455 ;; 9456 esac 9457 fi 9458 hardcode_libdir_flag_spec='-R$libdir' 9459 hardcode_shlibpath_var=no 9460 case $host_os in 9461 solaris2.[0-5] | solaris2.[0-5].*) ;; 9462 *) 9463 # The compiler driver will combine and reorder linker options, 9464 # but understands `-z linker_flag'. GCC discards it without `$wl', 9465 # but is careful enough not to reorder. 9466 # Supported since Solaris 2.6 (maybe 2.5.1?) 9467 if test "$GCC" = yes; then 9468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9469 else 9470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9471 fi 9472 ;; 9473 esac 9474 link_all_deplibs=yes 9475 ;; 9476 9477 sunos4*) 9478 if test "x$host_vendor" = xsequent; then 9479 # Use $CC to link under sequent, because it throws in some extra .o 9480 # files that make .init and .fini sections work. 9481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9482 else 9483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9484 fi 9485 hardcode_libdir_flag_spec='-L$libdir' 9486 hardcode_direct=yes 9487 hardcode_minus_L=yes 9488 hardcode_shlibpath_var=no 9489 ;; 9490 9491 sysv4) 9492 case $host_vendor in 9493 sni) 9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9495 hardcode_direct=yes # is this really true??? 9496 ;; 9497 siemens) 9498 ## LD is ld it makes a PLAMLIB 9499 ## CC just makes a GrossModule. 9500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9501 reload_cmds='$CC -r -o $output$reload_objs' 9502 hardcode_direct=no 9503 ;; 9504 motorola) 9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9507 ;; 9508 esac 9509 runpath_var='LD_RUN_PATH' 9510 hardcode_shlibpath_var=no 9511 ;; 9512 9513 sysv4.3*) 9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9515 hardcode_shlibpath_var=no 9516 export_dynamic_flag_spec='-Bexport' 9517 ;; 9518 9519 sysv4*MP*) 9520 if test -d /usr/nec; then 9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9522 hardcode_shlibpath_var=no 9523 runpath_var=LD_RUN_PATH 9524 hardcode_runpath_var=yes 9525 ld_shlibs=yes 9526 fi 9527 ;; 9528 9529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9530 no_undefined_flag='${wl}-z,text' 9531 archive_cmds_need_lc=no 9532 hardcode_shlibpath_var=no 9533 runpath_var='LD_RUN_PATH' 9534 9535 if test "$GCC" = yes; then 9536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9538 else 9539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9541 fi 9542 ;; 9543 9544 sysv5* | sco3.2v5* | sco5v6*) 9545 # Note: We can NOT use -z defs as we might desire, because we do not 9546 # link with -lc, and that would cause any symbols used from libc to 9547 # always be unresolved, which means just about no library would 9548 # ever link correctly. If we're not using GNU ld we use -z text 9549 # though, which does catch some bad symbols but isn't as heavy-handed 9550 # as -z defs. 9551 no_undefined_flag='${wl}-z,text' 9552 allow_undefined_flag='${wl}-z,nodefs' 9553 archive_cmds_need_lc=no 9554 hardcode_shlibpath_var=no 9555 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9556 hardcode_libdir_separator=':' 9557 link_all_deplibs=yes 9558 export_dynamic_flag_spec='${wl}-Bexport' 9559 runpath_var='LD_RUN_PATH' 9560 9561 if test "$GCC" = yes; then 9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9564 else 9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9567 fi 9568 ;; 9569 9570 uts4*) 9571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9572 hardcode_libdir_flag_spec='-L$libdir' 9573 hardcode_shlibpath_var=no 9574 ;; 9575 9576 *) 9577 ld_shlibs=no 9578 ;; 9579 esac 9580 9581 if test x$host_vendor = xsni; then 9582 case $host in 9583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9584 export_dynamic_flag_spec='${wl}-Blargedynsym' 9585 ;; 9586 esac 9587 fi 9588 fi 9589 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9591$as_echo "$ld_shlibs" >&6; } 9592test "$ld_shlibs" = no && can_build_shared=no 9593 9594with_gnu_ld=$with_gnu_ld 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610# 9611# Do we need to explicitly link libc? 9612# 9613case "x$archive_cmds_need_lc" in 9614x|xyes) 9615 # Assume -lc should be added 9616 archive_cmds_need_lc=yes 9617 9618 if test "$enable_shared" = yes && test "$GCC" = yes; then 9619 case $archive_cmds in 9620 *'~'*) 9621 # FIXME: we may have to deal with multi-command sequences. 9622 ;; 9623 '$CC '*) 9624 # Test whether the compiler implicitly links with -lc since on some 9625 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9626 # to ld, don't add -lc before -lgcc. 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9628$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9629if ${lt_cv_archive_cmds_need_lc+:} false; then : 9630 $as_echo_n "(cached) " >&6 9631else 9632 $RM conftest* 9633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9634 9635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9636 (eval $ac_compile) 2>&5 9637 ac_status=$? 9638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9639 test $ac_status = 0; } 2>conftest.err; then 9640 soname=conftest 9641 lib=conftest 9642 libobjs=conftest.$ac_objext 9643 deplibs= 9644 wl=$lt_prog_compiler_wl 9645 pic_flag=$lt_prog_compiler_pic 9646 compiler_flags=-v 9647 linker_flags=-v 9648 verstring= 9649 output_objdir=. 9650 libname=conftest 9651 lt_save_allow_undefined_flag=$allow_undefined_flag 9652 allow_undefined_flag= 9653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9654 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9655 ac_status=$? 9656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9657 test $ac_status = 0; } 9658 then 9659 lt_cv_archive_cmds_need_lc=no 9660 else 9661 lt_cv_archive_cmds_need_lc=yes 9662 fi 9663 allow_undefined_flag=$lt_save_allow_undefined_flag 9664 else 9665 cat conftest.err 1>&5 9666 fi 9667 $RM conftest* 9668 9669fi 9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9671$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9672 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9673 ;; 9674 esac 9675 fi 9676 ;; 9677esac 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9836$as_echo_n "checking dynamic linker characteristics... " >&6; } 9837 9838if test "$GCC" = yes; then 9839 case $host_os in 9840 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9841 *) lt_awk_arg="/^libraries:/" ;; 9842 esac 9843 case $host_os in 9844 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9845 *) lt_sed_strip_eq="s,=/,/,g" ;; 9846 esac 9847 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9848 case $lt_search_path_spec in 9849 *\;*) 9850 # if the path contains ";" then we assume it to be the separator 9851 # otherwise default to the standard path separator (i.e. ":") - it is 9852 # assumed that no part of a normal pathname contains ";" but that should 9853 # okay in the real world where ";" in dirpaths is itself problematic. 9854 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9855 ;; 9856 *) 9857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9858 ;; 9859 esac 9860 # Ok, now we have the path, separated by spaces, we can step through it 9861 # and add multilib dir if necessary. 9862 lt_tmp_lt_search_path_spec= 9863 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9864 for lt_sys_path in $lt_search_path_spec; do 9865 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9867 else 9868 test -d "$lt_sys_path" && \ 9869 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9870 fi 9871 done 9872 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9873BEGIN {RS=" "; FS="/|\n";} { 9874 lt_foo=""; 9875 lt_count=0; 9876 for (lt_i = NF; lt_i > 0; lt_i--) { 9877 if ($lt_i != "" && $lt_i != ".") { 9878 if ($lt_i == "..") { 9879 lt_count++; 9880 } else { 9881 if (lt_count == 0) { 9882 lt_foo="/" $lt_i lt_foo; 9883 } else { 9884 lt_count--; 9885 } 9886 } 9887 } 9888 } 9889 if (lt_foo != "") { lt_freq[lt_foo]++; } 9890 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9891}'` 9892 # AWK program above erroneously prepends '/' to C:/dos/paths 9893 # for these hosts. 9894 case $host_os in 9895 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9896 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9897 esac 9898 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9899else 9900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9901fi 9902library_names_spec= 9903libname_spec='lib$name' 9904soname_spec= 9905shrext_cmds=".so" 9906postinstall_cmds= 9907postuninstall_cmds= 9908finish_cmds= 9909finish_eval= 9910shlibpath_var= 9911shlibpath_overrides_runpath=unknown 9912version_type=none 9913dynamic_linker="$host_os ld.so" 9914sys_lib_dlsearch_path_spec="/lib /usr/lib" 9915need_lib_prefix=unknown 9916hardcode_into_libs=no 9917 9918# when you set need_version to no, make sure it does not cause -set_version 9919# flags to be left without arguments 9920need_version=unknown 9921 9922case $host_os in 9923aix3*) 9924 version_type=linux 9925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9926 shlibpath_var=LIBPATH 9927 9928 # AIX 3 has no versioning support, so we append a major version to the name. 9929 soname_spec='${libname}${release}${shared_ext}$major' 9930 ;; 9931 9932aix[4-9]*) 9933 version_type=linux 9934 need_lib_prefix=no 9935 need_version=no 9936 hardcode_into_libs=yes 9937 if test "$host_cpu" = ia64; then 9938 # AIX 5 supports IA64 9939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9940 shlibpath_var=LD_LIBRARY_PATH 9941 else 9942 # With GCC up to 2.95.x, collect2 would create an import file 9943 # for dependence libraries. The import file would start with 9944 # the line `#! .'. This would cause the generated library to 9945 # depend on `.', always an invalid library. This was fixed in 9946 # development snapshots of GCC prior to 3.0. 9947 case $host_os in 9948 aix4 | aix4.[01] | aix4.[01].*) 9949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9950 echo ' yes ' 9951 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9952 : 9953 else 9954 can_build_shared=no 9955 fi 9956 ;; 9957 esac 9958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9959 # soname into executable. Probably we can add versioning support to 9960 # collect2, so additional links can be useful in future. 9961 if test "$aix_use_runtimelinking" = yes; then 9962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9963 # instead of lib<name>.a to let people know that these are not 9964 # typical AIX shared libraries. 9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9966 else 9967 # We preserve .a as extension for shared libraries through AIX4.2 9968 # and later when we are not doing run time linking. 9969 library_names_spec='${libname}${release}.a $libname.a' 9970 soname_spec='${libname}${release}${shared_ext}$major' 9971 fi 9972 shlibpath_var=LIBPATH 9973 fi 9974 ;; 9975 9976amigaos*) 9977 case $host_cpu in 9978 powerpc) 9979 # Since July 2007 AmigaOS4 officially supports .so libraries. 9980 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9982 ;; 9983 m68k) 9984 library_names_spec='$libname.ixlibrary $libname.a' 9985 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9986 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' 9987 ;; 9988 esac 9989 ;; 9990 9991beos*) 9992 library_names_spec='${libname}${shared_ext}' 9993 dynamic_linker="$host_os ld.so" 9994 shlibpath_var=LIBRARY_PATH 9995 ;; 9996 9997bsdi[45]*) 9998 version_type=linux 9999 need_version=no 10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10001 soname_spec='${libname}${release}${shared_ext}$major' 10002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10003 shlibpath_var=LD_LIBRARY_PATH 10004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10006 # the default ld.so.conf also contains /usr/contrib/lib and 10007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10008 # libtool to hard-code these into programs 10009 ;; 10010 10011cygwin* | mingw* | pw32* | cegcc*) 10012 version_type=windows 10013 shrext_cmds=".dll" 10014 need_version=no 10015 need_lib_prefix=no 10016 10017 case $GCC,$host_os in 10018 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10019 library_names_spec='$libname.dll.a' 10020 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10021 postinstall_cmds='base_file=`basename \${file}`~ 10022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10023 dldir=$destdir/`dirname \$dlpath`~ 10024 test -d \$dldir || mkdir -p \$dldir~ 10025 $install_prog $dir/$dlname \$dldir/$dlname~ 10026 chmod a+x \$dldir/$dlname~ 10027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10029 fi' 10030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10031 dlpath=$dir/\$dldll~ 10032 $RM \$dlpath' 10033 shlibpath_overrides_runpath=yes 10034 10035 case $host_os in 10036 cygwin*) 10037 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10038 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10039 10040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10041 ;; 10042 mingw* | cegcc*) 10043 # MinGW DLLs use traditional 'lib' prefix 10044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10045 ;; 10046 pw32*) 10047 # pw32 DLLs use 'pw' prefix rather than 'lib' 10048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10049 ;; 10050 esac 10051 ;; 10052 10053 *) 10054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10055 ;; 10056 esac 10057 dynamic_linker='Win32 ld.exe' 10058 # FIXME: first we should search . and the directory the executable is in 10059 shlibpath_var=PATH 10060 ;; 10061 10062darwin* | rhapsody*) 10063 dynamic_linker="$host_os dyld" 10064 version_type=darwin 10065 need_lib_prefix=no 10066 need_version=no 10067 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10068 soname_spec='${libname}${release}${major}$shared_ext' 10069 shlibpath_overrides_runpath=yes 10070 shlibpath_var=DYLD_LIBRARY_PATH 10071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10072 10073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10075 ;; 10076 10077dgux*) 10078 version_type=linux 10079 need_lib_prefix=no 10080 need_version=no 10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10082 soname_spec='${libname}${release}${shared_ext}$major' 10083 shlibpath_var=LD_LIBRARY_PATH 10084 ;; 10085 10086freebsd1*) 10087 dynamic_linker=no 10088 ;; 10089 10090freebsd* | dragonfly*) 10091 # DragonFly does not have aout. When/if they implement a new 10092 # versioning mechanism, adjust this. 10093 if test -x /usr/bin/objformat; then 10094 objformat=`/usr/bin/objformat` 10095 else 10096 case $host_os in 10097 freebsd[123]*) objformat=aout ;; 10098 *) objformat=elf ;; 10099 esac 10100 fi 10101 version_type=freebsd-$objformat 10102 case $version_type in 10103 freebsd-elf*) 10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10105 need_version=no 10106 need_lib_prefix=no 10107 ;; 10108 freebsd-*) 10109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10110 need_version=yes 10111 ;; 10112 esac 10113 shlibpath_var=LD_LIBRARY_PATH 10114 case $host_os in 10115 freebsd2*) 10116 shlibpath_overrides_runpath=yes 10117 ;; 10118 freebsd3.[01]* | freebsdelf3.[01]*) 10119 shlibpath_overrides_runpath=yes 10120 hardcode_into_libs=yes 10121 ;; 10122 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10123 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10124 shlibpath_overrides_runpath=no 10125 hardcode_into_libs=yes 10126 ;; 10127 *) # from 4.6 on, and DragonFly 10128 shlibpath_overrides_runpath=yes 10129 hardcode_into_libs=yes 10130 ;; 10131 esac 10132 ;; 10133 10134gnu*) 10135 version_type=linux 10136 need_lib_prefix=no 10137 need_version=no 10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10139 soname_spec='${libname}${release}${shared_ext}$major' 10140 shlibpath_var=LD_LIBRARY_PATH 10141 hardcode_into_libs=yes 10142 ;; 10143 10144haiku*) 10145 version_type=linux 10146 need_lib_prefix=no 10147 need_version=no 10148 dynamic_linker="$host_os runtime_loader" 10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10150 soname_spec='${libname}${release}${shared_ext}$major' 10151 shlibpath_var=LIBRARY_PATH 10152 shlibpath_overrides_runpath=yes 10153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10154 hardcode_into_libs=yes 10155 ;; 10156 10157hpux9* | hpux10* | hpux11*) 10158 # Give a soname corresponding to the major version so that dld.sl refuses to 10159 # link against other versions. 10160 version_type=sunos 10161 need_lib_prefix=no 10162 need_version=no 10163 case $host_cpu in 10164 ia64*) 10165 shrext_cmds='.so' 10166 hardcode_into_libs=yes 10167 dynamic_linker="$host_os dld.so" 10168 shlibpath_var=LD_LIBRARY_PATH 10169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10171 soname_spec='${libname}${release}${shared_ext}$major' 10172 if test "X$HPUX_IA64_MODE" = X32; then 10173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10174 else 10175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10176 fi 10177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10178 ;; 10179 hppa*64*) 10180 shrext_cmds='.sl' 10181 hardcode_into_libs=yes 10182 dynamic_linker="$host_os dld.sl" 10183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10186 soname_spec='${libname}${release}${shared_ext}$major' 10187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10189 ;; 10190 *) 10191 shrext_cmds='.sl' 10192 dynamic_linker="$host_os dld.sl" 10193 shlibpath_var=SHLIB_PATH 10194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10196 soname_spec='${libname}${release}${shared_ext}$major' 10197 ;; 10198 esac 10199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10200 postinstall_cmds='chmod 555 $lib' 10201 # or fails outright, so override atomically: 10202 install_override_mode=555 10203 ;; 10204 10205interix[3-9]*) 10206 version_type=linux 10207 need_lib_prefix=no 10208 need_version=no 10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10210 soname_spec='${libname}${release}${shared_ext}$major' 10211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10212 shlibpath_var=LD_LIBRARY_PATH 10213 shlibpath_overrides_runpath=no 10214 hardcode_into_libs=yes 10215 ;; 10216 10217irix5* | irix6* | nonstopux*) 10218 case $host_os in 10219 nonstopux*) version_type=nonstopux ;; 10220 *) 10221 if test "$lt_cv_prog_gnu_ld" = yes; then 10222 version_type=linux 10223 else 10224 version_type=irix 10225 fi ;; 10226 esac 10227 need_lib_prefix=no 10228 need_version=no 10229 soname_spec='${libname}${release}${shared_ext}$major' 10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10231 case $host_os in 10232 irix5* | nonstopux*) 10233 libsuff= shlibsuff= 10234 ;; 10235 *) 10236 case $LD in # libtool.m4 will add one of these switches to LD 10237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10238 libsuff= shlibsuff= libmagic=32-bit;; 10239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10240 libsuff=32 shlibsuff=N32 libmagic=N32;; 10241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10242 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10243 *) libsuff= shlibsuff= libmagic=never-match;; 10244 esac 10245 ;; 10246 esac 10247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10248 shlibpath_overrides_runpath=no 10249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10251 hardcode_into_libs=yes 10252 ;; 10253 10254# No shared lib support for Linux oldld, aout, or coff. 10255linux*oldld* | linux*aout* | linux*coff*) 10256 dynamic_linker=no 10257 ;; 10258 10259# This must be Linux ELF. 10260linux* | k*bsd*-gnu | kopensolaris*-gnu) 10261 version_type=linux 10262 need_lib_prefix=no 10263 need_version=no 10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10265 soname_spec='${libname}${release}${shared_ext}$major' 10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10267 shlibpath_var=LD_LIBRARY_PATH 10268 shlibpath_overrides_runpath=no 10269 10270 # Some binutils ld are patched to set DT_RUNPATH 10271 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10272 $as_echo_n "(cached) " >&6 10273else 10274 lt_cv_shlibpath_overrides_runpath=no 10275 save_LDFLAGS=$LDFLAGS 10276 save_libdir=$libdir 10277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281 10282int 10283main () 10284{ 10285 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290if ac_fn_c_try_link "$LINENO"; then : 10291 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10292 lt_cv_shlibpath_overrides_runpath=yes 10293fi 10294fi 10295rm -f core conftest.err conftest.$ac_objext \ 10296 conftest$ac_exeext conftest.$ac_ext 10297 LDFLAGS=$save_LDFLAGS 10298 libdir=$save_libdir 10299 10300fi 10301 10302 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10303 10304 # This implies no fast_install, which is unacceptable. 10305 # Some rework will be needed to allow for fast_install 10306 # before this can be enabled. 10307 hardcode_into_libs=yes 10308 10309 # Append ld.so.conf contents to the search path 10310 if test -f /etc/ld.so.conf; then 10311 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' ' '` 10312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10313 fi 10314 10315 # We used to test for /lib/ld.so.1 and disable shared libraries on 10316 # powerpc, because MkLinux only supported shared libraries with the 10317 # GNU dynamic linker. Since this was broken with cross compilers, 10318 # most powerpc-linux boxes support dynamic linking these days and 10319 # people can always --disable-shared, the test was removed, and we 10320 # assume the GNU/Linux dynamic linker is in use. 10321 dynamic_linker='GNU/Linux ld.so' 10322 ;; 10323 10324netbsd*) 10325 version_type=sunos 10326 need_lib_prefix=no 10327 need_version=no 10328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10331 dynamic_linker='NetBSD (a.out) ld.so' 10332 else 10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10334 soname_spec='${libname}${release}${shared_ext}$major' 10335 dynamic_linker='NetBSD ld.elf_so' 10336 fi 10337 shlibpath_var=LD_LIBRARY_PATH 10338 shlibpath_overrides_runpath=yes 10339 hardcode_into_libs=yes 10340 ;; 10341 10342newsos6) 10343 version_type=linux 10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10345 shlibpath_var=LD_LIBRARY_PATH 10346 shlibpath_overrides_runpath=yes 10347 ;; 10348 10349*nto* | *qnx*) 10350 version_type=qnx 10351 need_lib_prefix=no 10352 need_version=no 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 shlibpath_var=LD_LIBRARY_PATH 10356 shlibpath_overrides_runpath=no 10357 hardcode_into_libs=yes 10358 dynamic_linker='ldqnx.so' 10359 ;; 10360 10361openbsd*) 10362 version_type=sunos 10363 sys_lib_dlsearch_path_spec="/usr/lib" 10364 need_lib_prefix=no 10365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10366 case $host_os in 10367 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10368 *) need_version=no ;; 10369 esac 10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10374 case $host_os in 10375 openbsd2.[89] | openbsd2.[89].*) 10376 shlibpath_overrides_runpath=no 10377 ;; 10378 *) 10379 shlibpath_overrides_runpath=yes 10380 ;; 10381 esac 10382 else 10383 shlibpath_overrides_runpath=yes 10384 fi 10385 ;; 10386 10387os2*) 10388 libname_spec='$name' 10389 shrext_cmds=".dll" 10390 need_lib_prefix=no 10391 library_names_spec='$libname${shared_ext} $libname.a' 10392 dynamic_linker='OS/2 ld.exe' 10393 shlibpath_var=LIBPATH 10394 ;; 10395 10396osf3* | osf4* | osf5*) 10397 version_type=osf 10398 need_lib_prefix=no 10399 need_version=no 10400 soname_spec='${libname}${release}${shared_ext}$major' 10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10402 shlibpath_var=LD_LIBRARY_PATH 10403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10405 ;; 10406 10407rdos*) 10408 dynamic_linker=no 10409 ;; 10410 10411solaris*) 10412 version_type=linux 10413 need_lib_prefix=no 10414 need_version=no 10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10416 soname_spec='${libname}${release}${shared_ext}$major' 10417 shlibpath_var=LD_LIBRARY_PATH 10418 shlibpath_overrides_runpath=yes 10419 hardcode_into_libs=yes 10420 # ldd complains unless libraries are executable 10421 postinstall_cmds='chmod +x $lib' 10422 ;; 10423 10424sunos4*) 10425 version_type=sunos 10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10428 shlibpath_var=LD_LIBRARY_PATH 10429 shlibpath_overrides_runpath=yes 10430 if test "$with_gnu_ld" = yes; then 10431 need_lib_prefix=no 10432 fi 10433 need_version=yes 10434 ;; 10435 10436sysv4 | sysv4.3*) 10437 version_type=linux 10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10439 soname_spec='${libname}${release}${shared_ext}$major' 10440 shlibpath_var=LD_LIBRARY_PATH 10441 case $host_vendor in 10442 sni) 10443 shlibpath_overrides_runpath=no 10444 need_lib_prefix=no 10445 runpath_var=LD_RUN_PATH 10446 ;; 10447 siemens) 10448 need_lib_prefix=no 10449 ;; 10450 motorola) 10451 need_lib_prefix=no 10452 need_version=no 10453 shlibpath_overrides_runpath=no 10454 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10455 ;; 10456 esac 10457 ;; 10458 10459sysv4*MP*) 10460 if test -d /usr/nec ;then 10461 version_type=linux 10462 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10463 soname_spec='$libname${shared_ext}.$major' 10464 shlibpath_var=LD_LIBRARY_PATH 10465 fi 10466 ;; 10467 10468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10469 version_type=freebsd-elf 10470 need_lib_prefix=no 10471 need_version=no 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10473 soname_spec='${libname}${release}${shared_ext}$major' 10474 shlibpath_var=LD_LIBRARY_PATH 10475 shlibpath_overrides_runpath=yes 10476 hardcode_into_libs=yes 10477 if test "$with_gnu_ld" = yes; then 10478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10479 else 10480 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10481 case $host_os in 10482 sco3.2v5*) 10483 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10484 ;; 10485 esac 10486 fi 10487 sys_lib_dlsearch_path_spec='/usr/lib' 10488 ;; 10489 10490tpf*) 10491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10492 version_type=linux 10493 need_lib_prefix=no 10494 need_version=no 10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10496 shlibpath_var=LD_LIBRARY_PATH 10497 shlibpath_overrides_runpath=no 10498 hardcode_into_libs=yes 10499 ;; 10500 10501uts4*) 10502 version_type=linux 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10504 soname_spec='${libname}${release}${shared_ext}$major' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 ;; 10507 10508*) 10509 dynamic_linker=no 10510 ;; 10511esac 10512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10513$as_echo "$dynamic_linker" >&6; } 10514test "$dynamic_linker" = no && can_build_shared=no 10515 10516variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10517if test "$GCC" = yes; then 10518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10519fi 10520 10521if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10522 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10523fi 10524if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10526fi 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10620$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10621hardcode_action= 10622if test -n "$hardcode_libdir_flag_spec" || 10623 test -n "$runpath_var" || 10624 test "X$hardcode_automatic" = "Xyes" ; then 10625 10626 # We can hardcode non-existent directories. 10627 if test "$hardcode_direct" != no && 10628 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10629 # have to relink, otherwise we might link with an installed library 10630 # when we should be linking with a yet-to-be-installed one 10631 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10632 test "$hardcode_minus_L" != no; then 10633 # Linking always hardcodes the temporary library directory. 10634 hardcode_action=relink 10635 else 10636 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10637 hardcode_action=immediate 10638 fi 10639else 10640 # We cannot hardcode anything, or else we can only hardcode existing 10641 # directories. 10642 hardcode_action=unsupported 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10645$as_echo "$hardcode_action" >&6; } 10646 10647if test "$hardcode_action" = relink || 10648 test "$inherit_rpath" = yes; then 10649 # Fast installation is not supported 10650 enable_fast_install=no 10651elif test "$shlibpath_overrides_runpath" = yes || 10652 test "$enable_shared" = no; then 10653 # Fast installation is not necessary 10654 enable_fast_install=needless 10655fi 10656 10657 10658 10659 10660 10661 10662 if test "x$enable_dlopen" != xyes; then 10663 enable_dlopen=unknown 10664 enable_dlopen_self=unknown 10665 enable_dlopen_self_static=unknown 10666else 10667 lt_cv_dlopen=no 10668 lt_cv_dlopen_libs= 10669 10670 case $host_os in 10671 beos*) 10672 lt_cv_dlopen="load_add_on" 10673 lt_cv_dlopen_libs= 10674 lt_cv_dlopen_self=yes 10675 ;; 10676 10677 mingw* | pw32* | cegcc*) 10678 lt_cv_dlopen="LoadLibrary" 10679 lt_cv_dlopen_libs= 10680 ;; 10681 10682 cygwin*) 10683 lt_cv_dlopen="dlopen" 10684 lt_cv_dlopen_libs= 10685 ;; 10686 10687 darwin*) 10688 # if libdl is installed we need to link against it 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10690$as_echo_n "checking for dlopen in -ldl... " >&6; } 10691if ${ac_cv_lib_dl_dlopen+:} false; then : 10692 $as_echo_n "(cached) " >&6 10693else 10694 ac_check_lib_save_LIBS=$LIBS 10695LIBS="-ldl $LIBS" 10696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10697/* end confdefs.h. */ 10698 10699/* Override any GCC internal prototype to avoid an error. 10700 Use char because int might match the return type of a GCC 10701 builtin and then its argument prototype would still apply. */ 10702#ifdef __cplusplus 10703extern "C" 10704#endif 10705char dlopen (); 10706int 10707main () 10708{ 10709return dlopen (); 10710 ; 10711 return 0; 10712} 10713_ACEOF 10714if ac_fn_c_try_link "$LINENO"; then : 10715 ac_cv_lib_dl_dlopen=yes 10716else 10717 ac_cv_lib_dl_dlopen=no 10718fi 10719rm -f core conftest.err conftest.$ac_objext \ 10720 conftest$ac_exeext conftest.$ac_ext 10721LIBS=$ac_check_lib_save_LIBS 10722fi 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10724$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10725if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10727else 10728 10729 lt_cv_dlopen="dyld" 10730 lt_cv_dlopen_libs= 10731 lt_cv_dlopen_self=yes 10732 10733fi 10734 10735 ;; 10736 10737 *) 10738 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10739if test "x$ac_cv_func_shl_load" = xyes; then : 10740 lt_cv_dlopen="shl_load" 10741else 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10743$as_echo_n "checking for shl_load in -ldld... " >&6; } 10744if ${ac_cv_lib_dld_shl_load+:} false; then : 10745 $as_echo_n "(cached) " >&6 10746else 10747 ac_check_lib_save_LIBS=$LIBS 10748LIBS="-ldld $LIBS" 10749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10750/* end confdefs.h. */ 10751 10752/* Override any GCC internal prototype to avoid an error. 10753 Use char because int might match the return type of a GCC 10754 builtin and then its argument prototype would still apply. */ 10755#ifdef __cplusplus 10756extern "C" 10757#endif 10758char shl_load (); 10759int 10760main () 10761{ 10762return shl_load (); 10763 ; 10764 return 0; 10765} 10766_ACEOF 10767if ac_fn_c_try_link "$LINENO"; then : 10768 ac_cv_lib_dld_shl_load=yes 10769else 10770 ac_cv_lib_dld_shl_load=no 10771fi 10772rm -f core conftest.err conftest.$ac_objext \ 10773 conftest$ac_exeext conftest.$ac_ext 10774LIBS=$ac_check_lib_save_LIBS 10775fi 10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10777$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10778if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10779 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10780else 10781 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10782if test "x$ac_cv_func_dlopen" = xyes; then : 10783 lt_cv_dlopen="dlopen" 10784else 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10786$as_echo_n "checking for dlopen in -ldl... " >&6; } 10787if ${ac_cv_lib_dl_dlopen+:} false; then : 10788 $as_echo_n "(cached) " >&6 10789else 10790 ac_check_lib_save_LIBS=$LIBS 10791LIBS="-ldl $LIBS" 10792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10793/* end confdefs.h. */ 10794 10795/* Override any GCC internal prototype to avoid an error. 10796 Use char because int might match the return type of a GCC 10797 builtin and then its argument prototype would still apply. */ 10798#ifdef __cplusplus 10799extern "C" 10800#endif 10801char dlopen (); 10802int 10803main () 10804{ 10805return dlopen (); 10806 ; 10807 return 0; 10808} 10809_ACEOF 10810if ac_fn_c_try_link "$LINENO"; then : 10811 ac_cv_lib_dl_dlopen=yes 10812else 10813 ac_cv_lib_dl_dlopen=no 10814fi 10815rm -f core conftest.err conftest.$ac_objext \ 10816 conftest$ac_exeext conftest.$ac_ext 10817LIBS=$ac_check_lib_save_LIBS 10818fi 10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10820$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10821if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10823else 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10825$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10826if ${ac_cv_lib_svld_dlopen+:} false; then : 10827 $as_echo_n "(cached) " >&6 10828else 10829 ac_check_lib_save_LIBS=$LIBS 10830LIBS="-lsvld $LIBS" 10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833 10834/* Override any GCC internal prototype to avoid an error. 10835 Use char because int might match the return type of a GCC 10836 builtin and then its argument prototype would still apply. */ 10837#ifdef __cplusplus 10838extern "C" 10839#endif 10840char dlopen (); 10841int 10842main () 10843{ 10844return dlopen (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849if ac_fn_c_try_link "$LINENO"; then : 10850 ac_cv_lib_svld_dlopen=yes 10851else 10852 ac_cv_lib_svld_dlopen=no 10853fi 10854rm -f core conftest.err conftest.$ac_objext \ 10855 conftest$ac_exeext conftest.$ac_ext 10856LIBS=$ac_check_lib_save_LIBS 10857fi 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10859$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10860if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10862else 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10864$as_echo_n "checking for dld_link in -ldld... " >&6; } 10865if ${ac_cv_lib_dld_dld_link+:} false; then : 10866 $as_echo_n "(cached) " >&6 10867else 10868 ac_check_lib_save_LIBS=$LIBS 10869LIBS="-ldld $LIBS" 10870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10871/* end confdefs.h. */ 10872 10873/* Override any GCC internal prototype to avoid an error. 10874 Use char because int might match the return type of a GCC 10875 builtin and then its argument prototype would still apply. */ 10876#ifdef __cplusplus 10877extern "C" 10878#endif 10879char dld_link (); 10880int 10881main () 10882{ 10883return dld_link (); 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888if ac_fn_c_try_link "$LINENO"; then : 10889 ac_cv_lib_dld_dld_link=yes 10890else 10891 ac_cv_lib_dld_dld_link=no 10892fi 10893rm -f core conftest.err conftest.$ac_objext \ 10894 conftest$ac_exeext conftest.$ac_ext 10895LIBS=$ac_check_lib_save_LIBS 10896fi 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10898$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10899if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10900 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10901fi 10902 10903 10904fi 10905 10906 10907fi 10908 10909 10910fi 10911 10912 10913fi 10914 10915 10916fi 10917 10918 ;; 10919 esac 10920 10921 if test "x$lt_cv_dlopen" != xno; then 10922 enable_dlopen=yes 10923 else 10924 enable_dlopen=no 10925 fi 10926 10927 case $lt_cv_dlopen in 10928 dlopen) 10929 save_CPPFLAGS="$CPPFLAGS" 10930 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10931 10932 save_LDFLAGS="$LDFLAGS" 10933 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10934 10935 save_LIBS="$LIBS" 10936 LIBS="$lt_cv_dlopen_libs $LIBS" 10937 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10939$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10940if ${lt_cv_dlopen_self+:} false; then : 10941 $as_echo_n "(cached) " >&6 10942else 10943 if test "$cross_compiling" = yes; then : 10944 lt_cv_dlopen_self=cross 10945else 10946 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10947 lt_status=$lt_dlunknown 10948 cat > conftest.$ac_ext <<_LT_EOF 10949#line $LINENO "configure" 10950#include "confdefs.h" 10951 10952#if HAVE_DLFCN_H 10953#include <dlfcn.h> 10954#endif 10955 10956#include <stdio.h> 10957 10958#ifdef RTLD_GLOBAL 10959# define LT_DLGLOBAL RTLD_GLOBAL 10960#else 10961# ifdef DL_GLOBAL 10962# define LT_DLGLOBAL DL_GLOBAL 10963# else 10964# define LT_DLGLOBAL 0 10965# endif 10966#endif 10967 10968/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10969 find out it does not work in some platform. */ 10970#ifndef LT_DLLAZY_OR_NOW 10971# ifdef RTLD_LAZY 10972# define LT_DLLAZY_OR_NOW RTLD_LAZY 10973# else 10974# ifdef DL_LAZY 10975# define LT_DLLAZY_OR_NOW DL_LAZY 10976# else 10977# ifdef RTLD_NOW 10978# define LT_DLLAZY_OR_NOW RTLD_NOW 10979# else 10980# ifdef DL_NOW 10981# define LT_DLLAZY_OR_NOW DL_NOW 10982# else 10983# define LT_DLLAZY_OR_NOW 0 10984# endif 10985# endif 10986# endif 10987# endif 10988#endif 10989 10990/* When -fvisbility=hidden is used, assume the code has been annotated 10991 correspondingly for the symbols needed. */ 10992#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10993void fnord () __attribute__((visibility("default"))); 10994#endif 10995 10996void fnord () { int i=42; } 10997int main () 10998{ 10999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11000 int status = $lt_dlunknown; 11001 11002 if (self) 11003 { 11004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11005 else 11006 { 11007 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11008 else puts (dlerror ()); 11009 } 11010 /* dlclose (self); */ 11011 } 11012 else 11013 puts (dlerror ()); 11014 11015 return status; 11016} 11017_LT_EOF 11018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11019 (eval $ac_link) 2>&5 11020 ac_status=$? 11021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11022 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11023 (./conftest; exit; ) >&5 2>/dev/null 11024 lt_status=$? 11025 case x$lt_status in 11026 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11027 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11028 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11029 esac 11030 else : 11031 # compilation failed 11032 lt_cv_dlopen_self=no 11033 fi 11034fi 11035rm -fr conftest* 11036 11037 11038fi 11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11040$as_echo "$lt_cv_dlopen_self" >&6; } 11041 11042 if test "x$lt_cv_dlopen_self" = xyes; then 11043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11045$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11046if ${lt_cv_dlopen_self_static+:} false; then : 11047 $as_echo_n "(cached) " >&6 11048else 11049 if test "$cross_compiling" = yes; then : 11050 lt_cv_dlopen_self_static=cross 11051else 11052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11053 lt_status=$lt_dlunknown 11054 cat > conftest.$ac_ext <<_LT_EOF 11055#line $LINENO "configure" 11056#include "confdefs.h" 11057 11058#if HAVE_DLFCN_H 11059#include <dlfcn.h> 11060#endif 11061 11062#include <stdio.h> 11063 11064#ifdef RTLD_GLOBAL 11065# define LT_DLGLOBAL RTLD_GLOBAL 11066#else 11067# ifdef DL_GLOBAL 11068# define LT_DLGLOBAL DL_GLOBAL 11069# else 11070# define LT_DLGLOBAL 0 11071# endif 11072#endif 11073 11074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11075 find out it does not work in some platform. */ 11076#ifndef LT_DLLAZY_OR_NOW 11077# ifdef RTLD_LAZY 11078# define LT_DLLAZY_OR_NOW RTLD_LAZY 11079# else 11080# ifdef DL_LAZY 11081# define LT_DLLAZY_OR_NOW DL_LAZY 11082# else 11083# ifdef RTLD_NOW 11084# define LT_DLLAZY_OR_NOW RTLD_NOW 11085# else 11086# ifdef DL_NOW 11087# define LT_DLLAZY_OR_NOW DL_NOW 11088# else 11089# define LT_DLLAZY_OR_NOW 0 11090# endif 11091# endif 11092# endif 11093# endif 11094#endif 11095 11096/* When -fvisbility=hidden is used, assume the code has been annotated 11097 correspondingly for the symbols needed. */ 11098#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11099void fnord () __attribute__((visibility("default"))); 11100#endif 11101 11102void fnord () { int i=42; } 11103int main () 11104{ 11105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11106 int status = $lt_dlunknown; 11107 11108 if (self) 11109 { 11110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11111 else 11112 { 11113 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11114 else puts (dlerror ()); 11115 } 11116 /* dlclose (self); */ 11117 } 11118 else 11119 puts (dlerror ()); 11120 11121 return status; 11122} 11123_LT_EOF 11124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11125 (eval $ac_link) 2>&5 11126 ac_status=$? 11127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11128 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11129 (./conftest; exit; ) >&5 2>/dev/null 11130 lt_status=$? 11131 case x$lt_status in 11132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11134 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11135 esac 11136 else : 11137 # compilation failed 11138 lt_cv_dlopen_self_static=no 11139 fi 11140fi 11141rm -fr conftest* 11142 11143 11144fi 11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11146$as_echo "$lt_cv_dlopen_self_static" >&6; } 11147 fi 11148 11149 CPPFLAGS="$save_CPPFLAGS" 11150 LDFLAGS="$save_LDFLAGS" 11151 LIBS="$save_LIBS" 11152 ;; 11153 esac 11154 11155 case $lt_cv_dlopen_self in 11156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11157 *) enable_dlopen_self=unknown ;; 11158 esac 11159 11160 case $lt_cv_dlopen_self_static in 11161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11162 *) enable_dlopen_self_static=unknown ;; 11163 esac 11164fi 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182striplib= 11183old_striplib= 11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11185$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11186if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11188 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11190$as_echo "yes" >&6; } 11191else 11192# FIXME - insert some real tests, host_os isn't really good enough 11193 case $host_os in 11194 darwin*) 11195 if test -n "$STRIP" ; then 11196 striplib="$STRIP -x" 11197 old_striplib="$STRIP -S" 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11199$as_echo "yes" >&6; } 11200 else 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11202$as_echo "no" >&6; } 11203 fi 11204 ;; 11205 *) 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11207$as_echo "no" >&6; } 11208 ;; 11209 esac 11210fi 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 # Report which library types will actually be built 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11225$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11227$as_echo "$can_build_shared" >&6; } 11228 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11230$as_echo_n "checking whether to build shared libraries... " >&6; } 11231 test "$can_build_shared" = "no" && enable_shared=no 11232 11233 # On AIX, shared libraries and static libraries use the same namespace, and 11234 # are all built from PIC. 11235 case $host_os in 11236 aix3*) 11237 test "$enable_shared" = yes && enable_static=no 11238 if test -n "$RANLIB"; then 11239 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11240 postinstall_cmds='$RANLIB $lib' 11241 fi 11242 ;; 11243 11244 aix[4-9]*) 11245 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11246 test "$enable_shared" = yes && enable_static=no 11247 fi 11248 ;; 11249 esac 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11251$as_echo "$enable_shared" >&6; } 11252 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11254$as_echo_n "checking whether to build static libraries... " >&6; } 11255 # Make sure either enable_shared or enable_static is yes. 11256 test "$enable_shared" = yes || enable_static=yes 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11258$as_echo "$enable_static" >&6; } 11259 11260 11261 11262 11263fi 11264ac_ext=c 11265ac_cpp='$CPP $CPPFLAGS' 11266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11268ac_compiler_gnu=$ac_cv_c_compiler_gnu 11269 11270CC="$lt_save_CC" 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 ac_config_commands="$ac_config_commands libtool" 11285 11286 11287 11288 11289# Only expand once: 11290 11291 11292 11293# Check for dependencies 11294 11295pkg_failed=no 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FS" >&5 11297$as_echo_n "checking for FS... " >&6; } 11298 11299if test -n "$FS_CFLAGS"; then 11300 pkg_cv_FS_CFLAGS="$FS_CFLAGS" 11301 elif test -n "$PKG_CONFIG"; then 11302 if test -n "$PKG_CONFIG" && \ 11303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\""; } >&5 11304 ($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5 11305 ac_status=$? 11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11307 test $ac_status = 0; }; then 11308 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto fontsproto" 2>/dev/null` 11309else 11310 pkg_failed=yes 11311fi 11312 else 11313 pkg_failed=untried 11314fi 11315if test -n "$FS_LIBS"; then 11316 pkg_cv_FS_LIBS="$FS_LIBS" 11317 elif test -n "$PKG_CONFIG"; then 11318 if test -n "$PKG_CONFIG" && \ 11319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\""; } >&5 11320 ($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5 11321 ac_status=$? 11322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11323 test $ac_status = 0; }; then 11324 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto fontsproto" 2>/dev/null` 11325else 11326 pkg_failed=yes 11327fi 11328 else 11329 pkg_failed=untried 11330fi 11331 11332 11333 11334if test $pkg_failed = yes; then 11335 11336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11337 _pkg_short_errors_supported=yes 11338else 11339 _pkg_short_errors_supported=no 11340fi 11341 if test $_pkg_short_errors_supported = yes; then 11342 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto fontsproto" 2>&1` 11343 else 11344 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto fontsproto" 2>&1` 11345 fi 11346 # Put the nasty error message in config.log where it belongs 11347 echo "$FS_PKG_ERRORS" >&5 11348 11349 as_fn_error $? "Package requirements (xproto fontsproto) were not met: 11350 11351$FS_PKG_ERRORS 11352 11353Consider adjusting the PKG_CONFIG_PATH environment variable if you 11354installed software in a non-standard prefix. 11355 11356Alternatively, you may set the environment variables FS_CFLAGS 11357and FS_LIBS to avoid the need to call pkg-config. 11358See the pkg-config man page for more details. 11359" "$LINENO" 5 11360elif test $pkg_failed = untried; then 11361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11363as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11364is in your PATH or set the PKG_CONFIG environment variable to the full 11365path to pkg-config. 11366 11367Alternatively, you may set the environment variables FS_CFLAGS 11368and FS_LIBS to avoid the need to call pkg-config. 11369See the pkg-config man page for more details. 11370 11371To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11372See \`config.log' for more details" "$LINENO" 5; } 11373else 11374 FS_CFLAGS=$pkg_cv_FS_CFLAGS 11375 FS_LIBS=$pkg_cv_FS_LIBS 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11377$as_echo "yes" >&6; } 11378 : 11379fi 11380 11381# 11382# Split out so we don't include xtrans C flags in fs.pc 11383# 11384 11385pkg_failed=no 11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTRANS" >&5 11387$as_echo_n "checking for XTRANS... " >&6; } 11388 11389if test -n "$XTRANS_CFLAGS"; then 11390 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS" 11391 elif test -n "$PKG_CONFIG"; then 11392 if test -n "$PKG_CONFIG" && \ 11393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5 11394 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 11395 ac_status=$? 11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11397 test $ac_status = 0; }; then 11398 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null` 11399else 11400 pkg_failed=yes 11401fi 11402 else 11403 pkg_failed=untried 11404fi 11405if test -n "$XTRANS_LIBS"; then 11406 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS" 11407 elif test -n "$PKG_CONFIG"; then 11408 if test -n "$PKG_CONFIG" && \ 11409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5 11410 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 11411 ac_status=$? 11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11413 test $ac_status = 0; }; then 11414 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null` 11415else 11416 pkg_failed=yes 11417fi 11418 else 11419 pkg_failed=untried 11420fi 11421 11422 11423 11424if test $pkg_failed = yes; then 11425 11426if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11427 _pkg_short_errors_supported=yes 11428else 11429 _pkg_short_errors_supported=no 11430fi 11431 if test $_pkg_short_errors_supported = yes; then 11432 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1` 11433 else 11434 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1` 11435 fi 11436 # Put the nasty error message in config.log where it belongs 11437 echo "$XTRANS_PKG_ERRORS" >&5 11438 11439 as_fn_error $? "Package requirements (xtrans) were not met: 11440 11441$XTRANS_PKG_ERRORS 11442 11443Consider adjusting the PKG_CONFIG_PATH environment variable if you 11444installed software in a non-standard prefix. 11445 11446Alternatively, you may set the environment variables XTRANS_CFLAGS 11447and XTRANS_LIBS to avoid the need to call pkg-config. 11448See the pkg-config man page for more details. 11449" "$LINENO" 5 11450elif test $pkg_failed = untried; then 11451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11453as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11454is in your PATH or set the PKG_CONFIG environment variable to the full 11455path to pkg-config. 11456 11457Alternatively, you may set the environment variables XTRANS_CFLAGS 11458and XTRANS_LIBS to avoid the need to call pkg-config. 11459See the pkg-config man page for more details. 11460 11461To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11462See \`config.log' for more details" "$LINENO" 5; } 11463else 11464 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS 11465 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11467$as_echo "yes" >&6; } 11468 : 11469fi 11470 11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11472$as_echo_n "checking return type of signal handlers... " >&6; } 11473if ${ac_cv_type_signal+:} false; then : 11474 $as_echo_n "(cached) " >&6 11475else 11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11477/* end confdefs.h. */ 11478#include <sys/types.h> 11479#include <signal.h> 11480 11481int 11482main () 11483{ 11484return *(signal (0, 0)) (0) == 1; 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_compile "$LINENO"; then : 11490 ac_cv_type_signal=int 11491else 11492 ac_cv_type_signal=void 11493fi 11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11497$as_echo "$ac_cv_type_signal" >&6; } 11498 11499cat >>confdefs.h <<_ACEOF 11500#define RETSIGTYPE $ac_cv_type_signal 11501_ACEOF 11502 11503 11504 11505 11506 11507 case $host_os in 11508 mingw*) unixdef="no" ;; 11509 *) unixdef="yes" ;; 11510 esac 11511 # Check whether --enable-unix-transport was given. 11512if test "${enable_unix_transport+set}" = set; then : 11513 enableval=$enable_unix_transport; UNIXCONN=$enableval 11514else 11515 UNIXCONN=$unixdef 11516fi 11517 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 11519$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 11520 if test "$UNIXCONN" = "yes"; then 11521 11522$as_echo "#define UNIXCONN 1" >>confdefs.h 11523 11524 fi 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 11526$as_echo "$UNIXCONN" >&6; } 11527 # Check whether --enable-tcp-transport was given. 11528if test "${enable_tcp_transport+set}" = set; then : 11529 enableval=$enable_tcp_transport; TCPCONN=$enableval 11530else 11531 TCPCONN=yes 11532fi 11533 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 11535$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 11537$as_echo "$TCPCONN" >&6; } 11538 if test "$TCPCONN" = "yes"; then 11539 11540$as_echo "#define TCPCONN 1" >>confdefs.h 11541 11542 11543 # SVR4 hides these in libraries other than libc 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 11545$as_echo_n "checking for library containing socket... " >&6; } 11546if ${ac_cv_search_socket+:} false; then : 11547 $as_echo_n "(cached) " >&6 11548else 11549 ac_func_search_save_LIBS=$LIBS 11550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11551/* end confdefs.h. */ 11552 11553/* Override any GCC internal prototype to avoid an error. 11554 Use char because int might match the return type of a GCC 11555 builtin and then its argument prototype would still apply. */ 11556#ifdef __cplusplus 11557extern "C" 11558#endif 11559char socket (); 11560int 11561main () 11562{ 11563return socket (); 11564 ; 11565 return 0; 11566} 11567_ACEOF 11568for ac_lib in '' socket; do 11569 if test -z "$ac_lib"; then 11570 ac_res="none required" 11571 else 11572 ac_res=-l$ac_lib 11573 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11574 fi 11575 if ac_fn_c_try_link "$LINENO"; then : 11576 ac_cv_search_socket=$ac_res 11577fi 11578rm -f core conftest.err conftest.$ac_objext \ 11579 conftest$ac_exeext 11580 if ${ac_cv_search_socket+:} false; then : 11581 break 11582fi 11583done 11584if ${ac_cv_search_socket+:} false; then : 11585 11586else 11587 ac_cv_search_socket=no 11588fi 11589rm conftest.$ac_ext 11590LIBS=$ac_func_search_save_LIBS 11591fi 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 11593$as_echo "$ac_cv_search_socket" >&6; } 11594ac_res=$ac_cv_search_socket 11595if test "$ac_res" != no; then : 11596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11597 11598fi 11599 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 11601$as_echo_n "checking for library containing gethostbyname... " >&6; } 11602if ${ac_cv_search_gethostbyname+:} false; then : 11603 $as_echo_n "(cached) " >&6 11604else 11605 ac_func_search_save_LIBS=$LIBS 11606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11607/* end confdefs.h. */ 11608 11609/* Override any GCC internal prototype to avoid an error. 11610 Use char because int might match the return type of a GCC 11611 builtin and then its argument prototype would still apply. */ 11612#ifdef __cplusplus 11613extern "C" 11614#endif 11615char gethostbyname (); 11616int 11617main () 11618{ 11619return gethostbyname (); 11620 ; 11621 return 0; 11622} 11623_ACEOF 11624for ac_lib in '' nsl; do 11625 if test -z "$ac_lib"; then 11626 ac_res="none required" 11627 else 11628 ac_res=-l$ac_lib 11629 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11630 fi 11631 if ac_fn_c_try_link "$LINENO"; then : 11632 ac_cv_search_gethostbyname=$ac_res 11633fi 11634rm -f core conftest.err conftest.$ac_objext \ 11635 conftest$ac_exeext 11636 if ${ac_cv_search_gethostbyname+:} false; then : 11637 break 11638fi 11639done 11640if ${ac_cv_search_gethostbyname+:} false; then : 11641 11642else 11643 ac_cv_search_gethostbyname=no 11644fi 11645rm conftest.$ac_ext 11646LIBS=$ac_func_search_save_LIBS 11647fi 11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 11649$as_echo "$ac_cv_search_gethostbyname" >&6; } 11650ac_res=$ac_cv_search_gethostbyname 11651if test "$ac_res" != no; then : 11652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11653 11654fi 11655 11656 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 11658$as_echo_n "checking for main in -lws2_32... " >&6; } 11659if ${ac_cv_lib_ws2_32_main+:} false; then : 11660 $as_echo_n "(cached) " >&6 11661else 11662 ac_check_lib_save_LIBS=$LIBS 11663LIBS="-lws2_32 $LIBS" 11664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11665/* end confdefs.h. */ 11666 11667 11668int 11669main () 11670{ 11671return main (); 11672 ; 11673 return 0; 11674} 11675_ACEOF 11676if ac_fn_c_try_link "$LINENO"; then : 11677 ac_cv_lib_ws2_32_main=yes 11678else 11679 ac_cv_lib_ws2_32_main=no 11680fi 11681rm -f core conftest.err conftest.$ac_objext \ 11682 conftest$ac_exeext conftest.$ac_ext 11683LIBS=$ac_check_lib_save_LIBS 11684fi 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 11686$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 11687if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 11688 cat >>confdefs.h <<_ACEOF 11689#define HAVE_LIBWS2_32 1 11690_ACEOF 11691 11692 LIBS="-lws2_32 $LIBS" 11693 11694fi 11695ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 11696 11697 fi 11698 11699 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 11700 # Check whether --enable-ipv6 was given. 11701if test "${enable_ipv6+set}" = set; then : 11702 enableval=$enable_ipv6; IPV6CONN=$enableval 11703else 11704 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 11705if test "x$ac_cv_func_getaddrinfo" = xyes; then : 11706 IPV6CONN=yes 11707else 11708 IPV6CONN=no 11709fi 11710 11711fi 11712 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 11714$as_echo_n "checking if IPv6 support should be built... " >&6; } 11715 if test "$IPV6CONN" = "yes"; then 11716 11717$as_echo "#define IPv6 1" >>confdefs.h 11718 11719 fi 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 11721$as_echo "$IPV6CONN" >&6; } 11722 11723 # 4.3BSD-Reno added a new member to struct sockaddr_in 11724 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 11725#include <sys/types.h> 11726#include <sys/socket.h> 11727#include <netinet/in.h> 11728 11729" 11730if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 11731 11732$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 11733 11734fi 11735 11736 11737 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 11738 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 11739$ac_includes_default 11740#include <sys/socket.h> 11741" 11742if test "x$ac_cv_type_socklen_t" = xyes; then : 11743 11744cat >>confdefs.h <<_ACEOF 11745#define HAVE_SOCKLEN_T 1 11746_ACEOF 11747 11748 11749fi 11750 11751 11752 11753 fi 11754 case $host_os in 11755 solaris*|sco*|sysv4*) localdef="yes" ;; 11756 *) localdef="no" ;; 11757 esac 11758 # Check whether --enable-local-transport was given. 11759if test "${enable_local_transport+set}" = set; then : 11760 enableval=$enable_local_transport; LOCALCONN=$enableval 11761else 11762 LOCALCONN=$localdef 11763fi 11764 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 11766$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 11768$as_echo "$LOCALCONN" >&6; } 11769 if test "$LOCALCONN" = "yes"; then 11770 11771$as_echo "#define LOCALCONN 1" >>confdefs.h 11772 11773 fi 11774 11775 11776 11777 11778# Check whether --enable-malloc0returnsnull was given. 11779if test "${enable_malloc0returnsnull+set}" = set; then : 11780 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 11781else 11782 MALLOC_ZERO_RETURNS_NULL=auto 11783fi 11784 11785 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 11787$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 11788if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 11789 if test "$cross_compiling" = yes; then : 11790 MALLOC_ZERO_RETURNS_NULL=yes 11791else 11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793/* end confdefs.h. */ 11794 11795char *malloc(); 11796char *realloc(); 11797char *calloc(); 11798main() { 11799 char *m0, *r0, *c0, *p; 11800 m0 = malloc(0); 11801 p = malloc(10); 11802 r0 = realloc(p,0); 11803 c0 = calloc(0); 11804 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 11805} 11806_ACEOF 11807if ac_fn_c_try_run "$LINENO"; then : 11808 MALLOC_ZERO_RETURNS_NULL=yes 11809else 11810 MALLOC_ZERO_RETURNS_NULL=no 11811fi 11812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11813 conftest.$ac_objext conftest.beam conftest.$ac_ext 11814fi 11815 11816fi 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 11818$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 11819 11820if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 11821 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 11822 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 11823 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 11824else 11825 MALLOC_ZERO_CFLAGS="" 11826 XMALLOC_ZERO_CFLAGS="" 11827 XTMALLOC_ZERO_CFLAGS="" 11828fi 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840# Check whether --with-lint was given. 11841if test "${with_lint+set}" = set; then : 11842 withval=$with_lint; use_lint=$withval 11843else 11844 use_lint=no 11845fi 11846 11847 11848# Obtain platform specific info like program name and options 11849# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11850case $host_os in 11851 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11852 lint_name=splint 11853 lint_options="-badflag" 11854 ;; 11855 *freebsd* | *netbsd*) 11856 lint_name=lint 11857 lint_options="-u -b" 11858 ;; 11859 *solaris*) 11860 lint_name=lint 11861 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11862 ;; 11863esac 11864 11865# Test for the presence of the program (either guessed by the code or spelled out by the user) 11866if test "x$use_lint" = x"yes" ; then 11867 # Extract the first word of "$lint_name", so it can be a program name with args. 11868set dummy $lint_name; ac_word=$2 11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11870$as_echo_n "checking for $ac_word... " >&6; } 11871if ${ac_cv_path_LINT+:} false; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 case $LINT in 11875 [\\/]* | ?:[\\/]*) 11876 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11877 ;; 11878 *) 11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11880for as_dir in $PATH 11881do 11882 IFS=$as_save_IFS 11883 test -z "$as_dir" && as_dir=. 11884 for ac_exec_ext in '' $ac_executable_extensions; do 11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11886 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11888 break 2 11889 fi 11890done 11891 done 11892IFS=$as_save_IFS 11893 11894 ;; 11895esac 11896fi 11897LINT=$ac_cv_path_LINT 11898if test -n "$LINT"; then 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11900$as_echo "$LINT" >&6; } 11901else 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11903$as_echo "no" >&6; } 11904fi 11905 11906 11907 if test "x$LINT" = "x"; then 11908 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11909 fi 11910elif test "x$use_lint" = x"no" ; then 11911 if test "x$LINT" != "x"; then 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11913$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11914 fi 11915else 11916 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11917fi 11918 11919# User supplied flags override default flags 11920if test "x$LINT_FLAGS" != "x"; then 11921 lint_options=$LINT_FLAGS 11922fi 11923 11924LINT_FLAGS=$lint_options 11925 11926 if test "x$LINT" != x; then 11927 LINT_TRUE= 11928 LINT_FALSE='#' 11929else 11930 LINT_TRUE='#' 11931 LINT_FALSE= 11932fi 11933 11934 11935 11936 11937 11938# Check whether --enable-lint-library was given. 11939if test "${enable_lint_library+set}" = set; then : 11940 enableval=$enable_lint_library; make_lint_lib=$enableval 11941else 11942 make_lint_lib=no 11943fi 11944 11945 11946if test "x$make_lint_lib" = x"yes" ; then 11947 LINTLIB=llib-lFS.ln 11948 if test "x$LINT" = "x"; then 11949 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 11950 fi 11951elif test "x$make_lint_lib" != x"no" ; then 11952 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 11953fi 11954 11955 11956 if test x$make_lint_lib != xno; then 11957 MAKE_LINT_LIB_TRUE= 11958 MAKE_LINT_LIB_FALSE='#' 11959else 11960 MAKE_LINT_LIB_TRUE='#' 11961 MAKE_LINT_LIB_FALSE= 11962fi 11963 11964 11965 11966 11967 11968ac_config_files="$ac_config_files Makefile src/Makefile libfs.pc" 11969 11970cat >confcache <<\_ACEOF 11971# This file is a shell script that caches the results of configure 11972# tests run on this system so they can be shared between configure 11973# scripts and configure runs, see configure's option --config-cache. 11974# It is not useful on other systems. If it contains results you don't 11975# want to keep, you may remove or edit it. 11976# 11977# config.status only pays attention to the cache file if you give it 11978# the --recheck option to rerun configure. 11979# 11980# `ac_cv_env_foo' variables (set or unset) will be overridden when 11981# loading this file, other *unset* `ac_cv_foo' will be assigned the 11982# following values. 11983 11984_ACEOF 11985 11986# The following way of writing the cache mishandles newlines in values, 11987# but we know of no workaround that is simple, portable, and efficient. 11988# So, we kill variables containing newlines. 11989# Ultrix sh set writes to stderr and can't be redirected directly, 11990# and sets the high bit in the cache file unless we assign to the vars. 11991( 11992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11993 eval ac_val=\$$ac_var 11994 case $ac_val in #( 11995 *${as_nl}*) 11996 case $ac_var in #( 11997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11999 esac 12000 case $ac_var in #( 12001 _ | IFS | as_nl) ;; #( 12002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12003 *) { eval $ac_var=; unset $ac_var;} ;; 12004 esac ;; 12005 esac 12006 done 12007 12008 (set) 2>&1 | 12009 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12010 *${as_nl}ac_space=\ *) 12011 # `set' does not quote correctly, so add quotes: double-quote 12012 # substitution turns \\\\ into \\, and sed turns \\ into \. 12013 sed -n \ 12014 "s/'/'\\\\''/g; 12015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12016 ;; #( 12017 *) 12018 # `set' quotes correctly as required by POSIX, so do not add quotes. 12019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12020 ;; 12021 esac | 12022 sort 12023) | 12024 sed ' 12025 /^ac_cv_env_/b end 12026 t clear 12027 :clear 12028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12029 t end 12030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12031 :end' >>confcache 12032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12033 if test -w "$cache_file"; then 12034 if test "x$cache_file" != "x/dev/null"; then 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12036$as_echo "$as_me: updating cache $cache_file" >&6;} 12037 if test ! -f "$cache_file" || test -h "$cache_file"; then 12038 cat confcache >"$cache_file" 12039 else 12040 case $cache_file in #( 12041 */* | ?:*) 12042 mv -f confcache "$cache_file"$$ && 12043 mv -f "$cache_file"$$ "$cache_file" ;; #( 12044 *) 12045 mv -f confcache "$cache_file" ;; 12046 esac 12047 fi 12048 fi 12049 else 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12051$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12052 fi 12053fi 12054rm -f confcache 12055 12056test "x$prefix" = xNONE && prefix=$ac_default_prefix 12057# Let make expand exec_prefix. 12058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12059 12060DEFS=-DHAVE_CONFIG_H 12061 12062ac_libobjs= 12063ac_ltlibobjs= 12064U= 12065for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12066 # 1. Remove the extension, and $U if already installed. 12067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12068 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12070 # will be set to the directory where LIBOBJS objects are built. 12071 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12072 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12073done 12074LIBOBJS=$ac_libobjs 12075 12076LTLIBOBJS=$ac_ltlibobjs 12077 12078 12079 if test -n "$EXEEXT"; then 12080 am__EXEEXT_TRUE= 12081 am__EXEEXT_FALSE='#' 12082else 12083 am__EXEEXT_TRUE='#' 12084 am__EXEEXT_FALSE= 12085fi 12086 12087if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12088 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12089Usually this means the macro was only invoked conditionally." "$LINENO" 5 12090fi 12091if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12092 as_fn_error $? "conditional \"AMDEP\" was never defined. 12093Usually this means the macro was only invoked conditionally." "$LINENO" 5 12094fi 12095if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12096 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12097Usually this means the macro was only invoked conditionally." "$LINENO" 5 12098fi 12099if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12100 as_fn_error $? "conditional \"LINT\" was never defined. 12101Usually this means the macro was only invoked conditionally." "$LINENO" 5 12102fi 12103if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 12104 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 12105Usually this means the macro was only invoked conditionally." "$LINENO" 5 12106fi 12107 12108: "${CONFIG_STATUS=./config.status}" 12109ac_write_fail=0 12110ac_clean_files_save=$ac_clean_files 12111ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12112{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12113$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12114as_write_fail=0 12115cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12116#! $SHELL 12117# Generated by $as_me. 12118# Run this file to recreate the current configuration. 12119# Compiler output produced by configure, useful for debugging 12120# configure, is in config.log if it exists. 12121 12122debug=false 12123ac_cs_recheck=false 12124ac_cs_silent=false 12125 12126SHELL=\${CONFIG_SHELL-$SHELL} 12127export SHELL 12128_ASEOF 12129cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12130## -------------------- ## 12131## M4sh Initialization. ## 12132## -------------------- ## 12133 12134# Be more Bourne compatible 12135DUALCASE=1; export DUALCASE # for MKS sh 12136if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12137 emulate sh 12138 NULLCMD=: 12139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12140 # is contrary to our usage. Disable this feature. 12141 alias -g '${1+"$@"}'='"$@"' 12142 setopt NO_GLOB_SUBST 12143else 12144 case `(set -o) 2>/dev/null` in #( 12145 *posix*) : 12146 set -o posix ;; #( 12147 *) : 12148 ;; 12149esac 12150fi 12151 12152 12153as_nl=' 12154' 12155export as_nl 12156# Printing a long string crashes Solaris 7 /usr/bin/printf. 12157as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12159as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12160# Prefer a ksh shell builtin over an external printf program on Solaris, 12161# but without wasting forks for bash or zsh. 12162if test -z "$BASH_VERSION$ZSH_VERSION" \ 12163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12164 as_echo='print -r --' 12165 as_echo_n='print -rn --' 12166elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12167 as_echo='printf %s\n' 12168 as_echo_n='printf %s' 12169else 12170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12172 as_echo_n='/usr/ucb/echo -n' 12173 else 12174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12175 as_echo_n_body='eval 12176 arg=$1; 12177 case $arg in #( 12178 *"$as_nl"*) 12179 expr "X$arg" : "X\\(.*\\)$as_nl"; 12180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12181 esac; 12182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12183 ' 12184 export as_echo_n_body 12185 as_echo_n='sh -c $as_echo_n_body as_echo' 12186 fi 12187 export as_echo_body 12188 as_echo='sh -c $as_echo_body as_echo' 12189fi 12190 12191# The user is always right. 12192if test "${PATH_SEPARATOR+set}" != set; then 12193 PATH_SEPARATOR=: 12194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12196 PATH_SEPARATOR=';' 12197 } 12198fi 12199 12200 12201# IFS 12202# We need space, tab and new line, in precisely that order. Quoting is 12203# there to prevent editors from complaining about space-tab. 12204# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12205# splitting by setting IFS to empty value.) 12206IFS=" "" $as_nl" 12207 12208# Find who we are. Look in the path if we contain no directory separator. 12209as_myself= 12210case $0 in #(( 12211 *[\\/]* ) as_myself=$0 ;; 12212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12213for as_dir in $PATH 12214do 12215 IFS=$as_save_IFS 12216 test -z "$as_dir" && as_dir=. 12217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12218 done 12219IFS=$as_save_IFS 12220 12221 ;; 12222esac 12223# We did not find ourselves, most probably we were run as `sh COMMAND' 12224# in which case we are not to be found in the path. 12225if test "x$as_myself" = x; then 12226 as_myself=$0 12227fi 12228if test ! -f "$as_myself"; then 12229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12230 exit 1 12231fi 12232 12233# Unset variables that we do not need and which cause bugs (e.g. in 12234# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12235# suppresses any "Segmentation fault" message there. '((' could 12236# trigger a bug in pdksh 5.2.14. 12237for as_var in BASH_ENV ENV MAIL MAILPATH 12238do eval test x\${$as_var+set} = xset \ 12239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12240done 12241PS1='$ ' 12242PS2='> ' 12243PS4='+ ' 12244 12245# NLS nuisances. 12246LC_ALL=C 12247export LC_ALL 12248LANGUAGE=C 12249export LANGUAGE 12250 12251# CDPATH. 12252(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12253 12254 12255# as_fn_error STATUS ERROR [LINENO LOG_FD] 12256# ---------------------------------------- 12257# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12258# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12259# script with STATUS, using 1 if that was 0. 12260as_fn_error () 12261{ 12262 as_status=$1; test $as_status -eq 0 && as_status=1 12263 if test "$4"; then 12264 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12266 fi 12267 $as_echo "$as_me: error: $2" >&2 12268 as_fn_exit $as_status 12269} # as_fn_error 12270 12271 12272# as_fn_set_status STATUS 12273# ----------------------- 12274# Set $? to STATUS, without forking. 12275as_fn_set_status () 12276{ 12277 return $1 12278} # as_fn_set_status 12279 12280# as_fn_exit STATUS 12281# ----------------- 12282# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12283as_fn_exit () 12284{ 12285 set +e 12286 as_fn_set_status $1 12287 exit $1 12288} # as_fn_exit 12289 12290# as_fn_unset VAR 12291# --------------- 12292# Portably unset VAR. 12293as_fn_unset () 12294{ 12295 { eval $1=; unset $1;} 12296} 12297as_unset=as_fn_unset 12298# as_fn_append VAR VALUE 12299# ---------------------- 12300# Append the text in VALUE to the end of the definition contained in VAR. Take 12301# advantage of any shell optimizations that allow amortized linear growth over 12302# repeated appends, instead of the typical quadratic growth present in naive 12303# implementations. 12304if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12305 eval 'as_fn_append () 12306 { 12307 eval $1+=\$2 12308 }' 12309else 12310 as_fn_append () 12311 { 12312 eval $1=\$$1\$2 12313 } 12314fi # as_fn_append 12315 12316# as_fn_arith ARG... 12317# ------------------ 12318# Perform arithmetic evaluation on the ARGs, and store the result in the 12319# global $as_val. Take advantage of shells that can avoid forks. The arguments 12320# must be portable across $(()) and expr. 12321if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12322 eval 'as_fn_arith () 12323 { 12324 as_val=$(( $* )) 12325 }' 12326else 12327 as_fn_arith () 12328 { 12329 as_val=`expr "$@" || test $? -eq 1` 12330 } 12331fi # as_fn_arith 12332 12333 12334if expr a : '\(a\)' >/dev/null 2>&1 && 12335 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12336 as_expr=expr 12337else 12338 as_expr=false 12339fi 12340 12341if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12342 as_basename=basename 12343else 12344 as_basename=false 12345fi 12346 12347if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12348 as_dirname=dirname 12349else 12350 as_dirname=false 12351fi 12352 12353as_me=`$as_basename -- "$0" || 12354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12355 X"$0" : 'X\(//\)$' \| \ 12356 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12357$as_echo X/"$0" | 12358 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12359 s//\1/ 12360 q 12361 } 12362 /^X\/\(\/\/\)$/{ 12363 s//\1/ 12364 q 12365 } 12366 /^X\/\(\/\).*/{ 12367 s//\1/ 12368 q 12369 } 12370 s/.*/./; q'` 12371 12372# Avoid depending upon Character Ranges. 12373as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12374as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12375as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12376as_cr_digits='0123456789' 12377as_cr_alnum=$as_cr_Letters$as_cr_digits 12378 12379ECHO_C= ECHO_N= ECHO_T= 12380case `echo -n x` in #((((( 12381-n*) 12382 case `echo 'xy\c'` in 12383 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12384 xy) ECHO_C='\c';; 12385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12386 ECHO_T=' ';; 12387 esac;; 12388*) 12389 ECHO_N='-n';; 12390esac 12391 12392rm -f conf$$ conf$$.exe conf$$.file 12393if test -d conf$$.dir; then 12394 rm -f conf$$.dir/conf$$.file 12395else 12396 rm -f conf$$.dir 12397 mkdir conf$$.dir 2>/dev/null 12398fi 12399if (echo >conf$$.file) 2>/dev/null; then 12400 if ln -s conf$$.file conf$$ 2>/dev/null; then 12401 as_ln_s='ln -s' 12402 # ... but there are two gotchas: 12403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12405 # In both cases, we have to default to `cp -p'. 12406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12407 as_ln_s='cp -p' 12408 elif ln conf$$.file conf$$ 2>/dev/null; then 12409 as_ln_s=ln 12410 else 12411 as_ln_s='cp -p' 12412 fi 12413else 12414 as_ln_s='cp -p' 12415fi 12416rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12417rmdir conf$$.dir 2>/dev/null 12418 12419 12420# as_fn_mkdir_p 12421# ------------- 12422# Create "$as_dir" as a directory, including parents if necessary. 12423as_fn_mkdir_p () 12424{ 12425 12426 case $as_dir in #( 12427 -*) as_dir=./$as_dir;; 12428 esac 12429 test -d "$as_dir" || eval $as_mkdir_p || { 12430 as_dirs= 12431 while :; do 12432 case $as_dir in #( 12433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12434 *) as_qdir=$as_dir;; 12435 esac 12436 as_dirs="'$as_qdir' $as_dirs" 12437 as_dir=`$as_dirname -- "$as_dir" || 12438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12439 X"$as_dir" : 'X\(//\)[^/]' \| \ 12440 X"$as_dir" : 'X\(//\)$' \| \ 12441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12442$as_echo X"$as_dir" | 12443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12444 s//\1/ 12445 q 12446 } 12447 /^X\(\/\/\)[^/].*/{ 12448 s//\1/ 12449 q 12450 } 12451 /^X\(\/\/\)$/{ 12452 s//\1/ 12453 q 12454 } 12455 /^X\(\/\).*/{ 12456 s//\1/ 12457 q 12458 } 12459 s/.*/./; q'` 12460 test -d "$as_dir" && break 12461 done 12462 test -z "$as_dirs" || eval "mkdir $as_dirs" 12463 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12464 12465 12466} # as_fn_mkdir_p 12467if mkdir -p . 2>/dev/null; then 12468 as_mkdir_p='mkdir -p "$as_dir"' 12469else 12470 test -d ./-p && rmdir ./-p 12471 as_mkdir_p=false 12472fi 12473 12474if test -x / >/dev/null 2>&1; then 12475 as_test_x='test -x' 12476else 12477 if ls -dL / >/dev/null 2>&1; then 12478 as_ls_L_option=L 12479 else 12480 as_ls_L_option= 12481 fi 12482 as_test_x=' 12483 eval sh -c '\'' 12484 if test -d "$1"; then 12485 test -d "$1/."; 12486 else 12487 case $1 in #( 12488 -*)set "./$1";; 12489 esac; 12490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12491 ???[sx]*):;;*)false;;esac;fi 12492 '\'' sh 12493 ' 12494fi 12495as_executable_p=$as_test_x 12496 12497# Sed expression to map a string onto a valid CPP name. 12498as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12499 12500# Sed expression to map a string onto a valid variable name. 12501as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12502 12503 12504exec 6>&1 12505## ----------------------------------- ## 12506## Main body of $CONFIG_STATUS script. ## 12507## ----------------------------------- ## 12508_ASEOF 12509test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12510 12511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12512# Save the log message, to keep $0 and so on meaningful, and to 12513# report actual input values of CONFIG_FILES etc. instead of their 12514# values after options handling. 12515ac_log=" 12516This file was extended by libFS $as_me 1.0.3, which was 12517generated by GNU Autoconf 2.68. Invocation command line was 12518 12519 CONFIG_FILES = $CONFIG_FILES 12520 CONFIG_HEADERS = $CONFIG_HEADERS 12521 CONFIG_LINKS = $CONFIG_LINKS 12522 CONFIG_COMMANDS = $CONFIG_COMMANDS 12523 $ $0 $@ 12524 12525on `(hostname || uname -n) 2>/dev/null | sed 1q` 12526" 12527 12528_ACEOF 12529 12530case $ac_config_files in *" 12531"*) set x $ac_config_files; shift; ac_config_files=$*;; 12532esac 12533 12534case $ac_config_headers in *" 12535"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12536esac 12537 12538 12539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12540# Files that config.status was made for. 12541config_files="$ac_config_files" 12542config_headers="$ac_config_headers" 12543config_commands="$ac_config_commands" 12544 12545_ACEOF 12546 12547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12548ac_cs_usage="\ 12549\`$as_me' instantiates files and other configuration actions 12550from templates according to the current configuration. Unless the files 12551and actions are specified as TAGs, all are instantiated by default. 12552 12553Usage: $0 [OPTION]... [TAG]... 12554 12555 -h, --help print this help, then exit 12556 -V, --version print version number and configuration settings, then exit 12557 --config print configuration, then exit 12558 -q, --quiet, --silent 12559 do not print progress messages 12560 -d, --debug don't remove temporary files 12561 --recheck update $as_me by reconfiguring in the same conditions 12562 --file=FILE[:TEMPLATE] 12563 instantiate the configuration file FILE 12564 --header=FILE[:TEMPLATE] 12565 instantiate the configuration header FILE 12566 12567Configuration files: 12568$config_files 12569 12570Configuration headers: 12571$config_headers 12572 12573Configuration commands: 12574$config_commands 12575 12576Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12577 12578_ACEOF 12579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12580ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12581ac_cs_version="\\ 12582libFS config.status 1.0.3 12583configured by $0, generated by GNU Autoconf 2.68, 12584 with options \\"\$ac_cs_config\\" 12585 12586Copyright (C) 2010 Free Software Foundation, Inc. 12587This config.status script is free software; the Free Software Foundation 12588gives unlimited permission to copy, distribute and modify it." 12589 12590ac_pwd='$ac_pwd' 12591srcdir='$srcdir' 12592INSTALL='$INSTALL' 12593MKDIR_P='$MKDIR_P' 12594AWK='$AWK' 12595test -n "\$AWK" || AWK=awk 12596_ACEOF 12597 12598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12599# The default lists apply if the user does not specify any file. 12600ac_need_defaults=: 12601while test $# != 0 12602do 12603 case $1 in 12604 --*=?*) 12605 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12607 ac_shift=: 12608 ;; 12609 --*=) 12610 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12611 ac_optarg= 12612 ac_shift=: 12613 ;; 12614 *) 12615 ac_option=$1 12616 ac_optarg=$2 12617 ac_shift=shift 12618 ;; 12619 esac 12620 12621 case $ac_option in 12622 # Handling of the options. 12623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12624 ac_cs_recheck=: ;; 12625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12626 $as_echo "$ac_cs_version"; exit ;; 12627 --config | --confi | --conf | --con | --co | --c ) 12628 $as_echo "$ac_cs_config"; exit ;; 12629 --debug | --debu | --deb | --de | --d | -d ) 12630 debug=: ;; 12631 --file | --fil | --fi | --f ) 12632 $ac_shift 12633 case $ac_optarg in 12634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12635 '') as_fn_error $? "missing file argument" ;; 12636 esac 12637 as_fn_append CONFIG_FILES " '$ac_optarg'" 12638 ac_need_defaults=false;; 12639 --header | --heade | --head | --hea ) 12640 $ac_shift 12641 case $ac_optarg in 12642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12643 esac 12644 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12645 ac_need_defaults=false;; 12646 --he | --h) 12647 # Conflict between --help and --header 12648 as_fn_error $? "ambiguous option: \`$1' 12649Try \`$0 --help' for more information.";; 12650 --help | --hel | -h ) 12651 $as_echo "$ac_cs_usage"; exit ;; 12652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12653 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12654 ac_cs_silent=: ;; 12655 12656 # This is an error. 12657 -*) as_fn_error $? "unrecognized option: \`$1' 12658Try \`$0 --help' for more information." ;; 12659 12660 *) as_fn_append ac_config_targets " $1" 12661 ac_need_defaults=false ;; 12662 12663 esac 12664 shift 12665done 12666 12667ac_configure_extra_args= 12668 12669if $ac_cs_silent; then 12670 exec 6>/dev/null 12671 ac_configure_extra_args="$ac_configure_extra_args --silent" 12672fi 12673 12674_ACEOF 12675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12676if \$ac_cs_recheck; then 12677 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12678 shift 12679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12680 CONFIG_SHELL='$SHELL' 12681 export CONFIG_SHELL 12682 exec "\$@" 12683fi 12684 12685_ACEOF 12686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12687exec 5>>config.log 12688{ 12689 echo 12690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12691## Running $as_me. ## 12692_ASBOX 12693 $as_echo "$ac_log" 12694} >&5 12695 12696_ACEOF 12697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12698# 12699# INIT-COMMANDS 12700# 12701AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12702 12703 12704# The HP-UX ksh and POSIX shell print the target directory to stdout 12705# if CDPATH is set. 12706(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12707 12708sed_quote_subst='$sed_quote_subst' 12709double_quote_subst='$double_quote_subst' 12710delay_variable_subst='$delay_variable_subst' 12711macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12712macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12713enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12714enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12715pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12716enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12717SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12718ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12719host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12720host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12721host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12722build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12723build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12724build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12725SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12726Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12727GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12728EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12729FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12730LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12731NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12732LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12733max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12734ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12735exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12736lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12737lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12738lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12739reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12740reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12741OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12742deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12743file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12744AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12745AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12746STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12747RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12748old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12749old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12750old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12751lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12752CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12753CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12754compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12755GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12756lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12757lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12758lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12759lt_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"`' 12760objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12761MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12762lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12763lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12764lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12765lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12766lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12767need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12768DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12769NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12770LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12771OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12772OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12773libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12774shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12775extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12776archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12777enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12778export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12779whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12780compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12781old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12782old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12783archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12784archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12785module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12786module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12787with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12788allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12789no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12790hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12791hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12792hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12793hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12794hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12795hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12796hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12797hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12798inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12799link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12800fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12801always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12802export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12803exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12804include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12805prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12806file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12807variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12808need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12809need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12810version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12811runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12812shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12813shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12814libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12815library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12816soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12817install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12818postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12819postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12820finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12821finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12822hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12823sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12824sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12825hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12826enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12827enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12828enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12829old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12830striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12831 12832LTCC='$LTCC' 12833LTCFLAGS='$LTCFLAGS' 12834compiler='$compiler_DEFAULT' 12835 12836# A function that is used when there is no print builtin or printf. 12837func_fallback_echo () 12838{ 12839 eval 'cat <<_LTECHO_EOF 12840\$1 12841_LTECHO_EOF' 12842} 12843 12844# Quote evaled strings. 12845for var in SHELL \ 12846ECHO \ 12847SED \ 12848GREP \ 12849EGREP \ 12850FGREP \ 12851LD \ 12852NM \ 12853LN_S \ 12854lt_SP2NL \ 12855lt_NL2SP \ 12856reload_flag \ 12857OBJDUMP \ 12858deplibs_check_method \ 12859file_magic_cmd \ 12860AR \ 12861AR_FLAGS \ 12862STRIP \ 12863RANLIB \ 12864CC \ 12865CFLAGS \ 12866compiler \ 12867lt_cv_sys_global_symbol_pipe \ 12868lt_cv_sys_global_symbol_to_cdecl \ 12869lt_cv_sys_global_symbol_to_c_name_address \ 12870lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12871lt_prog_compiler_no_builtin_flag \ 12872lt_prog_compiler_wl \ 12873lt_prog_compiler_pic \ 12874lt_prog_compiler_static \ 12875lt_cv_prog_compiler_c_o \ 12876need_locks \ 12877DSYMUTIL \ 12878NMEDIT \ 12879LIPO \ 12880OTOOL \ 12881OTOOL64 \ 12882shrext_cmds \ 12883export_dynamic_flag_spec \ 12884whole_archive_flag_spec \ 12885compiler_needs_object \ 12886with_gnu_ld \ 12887allow_undefined_flag \ 12888no_undefined_flag \ 12889hardcode_libdir_flag_spec \ 12890hardcode_libdir_flag_spec_ld \ 12891hardcode_libdir_separator \ 12892fix_srcfile_path \ 12893exclude_expsyms \ 12894include_expsyms \ 12895file_list_spec \ 12896variables_saved_for_relink \ 12897libname_spec \ 12898library_names_spec \ 12899soname_spec \ 12900install_override_mode \ 12901finish_eval \ 12902old_striplib \ 12903striplib; do 12904 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12905 *[\\\\\\\`\\"\\\$]*) 12906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12907 ;; 12908 *) 12909 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12910 ;; 12911 esac 12912done 12913 12914# Double-quote double-evaled strings. 12915for var in reload_cmds \ 12916old_postinstall_cmds \ 12917old_postuninstall_cmds \ 12918old_archive_cmds \ 12919extract_expsyms_cmds \ 12920old_archive_from_new_cmds \ 12921old_archive_from_expsyms_cmds \ 12922archive_cmds \ 12923archive_expsym_cmds \ 12924module_cmds \ 12925module_expsym_cmds \ 12926export_symbols_cmds \ 12927prelink_cmds \ 12928postinstall_cmds \ 12929postuninstall_cmds \ 12930finish_cmds \ 12931sys_lib_search_path_spec \ 12932sys_lib_dlsearch_path_spec; do 12933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12934 *[\\\\\\\`\\"\\\$]*) 12935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12936 ;; 12937 *) 12938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12939 ;; 12940 esac 12941done 12942 12943ac_aux_dir='$ac_aux_dir' 12944xsi_shell='$xsi_shell' 12945lt_shell_append='$lt_shell_append' 12946 12947# See if we are running on zsh, and set the options which allow our 12948# commands through without removal of \ escapes INIT. 12949if test -n "\${ZSH_VERSION+set}" ; then 12950 setopt NO_GLOB_SUBST 12951fi 12952 12953 12954 PACKAGE='$PACKAGE' 12955 VERSION='$VERSION' 12956 TIMESTAMP='$TIMESTAMP' 12957 RM='$RM' 12958 ofile='$ofile' 12959 12960 12961 12962 12963_ACEOF 12964 12965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12966 12967# Handling of arguments. 12968for ac_config_target in $ac_config_targets 12969do 12970 case $ac_config_target in 12971 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12973 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12975 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12976 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;; 12977 12978 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12979 esac 12980done 12981 12982 12983# If the user did not use the arguments to specify the items to instantiate, 12984# then the envvar interface is used. Set only those that are not. 12985# We use the long form for the default assignment because of an extremely 12986# bizarre bug on SunOS 4.1.3. 12987if $ac_need_defaults; then 12988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12991fi 12992 12993# Have a temporary directory for convenience. Make it in the build tree 12994# simply because there is no reason against having it here, and in addition, 12995# creating and moving files from /tmp can sometimes cause problems. 12996# Hook for its removal unless debugging. 12997# Note that there is a small window in which the directory will not be cleaned: 12998# after its creation but before its name has been assigned to `$tmp'. 12999$debug || 13000{ 13001 tmp= ac_tmp= 13002 trap 'exit_status=$? 13003 : "${ac_tmp:=$tmp}" 13004 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13005' 0 13006 trap 'as_fn_exit 1' 1 2 13 15 13007} 13008# Create a (secure) tmp directory for tmp files. 13009 13010{ 13011 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13012 test -d "$tmp" 13013} || 13014{ 13015 tmp=./conf$$-$RANDOM 13016 (umask 077 && mkdir "$tmp") 13017} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13018ac_tmp=$tmp 13019 13020# Set up the scripts for CONFIG_FILES section. 13021# No need to generate them if there are no CONFIG_FILES. 13022# This happens for instance with `./config.status config.h'. 13023if test -n "$CONFIG_FILES"; then 13024 13025 13026ac_cr=`echo X | tr X '\015'` 13027# On cygwin, bash can eat \r inside `` if the user requested igncr. 13028# But we know of no other shell where ac_cr would be empty at this 13029# point, so we can use a bashism as a fallback. 13030if test "x$ac_cr" = x; then 13031 eval ac_cr=\$\'\\r\' 13032fi 13033ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13034if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13035 ac_cs_awk_cr='\\r' 13036else 13037 ac_cs_awk_cr=$ac_cr 13038fi 13039 13040echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13041_ACEOF 13042 13043 13044{ 13045 echo "cat >conf$$subs.awk <<_ACEOF" && 13046 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13047 echo "_ACEOF" 13048} >conf$$subs.sh || 13049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13050ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13051ac_delim='%!_!# ' 13052for ac_last_try in false false false false false :; do 13053 . ./conf$$subs.sh || 13054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13055 13056 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13057 if test $ac_delim_n = $ac_delim_num; then 13058 break 13059 elif $ac_last_try; then 13060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13061 else 13062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13063 fi 13064done 13065rm -f conf$$subs.sh 13066 13067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13068cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13069_ACEOF 13070sed -n ' 13071h 13072s/^/S["/; s/!.*/"]=/ 13073p 13074g 13075s/^[^!]*!// 13076:repl 13077t repl 13078s/'"$ac_delim"'$// 13079t delim 13080:nl 13081h 13082s/\(.\{148\}\)..*/\1/ 13083t more1 13084s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13085p 13086n 13087b repl 13088:more1 13089s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13090p 13091g 13092s/.\{148\}// 13093t nl 13094:delim 13095h 13096s/\(.\{148\}\)..*/\1/ 13097t more2 13098s/["\\]/\\&/g; s/^/"/; s/$/"/ 13099p 13100b 13101:more2 13102s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13103p 13104g 13105s/.\{148\}// 13106t delim 13107' <conf$$subs.awk | sed ' 13108/^[^""]/{ 13109 N 13110 s/\n// 13111} 13112' >>$CONFIG_STATUS || ac_write_fail=1 13113rm -f conf$$subs.awk 13114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13115_ACAWK 13116cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13117 for (key in S) S_is_set[key] = 1 13118 FS = "" 13119 13120} 13121{ 13122 line = $ 0 13123 nfields = split(line, field, "@") 13124 substed = 0 13125 len = length(field[1]) 13126 for (i = 2; i < nfields; i++) { 13127 key = field[i] 13128 keylen = length(key) 13129 if (S_is_set[key]) { 13130 value = S[key] 13131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13132 len += length(value) + length(field[++i]) 13133 substed = 1 13134 } else 13135 len += 1 + keylen 13136 } 13137 13138 print line 13139} 13140 13141_ACAWK 13142_ACEOF 13143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13146else 13147 cat 13148fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13150_ACEOF 13151 13152# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13153# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13154# trailing colons and then remove the whole line if VPATH becomes empty 13155# (actually we leave an empty line to preserve line numbers). 13156if test "x$srcdir" = x.; then 13157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13158h 13159s/// 13160s/^/:/ 13161s/[ ]*$/:/ 13162s/:\$(srcdir):/:/g 13163s/:\${srcdir}:/:/g 13164s/:@srcdir@:/:/g 13165s/^:*// 13166s/:*$// 13167x 13168s/\(=[ ]*\).*/\1/ 13169G 13170s/\n// 13171s/^[^=]*=[ ]*$// 13172}' 13173fi 13174 13175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13176fi # test -n "$CONFIG_FILES" 13177 13178# Set up the scripts for CONFIG_HEADERS section. 13179# No need to generate them if there are no CONFIG_HEADERS. 13180# This happens for instance with `./config.status Makefile'. 13181if test -n "$CONFIG_HEADERS"; then 13182cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13183BEGIN { 13184_ACEOF 13185 13186# Transform confdefs.h into an awk script `defines.awk', embedded as 13187# here-document in config.status, that substitutes the proper values into 13188# config.h.in to produce config.h. 13189 13190# Create a delimiter string that does not exist in confdefs.h, to ease 13191# handling of long lines. 13192ac_delim='%!_!# ' 13193for ac_last_try in false false :; do 13194 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13195 if test -z "$ac_tt"; then 13196 break 13197 elif $ac_last_try; then 13198 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13199 else 13200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13201 fi 13202done 13203 13204# For the awk script, D is an array of macro values keyed by name, 13205# likewise P contains macro parameters if any. Preserve backslash 13206# newline sequences. 13207 13208ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13209sed -n ' 13210s/.\{148\}/&'"$ac_delim"'/g 13211t rset 13212:rset 13213s/^[ ]*#[ ]*define[ ][ ]*/ / 13214t def 13215d 13216:def 13217s/\\$// 13218t bsnl 13219s/["\\]/\\&/g 13220s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13221D["\1"]=" \3"/p 13222s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13223d 13224:bsnl 13225s/["\\]/\\&/g 13226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13227D["\1"]=" \3\\\\\\n"\\/p 13228t cont 13229s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13230t cont 13231d 13232:cont 13233n 13234s/.\{148\}/&'"$ac_delim"'/g 13235t clear 13236:clear 13237s/\\$// 13238t bsnlc 13239s/["\\]/\\&/g; s/^/"/; s/$/"/p 13240d 13241:bsnlc 13242s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13243b cont 13244' <confdefs.h | sed ' 13245s/'"$ac_delim"'/"\\\ 13246"/g' >>$CONFIG_STATUS || ac_write_fail=1 13247 13248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13249 for (key in D) D_is_set[key] = 1 13250 FS = "" 13251} 13252/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13253 line = \$ 0 13254 split(line, arg, " ") 13255 if (arg[1] == "#") { 13256 defundef = arg[2] 13257 mac1 = arg[3] 13258 } else { 13259 defundef = substr(arg[1], 2) 13260 mac1 = arg[2] 13261 } 13262 split(mac1, mac2, "(") #) 13263 macro = mac2[1] 13264 prefix = substr(line, 1, index(line, defundef) - 1) 13265 if (D_is_set[macro]) { 13266 # Preserve the white space surrounding the "#". 13267 print prefix "define", macro P[macro] D[macro] 13268 next 13269 } else { 13270 # Replace #undef with comments. This is necessary, for example, 13271 # in the case of _POSIX_SOURCE, which is predefined and required 13272 # on some systems where configure will not decide to define it. 13273 if (defundef == "undef") { 13274 print "/*", prefix defundef, macro, "*/" 13275 next 13276 } 13277 } 13278} 13279{ print } 13280_ACAWK 13281_ACEOF 13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13283 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13284fi # test -n "$CONFIG_HEADERS" 13285 13286 13287eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13288shift 13289for ac_tag 13290do 13291 case $ac_tag in 13292 :[FHLC]) ac_mode=$ac_tag; continue;; 13293 esac 13294 case $ac_mode$ac_tag in 13295 :[FHL]*:*);; 13296 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13297 :[FH]-) ac_tag=-:-;; 13298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13299 esac 13300 ac_save_IFS=$IFS 13301 IFS=: 13302 set x $ac_tag 13303 IFS=$ac_save_IFS 13304 shift 13305 ac_file=$1 13306 shift 13307 13308 case $ac_mode in 13309 :L) ac_source=$1;; 13310 :[FH]) 13311 ac_file_inputs= 13312 for ac_f 13313 do 13314 case $ac_f in 13315 -) ac_f="$ac_tmp/stdin";; 13316 *) # Look for the file first in the build tree, then in the source tree 13317 # (if the path is not absolute). The absolute path cannot be DOS-style, 13318 # because $ac_f cannot contain `:'. 13319 test -f "$ac_f" || 13320 case $ac_f in 13321 [\\/$]*) false;; 13322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13323 esac || 13324 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13325 esac 13326 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13327 as_fn_append ac_file_inputs " '$ac_f'" 13328 done 13329 13330 # Let's still pretend it is `configure' which instantiates (i.e., don't 13331 # use $as_me), people would be surprised to read: 13332 # /* config.h. Generated by config.status. */ 13333 configure_input='Generated from '` 13334 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13335 `' by configure.' 13336 if test x"$ac_file" != x-; then 13337 configure_input="$ac_file. $configure_input" 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13339$as_echo "$as_me: creating $ac_file" >&6;} 13340 fi 13341 # Neutralize special characters interpreted by sed in replacement strings. 13342 case $configure_input in #( 13343 *\&* | *\|* | *\\* ) 13344 ac_sed_conf_input=`$as_echo "$configure_input" | 13345 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13346 *) ac_sed_conf_input=$configure_input;; 13347 esac 13348 13349 case $ac_tag in 13350 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13352 esac 13353 ;; 13354 esac 13355 13356 ac_dir=`$as_dirname -- "$ac_file" || 13357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13358 X"$ac_file" : 'X\(//\)[^/]' \| \ 13359 X"$ac_file" : 'X\(//\)$' \| \ 13360 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13361$as_echo X"$ac_file" | 13362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13363 s//\1/ 13364 q 13365 } 13366 /^X\(\/\/\)[^/].*/{ 13367 s//\1/ 13368 q 13369 } 13370 /^X\(\/\/\)$/{ 13371 s//\1/ 13372 q 13373 } 13374 /^X\(\/\).*/{ 13375 s//\1/ 13376 q 13377 } 13378 s/.*/./; q'` 13379 as_dir="$ac_dir"; as_fn_mkdir_p 13380 ac_builddir=. 13381 13382case "$ac_dir" in 13383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13384*) 13385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13386 # A ".." for each directory in $ac_dir_suffix. 13387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13388 case $ac_top_builddir_sub in 13389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13391 esac ;; 13392esac 13393ac_abs_top_builddir=$ac_pwd 13394ac_abs_builddir=$ac_pwd$ac_dir_suffix 13395# for backward compatibility: 13396ac_top_builddir=$ac_top_build_prefix 13397 13398case $srcdir in 13399 .) # We are building in place. 13400 ac_srcdir=. 13401 ac_top_srcdir=$ac_top_builddir_sub 13402 ac_abs_top_srcdir=$ac_pwd ;; 13403 [\\/]* | ?:[\\/]* ) # Absolute name. 13404 ac_srcdir=$srcdir$ac_dir_suffix; 13405 ac_top_srcdir=$srcdir 13406 ac_abs_top_srcdir=$srcdir ;; 13407 *) # Relative name. 13408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13409 ac_top_srcdir=$ac_top_build_prefix$srcdir 13410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13411esac 13412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13413 13414 13415 case $ac_mode in 13416 :F) 13417 # 13418 # CONFIG_FILE 13419 # 13420 13421 case $INSTALL in 13422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13424 esac 13425 ac_MKDIR_P=$MKDIR_P 13426 case $MKDIR_P in 13427 [\\/$]* | ?:[\\/]* ) ;; 13428 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13429 esac 13430_ACEOF 13431 13432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13433# If the template does not know about datarootdir, expand it. 13434# FIXME: This hack should be removed a few years after 2.60. 13435ac_datarootdir_hack=; ac_datarootdir_seen= 13436ac_sed_dataroot=' 13437/datarootdir/ { 13438 p 13439 q 13440} 13441/@datadir@/p 13442/@docdir@/p 13443/@infodir@/p 13444/@localedir@/p 13445/@mandir@/p' 13446case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13447*datarootdir*) ac_datarootdir_seen=yes;; 13448*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13450$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13451_ACEOF 13452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13453 ac_datarootdir_hack=' 13454 s&@datadir@&$datadir&g 13455 s&@docdir@&$docdir&g 13456 s&@infodir@&$infodir&g 13457 s&@localedir@&$localedir&g 13458 s&@mandir@&$mandir&g 13459 s&\\\${datarootdir}&$datarootdir&g' ;; 13460esac 13461_ACEOF 13462 13463# Neutralize VPATH when `$srcdir' = `.'. 13464# Shell code in configure.ac might set extrasub. 13465# FIXME: do we really want to maintain this feature? 13466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13467ac_sed_extra="$ac_vpsub 13468$extrasub 13469_ACEOF 13470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13471:t 13472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13473s|@configure_input@|$ac_sed_conf_input|;t t 13474s&@top_builddir@&$ac_top_builddir_sub&;t t 13475s&@top_build_prefix@&$ac_top_build_prefix&;t t 13476s&@srcdir@&$ac_srcdir&;t t 13477s&@abs_srcdir@&$ac_abs_srcdir&;t t 13478s&@top_srcdir@&$ac_top_srcdir&;t t 13479s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13480s&@builddir@&$ac_builddir&;t t 13481s&@abs_builddir@&$ac_abs_builddir&;t t 13482s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13483s&@INSTALL@&$ac_INSTALL&;t t 13484s&@MKDIR_P@&$ac_MKDIR_P&;t t 13485$ac_datarootdir_hack 13486" 13487eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13488 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13489 13490test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13491 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13493 "$ac_tmp/out"`; test -z "$ac_out"; } && 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13495which seems to be undefined. Please make sure it is defined" >&5 13496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13497which seems to be undefined. Please make sure it is defined" >&2;} 13498 13499 rm -f "$ac_tmp/stdin" 13500 case $ac_file in 13501 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13502 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13503 esac \ 13504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13505 ;; 13506 :H) 13507 # 13508 # CONFIG_HEADER 13509 # 13510 if test x"$ac_file" != x-; then 13511 { 13512 $as_echo "/* $configure_input */" \ 13513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13514 } >"$ac_tmp/config.h" \ 13515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13516 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13518$as_echo "$as_me: $ac_file is unchanged" >&6;} 13519 else 13520 rm -f "$ac_file" 13521 mv "$ac_tmp/config.h" "$ac_file" \ 13522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13523 fi 13524 else 13525 $as_echo "/* $configure_input */" \ 13526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13527 || as_fn_error $? "could not create -" "$LINENO" 5 13528 fi 13529# Compute "$ac_file"'s index in $config_headers. 13530_am_arg="$ac_file" 13531_am_stamp_count=1 13532for _am_header in $config_headers :; do 13533 case $_am_header in 13534 $_am_arg | $_am_arg:* ) 13535 break ;; 13536 * ) 13537 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13538 esac 13539done 13540echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13541$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13542 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13543 X"$_am_arg" : 'X\(//\)$' \| \ 13544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13545$as_echo X"$_am_arg" | 13546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13547 s//\1/ 13548 q 13549 } 13550 /^X\(\/\/\)[^/].*/{ 13551 s//\1/ 13552 q 13553 } 13554 /^X\(\/\/\)$/{ 13555 s//\1/ 13556 q 13557 } 13558 /^X\(\/\).*/{ 13559 s//\1/ 13560 q 13561 } 13562 s/.*/./; q'`/stamp-h$_am_stamp_count 13563 ;; 13564 13565 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13566$as_echo "$as_me: executing $ac_file commands" >&6;} 13567 ;; 13568 esac 13569 13570 13571 case $ac_file$ac_mode in 13572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13573 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13574 # are listed without --file. Let's play safe and only enable the eval 13575 # if we detect the quoting. 13576 case $CONFIG_FILES in 13577 *\'*) eval set x "$CONFIG_FILES" ;; 13578 *) set x $CONFIG_FILES ;; 13579 esac 13580 shift 13581 for mf 13582 do 13583 # Strip MF so we end up with the name of the file. 13584 mf=`echo "$mf" | sed -e 's/:.*$//'` 13585 # Check whether this is an Automake generated Makefile or not. 13586 # We used to match only the files named `Makefile.in', but 13587 # some people rename them; so instead we look at the file content. 13588 # Grep'ing the first line is not enough: some people post-process 13589 # each Makefile.in and add a new line on top of each file to say so. 13590 # Grep'ing the whole file is not good either: AIX grep has a line 13591 # limit of 2048, but all sed's we know have understand at least 4000. 13592 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13593 dirpart=`$as_dirname -- "$mf" || 13594$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13595 X"$mf" : 'X\(//\)[^/]' \| \ 13596 X"$mf" : 'X\(//\)$' \| \ 13597 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13598$as_echo X"$mf" | 13599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13600 s//\1/ 13601 q 13602 } 13603 /^X\(\/\/\)[^/].*/{ 13604 s//\1/ 13605 q 13606 } 13607 /^X\(\/\/\)$/{ 13608 s//\1/ 13609 q 13610 } 13611 /^X\(\/\).*/{ 13612 s//\1/ 13613 q 13614 } 13615 s/.*/./; q'` 13616 else 13617 continue 13618 fi 13619 # Extract the definition of DEPDIR, am__include, and am__quote 13620 # from the Makefile without running `make'. 13621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13622 test -z "$DEPDIR" && continue 13623 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13624 test -z "am__include" && continue 13625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13626 # When using ansi2knr, U may be empty or an underscore; expand it 13627 U=`sed -n 's/^U = //p' < "$mf"` 13628 # Find all dependency output files, they are included files with 13629 # $(DEPDIR) in their names. We invoke sed twice because it is the 13630 # simplest approach to changing $(DEPDIR) to its actual value in the 13631 # expansion. 13632 for file in `sed -n " 13633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13635 # Make sure the directory exists. 13636 test -f "$dirpart/$file" && continue 13637 fdir=`$as_dirname -- "$file" || 13638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13639 X"$file" : 'X\(//\)[^/]' \| \ 13640 X"$file" : 'X\(//\)$' \| \ 13641 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13642$as_echo X"$file" | 13643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13644 s//\1/ 13645 q 13646 } 13647 /^X\(\/\/\)[^/].*/{ 13648 s//\1/ 13649 q 13650 } 13651 /^X\(\/\/\)$/{ 13652 s//\1/ 13653 q 13654 } 13655 /^X\(\/\).*/{ 13656 s//\1/ 13657 q 13658 } 13659 s/.*/./; q'` 13660 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13661 # echo "creating $dirpart/$file" 13662 echo '# dummy' > "$dirpart/$file" 13663 done 13664 done 13665} 13666 ;; 13667 "libtool":C) 13668 13669 # See if we are running on zsh, and set the options which allow our 13670 # commands through without removal of \ escapes. 13671 if test -n "${ZSH_VERSION+set}" ; then 13672 setopt NO_GLOB_SUBST 13673 fi 13674 13675 cfgfile="${ofile}T" 13676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13677 $RM "$cfgfile" 13678 13679 cat <<_LT_EOF >> "$cfgfile" 13680#! $SHELL 13681 13682# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13683# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13685# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13686# 13687# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13688# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 13689# Inc. 13690# Written by Gordon Matzigkeit, 1996 13691# 13692# This file is part of GNU Libtool. 13693# 13694# GNU Libtool is free software; you can redistribute it and/or 13695# modify it under the terms of the GNU General Public License as 13696# published by the Free Software Foundation; either version 2 of 13697# the License, or (at your option) any later version. 13698# 13699# As a special exception to the GNU General Public License, 13700# if you distribute this file as part of a program or library that 13701# is built using GNU Libtool, you may include this file under the 13702# same distribution terms that you use for the rest of that program. 13703# 13704# GNU Libtool is distributed in the hope that it will be useful, 13705# but WITHOUT ANY WARRANTY; without even the implied warranty of 13706# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13707# GNU General Public License for more details. 13708# 13709# You should have received a copy of the GNU General Public License 13710# along with GNU Libtool; see the file COPYING. If not, a copy 13711# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13712# obtained by writing to the Free Software Foundation, Inc., 13713# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13714 13715 13716# The names of the tagged configurations supported by this script. 13717available_tags="" 13718 13719# ### BEGIN LIBTOOL CONFIG 13720 13721# Which release of libtool.m4 was used? 13722macro_version=$macro_version 13723macro_revision=$macro_revision 13724 13725# Whether or not to build shared libraries. 13726build_libtool_libs=$enable_shared 13727 13728# Whether or not to build static libraries. 13729build_old_libs=$enable_static 13730 13731# What type of objects to build. 13732pic_mode=$pic_mode 13733 13734# Whether or not to optimize for fast installation. 13735fast_install=$enable_fast_install 13736 13737# Shell to use when invoking shell scripts. 13738SHELL=$lt_SHELL 13739 13740# An echo program that protects backslashes. 13741ECHO=$lt_ECHO 13742 13743# The host system. 13744host_alias=$host_alias 13745host=$host 13746host_os=$host_os 13747 13748# The build system. 13749build_alias=$build_alias 13750build=$build 13751build_os=$build_os 13752 13753# A sed program that does not truncate output. 13754SED=$lt_SED 13755 13756# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13757Xsed="\$SED -e 1s/^X//" 13758 13759# A grep program that handles long lines. 13760GREP=$lt_GREP 13761 13762# An ERE matcher. 13763EGREP=$lt_EGREP 13764 13765# A literal string matcher. 13766FGREP=$lt_FGREP 13767 13768# A BSD- or MS-compatible name lister. 13769NM=$lt_NM 13770 13771# Whether we need soft or hard links. 13772LN_S=$lt_LN_S 13773 13774# What is the maximum length of a command? 13775max_cmd_len=$max_cmd_len 13776 13777# Object file suffix (normally "o"). 13778objext=$ac_objext 13779 13780# Executable file suffix (normally ""). 13781exeext=$exeext 13782 13783# whether the shell understands "unset". 13784lt_unset=$lt_unset 13785 13786# turn spaces into newlines. 13787SP2NL=$lt_lt_SP2NL 13788 13789# turn newlines into spaces. 13790NL2SP=$lt_lt_NL2SP 13791 13792# An object symbol dumper. 13793OBJDUMP=$lt_OBJDUMP 13794 13795# Method to check whether dependent libraries are shared objects. 13796deplibs_check_method=$lt_deplibs_check_method 13797 13798# Command to use when deplibs_check_method == "file_magic". 13799file_magic_cmd=$lt_file_magic_cmd 13800 13801# The archiver. 13802AR=$lt_AR 13803AR_FLAGS=$lt_AR_FLAGS 13804 13805# A symbol stripping program. 13806STRIP=$lt_STRIP 13807 13808# Commands used to install an old-style archive. 13809RANLIB=$lt_RANLIB 13810old_postinstall_cmds=$lt_old_postinstall_cmds 13811old_postuninstall_cmds=$lt_old_postuninstall_cmds 13812 13813# Whether to use a lock for old archive extraction. 13814lock_old_archive_extraction=$lock_old_archive_extraction 13815 13816# A C compiler. 13817LTCC=$lt_CC 13818 13819# LTCC compiler flags. 13820LTCFLAGS=$lt_CFLAGS 13821 13822# Take the output of nm and produce a listing of raw symbols and C names. 13823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13824 13825# Transform the output of nm in a proper C declaration. 13826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13827 13828# Transform the output of nm in a C name address pair. 13829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13830 13831# Transform the output of nm in a C name address pair when lib prefix is needed. 13832global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13833 13834# The name of the directory that contains temporary libtool files. 13835objdir=$objdir 13836 13837# Used to examine libraries when file_magic_cmd begins with "file". 13838MAGIC_CMD=$MAGIC_CMD 13839 13840# Must we lock files when doing compilation? 13841need_locks=$lt_need_locks 13842 13843# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13844DSYMUTIL=$lt_DSYMUTIL 13845 13846# Tool to change global to local symbols on Mac OS X. 13847NMEDIT=$lt_NMEDIT 13848 13849# Tool to manipulate fat objects and archives on Mac OS X. 13850LIPO=$lt_LIPO 13851 13852# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13853OTOOL=$lt_OTOOL 13854 13855# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13856OTOOL64=$lt_OTOOL64 13857 13858# Old archive suffix (normally "a"). 13859libext=$libext 13860 13861# Shared library suffix (normally ".so"). 13862shrext_cmds=$lt_shrext_cmds 13863 13864# The commands to extract the exported symbol list from a shared archive. 13865extract_expsyms_cmds=$lt_extract_expsyms_cmds 13866 13867# Variables whose values should be saved in libtool wrapper scripts and 13868# restored at link time. 13869variables_saved_for_relink=$lt_variables_saved_for_relink 13870 13871# Do we need the "lib" prefix for modules? 13872need_lib_prefix=$need_lib_prefix 13873 13874# Do we need a version for libraries? 13875need_version=$need_version 13876 13877# Library versioning type. 13878version_type=$version_type 13879 13880# Shared library runtime path variable. 13881runpath_var=$runpath_var 13882 13883# Shared library path variable. 13884shlibpath_var=$shlibpath_var 13885 13886# Is shlibpath searched before the hard-coded library search path? 13887shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13888 13889# Format of library name prefix. 13890libname_spec=$lt_libname_spec 13891 13892# List of archive names. First name is the real one, the rest are links. 13893# The last name is the one that the linker finds with -lNAME 13894library_names_spec=$lt_library_names_spec 13895 13896# The coded name of the library, if different from the real name. 13897soname_spec=$lt_soname_spec 13898 13899# Permission mode override for installation of shared libraries. 13900install_override_mode=$lt_install_override_mode 13901 13902# Command to use after installation of a shared archive. 13903postinstall_cmds=$lt_postinstall_cmds 13904 13905# Command to use after uninstallation of a shared archive. 13906postuninstall_cmds=$lt_postuninstall_cmds 13907 13908# Commands used to finish a libtool library installation in a directory. 13909finish_cmds=$lt_finish_cmds 13910 13911# As "finish_cmds", except a single script fragment to be evaled but 13912# not shown. 13913finish_eval=$lt_finish_eval 13914 13915# Whether we should hardcode library paths into libraries. 13916hardcode_into_libs=$hardcode_into_libs 13917 13918# Compile-time system search path for libraries. 13919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13920 13921# Run-time system search path for libraries. 13922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13923 13924# Whether dlopen is supported. 13925dlopen_support=$enable_dlopen 13926 13927# Whether dlopen of programs is supported. 13928dlopen_self=$enable_dlopen_self 13929 13930# Whether dlopen of statically linked programs is supported. 13931dlopen_self_static=$enable_dlopen_self_static 13932 13933# Commands to strip libraries. 13934old_striplib=$lt_old_striplib 13935striplib=$lt_striplib 13936 13937 13938# The linker used to build libraries. 13939LD=$lt_LD 13940 13941# How to create reloadable object files. 13942reload_flag=$lt_reload_flag 13943reload_cmds=$lt_reload_cmds 13944 13945# Commands used to build an old-style archive. 13946old_archive_cmds=$lt_old_archive_cmds 13947 13948# A language specific compiler. 13949CC=$lt_compiler 13950 13951# Is the compiler the GNU compiler? 13952with_gcc=$GCC 13953 13954# Compiler flag to turn off builtin functions. 13955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13956 13957# How to pass a linker flag through the compiler. 13958wl=$lt_lt_prog_compiler_wl 13959 13960# Additional compiler flags for building library objects. 13961pic_flag=$lt_lt_prog_compiler_pic 13962 13963# Compiler flag to prevent dynamic linking. 13964link_static_flag=$lt_lt_prog_compiler_static 13965 13966# Does compiler simultaneously support -c and -o options? 13967compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13968 13969# Whether or not to add -lc for building shared libraries. 13970build_libtool_need_lc=$archive_cmds_need_lc 13971 13972# Whether or not to disallow shared libs when runtime libs are static. 13973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13974 13975# Compiler flag to allow reflexive dlopens. 13976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13977 13978# Compiler flag to generate shared objects directly from archives. 13979whole_archive_flag_spec=$lt_whole_archive_flag_spec 13980 13981# Whether the compiler copes with passing no objects directly. 13982compiler_needs_object=$lt_compiler_needs_object 13983 13984# Create an old-style archive from a shared archive. 13985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13986 13987# Create a temporary old-style archive to link instead of a shared archive. 13988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13989 13990# Commands used to build a shared archive. 13991archive_cmds=$lt_archive_cmds 13992archive_expsym_cmds=$lt_archive_expsym_cmds 13993 13994# Commands used to build a loadable module if different from building 13995# a shared archive. 13996module_cmds=$lt_module_cmds 13997module_expsym_cmds=$lt_module_expsym_cmds 13998 13999# Whether we are building with GNU ld or not. 14000with_gnu_ld=$lt_with_gnu_ld 14001 14002# Flag that allows shared libraries with undefined symbols to be built. 14003allow_undefined_flag=$lt_allow_undefined_flag 14004 14005# Flag that enforces no undefined symbols. 14006no_undefined_flag=$lt_no_undefined_flag 14007 14008# Flag to hardcode \$libdir into a binary during linking. 14009# This must work even if \$libdir does not exist 14010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14011 14012# If ld is used when linking, flag to hardcode \$libdir into a binary 14013# during linking. This must work even if \$libdir does not exist. 14014hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14015 14016# Whether we need a single "-rpath" flag with a separated argument. 14017hardcode_libdir_separator=$lt_hardcode_libdir_separator 14018 14019# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14020# DIR into the resulting binary. 14021hardcode_direct=$hardcode_direct 14022 14023# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14024# DIR into the resulting binary and the resulting library dependency is 14025# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14026# library is relocated. 14027hardcode_direct_absolute=$hardcode_direct_absolute 14028 14029# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14030# into the resulting binary. 14031hardcode_minus_L=$hardcode_minus_L 14032 14033# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14034# into the resulting binary. 14035hardcode_shlibpath_var=$hardcode_shlibpath_var 14036 14037# Set to "yes" if building a shared library automatically hardcodes DIR 14038# into the library and all subsequent libraries and executables linked 14039# against it. 14040hardcode_automatic=$hardcode_automatic 14041 14042# Set to yes if linker adds runtime paths of dependent libraries 14043# to runtime path list. 14044inherit_rpath=$inherit_rpath 14045 14046# Whether libtool must link a program against all its dependency libraries. 14047link_all_deplibs=$link_all_deplibs 14048 14049# Fix the shell variable \$srcfile for the compiler. 14050fix_srcfile_path=$lt_fix_srcfile_path 14051 14052# Set to "yes" if exported symbols are required. 14053always_export_symbols=$always_export_symbols 14054 14055# The commands to list exported symbols. 14056export_symbols_cmds=$lt_export_symbols_cmds 14057 14058# Symbols that should not be listed in the preloaded symbols. 14059exclude_expsyms=$lt_exclude_expsyms 14060 14061# Symbols that must always be exported. 14062include_expsyms=$lt_include_expsyms 14063 14064# Commands necessary for linking programs (against libraries) with templates. 14065prelink_cmds=$lt_prelink_cmds 14066 14067# Specify filename containing input files. 14068file_list_spec=$lt_file_list_spec 14069 14070# How to hardcode a shared library path into an executable. 14071hardcode_action=$hardcode_action 14072 14073# ### END LIBTOOL CONFIG 14074 14075_LT_EOF 14076 14077 case $host_os in 14078 aix3*) 14079 cat <<\_LT_EOF >> "$cfgfile" 14080# AIX sometimes has problems with the GCC collect2 program. For some 14081# reason, if we set the COLLECT_NAMES environment variable, the problems 14082# vanish in a puff of smoke. 14083if test "X${COLLECT_NAMES+set}" != Xset; then 14084 COLLECT_NAMES= 14085 export COLLECT_NAMES 14086fi 14087_LT_EOF 14088 ;; 14089 esac 14090 14091 14092ltmain="$ac_aux_dir/ltmain.sh" 14093 14094 14095 # We use sed instead of cat because bash on DJGPP gets confused if 14096 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14097 # text mode, it properly converts lines to CR/LF. This bash problem 14098 # is reportedly fixed, but why not run on old versions too? 14099 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14100 || (rm -f "$cfgfile"; exit 1) 14101 14102 case $xsi_shell in 14103 yes) 14104 cat << \_LT_EOF >> "$cfgfile" 14105 14106# func_dirname file append nondir_replacement 14107# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14108# otherwise set result to NONDIR_REPLACEMENT. 14109func_dirname () 14110{ 14111 case ${1} in 14112 */*) func_dirname_result="${1%/*}${2}" ;; 14113 * ) func_dirname_result="${3}" ;; 14114 esac 14115} 14116 14117# func_basename file 14118func_basename () 14119{ 14120 func_basename_result="${1##*/}" 14121} 14122 14123# func_dirname_and_basename file append nondir_replacement 14124# perform func_basename and func_dirname in a single function 14125# call: 14126# dirname: Compute the dirname of FILE. If nonempty, 14127# add APPEND to the result, otherwise set result 14128# to NONDIR_REPLACEMENT. 14129# value returned in "$func_dirname_result" 14130# basename: Compute filename of FILE. 14131# value retuned in "$func_basename_result" 14132# Implementation must be kept synchronized with func_dirname 14133# and func_basename. For efficiency, we do not delegate to 14134# those functions but instead duplicate the functionality here. 14135func_dirname_and_basename () 14136{ 14137 case ${1} in 14138 */*) func_dirname_result="${1%/*}${2}" ;; 14139 * ) func_dirname_result="${3}" ;; 14140 esac 14141 func_basename_result="${1##*/}" 14142} 14143 14144# func_stripname prefix suffix name 14145# strip PREFIX and SUFFIX off of NAME. 14146# PREFIX and SUFFIX must not contain globbing or regex special 14147# characters, hashes, percent signs, but SUFFIX may contain a leading 14148# dot (in which case that matches only a dot). 14149func_stripname () 14150{ 14151 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14152 # positional parameters, so assign one to ordinary parameter first. 14153 func_stripname_result=${3} 14154 func_stripname_result=${func_stripname_result#"${1}"} 14155 func_stripname_result=${func_stripname_result%"${2}"} 14156} 14157 14158# func_opt_split 14159func_opt_split () 14160{ 14161 func_opt_split_opt=${1%%=*} 14162 func_opt_split_arg=${1#*=} 14163} 14164 14165# func_lo2o object 14166func_lo2o () 14167{ 14168 case ${1} in 14169 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14170 *) func_lo2o_result=${1} ;; 14171 esac 14172} 14173 14174# func_xform libobj-or-source 14175func_xform () 14176{ 14177 func_xform_result=${1%.*}.lo 14178} 14179 14180# func_arith arithmetic-term... 14181func_arith () 14182{ 14183 func_arith_result=$(( $* )) 14184} 14185 14186# func_len string 14187# STRING may not start with a hyphen. 14188func_len () 14189{ 14190 func_len_result=${#1} 14191} 14192 14193_LT_EOF 14194 ;; 14195 *) # Bourne compatible functions. 14196 cat << \_LT_EOF >> "$cfgfile" 14197 14198# func_dirname file append nondir_replacement 14199# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14200# otherwise set result to NONDIR_REPLACEMENT. 14201func_dirname () 14202{ 14203 # Extract subdirectory from the argument. 14204 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14205 if test "X$func_dirname_result" = "X${1}"; then 14206 func_dirname_result="${3}" 14207 else 14208 func_dirname_result="$func_dirname_result${2}" 14209 fi 14210} 14211 14212# func_basename file 14213func_basename () 14214{ 14215 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14216} 14217 14218 14219# func_stripname prefix suffix name 14220# strip PREFIX and SUFFIX off of NAME. 14221# PREFIX and SUFFIX must not contain globbing or regex special 14222# characters, hashes, percent signs, but SUFFIX may contain a leading 14223# dot (in which case that matches only a dot). 14224# func_strip_suffix prefix name 14225func_stripname () 14226{ 14227 case ${2} in 14228 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14229 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14230 esac 14231} 14232 14233# sed scripts: 14234my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14235my_sed_long_arg='1s/^-[^=]*=//' 14236 14237# func_opt_split 14238func_opt_split () 14239{ 14240 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14241 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14242} 14243 14244# func_lo2o object 14245func_lo2o () 14246{ 14247 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14248} 14249 14250# func_xform libobj-or-source 14251func_xform () 14252{ 14253 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14254} 14255 14256# func_arith arithmetic-term... 14257func_arith () 14258{ 14259 func_arith_result=`expr "$@"` 14260} 14261 14262# func_len string 14263# STRING may not start with a hyphen. 14264func_len () 14265{ 14266 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14267} 14268 14269_LT_EOF 14270esac 14271 14272case $lt_shell_append in 14273 yes) 14274 cat << \_LT_EOF >> "$cfgfile" 14275 14276# func_append var value 14277# Append VALUE to the end of shell variable VAR. 14278func_append () 14279{ 14280 eval "$1+=\$2" 14281} 14282_LT_EOF 14283 ;; 14284 *) 14285 cat << \_LT_EOF >> "$cfgfile" 14286 14287# func_append var value 14288# Append VALUE to the end of shell variable VAR. 14289func_append () 14290{ 14291 eval "$1=\$$1\$2" 14292} 14293 14294_LT_EOF 14295 ;; 14296 esac 14297 14298 14299 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14300 || (rm -f "$cfgfile"; exit 1) 14301 14302 mv -f "$cfgfile" "$ofile" || 14303 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14304 chmod +x "$ofile" 14305 14306 ;; 14307 14308 esac 14309done # for ac_tag 14310 14311 14312as_fn_exit 0 14313_ACEOF 14314ac_clean_files=$ac_clean_files_save 14315 14316test $ac_write_fail = 0 || 14317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14318 14319 14320# configure is writing to config.log, and then calls config.status. 14321# config.status does its own redirection, appending to config.log. 14322# Unfortunately, on DOS this fails, as config.log is still kept open 14323# by configure, so config.status won't be able to write to it; its 14324# output is simply discarded. So we exec the FD to /dev/null, 14325# effectively closing config.log, so it can be properly (re)opened and 14326# appended to by config.status. When coming back to configure, we 14327# need to make the FD available again. 14328if test "$no_create" != yes; then 14329 ac_cs_success=: 14330 ac_config_status_args= 14331 test "$silent" = yes && 14332 ac_config_status_args="$ac_config_status_args --quiet" 14333 exec 5>/dev/null 14334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14335 exec 5>>config.log 14336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14337 # would make configure fail if this is the last instruction. 14338 $ac_cs_success || as_fn_exit 1 14339fi 14340if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14342$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14343fi 14344 14345