1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for html2xhtml 1.3. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='html2xhtml' 589PACKAGE_TARNAME='html2xhtml' 590PACKAGE_VERSION='1.3' 591PACKAGE_STRING='html2xhtml 1.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="configure.ac" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636ALLOCA 637LTLIBICONV 638LIBICONV 639YFLAGS 640YACC 641LEXLIB 642LEX_OUTPUT_ROOT 643LEX 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653DLLTOOL 654OBJDUMP 655LN_S 656NM 657ac_ct_DUMPBIN 658DUMPBIN 659LD 660FGREP 661SED 662host_os 663host_vendor 664host_cpu 665host 666build_os 667build_vendor 668build_cpu 669build 670LIBTOOL 671EGREP 672GREP 673CPP 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677am__nodep 678AMDEPBACKSLASH 679AMDEP_FALSE 680AMDEP_TRUE 681am__quote 682am__include 683DEPDIR 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693AM_DEFAULT_V 694AM_V 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718target_alias 719host_alias 720build_alias 721LIBS 722ECHO_T 723ECHO_N 724ECHO_C 725DEFS 726mandir 727localedir 728libdir 729psdir 730pdfdir 731dvidir 732htmldir 733infodir 734docdir 735oldincludedir 736includedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_URL 749PACKAGE_BUGREPORT 750PACKAGE_STRING 751PACKAGE_VERSION 752PACKAGE_TARNAME 753PACKAGE_NAME 754PATH_SEPARATOR 755SHELL' 756ac_subst_files='' 757ac_user_opts=' 758enable_option_checking 759enable_silent_rules 760enable_dependency_tracking 761enable_shared 762enable_static 763with_pic 764enable_fast_install 765with_gnu_ld 766with_sysroot 767enable_libtool_lock 768enable_rpath 769with_libiconv_prefix 770' 771 ac_precious_vars='build_alias 772host_alias 773target_alias 774CC 775CFLAGS 776LDFLAGS 777LIBS 778CPPFLAGS 779CPP 780YACC 781YFLAGS' 782 783 784# Initialize some variables set by options. 785ac_init_help= 786ac_init_version=false 787ac_unrecognized_opts= 788ac_unrecognized_sep= 789# The variables have the same names as the options, with 790# dashes changed to underlines. 791cache_file=/dev/null 792exec_prefix=NONE 793no_create= 794no_recursion= 795prefix=NONE 796program_prefix=NONE 797program_suffix=NONE 798program_transform_name=s,x,x, 799silent= 800site= 801srcdir= 802verbose= 803x_includes=NONE 804x_libraries=NONE 805 806# Installation directory options. 807# These are left unexpanded so users can "make install exec_prefix=/foo" 808# and all the variables that are supposed to be based on exec_prefix 809# by default will actually change. 810# Use braces instead of parens because sh, perl, etc. also accept them. 811# (The list follows the same order as the GNU Coding Standards.) 812bindir='${exec_prefix}/bin' 813sbindir='${exec_prefix}/sbin' 814libexecdir='${exec_prefix}/libexec' 815datarootdir='${prefix}/share' 816datadir='${datarootdir}' 817sysconfdir='${prefix}/etc' 818sharedstatedir='${prefix}/com' 819localstatedir='${prefix}/var' 820includedir='${prefix}/include' 821oldincludedir='/usr/include' 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 823infodir='${datarootdir}/info' 824htmldir='${docdir}' 825dvidir='${docdir}' 826pdfdir='${docdir}' 827psdir='${docdir}' 828libdir='${exec_prefix}/lib' 829localedir='${datarootdir}/locale' 830mandir='${datarootdir}/man' 831 832ac_prev= 833ac_dashdash= 834for ac_option 835do 836 # If the previous option needs an argument, assign it. 837 if test -n "$ac_prev"; then 838 eval $ac_prev=\$ac_option 839 ac_prev= 840 continue 841 fi 842 843 case $ac_option in 844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 845 *=) ac_optarg= ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=\$ac_optarg ;; 1132 1133 -without-* | --without-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1168Try \`$0 --help' for more information" 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 case $ac_envvar in #( 1175 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1177 esac 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 as_fn_error $? "missing argument to $ac_option" 1195fi 1196 1197if test -n "$ac_unrecognized_opts"; then 1198 case $enable_option_checking in 1199 no) ;; 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1202 esac 1203fi 1204 1205# Check all directory arguments for consistency. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 # Remove trailing slashes. 1213 case $ac_val in 1214 */ ) 1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1216 eval $ac_var=\$ac_val;; 1217 esac 1218 # Be sure to have absolute directory names. 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1224done 1225 1226# There might be people who depend on the old broken behavior: `$host' 1227# used to hold the argument of --host etc. 1228# FIXME: To remove some day. 1229build=$build_alias 1230host=$host_alias 1231target=$target_alias 1232 1233# FIXME: To remove some day. 1234if test "x$host_alias" != x; then 1235 if test "x$build_alias" = x; then 1236 cross_compiling=maybe 1237 elif test "x$build_alias" != "x$host_alias"; then 1238 cross_compiling=yes 1239 fi 1240fi 1241 1242ac_tool_prefix= 1243test -n "$host_alias" && ac_tool_prefix=$host_alias- 1244 1245test "$silent" = yes && exec 6>/dev/null 1246 1247 1248ac_pwd=`pwd` && test -n "$ac_pwd" && 1249ac_ls_di=`ls -di .` && 1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 as_fn_error $? "working directory cannot be determined" 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1253 as_fn_error $? "pwd does not report name of working directory" 1254 1255 1256# Find the source files, if location was not specified. 1257if test -z "$srcdir"; then 1258 ac_srcdir_defaulted=yes 1259 # Try the directory containing this script, then the parent directory. 1260 ac_confdir=`$as_dirname -- "$as_myself" || 1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1262 X"$as_myself" : 'X\(//\)[^/]' \| \ 1263 X"$as_myself" : 'X\(//\)$' \| \ 1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1265$as_echo X"$as_myself" | 1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)[^/].*/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\).*/{ 1279 s//\1/ 1280 q 1281 } 1282 s/.*/./; q'` 1283 srcdir=$ac_confdir 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 srcdir=.. 1286 fi 1287else 1288 ac_srcdir_defaulted=no 1289fi 1290if test ! -r "$srcdir/$ac_unique_file"; then 1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1293fi 1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1295ac_abs_confdir=`( 1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1297 pwd)` 1298# When building in place, set srcdir=. 1299if test "$ac_abs_confdir" = "$ac_pwd"; then 1300 srcdir=. 1301fi 1302# Remove unnecessary trailing slashes from srcdir. 1303# Double slashes in file names in object file debugging info 1304# mess up M-x gdb in Emacs. 1305case $srcdir in 1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1307esac 1308for ac_var in $ac_precious_vars; do 1309 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_env_${ac_var}_value=\$${ac_var} 1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1313done 1314 1315# 1316# Report the --help message. 1317# 1318if test "$ac_init_help" = "long"; then 1319 # Omit some internal or obsolete options to make the list less imposing. 1320 # This message is too long to be a string in the A/UX 3.1 sh. 1321 cat <<_ACEOF 1322\`configure' configures html2xhtml 1.3 to adapt to many kinds of systems. 1323 1324Usage: $0 [OPTION]... [VAR=VALUE]... 1325 1326To assign environment variables (e.g., CC, CFLAGS...), specify them as 1327VAR=VALUE. See below for descriptions of some of the useful variables. 1328 1329Defaults for the options are specified in brackets. 1330 1331Configuration: 1332 -h, --help display this help and exit 1333 --help=short display options specific to this package 1334 --help=recursive display the short help of all the included packages 1335 -V, --version display version information and exit 1336 -q, --quiet, --silent do not print \`checking ...' messages 1337 --cache-file=FILE cache test results in FILE [disabled] 1338 -C, --config-cache alias for \`--cache-file=config.cache' 1339 -n, --no-create do not create output files 1340 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1341 1342Installation directories: 1343 --prefix=PREFIX install architecture-independent files in PREFIX 1344 [$ac_default_prefix] 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1346 [PREFIX] 1347 1348By default, \`make install' will install all the files in 1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1350an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1351for instance \`--prefix=\$HOME'. 1352 1353For better control, use the options below. 1354 1355Fine tuning of the installation directories: 1356 --bindir=DIR user executables [EPREFIX/bin] 1357 --sbindir=DIR system admin executables [EPREFIX/sbin] 1358 --libexecdir=DIR program executables [EPREFIX/libexec] 1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1362 --libdir=DIR object code libraries [EPREFIX/lib] 1363 --includedir=DIR C header files [PREFIX/include] 1364 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1367 --infodir=DIR info documentation [DATAROOTDIR/info] 1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1369 --mandir=DIR man documentation [DATAROOTDIR/man] 1370 --docdir=DIR documentation root [DATAROOTDIR/doc/html2xhtml] 1371 --htmldir=DIR html documentation [DOCDIR] 1372 --dvidir=DIR dvi documentation [DOCDIR] 1373 --pdfdir=DIR pdf documentation [DOCDIR] 1374 --psdir=DIR ps documentation [DOCDIR] 1375_ACEOF 1376 1377 cat <<\_ACEOF 1378 1379Program names: 1380 --program-prefix=PREFIX prepend PREFIX to installed program names 1381 --program-suffix=SUFFIX append SUFFIX to installed program names 1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1383 1384System types: 1385 --build=BUILD configure for building on BUILD [guessed] 1386 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1387_ACEOF 1388fi 1389 1390if test -n "$ac_init_help"; then 1391 case $ac_init_help in 1392 short | recursive ) echo "Configuration of html2xhtml 1.3:";; 1393 esac 1394 cat <<\_ACEOF 1395 1396Optional Features: 1397 --disable-option-checking ignore unrecognized --enable/--with options 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1400 --enable-silent-rules less verbose build output (undo: "make V=1") 1401 --disable-silent-rules verbose build output (undo: "make V=0") 1402 --enable-dependency-tracking 1403 do not reject slow dependency extractors 1404 --disable-dependency-tracking 1405 speeds up one-time build 1406 --enable-shared[=PKGS] build shared libraries [default=yes] 1407 --enable-static[=PKGS] build static libraries [default=yes] 1408 --enable-fast-install[=PKGS] 1409 optimize for fast installation [default=yes] 1410 --disable-libtool-lock avoid locking (might break parallel builds) 1411 --disable-rpath do not hardcode runtime library paths 1412 1413Optional Packages: 1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1417 both] 1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1419 --with-sysroot=DIR Search for dependent libraries within DIR 1420 (or the compiler's sysroot if not specified). 1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1422 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1423 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1424 1425Some influential environment variables: 1426 CC C compiler command 1427 CFLAGS C compiler flags 1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1429 nonstandard directory <lib dir> 1430 LIBS libraries to pass to the linker, e.g. -l<library> 1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1432 you have headers in a nonstandard directory <include dir> 1433 CPP C preprocessor 1434 YACC The `Yet Another Compiler Compiler' implementation to use. 1435 Defaults to the first program found out of: `bison -y', `byacc', 1436 `yacc'. 1437 YFLAGS The list of arguments that will be passed by default to $YACC. 1438 This script will default YFLAGS to the empty string to avoid a 1439 default value of `-d' given by some make applications. 1440 1441Use these variables to override the choices made by `configure' or to help 1442it to find libraries and programs with nonstandard names/locations. 1443 1444Report bugs to the package provider. 1445_ACEOF 1446ac_status=$? 1447fi 1448 1449if test "$ac_init_help" = "recursive"; then 1450 # If there are subdirs, report their specific --help. 1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1452 test -d "$ac_dir" || 1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1454 continue 1455 ac_builddir=. 1456 1457case "$ac_dir" in 1458.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459*) 1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1461 # A ".." for each directory in $ac_dir_suffix. 1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1463 case $ac_top_builddir_sub in 1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1466 esac ;; 1467esac 1468ac_abs_top_builddir=$ac_pwd 1469ac_abs_builddir=$ac_pwd$ac_dir_suffix 1470# for backward compatibility: 1471ac_top_builddir=$ac_top_build_prefix 1472 1473case $srcdir in 1474 .) # We are building in place. 1475 ac_srcdir=. 1476 ac_top_srcdir=$ac_top_builddir_sub 1477 ac_abs_top_srcdir=$ac_pwd ;; 1478 [\\/]* | ?:[\\/]* ) # Absolute name. 1479 ac_srcdir=$srcdir$ac_dir_suffix; 1480 ac_top_srcdir=$srcdir 1481 ac_abs_top_srcdir=$srcdir ;; 1482 *) # Relative name. 1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1484 ac_top_srcdir=$ac_top_build_prefix$srcdir 1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1486esac 1487ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1488 1489 cd "$ac_dir" || { ac_status=$?; continue; } 1490 # Check for guested configure. 1491 if test -f "$ac_srcdir/configure.gnu"; then 1492 echo && 1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1494 elif test -f "$ac_srcdir/configure"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure" --help=recursive 1497 else 1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1499 fi || ac_status=$? 1500 cd "$ac_pwd" || { ac_status=$?; break; } 1501 done 1502fi 1503 1504test -n "$ac_init_help" && exit $ac_status 1505if $ac_init_version; then 1506 cat <<\_ACEOF 1507html2xhtml configure 1.3 1508generated by GNU Autoconf 2.69 1509 1510Copyright (C) 2012 Free Software Foundation, Inc. 1511This configure script is free software; the Free Software Foundation 1512gives unlimited permission to copy, distribute and modify it. 1513_ACEOF 1514 exit 1515fi 1516 1517## ------------------------ ## 1518## Autoconf initialization. ## 1519## ------------------------ ## 1520 1521# ac_fn_c_try_compile LINENO 1522# -------------------------- 1523# Try to compile conftest.$ac_ext, and return whether this succeeded. 1524ac_fn_c_try_compile () 1525{ 1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1527 rm -f conftest.$ac_objext 1528 if { { ac_try="$ac_compile" 1529case "(($ac_try" in 1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1531 *) ac_try_echo=$ac_try;; 1532esac 1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1534$as_echo "$ac_try_echo"; } >&5 1535 (eval "$ac_compile") 2>conftest.err 1536 ac_status=$? 1537 if test -s conftest.err; then 1538 grep -v '^ *+' conftest.err >conftest.er1 1539 cat conftest.er1 >&5 1540 mv -f conftest.er1 conftest.err 1541 fi 1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1543 test $ac_status = 0; } && { 1544 test -z "$ac_c_werror_flag" || 1545 test ! -s conftest.err 1546 } && test -s conftest.$ac_objext; then : 1547 ac_retval=0 1548else 1549 $as_echo "$as_me: failed program was:" >&5 1550sed 's/^/| /' conftest.$ac_ext >&5 1551 1552 ac_retval=1 1553fi 1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1555 as_fn_set_status $ac_retval 1556 1557} # ac_fn_c_try_compile 1558 1559# ac_fn_c_try_cpp LINENO 1560# ---------------------- 1561# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1562ac_fn_c_try_cpp () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 if { { ac_try="$ac_cpp conftest.$ac_ext" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571$as_echo "$ac_try_echo"; } >&5 1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } > conftest.i && { 1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 }; then : 1584 ac_retval=0 1585else 1586 $as_echo "$as_me: failed program was:" >&5 1587sed 's/^/| /' conftest.$ac_ext >&5 1588 1589 ac_retval=1 1590fi 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_c_try_cpp 1595 1596# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1597# ------------------------------------------------------- 1598# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1599# the include files in INCLUDES and setting the cache variable VAR 1600# accordingly. 1601ac_fn_c_check_header_mongrel () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 if eval \${$3+:} false; then : 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1606$as_echo_n "checking for $2... " >&6; } 1607if eval \${$3+:} false; then : 1608 $as_echo_n "(cached) " >&6 1609fi 1610eval ac_res=\$$3 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1612$as_echo "$ac_res" >&6; } 1613else 1614 # Is the header compilable? 1615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1616$as_echo_n "checking $2 usability... " >&6; } 1617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618/* end confdefs.h. */ 1619$4 1620#include <$2> 1621_ACEOF 1622if ac_fn_c_try_compile "$LINENO"; then : 1623 ac_header_compiler=yes 1624else 1625 ac_header_compiler=no 1626fi 1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1629$as_echo "$ac_header_compiler" >&6; } 1630 1631# Is the header present? 1632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1633$as_echo_n "checking $2 presence... " >&6; } 1634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636#include <$2> 1637_ACEOF 1638if ac_fn_c_try_cpp "$LINENO"; then : 1639 ac_header_preproc=yes 1640else 1641 ac_header_preproc=no 1642fi 1643rm -f conftest.err conftest.i conftest.$ac_ext 1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1645$as_echo "$ac_header_preproc" >&6; } 1646 1647# So? What about this header? 1648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1649 yes:no: ) 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1651$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1654 ;; 1655 no:yes:* ) 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1657$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1659$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1661$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1663$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1666 ;; 1667esac 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 eval "$3=\$ac_header_compiler" 1674fi 1675eval ac_res=\$$3 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677$as_echo "$ac_res" >&6; } 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_header_mongrel 1682 1683# ac_fn_c_try_run LINENO 1684# ---------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1686# that executables *can* be run. 1687ac_fn_c_try_run () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>&5 1698 ac_status=$? 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1701 { { case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_try") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; }; }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: program exited with status $ac_status" >&5 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=$ac_status 1718fi 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_run 1724 1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1726# ------------------------------------------------------- 1727# Tests whether HEADER exists and can be compiled using the include files in 1728# INCLUDES, setting the cache variable VAR accordingly. 1729ac_fn_c_check_header_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO"; then : 1743 eval "$3=yes" 1744else 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_link 1801 1802# ac_fn_c_check_func LINENO FUNC VAR 1803# ---------------------------------- 1804# Tests whether FUNC exists, setting the cache variable VAR accordingly 1805ac_fn_c_check_func () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1817#define $2 innocuous_$2 1818 1819/* System header to define __stub macros and hopefully few prototypes, 1820 which can conflict with char $2 (); below. 1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1822 <limits.h> exists even on freestanding compilers. */ 1823 1824#ifdef __STDC__ 1825# include <limits.h> 1826#else 1827# include <assert.h> 1828#endif 1829 1830#undef $2 1831 1832/* Override any GCC internal prototype to avoid an error. 1833 Use char because int might match the return type of a GCC 1834 builtin and then its argument prototype would still apply. */ 1835#ifdef __cplusplus 1836extern "C" 1837#endif 1838char $2 (); 1839/* The GNU C library defines this for functions which it implements 1840 to always fail with ENOSYS. Some functions are actually named 1841 something starting with __ and the normal name is an alias. */ 1842#if defined __stub_$2 || defined __stub___$2 1843choke me 1844#endif 1845 1846int 1847main () 1848{ 1849return $2 (); 1850 ; 1851 return 0; 1852} 1853_ACEOF 1854if ac_fn_c_try_link "$LINENO"; then : 1855 eval "$3=yes" 1856else 1857 eval "$3=no" 1858fi 1859rm -f core conftest.err conftest.$ac_objext \ 1860 conftest$ac_exeext conftest.$ac_ext 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 1867} # ac_fn_c_check_func 1868 1869# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1870# ------------------------------------------- 1871# Tests whether TYPE exists after having included INCLUDES, setting cache 1872# variable VAR accordingly. 1873ac_fn_c_check_type () 1874{ 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880else 1881 eval "$3=no" 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884$4 1885int 1886main () 1887{ 1888if (sizeof ($2)) 1889 return 0; 1890 ; 1891 return 0; 1892} 1893_ACEOF 1894if ac_fn_c_try_compile "$LINENO"; then : 1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1896/* end confdefs.h. */ 1897$4 1898int 1899main () 1900{ 1901if (sizeof (($2))) 1902 return 0; 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 1909else 1910 eval "$3=yes" 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915fi 1916eval ac_res=\$$3 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918$as_echo "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921} # ac_fn_c_check_type 1922cat >config.log <<_ACEOF 1923This file contains any messages produced by compilers while 1924running configure, to aid debugging if configure makes a mistake. 1925 1926It was created by html2xhtml $as_me 1.3, which was 1927generated by GNU Autoconf 2.69. Invocation command line was 1928 1929 $ $0 $@ 1930 1931_ACEOF 1932exec 5>>config.log 1933{ 1934cat <<_ASUNAME 1935## --------- ## 1936## Platform. ## 1937## --------- ## 1938 1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1940uname -m = `(uname -m) 2>/dev/null || echo unknown` 1941uname -r = `(uname -r) 2>/dev/null || echo unknown` 1942uname -s = `(uname -s) 2>/dev/null || echo unknown` 1943uname -v = `(uname -v) 2>/dev/null || echo unknown` 1944 1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1946/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1947 1948/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1949/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1951/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1952/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1953/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1954/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1955 1956_ASUNAME 1957 1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1959for as_dir in $PATH 1960do 1961 IFS=$as_save_IFS 1962 test -z "$as_dir" && as_dir=. 1963 $as_echo "PATH: $as_dir" 1964 done 1965IFS=$as_save_IFS 1966 1967} >&5 1968 1969cat >&5 <<_ACEOF 1970 1971 1972## ----------- ## 1973## Core tests. ## 1974## ----------- ## 1975 1976_ACEOF 1977 1978 1979# Keep a trace of the command line. 1980# Strip out --no-create and --no-recursion so they do not pile up. 1981# Strip out --silent because we don't want to record it for future runs. 1982# Also quote any args containing shell meta-characters. 1983# Make two passes to allow for proper duplicate-argument suppression. 1984ac_configure_args= 1985ac_configure_args0= 1986ac_configure_args1= 1987ac_must_keep_next=false 1988for ac_pass in 1 2 1989do 1990 for ac_arg 1991 do 1992 case $ac_arg in 1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1995 | -silent | --silent | --silen | --sile | --sil) 1996 continue ;; 1997 *\'*) 1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1999 esac 2000 case $ac_pass in 2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2002 2) 2003 as_fn_append ac_configure_args1 " '$ac_arg'" 2004 if test $ac_must_keep_next = true; then 2005 ac_must_keep_next=false # Got value, back to normal. 2006 else 2007 case $ac_arg in 2008 *=* | --config-cache | -C | -disable-* | --disable-* \ 2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2011 | -with-* | --with-* | -without-* | --without-* | --x) 2012 case "$ac_configure_args0 " in 2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2014 esac 2015 ;; 2016 -* ) ac_must_keep_next=true ;; 2017 esac 2018 fi 2019 as_fn_append ac_configure_args " '$ac_arg'" 2020 ;; 2021 esac 2022 done 2023done 2024{ ac_configure_args0=; unset ac_configure_args0;} 2025{ ac_configure_args1=; unset ac_configure_args1;} 2026 2027# When interrupted or exit'd, cleanup temporary files, and complete 2028# config.log. We remove comments because anyway the quotes in there 2029# would cause problems or look ugly. 2030# WARNING: Use '\'' to represent an apostrophe within the trap. 2031# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2032trap 'exit_status=$? 2033 # Save into config.log some information that might help in debugging. 2034 { 2035 echo 2036 2037 $as_echo "## ---------------- ## 2038## Cache variables. ## 2039## ---------------- ##" 2040 echo 2041 # The following way of writing the cache mishandles newlines in values, 2042( 2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2044 eval ac_val=\$$ac_var 2045 case $ac_val in #( 2046 *${as_nl}*) 2047 case $ac_var in #( 2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2050 esac 2051 case $ac_var in #( 2052 _ | IFS | as_nl) ;; #( 2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2054 *) { eval $ac_var=; unset $ac_var;} ;; 2055 esac ;; 2056 esac 2057 done 2058 (set) 2>&1 | 2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2060 *${as_nl}ac_space=\ *) 2061 sed -n \ 2062 "s/'\''/'\''\\\\'\'''\''/g; 2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2064 ;; #( 2065 *) 2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2067 ;; 2068 esac | 2069 sort 2070) 2071 echo 2072 2073 $as_echo "## ----------------- ## 2074## Output variables. ## 2075## ----------------- ##" 2076 echo 2077 for ac_var in $ac_subst_vars 2078 do 2079 eval ac_val=\$$ac_var 2080 case $ac_val in 2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2082 esac 2083 $as_echo "$ac_var='\''$ac_val'\''" 2084 done | sort 2085 echo 2086 2087 if test -n "$ac_subst_files"; then 2088 $as_echo "## ------------------- ## 2089## File substitutions. ## 2090## ------------------- ##" 2091 echo 2092 for ac_var in $ac_subst_files 2093 do 2094 eval ac_val=\$$ac_var 2095 case $ac_val in 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2097 esac 2098 $as_echo "$ac_var='\''$ac_val'\''" 2099 done | sort 2100 echo 2101 fi 2102 2103 if test -s confdefs.h; then 2104 $as_echo "## ----------- ## 2105## confdefs.h. ## 2106## ----------- ##" 2107 echo 2108 cat confdefs.h 2109 echo 2110 fi 2111 test "$ac_signal" != 0 && 2112 $as_echo "$as_me: caught signal $ac_signal" 2113 $as_echo "$as_me: exit $exit_status" 2114 } >&5 2115 rm -f core *.core core.conftest.* && 2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2117 exit $exit_status 2118' 0 2119for ac_signal in 1 2 13 15; do 2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2121done 2122ac_signal=0 2123 2124# confdefs.h avoids OS command line length limits that DEFS can exceed. 2125rm -f -r conftest* confdefs.h 2126 2127$as_echo "/* confdefs.h */" > confdefs.h 2128 2129# Predefined preprocessor variables. 2130 2131cat >>confdefs.h <<_ACEOF 2132#define PACKAGE_NAME "$PACKAGE_NAME" 2133_ACEOF 2134 2135cat >>confdefs.h <<_ACEOF 2136#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2137_ACEOF 2138 2139cat >>confdefs.h <<_ACEOF 2140#define PACKAGE_VERSION "$PACKAGE_VERSION" 2141_ACEOF 2142 2143cat >>confdefs.h <<_ACEOF 2144#define PACKAGE_STRING "$PACKAGE_STRING" 2145_ACEOF 2146 2147cat >>confdefs.h <<_ACEOF 2148#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2149_ACEOF 2150 2151cat >>confdefs.h <<_ACEOF 2152#define PACKAGE_URL "$PACKAGE_URL" 2153_ACEOF 2154 2155 2156# Let the site file select an alternate cache file if it wants to. 2157# Prefer an explicitly selected file to automatically selected ones. 2158ac_site_file1=NONE 2159ac_site_file2=NONE 2160if test -n "$CONFIG_SITE"; then 2161 # We do not want a PATH search for config.site. 2162 case $CONFIG_SITE in #(( 2163 -*) ac_site_file1=./$CONFIG_SITE;; 2164 */*) ac_site_file1=$CONFIG_SITE;; 2165 *) ac_site_file1=./$CONFIG_SITE;; 2166 esac 2167elif test "x$prefix" != xNONE; then 2168 ac_site_file1=$prefix/share/config.site 2169 ac_site_file2=$prefix/etc/config.site 2170else 2171 ac_site_file1=$ac_default_prefix/share/config.site 2172 ac_site_file2=$ac_default_prefix/etc/config.site 2173fi 2174for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2175do 2176 test "x$ac_site_file" = xNONE && continue 2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2179$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2180 sed 's/^/| /' "$ac_site_file" >&5 2181 . "$ac_site_file" \ 2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2184as_fn_error $? "failed to load site script $ac_site_file 2185See \`config.log' for more details" "$LINENO" 5; } 2186 fi 2187done 2188 2189if test -r "$cache_file"; then 2190 # Some versions of bash will fail to source /dev/null (special files 2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2194$as_echo "$as_me: loading cache $cache_file" >&6;} 2195 case $cache_file in 2196 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2197 *) . "./$cache_file";; 2198 esac 2199 fi 2200else 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2202$as_echo "$as_me: creating cache $cache_file" >&6;} 2203 >$cache_file 2204fi 2205 2206# Check that the precious variables saved in the cache have kept the same 2207# value. 2208ac_cache_corrupted=false 2209for ac_var in $ac_precious_vars; do 2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2211 eval ac_new_set=\$ac_env_${ac_var}_set 2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2213 eval ac_new_val=\$ac_env_${ac_var}_value 2214 case $ac_old_set,$ac_new_set in 2215 set,) 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2217$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2218 ac_cache_corrupted=: ;; 2219 ,set) 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2221$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2222 ac_cache_corrupted=: ;; 2223 ,);; 2224 *) 2225 if test "x$ac_old_val" != "x$ac_new_val"; then 2226 # differences in whitespace do not lead to failure. 2227 ac_old_val_w=`echo x $ac_old_val` 2228 ac_new_val_w=`echo x $ac_new_val` 2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2231$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2232 ac_cache_corrupted=: 2233 else 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2235$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2236 eval $ac_var=\$ac_old_val 2237 fi 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2239$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2241$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2242 fi;; 2243 esac 2244 # Pass precious variables to config.status. 2245 if test "$ac_new_set" = set; then 2246 case $ac_new_val in 2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2248 *) ac_arg=$ac_var=$ac_new_val ;; 2249 esac 2250 case " $ac_configure_args " in 2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2253 esac 2254 fi 2255done 2256if $ac_cache_corrupted; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2260$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2262fi 2263## -------------------- ## 2264## Main body of script. ## 2265## -------------------- ## 2266 2267ac_ext=c 2268ac_cpp='$CPP $CPPFLAGS' 2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2271ac_compiler_gnu=$ac_cv_c_compiler_gnu 2272 2273 2274 2275am__api_version='1.15' 2276 2277ac_aux_dir= 2278for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2279 if test -f "$ac_dir/install-sh"; then 2280 ac_aux_dir=$ac_dir 2281 ac_install_sh="$ac_aux_dir/install-sh -c" 2282 break 2283 elif test -f "$ac_dir/install.sh"; then 2284 ac_aux_dir=$ac_dir 2285 ac_install_sh="$ac_aux_dir/install.sh -c" 2286 break 2287 elif test -f "$ac_dir/shtool"; then 2288 ac_aux_dir=$ac_dir 2289 ac_install_sh="$ac_aux_dir/shtool install -c" 2290 break 2291 fi 2292done 2293if test -z "$ac_aux_dir"; then 2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2295fi 2296 2297# These three variables are undocumented and unsupported, 2298# and are intended to be withdrawn in a future Autoconf release. 2299# They can cause serious problems if a builder's source tree is in a directory 2300# whose full name contains unusual characters. 2301ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2302ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2303ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2304 2305 2306# Find a good install program. We prefer a C program (faster), 2307# so one script is as good as another. But avoid the broken or 2308# incompatible versions: 2309# SysV /etc/install, /usr/sbin/install 2310# SunOS /usr/etc/install 2311# IRIX /sbin/install 2312# AIX /bin/install 2313# AmigaOS /C/install, which installs bootblocks on floppy discs 2314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2315# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2317# OS/2's system install, which has a completely different semantic 2318# ./install, which can be erroneously created by make from ./install.sh. 2319# Reject install programs that cannot install multiple files. 2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2321$as_echo_n "checking for a BSD-compatible install... " >&6; } 2322if test -z "$INSTALL"; then 2323if ${ac_cv_path_install+:} false; then : 2324 $as_echo_n "(cached) " >&6 2325else 2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2327for as_dir in $PATH 2328do 2329 IFS=$as_save_IFS 2330 test -z "$as_dir" && as_dir=. 2331 # Account for people who put trailing slashes in PATH elements. 2332case $as_dir/ in #(( 2333 ./ | .// | /[cC]/* | \ 2334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2336 /usr/ucb/* ) ;; 2337 *) 2338 # OSF1 and SCO ODT 3.0 have their own names for install. 2339 # Don't use installbsd from OSF since it installs stuff as root 2340 # by default. 2341 for ac_prog in ginstall scoinst install; do 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2344 if test $ac_prog = install && 2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2346 # AIX install. It has an incompatible calling convention. 2347 : 2348 elif test $ac_prog = install && 2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2350 # program-specific install script used by HP pwplus--don't use. 2351 : 2352 else 2353 rm -rf conftest.one conftest.two conftest.dir 2354 echo one > conftest.one 2355 echo two > conftest.two 2356 mkdir conftest.dir 2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2358 test -s conftest.one && test -s conftest.two && 2359 test -s conftest.dir/conftest.one && 2360 test -s conftest.dir/conftest.two 2361 then 2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2363 break 3 2364 fi 2365 fi 2366 fi 2367 done 2368 done 2369 ;; 2370esac 2371 2372 done 2373IFS=$as_save_IFS 2374 2375rm -rf conftest.one conftest.two conftest.dir 2376 2377fi 2378 if test "${ac_cv_path_install+set}" = set; then 2379 INSTALL=$ac_cv_path_install 2380 else 2381 # As a last resort, use the slow shell script. Don't cache a 2382 # value for INSTALL within a source directory, because that will 2383 # break other packages using the cache if that directory is 2384 # removed, or if the value is a relative name. 2385 INSTALL=$ac_install_sh 2386 fi 2387fi 2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2389$as_echo "$INSTALL" >&6; } 2390 2391# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2392# It thinks the first close brace ends the variable substitution. 2393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2394 2395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2396 2397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2398 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2400$as_echo_n "checking whether build environment is sane... " >&6; } 2401# Reject unsafe characters in $srcdir or the absolute working directory 2402# name. Accept space and tab only in the latter. 2403am_lf=' 2404' 2405case `pwd` in 2406 *[\\\"\#\$\&\'\`$am_lf]*) 2407 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2408esac 2409case $srcdir in 2410 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2411 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2412esac 2413 2414# Do 'set' in a subshell so we don't clobber the current shell's 2415# arguments. Must try -L first in case configure is actually a 2416# symlink; some systems play weird games with the mod time of symlinks 2417# (eg FreeBSD returns the mod time of the symlink's containing 2418# directory). 2419if ( 2420 am_has_slept=no 2421 for am_try in 1 2; do 2422 echo "timestamp, slept: $am_has_slept" > conftest.file 2423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2424 if test "$*" = "X"; then 2425 # -L didn't work. 2426 set X `ls -t "$srcdir/configure" conftest.file` 2427 fi 2428 if test "$*" != "X $srcdir/configure conftest.file" \ 2429 && test "$*" != "X conftest.file $srcdir/configure"; then 2430 2431 # If neither matched, then we have a broken ls. This can happen 2432 # if, for instance, CONFIG_SHELL is bash and it inherits a 2433 # broken ls alias from the environment. This has actually 2434 # happened. Such a system could not be considered "sane". 2435 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2436 alias in your environment" "$LINENO" 5 2437 fi 2438 if test "$2" = conftest.file || test $am_try -eq 2; then 2439 break 2440 fi 2441 # Just in case. 2442 sleep 1 2443 am_has_slept=yes 2444 done 2445 test "$2" = conftest.file 2446 ) 2447then 2448 # Ok. 2449 : 2450else 2451 as_fn_error $? "newly created file is older than distributed files! 2452Check your system clock" "$LINENO" 5 2453fi 2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2455$as_echo "yes" >&6; } 2456# If we didn't sleep, we still need to ensure time stamps of config.status and 2457# generated files are strictly newer. 2458am_sleep_pid= 2459if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2460 ( sleep 1 ) & 2461 am_sleep_pid=$! 2462fi 2463 2464rm -f conftest.file 2465 2466test "$program_prefix" != NONE && 2467 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2468# Use a double $ so make ignores it. 2469test "$program_suffix" != NONE && 2470 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2471# Double any \ or $. 2472# By default was `s,x,x', remove it if useless. 2473ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2474program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2475 2476# Expand $ac_aux_dir to an absolute path. 2477am_aux_dir=`cd "$ac_aux_dir" && pwd` 2478 2479if test x"${MISSING+set}" != xset; then 2480 case $am_aux_dir in 2481 *\ * | *\ *) 2482 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2483 *) 2484 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2485 esac 2486fi 2487# Use eval to expand $SHELL 2488if eval "$MISSING --is-lightweight"; then 2489 am_missing_run="$MISSING " 2490else 2491 am_missing_run= 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2493$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2494fi 2495 2496if test x"${install_sh+set}" != xset; then 2497 case $am_aux_dir in 2498 *\ * | *\ *) 2499 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2500 *) 2501 install_sh="\${SHELL} $am_aux_dir/install-sh" 2502 esac 2503fi 2504 2505# Installed binaries are usually stripped using 'strip' when the user 2506# run "make install-strip". However 'strip' might not be the right 2507# tool to use in cross-compilation environments, therefore Automake 2508# will honor the 'STRIP' environment variable to overrule this program. 2509if test "$cross_compiling" != no; then 2510 if test -n "$ac_tool_prefix"; then 2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2512set dummy ${ac_tool_prefix}strip; ac_word=$2 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2514$as_echo_n "checking for $ac_word... " >&6; } 2515if ${ac_cv_prog_STRIP+:} false; then : 2516 $as_echo_n "(cached) " >&6 2517else 2518 if test -n "$STRIP"; then 2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2520else 2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2522for as_dir in $PATH 2523do 2524 IFS=$as_save_IFS 2525 test -z "$as_dir" && as_dir=. 2526 for ac_exec_ext in '' $ac_executable_extensions; do 2527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2530 break 2 2531 fi 2532done 2533 done 2534IFS=$as_save_IFS 2535 2536fi 2537fi 2538STRIP=$ac_cv_prog_STRIP 2539if test -n "$STRIP"; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2541$as_echo "$STRIP" >&6; } 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2544$as_echo "no" >&6; } 2545fi 2546 2547 2548fi 2549if test -z "$ac_cv_prog_STRIP"; then 2550 ac_ct_STRIP=$STRIP 2551 # Extract the first word of "strip", so it can be a program name with args. 2552set dummy strip; ac_word=$2 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2554$as_echo_n "checking for $ac_word... " >&6; } 2555if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if test -n "$ac_ct_STRIP"; then 2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2560else 2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 for ac_exec_ext in '' $ac_executable_extensions; do 2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2568 ac_cv_prog_ac_ct_STRIP="strip" 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572done 2573 done 2574IFS=$as_save_IFS 2575 2576fi 2577fi 2578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2579if test -n "$ac_ct_STRIP"; then 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2581$as_echo "$ac_ct_STRIP" >&6; } 2582else 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2584$as_echo "no" >&6; } 2585fi 2586 2587 if test "x$ac_ct_STRIP" = x; then 2588 STRIP=":" 2589 else 2590 case $cross_compiling:$ac_tool_warned in 2591yes:) 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2594ac_tool_warned=yes ;; 2595esac 2596 STRIP=$ac_ct_STRIP 2597 fi 2598else 2599 STRIP="$ac_cv_prog_STRIP" 2600fi 2601 2602fi 2603INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2604 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2606$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2607if test -z "$MKDIR_P"; then 2608 if ${ac_cv_path_mkdir+:} false; then : 2609 $as_echo_n "(cached) " >&6 2610else 2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2613do 2614 IFS=$as_save_IFS 2615 test -z "$as_dir" && as_dir=. 2616 for ac_prog in mkdir gmkdir; do 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2619 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2620 'mkdir (GNU coreutils) '* | \ 2621 'mkdir (coreutils) '* | \ 2622 'mkdir (fileutils) '4.1*) 2623 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2624 break 3;; 2625 esac 2626 done 2627 done 2628 done 2629IFS=$as_save_IFS 2630 2631fi 2632 2633 test -d ./--version && rmdir ./--version 2634 if test "${ac_cv_path_mkdir+set}" = set; then 2635 MKDIR_P="$ac_cv_path_mkdir -p" 2636 else 2637 # As a last resort, use the slow shell script. Don't cache a 2638 # value for MKDIR_P within a source directory, because that will 2639 # break other packages using the cache if that directory is 2640 # removed, or if the value is a relative name. 2641 MKDIR_P="$ac_install_sh -d" 2642 fi 2643fi 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2645$as_echo "$MKDIR_P" >&6; } 2646 2647for ac_prog in gawk mawk nawk awk 2648do 2649 # Extract the first word of "$ac_prog", so it can be a program name with args. 2650set dummy $ac_prog; ac_word=$2 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2652$as_echo_n "checking for $ac_word... " >&6; } 2653if ${ac_cv_prog_AWK+:} false; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 if test -n "$AWK"; then 2657 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2658else 2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660for as_dir in $PATH 2661do 2662 IFS=$as_save_IFS 2663 test -z "$as_dir" && as_dir=. 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2666 ac_cv_prog_AWK="$ac_prog" 2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670done 2671 done 2672IFS=$as_save_IFS 2673 2674fi 2675fi 2676AWK=$ac_cv_prog_AWK 2677if test -n "$AWK"; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2679$as_echo "$AWK" >&6; } 2680else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682$as_echo "no" >&6; } 2683fi 2684 2685 2686 test -n "$AWK" && break 2687done 2688 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2690$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2691set x ${MAKE-make} 2692ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2693if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 cat >conftest.make <<\_ACEOF 2697SHELL = /bin/sh 2698all: 2699 @echo '@@@%%%=$(MAKE)=@@@%%%' 2700_ACEOF 2701# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2702case `${MAKE-make} -f conftest.make 2>/dev/null` in 2703 *@@@%%%=?*=@@@%%%*) 2704 eval ac_cv_prog_make_${ac_make}_set=yes;; 2705 *) 2706 eval ac_cv_prog_make_${ac_make}_set=no;; 2707esac 2708rm -f conftest.make 2709fi 2710if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2712$as_echo "yes" >&6; } 2713 SET_MAKE= 2714else 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2716$as_echo "no" >&6; } 2717 SET_MAKE="MAKE=${MAKE-make}" 2718fi 2719 2720rm -rf .tst 2>/dev/null 2721mkdir .tst 2>/dev/null 2722if test -d .tst; then 2723 am__leading_dot=. 2724else 2725 am__leading_dot=_ 2726fi 2727rmdir .tst 2>/dev/null 2728 2729# Check whether --enable-silent-rules was given. 2730if test "${enable_silent_rules+set}" = set; then : 2731 enableval=$enable_silent_rules; 2732fi 2733 2734case $enable_silent_rules in # ((( 2735 yes) AM_DEFAULT_VERBOSITY=0;; 2736 no) AM_DEFAULT_VERBOSITY=1;; 2737 *) AM_DEFAULT_VERBOSITY=1;; 2738esac 2739am_make=${MAKE-make} 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2741$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2742if ${am_cv_make_support_nested_variables+:} false; then : 2743 $as_echo_n "(cached) " >&6 2744else 2745 if $as_echo 'TRUE=$(BAR$(V)) 2746BAR0=false 2747BAR1=true 2748V=1 2749am__doit: 2750 @$(TRUE) 2751.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2752 am_cv_make_support_nested_variables=yes 2753else 2754 am_cv_make_support_nested_variables=no 2755fi 2756fi 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2758$as_echo "$am_cv_make_support_nested_variables" >&6; } 2759if test $am_cv_make_support_nested_variables = yes; then 2760 AM_V='$(V)' 2761 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2762else 2763 AM_V=$AM_DEFAULT_VERBOSITY 2764 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2765fi 2766AM_BACKSLASH='\' 2767 2768if test "`cd $srcdir && pwd`" != "`pwd`"; then 2769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2770 # is not polluted with repeated "-I." 2771 am__isrc=' -I$(srcdir)' 2772 # test to see if srcdir already configured 2773 if test -f $srcdir/config.status; then 2774 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2775 fi 2776fi 2777 2778# test whether we have cygpath 2779if test -z "$CYGPATH_W"; then 2780 if (cygpath --version) >/dev/null 2>/dev/null; then 2781 CYGPATH_W='cygpath -w' 2782 else 2783 CYGPATH_W=echo 2784 fi 2785fi 2786 2787 2788# Define the identity of the package. 2789 PACKAGE='html2xhtml' 2790 VERSION='1.3' 2791 2792 2793cat >>confdefs.h <<_ACEOF 2794#define PACKAGE "$PACKAGE" 2795_ACEOF 2796 2797 2798cat >>confdefs.h <<_ACEOF 2799#define VERSION "$VERSION" 2800_ACEOF 2801 2802# Some tools Automake needs. 2803 2804ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2805 2806 2807AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2808 2809 2810AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2811 2812 2813AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2814 2815 2816MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2817 2818# For better backward compatibility. To be removed once Automake 1.9.x 2819# dies out for good. For more background, see: 2820# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2821# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2822mkdir_p='$(MKDIR_P)' 2823 2824# We need awk for the "check" target (and possibly the TAP driver). The 2825# system "awk" is bad on some platforms. 2826# Always define AMTAR for backward compatibility. Yes, it's still used 2827# in the wild :-( We should find a proper way to deprecate it ... 2828AMTAR='$${TAR-tar}' 2829 2830 2831# We'll loop over all known methods to create a tar archive until one works. 2832_am_tools='gnutar pax cpio none' 2833 2834am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2835 2836 2837 2838 2839 2840 2841# POSIX will say in a future version that running "rm -f" with no argument 2842# is OK; and we want to be able to make that assumption in our Makefile 2843# recipes. So use an aggressive probe to check that the usage we want is 2844# actually supported "in the wild" to an acceptable degree. 2845# See automake bug#10828. 2846# To make any issue more visible, cause the running configure to be aborted 2847# by default if the 'rm' program in use doesn't match our expectations; the 2848# user can still override this though. 2849if rm -f && rm -fr && rm -rf; then : OK; else 2850 cat >&2 <<'END' 2851Oops! 2852 2853Your 'rm' program seems unable to run without file operands specified 2854on the command line, even when the '-f' option is present. This is contrary 2855to the behaviour of most rm programs out there, and not conforming with 2856the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2857 2858Please tell bug-automake@gnu.org about your system, including the value 2859of your $PATH and any error possibly output before this message. This 2860can help us improve future automake versions. 2861 2862END 2863 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2864 echo 'Configuration will proceed anyway, since you have set the' >&2 2865 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2866 echo >&2 2867 else 2868 cat >&2 <<'END' 2869Aborting the configuration process, to ensure you take notice of the issue. 2870 2871You can download and install GNU coreutils to get an 'rm' implementation 2872that behaves properly: <http://www.gnu.org/software/coreutils/>. 2873 2874If you want to complete the configuration process using your problematic 2875'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2876to "yes", and re-run configure. 2877 2878END 2879 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2880 fi 2881fi 2882 2883 2884 2885ac_config_headers="$ac_config_headers config.h" 2886 2887 2888ac_ext=c 2889ac_cpp='$CPP $CPPFLAGS' 2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2892ac_compiler_gnu=$ac_cv_c_compiler_gnu 2893 2894ac_ext=c 2895ac_cpp='$CPP $CPPFLAGS' 2896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2898ac_compiler_gnu=$ac_cv_c_compiler_gnu 2899if test -n "$ac_tool_prefix"; then 2900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2901set dummy ${ac_tool_prefix}gcc; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if ${ac_cv_prog_CC+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$CC"; then 2908 ac_cv_prog_CC="$CC" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2917 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927CC=$ac_cv_prog_CC 2928if test -n "$CC"; then 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2930$as_echo "$CC" >&6; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 2937fi 2938if test -z "$ac_cv_prog_CC"; then 2939 ac_ct_CC=$CC 2940 # Extract the first word of "gcc", so it can be a program name with args. 2941set dummy gcc; ac_word=$2 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943$as_echo_n "checking for $ac_word... " >&6; } 2944if ${ac_cv_prog_ac_ct_CC+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 if test -n "$ac_ct_CC"; then 2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 ac_cv_prog_ac_ct_CC="gcc" 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962 done 2963IFS=$as_save_IFS 2964 2965fi 2966fi 2967ac_ct_CC=$ac_cv_prog_ac_ct_CC 2968if test -n "$ac_ct_CC"; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2970$as_echo "$ac_ct_CC" >&6; } 2971else 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2973$as_echo "no" >&6; } 2974fi 2975 2976 if test "x$ac_ct_CC" = x; then 2977 CC="" 2978 else 2979 case $cross_compiling:$ac_tool_warned in 2980yes:) 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2983ac_tool_warned=yes ;; 2984esac 2985 CC=$ac_ct_CC 2986 fi 2987else 2988 CC="$ac_cv_prog_CC" 2989fi 2990 2991if test -z "$CC"; then 2992 if test -n "$ac_tool_prefix"; then 2993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2994set dummy ${ac_tool_prefix}cc; ac_word=$2 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996$as_echo_n "checking for $ac_word... " >&6; } 2997if ${ac_cv_prog_CC+:} false; then : 2998 $as_echo_n "(cached) " >&6 2999else 3000 if test -n "$CC"; then 3001 ac_cv_prog_CC="$CC" # Let the user override the test. 3002else 3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3004for as_dir in $PATH 3005do 3006 IFS=$as_save_IFS 3007 test -z "$as_dir" && as_dir=. 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3010 ac_cv_prog_CC="${ac_tool_prefix}cc" 3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3012 break 2 3013 fi 3014done 3015 done 3016IFS=$as_save_IFS 3017 3018fi 3019fi 3020CC=$ac_cv_prog_CC 3021if test -n "$CC"; then 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3023$as_echo "$CC" >&6; } 3024else 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026$as_echo "no" >&6; } 3027fi 3028 3029 3030 fi 3031fi 3032if test -z "$CC"; then 3033 # Extract the first word of "cc", so it can be a program name with args. 3034set dummy cc; ac_word=$2 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3036$as_echo_n "checking for $ac_word... " >&6; } 3037if ${ac_cv_prog_CC+:} false; then : 3038 $as_echo_n "(cached) " >&6 3039else 3040 if test -n "$CC"; then 3041 ac_cv_prog_CC="$CC" # Let the user override the test. 3042else 3043 ac_prog_rejected=no 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 test -z "$as_dir" && as_dir=. 3049 for ac_exec_ext in '' $ac_executable_extensions; do 3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3051 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3052 ac_prog_rejected=yes 3053 continue 3054 fi 3055 ac_cv_prog_CC="cc" 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063if test $ac_prog_rejected = yes; then 3064 # We found a bogon in the path, so make sure we never use it. 3065 set dummy $ac_cv_prog_CC 3066 shift 3067 if test $# != 0; then 3068 # We chose a different compiler from the bogus one. 3069 # However, it has the same basename, so the bogon will be chosen 3070 # first if we set CC to just the basename; use the full file name. 3071 shift 3072 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3073 fi 3074fi 3075fi 3076fi 3077CC=$ac_cv_prog_CC 3078if test -n "$CC"; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3080$as_echo "$CC" >&6; } 3081else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3083$as_echo "no" >&6; } 3084fi 3085 3086 3087fi 3088if test -z "$CC"; then 3089 if test -n "$ac_tool_prefix"; then 3090 for ac_prog in cl.exe 3091 do 3092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3093set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3095$as_echo_n "checking for $ac_word... " >&6; } 3096if ${ac_cv_prog_CC+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 if test -n "$CC"; then 3100 ac_cv_prog_CC="$CC" # Let the user override the test. 3101else 3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103for as_dir in $PATH 3104do 3105 IFS=$as_save_IFS 3106 test -z "$as_dir" && as_dir=. 3107 for ac_exec_ext in '' $ac_executable_extensions; do 3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3111 break 2 3112 fi 3113done 3114 done 3115IFS=$as_save_IFS 3116 3117fi 3118fi 3119CC=$ac_cv_prog_CC 3120if test -n "$CC"; then 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3122$as_echo "$CC" >&6; } 3123else 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3125$as_echo "no" >&6; } 3126fi 3127 3128 3129 test -n "$CC" && break 3130 done 3131fi 3132if test -z "$CC"; then 3133 ac_ct_CC=$CC 3134 for ac_prog in cl.exe 3135do 3136 # Extract the first word of "$ac_prog", so it can be a program name with args. 3137set dummy $ac_prog; ac_word=$2 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139$as_echo_n "checking for $ac_word... " >&6; } 3140if ${ac_cv_prog_ac_ct_CC+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if test -n "$ac_ct_CC"; then 3144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3145else 3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3147for as_dir in $PATH 3148do 3149 IFS=$as_save_IFS 3150 test -z "$as_dir" && as_dir=. 3151 for ac_exec_ext in '' $ac_executable_extensions; do 3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3153 ac_cv_prog_ac_ct_CC="$ac_prog" 3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3155 break 2 3156 fi 3157done 3158 done 3159IFS=$as_save_IFS 3160 3161fi 3162fi 3163ac_ct_CC=$ac_cv_prog_ac_ct_CC 3164if test -n "$ac_ct_CC"; then 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3166$as_echo "$ac_ct_CC" >&6; } 3167else 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3169$as_echo "no" >&6; } 3170fi 3171 3172 3173 test -n "$ac_ct_CC" && break 3174done 3175 3176 if test "x$ac_ct_CC" = x; then 3177 CC="" 3178 else 3179 case $cross_compiling:$ac_tool_warned in 3180yes:) 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3183ac_tool_warned=yes ;; 3184esac 3185 CC=$ac_ct_CC 3186 fi 3187fi 3188 3189fi 3190 3191 3192test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3194as_fn_error $? "no acceptable C compiler found in \$PATH 3195See \`config.log' for more details" "$LINENO" 5; } 3196 3197# Provide some information about the compiler. 3198$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3199set X $ac_compile 3200ac_compiler=$2 3201for ac_option in --version -v -V -qversion; do 3202 { { ac_try="$ac_compiler $ac_option >&5" 3203case "(($ac_try" in 3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3205 *) ac_try_echo=$ac_try;; 3206esac 3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3208$as_echo "$ac_try_echo"; } >&5 3209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3210 ac_status=$? 3211 if test -s conftest.err; then 3212 sed '10a\ 3213... rest of stderr output deleted ... 3214 10q' conftest.err >conftest.er1 3215 cat conftest.er1 >&5 3216 fi 3217 rm -f conftest.er1 conftest.err 3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219 test $ac_status = 0; } 3220done 3221 3222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233ac_clean_files_save=$ac_clean_files 3234ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3235# Try to create an executable without -o first, disregard a.out. 3236# It will help us diagnose broken compilers, and finding out an intuition 3237# of exeext. 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3239$as_echo_n "checking whether the C compiler works... " >&6; } 3240ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3241 3242# The possible output files: 3243ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3244 3245ac_rmfiles= 3246for ac_file in $ac_files 3247do 3248 case $ac_file in 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3250 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3251 esac 3252done 3253rm -f $ac_rmfiles 3254 3255if { { ac_try="$ac_link_default" 3256case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3261$as_echo "$ac_try_echo"; } >&5 3262 (eval "$ac_link_default") 2>&5 3263 ac_status=$? 3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3265 test $ac_status = 0; }; then : 3266 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3267# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3268# in a Makefile. We should not override ac_cv_exeext if it was cached, 3269# so that the user can short-circuit this test for compilers unknown to 3270# Autoconf. 3271for ac_file in $ac_files '' 3272do 3273 test -f "$ac_file" || continue 3274 case $ac_file in 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3276 ;; 3277 [ab].out ) 3278 # We found the default executable, but exeext='' is most 3279 # certainly right. 3280 break;; 3281 *.* ) 3282 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3283 then :; else 3284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3285 fi 3286 # We set ac_cv_exeext here because the later test for it is not 3287 # safe: cross compilers may not add the suffix if given an `-o' 3288 # argument, so we may need to know it at that point already. 3289 # Even if this section looks crufty: it has the advantage of 3290 # actually working. 3291 break;; 3292 * ) 3293 break;; 3294 esac 3295done 3296test "$ac_cv_exeext" = no && ac_cv_exeext= 3297 3298else 3299 ac_file='' 3300fi 3301if test -z "$ac_file"; then : 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304$as_echo "$as_me: failed program was:" >&5 3305sed 's/^/| /' conftest.$ac_ext >&5 3306 3307{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3309as_fn_error 77 "C compiler cannot create executables 3310See \`config.log' for more details" "$LINENO" 5; } 3311else 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3313$as_echo "yes" >&6; } 3314fi 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3316$as_echo_n "checking for C compiler default output file name... " >&6; } 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3318$as_echo "$ac_file" >&6; } 3319ac_exeext=$ac_cv_exeext 3320 3321rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3322ac_clean_files=$ac_clean_files_save 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3324$as_echo_n "checking for suffix of executables... " >&6; } 3325if { { ac_try="$ac_link" 3326case "(($ac_try" in 3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328 *) ac_try_echo=$ac_try;; 3329esac 3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3331$as_echo "$ac_try_echo"; } >&5 3332 (eval "$ac_link") 2>&5 3333 ac_status=$? 3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3335 test $ac_status = 0; }; then : 3336 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3337# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3338# work properly (i.e., refer to `conftest.exe'), while it won't with 3339# `rm'. 3340for ac_file in conftest.exe conftest conftest.*; do 3341 test -f "$ac_file" || continue 3342 case $ac_file in 3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3345 break;; 3346 * ) break;; 3347 esac 3348done 3349else 3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3352as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3353See \`config.log' for more details" "$LINENO" 5; } 3354fi 3355rm -f conftest conftest$ac_cv_exeext 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3357$as_echo "$ac_cv_exeext" >&6; } 3358 3359rm -f conftest.$ac_ext 3360EXEEXT=$ac_cv_exeext 3361ac_exeext=$EXEEXT 3362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364#include <stdio.h> 3365int 3366main () 3367{ 3368FILE *f = fopen ("conftest.out", "w"); 3369 return ferror (f) || fclose (f) != 0; 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375ac_clean_files="$ac_clean_files conftest.out" 3376# Check that the compiler produces executables we can run. If not, either 3377# the compiler is broken, or we cross compile. 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3379$as_echo_n "checking whether we are cross compiling... " >&6; } 3380if test "$cross_compiling" != yes; then 3381 { { ac_try="$ac_link" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3387$as_echo "$ac_try_echo"; } >&5 3388 (eval "$ac_link") 2>&5 3389 ac_status=$? 3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3391 test $ac_status = 0; } 3392 if { ac_try='./conftest$ac_cv_exeext' 3393 { { case "(($ac_try" in 3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3395 *) ac_try_echo=$ac_try;; 3396esac 3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3398$as_echo "$ac_try_echo"; } >&5 3399 (eval "$ac_try") 2>&5 3400 ac_status=$? 3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3402 test $ac_status = 0; }; }; then 3403 cross_compiling=no 3404 else 3405 if test "$cross_compiling" = maybe; then 3406 cross_compiling=yes 3407 else 3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410as_fn_error $? "cannot run C compiled programs. 3411If you meant to cross compile, use \`--host'. 3412See \`config.log' for more details" "$LINENO" 5; } 3413 fi 3414 fi 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3417$as_echo "$cross_compiling" >&6; } 3418 3419rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3420ac_clean_files=$ac_clean_files_save 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3422$as_echo_n "checking for suffix of object files... " >&6; } 3423if ${ac_cv_objext+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.o conftest.obj 3438if { { ac_try="$ac_compile" 3439case "(($ac_try" in 3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3441 *) ac_try_echo=$ac_try;; 3442esac 3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3444$as_echo "$ac_try_echo"; } >&5 3445 (eval "$ac_compile") 2>&5 3446 ac_status=$? 3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3448 test $ac_status = 0; }; then : 3449 for ac_file in conftest.o conftest.obj conftest.*; do 3450 test -f "$ac_file" || continue; 3451 case $ac_file in 3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3454 break;; 3455 esac 3456done 3457else 3458 $as_echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3463as_fn_error $? "cannot compute suffix of object files: cannot compile 3464See \`config.log' for more details" "$LINENO" 5; } 3465fi 3466rm -f conftest.$ac_cv_objext conftest.$ac_ext 3467fi 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3469$as_echo "$ac_cv_objext" >&6; } 3470OBJEXT=$ac_cv_objext 3471ac_objext=$OBJEXT 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3473$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3474if ${ac_cv_c_compiler_gnu+:} false; then : 3475 $as_echo_n "(cached) " >&6 3476else 3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479 3480int 3481main () 3482{ 3483#ifndef __GNUC__ 3484 choke me 3485#endif 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491if ac_fn_c_try_compile "$LINENO"; then : 3492 ac_compiler_gnu=yes 3493else 3494 ac_compiler_gnu=no 3495fi 3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497ac_cv_c_compiler_gnu=$ac_compiler_gnu 3498 3499fi 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3501$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3502if test $ac_compiler_gnu = yes; then 3503 GCC=yes 3504else 3505 GCC= 3506fi 3507ac_test_CFLAGS=${CFLAGS+set} 3508ac_save_CFLAGS=$CFLAGS 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3510$as_echo_n "checking whether $CC accepts -g... " >&6; } 3511if ${ac_cv_prog_cc_g+:} false; then : 3512 $as_echo_n "(cached) " >&6 3513else 3514 ac_save_c_werror_flag=$ac_c_werror_flag 3515 ac_c_werror_flag=yes 3516 ac_cv_prog_cc_g=no 3517 CFLAGS="-g" 3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3519/* end confdefs.h. */ 3520 3521int 3522main () 3523{ 3524 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529if ac_fn_c_try_compile "$LINENO"; then : 3530 ac_cv_prog_cc_g=yes 3531else 3532 CFLAGS="" 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535 3536int 3537main () 3538{ 3539 3540 ; 3541 return 0; 3542} 3543_ACEOF 3544if ac_fn_c_try_compile "$LINENO"; then : 3545 3546else 3547 ac_c_werror_flag=$ac_save_c_werror_flag 3548 CFLAGS="-g" 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551 3552int 3553main () 3554{ 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560if ac_fn_c_try_compile "$LINENO"; then : 3561 ac_cv_prog_cc_g=yes 3562fi 3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3564fi 3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3566fi 3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3568 ac_c_werror_flag=$ac_save_c_werror_flag 3569fi 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3571$as_echo "$ac_cv_prog_cc_g" >&6; } 3572if test "$ac_test_CFLAGS" = set; then 3573 CFLAGS=$ac_save_CFLAGS 3574elif test $ac_cv_prog_cc_g = yes; then 3575 if test "$GCC" = yes; then 3576 CFLAGS="-g -O2" 3577 else 3578 CFLAGS="-g" 3579 fi 3580else 3581 if test "$GCC" = yes; then 3582 CFLAGS="-O2" 3583 else 3584 CFLAGS= 3585 fi 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3588$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3589if ${ac_cv_prog_cc_c89+:} false; then : 3590 $as_echo_n "(cached) " >&6 3591else 3592 ac_cv_prog_cc_c89=no 3593ac_save_CC=$CC 3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596#include <stdarg.h> 3597#include <stdio.h> 3598struct stat; 3599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3600struct buf { int x; }; 3601FILE * (*rcsopen) (struct buf *, struct stat *, int); 3602static char *e (p, i) 3603 char **p; 3604 int i; 3605{ 3606 return p[i]; 3607} 3608static char *f (char * (*g) (char **, int), char **p, ...) 3609{ 3610 char *s; 3611 va_list v; 3612 va_start (v,p); 3613 s = g (p, va_arg (v,int)); 3614 va_end (v); 3615 return s; 3616} 3617 3618/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3619 function prototypes and stuff, but not '\xHH' hex character constants. 3620 These don't provoke an error unfortunately, instead are silently treated 3621 as 'x'. The following induces an error, until -std is added to get 3622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3623 array size at least. It's necessary to write '\x00'==0 to get something 3624 that's true only with -std. */ 3625int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3626 3627/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3628 inside strings and character constants. */ 3629#define FOO(x) 'x' 3630int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3631 3632int test (int i, double x); 3633struct s1 {int (*f) (int a);}; 3634struct s2 {int (*f) (double a);}; 3635int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3636int argc; 3637char **argv; 3638int 3639main () 3640{ 3641return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3642 ; 3643 return 0; 3644} 3645_ACEOF 3646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3648do 3649 CC="$ac_save_CC $ac_arg" 3650 if ac_fn_c_try_compile "$LINENO"; then : 3651 ac_cv_prog_cc_c89=$ac_arg 3652fi 3653rm -f core conftest.err conftest.$ac_objext 3654 test "x$ac_cv_prog_cc_c89" != "xno" && break 3655done 3656rm -f conftest.$ac_ext 3657CC=$ac_save_CC 3658 3659fi 3660# AC_CACHE_VAL 3661case "x$ac_cv_prog_cc_c89" in 3662 x) 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3664$as_echo "none needed" >&6; } ;; 3665 xno) 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3667$as_echo "unsupported" >&6; } ;; 3668 *) 3669 CC="$CC $ac_cv_prog_cc_c89" 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3671$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3672esac 3673if test "x$ac_cv_prog_cc_c89" != xno; then : 3674 3675fi 3676 3677ac_ext=c 3678ac_cpp='$CPP $CPPFLAGS' 3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3681ac_compiler_gnu=$ac_cv_c_compiler_gnu 3682 3683ac_ext=c 3684ac_cpp='$CPP $CPPFLAGS' 3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3687ac_compiler_gnu=$ac_cv_c_compiler_gnu 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3689$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3690if ${am_cv_prog_cc_c_o+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704 # Make sure it works both with $CC and with simple cc. 3705 # Following AC_PROG_CC_C_O, we do the test twice because some 3706 # compilers refuse to overwrite an existing .o file with -o, 3707 # though they will create one. 3708 am_cv_prog_cc_c_o=yes 3709 for am_i in 1 2; do 3710 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3711 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3712 ac_status=$? 3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); } \ 3715 && test -f conftest2.$ac_objext; then 3716 : OK 3717 else 3718 am_cv_prog_cc_c_o=no 3719 break 3720 fi 3721 done 3722 rm -f core conftest* 3723 unset am_i 3724fi 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3726$as_echo "$am_cv_prog_cc_c_o" >&6; } 3727if test "$am_cv_prog_cc_c_o" != yes; then 3728 # Losing compiler, so override with the script. 3729 # FIXME: It is wrong to rewrite CC. 3730 # But if we don't then we get into trouble of one sort or another. 3731 # A longer-term fix would be to have automake use am__CC in this case, 3732 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3733 CC="$am_aux_dir/compile $CC" 3734fi 3735ac_ext=c 3736ac_cpp='$CPP $CPPFLAGS' 3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3739ac_compiler_gnu=$ac_cv_c_compiler_gnu 3740 3741DEPDIR="${am__leading_dot}deps" 3742 3743ac_config_commands="$ac_config_commands depfiles" 3744 3745 3746am_make=${MAKE-make} 3747cat > confinc << 'END' 3748am__doit: 3749 @echo this is the am__doit target 3750.PHONY: am__doit 3751END 3752# If we don't find an include directive, just comment out the code. 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3754$as_echo_n "checking for style of include used by $am_make... " >&6; } 3755am__include="#" 3756am__quote= 3757_am_result=none 3758# First try GNU make style include. 3759echo "include confinc" > confmf 3760# Ignore all kinds of additional output from 'make'. 3761case `$am_make -s -f confmf 2> /dev/null` in #( 3762*the\ am__doit\ target*) 3763 am__include=include 3764 am__quote= 3765 _am_result=GNU 3766 ;; 3767esac 3768# Now try BSD make style include. 3769if test "$am__include" = "#"; then 3770 echo '.include "confinc"' > confmf 3771 case `$am_make -s -f confmf 2> /dev/null` in #( 3772 *the\ am__doit\ target*) 3773 am__include=.include 3774 am__quote="\"" 3775 _am_result=BSD 3776 ;; 3777 esac 3778fi 3779 3780 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3782$as_echo "$_am_result" >&6; } 3783rm -f confinc confmf 3784 3785# Check whether --enable-dependency-tracking was given. 3786if test "${enable_dependency_tracking+set}" = set; then : 3787 enableval=$enable_dependency_tracking; 3788fi 3789 3790if test "x$enable_dependency_tracking" != xno; then 3791 am_depcomp="$ac_aux_dir/depcomp" 3792 AMDEPBACKSLASH='\' 3793 am__nodep='_no' 3794fi 3795 if test "x$enable_dependency_tracking" != xno; then 3796 AMDEP_TRUE= 3797 AMDEP_FALSE='#' 3798else 3799 AMDEP_TRUE='#' 3800 AMDEP_FALSE= 3801fi 3802 3803 3804 3805depcc="$CC" am_compiler_list= 3806 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3808$as_echo_n "checking dependency style of $depcc... " >&6; } 3809if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3813 # We make a subdir and do the tests there. Otherwise we can end up 3814 # making bogus files that we don't know about and never remove. For 3815 # instance it was reported that on HP-UX the gcc test will end up 3816 # making a dummy file named 'D' -- because '-MD' means "put the output 3817 # in D". 3818 rm -rf conftest.dir 3819 mkdir conftest.dir 3820 # Copy depcomp to subdir because otherwise we won't find it if we're 3821 # using a relative directory. 3822 cp "$am_depcomp" conftest.dir 3823 cd conftest.dir 3824 # We will build objects and dependencies in a subdirectory because 3825 # it helps to detect inapplicable dependency modes. For instance 3826 # both Tru64's cc and ICC support -MD to output dependencies as a 3827 # side effect of compilation, but ICC will put the dependencies in 3828 # the current directory while Tru64 will put them in the object 3829 # directory. 3830 mkdir sub 3831 3832 am_cv_CC_dependencies_compiler_type=none 3833 if test "$am_compiler_list" = ""; then 3834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3835 fi 3836 am__universal=false 3837 case " $depcc " in #( 3838 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3839 esac 3840 3841 for depmode in $am_compiler_list; do 3842 # Setup a source with many dependencies, because some compilers 3843 # like to wrap large dependency lists on column 80 (with \), and 3844 # we should not choose a depcomp mode which is confused by this. 3845 # 3846 # We need to recreate these files for each test, as the compiler may 3847 # overwrite some of them when testing with obscure command lines. 3848 # This happens at least with the AIX C compiler. 3849 : > sub/conftest.c 3850 for i in 1 2 3 4 5 6; do 3851 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3852 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3853 # Solaris 10 /bin/sh. 3854 echo '/* dummy */' > sub/conftst$i.h 3855 done 3856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3857 3858 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3859 # mode. It turns out that the SunPro C++ compiler does not properly 3860 # handle '-M -o', and we need to detect this. Also, some Intel 3861 # versions had trouble with output in subdirs. 3862 am__obj=sub/conftest.${OBJEXT-o} 3863 am__minus_obj="-o $am__obj" 3864 case $depmode in 3865 gcc) 3866 # This depmode causes a compiler race in universal mode. 3867 test "$am__universal" = false || continue 3868 ;; 3869 nosideeffect) 3870 # After this tag, mechanisms are not by side-effect, so they'll 3871 # only be used when explicitly requested. 3872 if test "x$enable_dependency_tracking" = xyes; then 3873 continue 3874 else 3875 break 3876 fi 3877 ;; 3878 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3879 # This compiler won't grok '-c -o', but also, the minuso test has 3880 # not run yet. These depmodes are late enough in the game, and 3881 # so weak that their functioning should not be impacted. 3882 am__obj=conftest.${OBJEXT-o} 3883 am__minus_obj= 3884 ;; 3885 none) break ;; 3886 esac 3887 if depmode=$depmode \ 3888 source=sub/conftest.c object=$am__obj \ 3889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3890 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3891 >/dev/null 2>conftest.err && 3892 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3893 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3894 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3895 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3896 # icc doesn't choke on unknown options, it will just issue warnings 3897 # or remarks (even with -Werror). So we grep stderr for any message 3898 # that says an option was ignored or not supported. 3899 # When given -MP, icc 7.0 and 7.1 complain thusly: 3900 # icc: Command line warning: ignoring option '-M'; no argument required 3901 # The diagnosis changed in icc 8.0: 3902 # icc: Command line remark: option '-MP' not supported 3903 if (grep 'ignoring option' conftest.err || 3904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3905 am_cv_CC_dependencies_compiler_type=$depmode 3906 break 3907 fi 3908 fi 3909 done 3910 3911 cd .. 3912 rm -rf conftest.dir 3913else 3914 am_cv_CC_dependencies_compiler_type=none 3915fi 3916 3917fi 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3919$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3920CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3921 3922 if 3923 test "x$enable_dependency_tracking" != xno \ 3924 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3925 am__fastdepCC_TRUE= 3926 am__fastdepCC_FALSE='#' 3927else 3928 am__fastdepCC_TRUE='#' 3929 am__fastdepCC_FALSE= 3930fi 3931 3932 3933 3934ac_ext=c 3935ac_cpp='$CPP $CPPFLAGS' 3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3938ac_compiler_gnu=$ac_cv_c_compiler_gnu 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3940$as_echo_n "checking how to run the C preprocessor... " >&6; } 3941# On Suns, sometimes $CPP names a directory. 3942if test -n "$CPP" && test -d "$CPP"; then 3943 CPP= 3944fi 3945if test -z "$CPP"; then 3946 if ${ac_cv_prog_CPP+:} false; then : 3947 $as_echo_n "(cached) " >&6 3948else 3949 # Double quotes because CPP needs to be expanded 3950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3951 do 3952 ac_preproc_ok=false 3953for ac_c_preproc_warn_flag in '' yes 3954do 3955 # Use a header file that comes with gcc, so configuring glibc 3956 # with a fresh cross-compiler works. 3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3958 # <limits.h> exists even on freestanding compilers. 3959 # On the NeXT, cc -E runs the code through the compiler's parser, 3960 # not just through cpp. "Syntax error" is here to catch this case. 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3962/* end confdefs.h. */ 3963#ifdef __STDC__ 3964# include <limits.h> 3965#else 3966# include <assert.h> 3967#endif 3968 Syntax error 3969_ACEOF 3970if ac_fn_c_try_cpp "$LINENO"; then : 3971 3972else 3973 # Broken: fails on valid input. 3974continue 3975fi 3976rm -f conftest.err conftest.i conftest.$ac_ext 3977 3978 # OK, works on sane cases. Now check whether nonexistent headers 3979 # can be detected and how. 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982#include <ac_nonexistent.h> 3983_ACEOF 3984if ac_fn_c_try_cpp "$LINENO"; then : 3985 # Broken: success on invalid input. 3986continue 3987else 3988 # Passes both tests. 3989ac_preproc_ok=: 3990break 3991fi 3992rm -f conftest.err conftest.i conftest.$ac_ext 3993 3994done 3995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3996rm -f conftest.i conftest.err conftest.$ac_ext 3997if $ac_preproc_ok; then : 3998 break 3999fi 4000 4001 done 4002 ac_cv_prog_CPP=$CPP 4003 4004fi 4005 CPP=$ac_cv_prog_CPP 4006else 4007 ac_cv_prog_CPP=$CPP 4008fi 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4010$as_echo "$CPP" >&6; } 4011ac_preproc_ok=false 4012for ac_c_preproc_warn_flag in '' yes 4013do 4014 # Use a header file that comes with gcc, so configuring glibc 4015 # with a fresh cross-compiler works. 4016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4017 # <limits.h> exists even on freestanding compilers. 4018 # On the NeXT, cc -E runs the code through the compiler's parser, 4019 # not just through cpp. "Syntax error" is here to catch this case. 4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022#ifdef __STDC__ 4023# include <limits.h> 4024#else 4025# include <assert.h> 4026#endif 4027 Syntax error 4028_ACEOF 4029if ac_fn_c_try_cpp "$LINENO"; then : 4030 4031else 4032 # Broken: fails on valid input. 4033continue 4034fi 4035rm -f conftest.err conftest.i conftest.$ac_ext 4036 4037 # OK, works on sane cases. Now check whether nonexistent headers 4038 # can be detected and how. 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041#include <ac_nonexistent.h> 4042_ACEOF 4043if ac_fn_c_try_cpp "$LINENO"; then : 4044 # Broken: success on invalid input. 4045continue 4046else 4047 # Passes both tests. 4048ac_preproc_ok=: 4049break 4050fi 4051rm -f conftest.err conftest.i conftest.$ac_ext 4052 4053done 4054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4055rm -f conftest.i conftest.err conftest.$ac_ext 4056if $ac_preproc_ok; then : 4057 4058else 4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4061as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4062See \`config.log' for more details" "$LINENO" 5; } 4063fi 4064 4065ac_ext=c 4066ac_cpp='$CPP $CPPFLAGS' 4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4069ac_compiler_gnu=$ac_cv_c_compiler_gnu 4070 4071 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4073$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4074if ${ac_cv_path_GREP+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 if test -z "$GREP"; then 4078 ac_path_GREP_found=false 4079 # Loop through the user's path and test for each of PROGNAME-LIST 4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4082do 4083 IFS=$as_save_IFS 4084 test -z "$as_dir" && as_dir=. 4085 for ac_prog in grep ggrep; do 4086 for ac_exec_ext in '' $ac_executable_extensions; do 4087 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4088 as_fn_executable_p "$ac_path_GREP" || continue 4089# Check for GNU ac_path_GREP and select it if it is found. 4090 # Check for GNU $ac_path_GREP 4091case `"$ac_path_GREP" --version 2>&1` in 4092*GNU*) 4093 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4094*) 4095 ac_count=0 4096 $as_echo_n 0123456789 >"conftest.in" 4097 while : 4098 do 4099 cat "conftest.in" "conftest.in" >"conftest.tmp" 4100 mv "conftest.tmp" "conftest.in" 4101 cp "conftest.in" "conftest.nl" 4102 $as_echo 'GREP' >> "conftest.nl" 4103 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4105 as_fn_arith $ac_count + 1 && ac_count=$as_val 4106 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4107 # Best one so far, save it but keep looking for a better one 4108 ac_cv_path_GREP="$ac_path_GREP" 4109 ac_path_GREP_max=$ac_count 4110 fi 4111 # 10*(2^10) chars as input seems more than enough 4112 test $ac_count -gt 10 && break 4113 done 4114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4115esac 4116 4117 $ac_path_GREP_found && break 3 4118 done 4119 done 4120 done 4121IFS=$as_save_IFS 4122 if test -z "$ac_cv_path_GREP"; then 4123 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4124 fi 4125else 4126 ac_cv_path_GREP=$GREP 4127fi 4128 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4131$as_echo "$ac_cv_path_GREP" >&6; } 4132 GREP="$ac_cv_path_GREP" 4133 4134 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4136$as_echo_n "checking for egrep... " >&6; } 4137if ${ac_cv_path_EGREP+:} false; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4141 then ac_cv_path_EGREP="$GREP -E" 4142 else 4143 if test -z "$EGREP"; then 4144 ac_path_EGREP_found=false 4145 # Loop through the user's path and test for each of PROGNAME-LIST 4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4148do 4149 IFS=$as_save_IFS 4150 test -z "$as_dir" && as_dir=. 4151 for ac_prog in egrep; do 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4154 as_fn_executable_p "$ac_path_EGREP" || continue 4155# Check for GNU ac_path_EGREP and select it if it is found. 4156 # Check for GNU $ac_path_EGREP 4157case `"$ac_path_EGREP" --version 2>&1` in 4158*GNU*) 4159 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4160*) 4161 ac_count=0 4162 $as_echo_n 0123456789 >"conftest.in" 4163 while : 4164 do 4165 cat "conftest.in" "conftest.in" >"conftest.tmp" 4166 mv "conftest.tmp" "conftest.in" 4167 cp "conftest.in" "conftest.nl" 4168 $as_echo 'EGREP' >> "conftest.nl" 4169 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4171 as_fn_arith $ac_count + 1 && ac_count=$as_val 4172 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4173 # Best one so far, save it but keep looking for a better one 4174 ac_cv_path_EGREP="$ac_path_EGREP" 4175 ac_path_EGREP_max=$ac_count 4176 fi 4177 # 10*(2^10) chars as input seems more than enough 4178 test $ac_count -gt 10 && break 4179 done 4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4181esac 4182 4183 $ac_path_EGREP_found && break 3 4184 done 4185 done 4186 done 4187IFS=$as_save_IFS 4188 if test -z "$ac_cv_path_EGREP"; then 4189 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4190 fi 4191else 4192 ac_cv_path_EGREP=$EGREP 4193fi 4194 4195 fi 4196fi 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4198$as_echo "$ac_cv_path_EGREP" >&6; } 4199 EGREP="$ac_cv_path_EGREP" 4200 4201 4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4203$as_echo_n "checking for ANSI C header files... " >&6; } 4204if ${ac_cv_header_stdc+:} false; then : 4205 $as_echo_n "(cached) " >&6 4206else 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209#include <stdlib.h> 4210#include <stdarg.h> 4211#include <string.h> 4212#include <float.h> 4213 4214int 4215main () 4216{ 4217 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222if ac_fn_c_try_compile "$LINENO"; then : 4223 ac_cv_header_stdc=yes 4224else 4225 ac_cv_header_stdc=no 4226fi 4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4228 4229if test $ac_cv_header_stdc = yes; then 4230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#include <string.h> 4234 4235_ACEOF 4236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4237 $EGREP "memchr" >/dev/null 2>&1; then : 4238 4239else 4240 ac_cv_header_stdc=no 4241fi 4242rm -f conftest* 4243 4244fi 4245 4246if test $ac_cv_header_stdc = yes; then 4247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <stdlib.h> 4251 4252_ACEOF 4253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4254 $EGREP "free" >/dev/null 2>&1; then : 4255 4256else 4257 ac_cv_header_stdc=no 4258fi 4259rm -f conftest* 4260 4261fi 4262 4263if test $ac_cv_header_stdc = yes; then 4264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4265 if test "$cross_compiling" = yes; then : 4266 : 4267else 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270#include <ctype.h> 4271#include <stdlib.h> 4272#if ((' ' & 0x0FF) == 0x020) 4273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4275#else 4276# define ISLOWER(c) \ 4277 (('a' <= (c) && (c) <= 'i') \ 4278 || ('j' <= (c) && (c) <= 'r') \ 4279 || ('s' <= (c) && (c) <= 'z')) 4280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4281#endif 4282 4283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4284int 4285main () 4286{ 4287 int i; 4288 for (i = 0; i < 256; i++) 4289 if (XOR (islower (i), ISLOWER (i)) 4290 || toupper (i) != TOUPPER (i)) 4291 return 2; 4292 return 0; 4293} 4294_ACEOF 4295if ac_fn_c_try_run "$LINENO"; then : 4296 4297else 4298 ac_cv_header_stdc=no 4299fi 4300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4301 conftest.$ac_objext conftest.beam conftest.$ac_ext 4302fi 4303 4304fi 4305fi 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4307$as_echo "$ac_cv_header_stdc" >&6; } 4308if test $ac_cv_header_stdc = yes; then 4309 4310$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4311 4312fi 4313 4314# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4316 inttypes.h stdint.h unistd.h 4317do : 4318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4319ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4320" 4321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4322 cat >>confdefs.h <<_ACEOF 4323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4324_ACEOF 4325 4326fi 4327 4328done 4329 4330 4331 4332 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4333if test "x$ac_cv_header_minix_config_h" = xyes; then : 4334 MINIX=yes 4335else 4336 MINIX= 4337fi 4338 4339 4340 if test "$MINIX" = yes; then 4341 4342$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4343 4344 4345$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4346 4347 4348$as_echo "#define _MINIX 1" >>confdefs.h 4349 4350 fi 4351 4352 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4354$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4355if ${ac_cv_safe_to_define___extensions__+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4359/* end confdefs.h. */ 4360 4361# define __EXTENSIONS__ 1 4362 $ac_includes_default 4363int 4364main () 4365{ 4366 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371if ac_fn_c_try_compile "$LINENO"; then : 4372 ac_cv_safe_to_define___extensions__=yes 4373else 4374 ac_cv_safe_to_define___extensions__=no 4375fi 4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4377fi 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4379$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4380 test $ac_cv_safe_to_define___extensions__ = yes && 4381 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4382 4383 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4384 4385 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4386 4387 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4388 4389 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4390 4391 4392 4393case `pwd` in 4394 *\ * | *\ *) 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4396$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4397esac 4398 4399 4400 4401macro_version='2.4.2' 4402macro_revision='1.3337' 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416ltmain="$ac_aux_dir/ltmain.sh" 4417 4418# Make sure we can run config.sub. 4419$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4420 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4421 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4423$as_echo_n "checking build system type... " >&6; } 4424if ${ac_cv_build+:} false; then : 4425 $as_echo_n "(cached) " >&6 4426else 4427 ac_build_alias=$build_alias 4428test "x$ac_build_alias" = x && 4429 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4430test "x$ac_build_alias" = x && 4431 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4432ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4434 4435fi 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4437$as_echo "$ac_cv_build" >&6; } 4438case $ac_cv_build in 4439*-*-*) ;; 4440*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4441esac 4442build=$ac_cv_build 4443ac_save_IFS=$IFS; IFS='-' 4444set x $ac_cv_build 4445shift 4446build_cpu=$1 4447build_vendor=$2 4448shift; shift 4449# Remember, the first character of IFS is used to create $*, 4450# except with old shells: 4451build_os=$* 4452IFS=$ac_save_IFS 4453case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4454 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4457$as_echo_n "checking host system type... " >&6; } 4458if ${ac_cv_host+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test "x$host_alias" = x; then 4462 ac_cv_host=$ac_cv_build 4463else 4464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4466fi 4467 4468fi 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4470$as_echo "$ac_cv_host" >&6; } 4471case $ac_cv_host in 4472*-*-*) ;; 4473*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4474esac 4475host=$ac_cv_host 4476ac_save_IFS=$IFS; IFS='-' 4477set x $ac_cv_host 4478shift 4479host_cpu=$1 4480host_vendor=$2 4481shift; shift 4482# Remember, the first character of IFS is used to create $*, 4483# except with old shells: 4484host_os=$* 4485IFS=$ac_save_IFS 4486case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4487 4488 4489# Backslashify metacharacters that are still active within 4490# double-quoted strings. 4491sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4492 4493# Same as above, but do not quote variable references. 4494double_quote_subst='s/\(["`\\]\)/\\\1/g' 4495 4496# Sed substitution to delay expansion of an escaped shell variable in a 4497# double_quote_subst'ed string. 4498delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4499 4500# Sed substitution to delay expansion of an escaped single quote. 4501delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4502 4503# Sed substitution to avoid accidental globbing in evaled expressions 4504no_glob_subst='s/\*/\\\*/g' 4505 4506ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4507ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4508ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4509 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4511$as_echo_n "checking how to print strings... " >&6; } 4512# Test print first, because it will be a builtin if present. 4513if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4514 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4515 ECHO='print -r --' 4516elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4517 ECHO='printf %s\n' 4518else 4519 # Use this function as a fallback that always works. 4520 func_fallback_echo () 4521 { 4522 eval 'cat <<_LTECHO_EOF 4523$1 4524_LTECHO_EOF' 4525 } 4526 ECHO='func_fallback_echo' 4527fi 4528 4529# func_echo_all arg... 4530# Invoke $ECHO with all args, space-separated. 4531func_echo_all () 4532{ 4533 $ECHO "" 4534} 4535 4536case "$ECHO" in 4537 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4538$as_echo "printf" >&6; } ;; 4539 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4540$as_echo "print -r" >&6; } ;; 4541 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4542$as_echo "cat" >&6; } ;; 4543esac 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4559$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4560if ${ac_cv_path_SED+:} false; then : 4561 $as_echo_n "(cached) " >&6 4562else 4563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4564 for ac_i in 1 2 3 4 5 6 7; do 4565 ac_script="$ac_script$as_nl$ac_script" 4566 done 4567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4568 { ac_script=; unset ac_script;} 4569 if test -z "$SED"; then 4570 ac_path_SED_found=false 4571 # Loop through the user's path and test for each of PROGNAME-LIST 4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_prog in sed gsed; do 4578 for ac_exec_ext in '' $ac_executable_extensions; do 4579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4580 as_fn_executable_p "$ac_path_SED" || continue 4581# Check for GNU ac_path_SED and select it if it is found. 4582 # Check for GNU $ac_path_SED 4583case `"$ac_path_SED" --version 2>&1` in 4584*GNU*) 4585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4586*) 4587 ac_count=0 4588 $as_echo_n 0123456789 >"conftest.in" 4589 while : 4590 do 4591 cat "conftest.in" "conftest.in" >"conftest.tmp" 4592 mv "conftest.tmp" "conftest.in" 4593 cp "conftest.in" "conftest.nl" 4594 $as_echo '' >> "conftest.nl" 4595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4597 as_fn_arith $ac_count + 1 && ac_count=$as_val 4598 if test $ac_count -gt ${ac_path_SED_max-0}; then 4599 # Best one so far, save it but keep looking for a better one 4600 ac_cv_path_SED="$ac_path_SED" 4601 ac_path_SED_max=$ac_count 4602 fi 4603 # 10*(2^10) chars as input seems more than enough 4604 test $ac_count -gt 10 && break 4605 done 4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4607esac 4608 4609 $ac_path_SED_found && break 3 4610 done 4611 done 4612 done 4613IFS=$as_save_IFS 4614 if test -z "$ac_cv_path_SED"; then 4615 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4616 fi 4617else 4618 ac_cv_path_SED=$SED 4619fi 4620 4621fi 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4623$as_echo "$ac_cv_path_SED" >&6; } 4624 SED="$ac_cv_path_SED" 4625 rm -f conftest.sed 4626 4627test -z "$SED" && SED=sed 4628Xsed="$SED -e 1s/^X//" 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4641$as_echo_n "checking for fgrep... " >&6; } 4642if ${ac_cv_path_FGREP+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4646 then ac_cv_path_FGREP="$GREP -F" 4647 else 4648 if test -z "$FGREP"; then 4649 ac_path_FGREP_found=false 4650 # Loop through the user's path and test for each of PROGNAME-LIST 4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_prog in fgrep; do 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4659 as_fn_executable_p "$ac_path_FGREP" || continue 4660# Check for GNU ac_path_FGREP and select it if it is found. 4661 # Check for GNU $ac_path_FGREP 4662case `"$ac_path_FGREP" --version 2>&1` in 4663*GNU*) 4664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4665*) 4666 ac_count=0 4667 $as_echo_n 0123456789 >"conftest.in" 4668 while : 4669 do 4670 cat "conftest.in" "conftest.in" >"conftest.tmp" 4671 mv "conftest.tmp" "conftest.in" 4672 cp "conftest.in" "conftest.nl" 4673 $as_echo 'FGREP' >> "conftest.nl" 4674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4676 as_fn_arith $ac_count + 1 && ac_count=$as_val 4677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4678 # Best one so far, save it but keep looking for a better one 4679 ac_cv_path_FGREP="$ac_path_FGREP" 4680 ac_path_FGREP_max=$ac_count 4681 fi 4682 # 10*(2^10) chars as input seems more than enough 4683 test $ac_count -gt 10 && break 4684 done 4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4686esac 4687 4688 $ac_path_FGREP_found && break 3 4689 done 4690 done 4691 done 4692IFS=$as_save_IFS 4693 if test -z "$ac_cv_path_FGREP"; then 4694 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4695 fi 4696else 4697 ac_cv_path_FGREP=$FGREP 4698fi 4699 4700 fi 4701fi 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4703$as_echo "$ac_cv_path_FGREP" >&6; } 4704 FGREP="$ac_cv_path_FGREP" 4705 4706 4707test -z "$GREP" && GREP=grep 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727# Check whether --with-gnu-ld was given. 4728if test "${with_gnu_ld+set}" = set; then : 4729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4730else 4731 with_gnu_ld=no 4732fi 4733 4734ac_prog=ld 4735if test "$GCC" = yes; then 4736 # Check if gcc -print-prog-name=ld gives a path. 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4738$as_echo_n "checking for ld used by $CC... " >&6; } 4739 case $host in 4740 *-*-mingw*) 4741 # gcc leaves a trailing carriage return which upsets mingw 4742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4743 *) 4744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4745 esac 4746 case $ac_prog in 4747 # Accept absolute paths. 4748 [\\/]* | ?:[\\/]*) 4749 re_direlt='/[^/][^/]*/\.\./' 4750 # Canonicalize the pathname of ld 4751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4754 done 4755 test -z "$LD" && LD="$ac_prog" 4756 ;; 4757 "") 4758 # If it fails, then pretend we aren't using GCC. 4759 ac_prog=ld 4760 ;; 4761 *) 4762 # If it is relative, then search for the first ld in PATH. 4763 with_gnu_ld=unknown 4764 ;; 4765 esac 4766elif test "$with_gnu_ld" = yes; then 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4768$as_echo_n "checking for GNU ld... " >&6; } 4769else 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4771$as_echo_n "checking for non-GNU ld... " >&6; } 4772fi 4773if ${lt_cv_path_LD+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 if test -z "$LD"; then 4777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4778 for ac_dir in $PATH; do 4779 IFS="$lt_save_ifs" 4780 test -z "$ac_dir" && ac_dir=. 4781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4782 lt_cv_path_LD="$ac_dir/$ac_prog" 4783 # Check to see if the program is GNU ld. I'd rather use --version, 4784 # but apparently some variants of GNU ld only accept -v. 4785 # Break only if it was the GNU/non-GNU ld that we prefer. 4786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4787 *GNU* | *'with BFD'*) 4788 test "$with_gnu_ld" != no && break 4789 ;; 4790 *) 4791 test "$with_gnu_ld" != yes && break 4792 ;; 4793 esac 4794 fi 4795 done 4796 IFS="$lt_save_ifs" 4797else 4798 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4799fi 4800fi 4801 4802LD="$lt_cv_path_LD" 4803if test -n "$LD"; then 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4805$as_echo "$LD" >&6; } 4806else 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4808$as_echo "no" >&6; } 4809fi 4810test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4813if ${lt_cv_prog_gnu_ld+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4817case `$LD -v 2>&1 </dev/null` in 4818*GNU* | *'with BFD'*) 4819 lt_cv_prog_gnu_ld=yes 4820 ;; 4821*) 4822 lt_cv_prog_gnu_ld=no 4823 ;; 4824esac 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4827$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4828with_gnu_ld=$lt_cv_prog_gnu_ld 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4839$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4840if ${lt_cv_path_NM+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 if test -n "$NM"; then 4844 # Let the user override the test. 4845 lt_cv_path_NM="$NM" 4846else 4847 lt_nm_to_check="${ac_tool_prefix}nm" 4848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4849 lt_nm_to_check="$lt_nm_to_check nm" 4850 fi 4851 for lt_tmp_nm in $lt_nm_to_check; do 4852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4854 IFS="$lt_save_ifs" 4855 test -z "$ac_dir" && ac_dir=. 4856 tmp_nm="$ac_dir/$lt_tmp_nm" 4857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4858 # Check to see if the nm accepts a BSD-compat flag. 4859 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4860 # nm: unknown option "B" ignored 4861 # Tru64's nm complains that /dev/null is an invalid object file 4862 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4863 */dev/null* | *'Invalid file or object type'*) 4864 lt_cv_path_NM="$tmp_nm -B" 4865 break 4866 ;; 4867 *) 4868 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4869 */dev/null*) 4870 lt_cv_path_NM="$tmp_nm -p" 4871 break 4872 ;; 4873 *) 4874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4875 continue # so that we can try to find one that supports BSD flags 4876 ;; 4877 esac 4878 ;; 4879 esac 4880 fi 4881 done 4882 IFS="$lt_save_ifs" 4883 done 4884 : ${lt_cv_path_NM=no} 4885fi 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4888$as_echo "$lt_cv_path_NM" >&6; } 4889if test "$lt_cv_path_NM" != "no"; then 4890 NM="$lt_cv_path_NM" 4891else 4892 # Didn't find any BSD compatible name lister, look for dumpbin. 4893 if test -n "$DUMPBIN"; then : 4894 # Let the user override the test. 4895 else 4896 if test -n "$ac_tool_prefix"; then 4897 for ac_prog in dumpbin "link -dump" 4898 do 4899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4900set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4902$as_echo_n "checking for $ac_word... " >&6; } 4903if ${ac_cv_prog_DUMPBIN+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 if test -n "$DUMPBIN"; then 4907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4908else 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 test -z "$as_dir" && as_dir=. 4914 for ac_exec_ext in '' $ac_executable_extensions; do 4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4918 break 2 4919 fi 4920done 4921 done 4922IFS=$as_save_IFS 4923 4924fi 4925fi 4926DUMPBIN=$ac_cv_prog_DUMPBIN 4927if test -n "$DUMPBIN"; then 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4929$as_echo "$DUMPBIN" >&6; } 4930else 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932$as_echo "no" >&6; } 4933fi 4934 4935 4936 test -n "$DUMPBIN" && break 4937 done 4938fi 4939if test -z "$DUMPBIN"; then 4940 ac_ct_DUMPBIN=$DUMPBIN 4941 for ac_prog in dumpbin "link -dump" 4942do 4943 # Extract the first word of "$ac_prog", so it can be a program name with args. 4944set dummy $ac_prog; ac_word=$2 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4946$as_echo_n "checking for $ac_word... " >&6; } 4947if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4948 $as_echo_n "(cached) " >&6 4949else 4950 if test -n "$ac_ct_DUMPBIN"; then 4951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4952else 4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954for as_dir in $PATH 4955do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4962 break 2 4963 fi 4964done 4965 done 4966IFS=$as_save_IFS 4967 4968fi 4969fi 4970ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4971if test -n "$ac_ct_DUMPBIN"; then 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4973$as_echo "$ac_ct_DUMPBIN" >&6; } 4974else 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4976$as_echo "no" >&6; } 4977fi 4978 4979 4980 test -n "$ac_ct_DUMPBIN" && break 4981done 4982 4983 if test "x$ac_ct_DUMPBIN" = x; then 4984 DUMPBIN=":" 4985 else 4986 case $cross_compiling:$ac_tool_warned in 4987yes:) 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4990ac_tool_warned=yes ;; 4991esac 4992 DUMPBIN=$ac_ct_DUMPBIN 4993 fi 4994fi 4995 4996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4997 *COFF*) 4998 DUMPBIN="$DUMPBIN -symbols" 4999 ;; 5000 *) 5001 DUMPBIN=: 5002 ;; 5003 esac 5004 fi 5005 5006 if test "$DUMPBIN" != ":"; then 5007 NM="$DUMPBIN" 5008 fi 5009fi 5010test -z "$NM" && NM=nm 5011 5012 5013 5014 5015 5016 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5018$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5019if ${lt_cv_nm_interface+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 lt_cv_nm_interface="BSD nm" 5023 echo "int some_variable = 0;" > conftest.$ac_ext 5024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5025 (eval "$ac_compile" 2>conftest.err) 5026 cat conftest.err >&5 5027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5029 cat conftest.err >&5 5030 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5031 cat conftest.out >&5 5032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5033 lt_cv_nm_interface="MS dumpbin" 5034 fi 5035 rm -f conftest* 5036fi 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5038$as_echo "$lt_cv_nm_interface" >&6; } 5039 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5041$as_echo_n "checking whether ln -s works... " >&6; } 5042LN_S=$as_ln_s 5043if test "$LN_S" = "ln -s"; then 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5045$as_echo "yes" >&6; } 5046else 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5048$as_echo "no, using $LN_S" >&6; } 5049fi 5050 5051# find the maximum length of command line arguments 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5053$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5054if ${lt_cv_sys_max_cmd_len+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 i=0 5058 teststring="ABCD" 5059 5060 case $build_os in 5061 msdosdjgpp*) 5062 # On DJGPP, this test can blow up pretty badly due to problems in libc 5063 # (any single argument exceeding 2000 bytes causes a buffer overrun 5064 # during glob expansion). Even if it were fixed, the result of this 5065 # check would be larger than it should be. 5066 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5067 ;; 5068 5069 gnu*) 5070 # Under GNU Hurd, this test is not required because there is 5071 # no limit to the length of command line arguments. 5072 # Libtool will interpret -1 as no limit whatsoever 5073 lt_cv_sys_max_cmd_len=-1; 5074 ;; 5075 5076 cygwin* | mingw* | cegcc*) 5077 # On Win9x/ME, this test blows up -- it succeeds, but takes 5078 # about 5 minutes as the teststring grows exponentially. 5079 # Worse, since 9x/ME are not pre-emptively multitasking, 5080 # you end up with a "frozen" computer, even though with patience 5081 # the test eventually succeeds (with a max line length of 256k). 5082 # Instead, let's just punt: use the minimum linelength reported by 5083 # all of the supported platforms: 8192 (on NT/2K/XP). 5084 lt_cv_sys_max_cmd_len=8192; 5085 ;; 5086 5087 mint*) 5088 # On MiNT this can take a long time and run out of memory. 5089 lt_cv_sys_max_cmd_len=8192; 5090 ;; 5091 5092 amigaos*) 5093 # On AmigaOS with pdksh, this test takes hours, literally. 5094 # So we just punt and use a minimum line length of 8192. 5095 lt_cv_sys_max_cmd_len=8192; 5096 ;; 5097 5098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5099 # This has been around since 386BSD, at least. Likely further. 5100 if test -x /sbin/sysctl; then 5101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5102 elif test -x /usr/sbin/sysctl; then 5103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5104 else 5105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5106 fi 5107 # And add a safety zone 5108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5110 ;; 5111 5112 interix*) 5113 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5114 lt_cv_sys_max_cmd_len=196608 5115 ;; 5116 5117 os2*) 5118 # The test takes a long time on OS/2. 5119 lt_cv_sys_max_cmd_len=8192 5120 ;; 5121 5122 osf*) 5123 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5124 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5125 # nice to cause kernel panics so lets avoid the loop below. 5126 # First set a reasonable default. 5127 lt_cv_sys_max_cmd_len=16384 5128 # 5129 if test -x /sbin/sysconfig; then 5130 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5131 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5132 esac 5133 fi 5134 ;; 5135 sco3.2v5*) 5136 lt_cv_sys_max_cmd_len=102400 5137 ;; 5138 sysv5* | sco5v6* | sysv4.2uw2*) 5139 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5140 if test -n "$kargmax"; then 5141 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5142 else 5143 lt_cv_sys_max_cmd_len=32768 5144 fi 5145 ;; 5146 *) 5147 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5148 if test -n "$lt_cv_sys_max_cmd_len" && \ 5149 test undefined != "$lt_cv_sys_max_cmd_len"; then 5150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5152 else 5153 # Make teststring a little bigger before we do anything with it. 5154 # a 1K string should be a reasonable start. 5155 for i in 1 2 3 4 5 6 7 8 ; do 5156 teststring=$teststring$teststring 5157 done 5158 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5159 # If test is not a shell built-in, we'll probably end up computing a 5160 # maximum length that is only half of the actual maximum length, but 5161 # we can't tell. 5162 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5163 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5164 test $i != 17 # 1/2 MB should be enough 5165 do 5166 i=`expr $i + 1` 5167 teststring=$teststring$teststring 5168 done 5169 # Only check the string length outside the loop. 5170 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5171 teststring= 5172 # Add a significant safety factor because C++ compilers can tack on 5173 # massive amounts of additional arguments before passing them to the 5174 # linker. It appears as though 1/2 is a usable value. 5175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5176 fi 5177 ;; 5178 esac 5179 5180fi 5181 5182if test -n $lt_cv_sys_max_cmd_len ; then 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5184$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5185else 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5187$as_echo "none" >&6; } 5188fi 5189max_cmd_len=$lt_cv_sys_max_cmd_len 5190 5191 5192 5193 5194 5195 5196: ${CP="cp -f"} 5197: ${MV="mv -f"} 5198: ${RM="rm -f"} 5199 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5201$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5202# Try some XSI features 5203xsi_shell=no 5204( _lt_dummy="a/b/c" 5205 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5206 = c,a/b,b/c, \ 5207 && eval 'test $(( 1 + 1 )) -eq 2 \ 5208 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5209 && xsi_shell=yes 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5211$as_echo "$xsi_shell" >&6; } 5212 5213 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5215$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5216lt_shell_append=no 5217( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5218 >/dev/null 2>&1 \ 5219 && lt_shell_append=yes 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5221$as_echo "$lt_shell_append" >&6; } 5222 5223 5224if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5225 lt_unset=unset 5226else 5227 lt_unset=false 5228fi 5229 5230 5231 5232 5233 5234# test EBCDIC or ASCII 5235case `echo X|tr X '\101'` in 5236 A) # ASCII based system 5237 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5238 lt_SP2NL='tr \040 \012' 5239 lt_NL2SP='tr \015\012 \040\040' 5240 ;; 5241 *) # EBCDIC based system 5242 lt_SP2NL='tr \100 \n' 5243 lt_NL2SP='tr \r\n \100\100' 5244 ;; 5245esac 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5256$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5257if ${lt_cv_to_host_file_cmd+:} false; then : 5258 $as_echo_n "(cached) " >&6 5259else 5260 case $host in 5261 *-*-mingw* ) 5262 case $build in 5263 *-*-mingw* ) # actually msys 5264 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5265 ;; 5266 *-*-cygwin* ) 5267 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5268 ;; 5269 * ) # otherwise, assume *nix 5270 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5271 ;; 5272 esac 5273 ;; 5274 *-*-cygwin* ) 5275 case $build in 5276 *-*-mingw* ) # actually msys 5277 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5278 ;; 5279 *-*-cygwin* ) 5280 lt_cv_to_host_file_cmd=func_convert_file_noop 5281 ;; 5282 * ) # otherwise, assume *nix 5283 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5284 ;; 5285 esac 5286 ;; 5287 * ) # unhandled hosts (and "normal" native builds) 5288 lt_cv_to_host_file_cmd=func_convert_file_noop 5289 ;; 5290esac 5291 5292fi 5293 5294to_host_file_cmd=$lt_cv_to_host_file_cmd 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5296$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5297 5298 5299 5300 5301 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5303$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5304if ${lt_cv_to_tool_file_cmd+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 #assume ordinary cross tools, or native build. 5308lt_cv_to_tool_file_cmd=func_convert_file_noop 5309case $host in 5310 *-*-mingw* ) 5311 case $build in 5312 *-*-mingw* ) # actually msys 5313 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5314 ;; 5315 esac 5316 ;; 5317esac 5318 5319fi 5320 5321to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5323$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5324 5325 5326 5327 5328 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5330$as_echo_n "checking for $LD option to reload object files... " >&6; } 5331if ${lt_cv_ld_reload_flag+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 lt_cv_ld_reload_flag='-r' 5335fi 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5337$as_echo "$lt_cv_ld_reload_flag" >&6; } 5338reload_flag=$lt_cv_ld_reload_flag 5339case $reload_flag in 5340"" | " "*) ;; 5341*) reload_flag=" $reload_flag" ;; 5342esac 5343reload_cmds='$LD$reload_flag -o $output$reload_objs' 5344case $host_os in 5345 cygwin* | mingw* | pw32* | cegcc*) 5346 if test "$GCC" != yes; then 5347 reload_cmds=false 5348 fi 5349 ;; 5350 darwin*) 5351 if test "$GCC" = yes; then 5352 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5353 else 5354 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5355 fi 5356 ;; 5357esac 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367if test -n "$ac_tool_prefix"; then 5368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5369set dummy ${ac_tool_prefix}objdump; ac_word=$2 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5371$as_echo_n "checking for $ac_word... " >&6; } 5372if ${ac_cv_prog_OBJDUMP+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 if test -n "$OBJDUMP"; then 5376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5377else 5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5379for as_dir in $PATH 5380do 5381 IFS=$as_save_IFS 5382 test -z "$as_dir" && as_dir=. 5383 for ac_exec_ext in '' $ac_executable_extensions; do 5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5387 break 2 5388 fi 5389done 5390 done 5391IFS=$as_save_IFS 5392 5393fi 5394fi 5395OBJDUMP=$ac_cv_prog_OBJDUMP 5396if test -n "$OBJDUMP"; then 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5398$as_echo "$OBJDUMP" >&6; } 5399else 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5401$as_echo "no" >&6; } 5402fi 5403 5404 5405fi 5406if test -z "$ac_cv_prog_OBJDUMP"; then 5407 ac_ct_OBJDUMP=$OBJDUMP 5408 # Extract the first word of "objdump", so it can be a program name with args. 5409set dummy objdump; ac_word=$2 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5411$as_echo_n "checking for $ac_word... " >&6; } 5412if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 if test -n "$ac_ct_OBJDUMP"; then 5416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5417else 5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5419for as_dir in $PATH 5420do 5421 IFS=$as_save_IFS 5422 test -z "$as_dir" && as_dir=. 5423 for ac_exec_ext in '' $ac_executable_extensions; do 5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5425 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5427 break 2 5428 fi 5429done 5430 done 5431IFS=$as_save_IFS 5432 5433fi 5434fi 5435ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5436if test -n "$ac_ct_OBJDUMP"; then 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5438$as_echo "$ac_ct_OBJDUMP" >&6; } 5439else 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5441$as_echo "no" >&6; } 5442fi 5443 5444 if test "x$ac_ct_OBJDUMP" = x; then 5445 OBJDUMP="false" 5446 else 5447 case $cross_compiling:$ac_tool_warned in 5448yes:) 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5451ac_tool_warned=yes ;; 5452esac 5453 OBJDUMP=$ac_ct_OBJDUMP 5454 fi 5455else 5456 OBJDUMP="$ac_cv_prog_OBJDUMP" 5457fi 5458 5459test -z "$OBJDUMP" && OBJDUMP=objdump 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5470$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5471if ${lt_cv_deplibs_check_method+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 lt_cv_file_magic_cmd='$MAGIC_CMD' 5475lt_cv_file_magic_test_file= 5476lt_cv_deplibs_check_method='unknown' 5477# Need to set the preceding variable on all platforms that support 5478# interlibrary dependencies. 5479# 'none' -- dependencies not supported. 5480# `unknown' -- same as none, but documents that we really don't know. 5481# 'pass_all' -- all dependencies passed with no checks. 5482# 'test_compile' -- check by making test program. 5483# 'file_magic [[regex]]' -- check by looking for files in library path 5484# which responds to the $file_magic_cmd with a given extended regex. 5485# If you have `file' or equivalent on your system and you're not sure 5486# whether `pass_all' will *always* work, you probably want this one. 5487 5488case $host_os in 5489aix[4-9]*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493beos*) 5494 lt_cv_deplibs_check_method=pass_all 5495 ;; 5496 5497bsdi[45]*) 5498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5499 lt_cv_file_magic_cmd='/usr/bin/file -L' 5500 lt_cv_file_magic_test_file=/shlib/libc.so 5501 ;; 5502 5503cygwin*) 5504 # func_win32_libid is a shell function defined in ltmain.sh 5505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5506 lt_cv_file_magic_cmd='func_win32_libid' 5507 ;; 5508 5509mingw* | pw32*) 5510 # Base MSYS/MinGW do not provide the 'file' command needed by 5511 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5512 # unless we find 'file', for example because we are cross-compiling. 5513 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5514 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5516 lt_cv_file_magic_cmd='func_win32_libid' 5517 else 5518 # Keep this pattern in sync with the one in func_win32_libid. 5519 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5520 lt_cv_file_magic_cmd='$OBJDUMP -f' 5521 fi 5522 ;; 5523 5524cegcc*) 5525 # use the weaker test based on 'objdump'. See mingw*. 5526 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5527 lt_cv_file_magic_cmd='$OBJDUMP -f' 5528 ;; 5529 5530darwin* | rhapsody*) 5531 lt_cv_deplibs_check_method=pass_all 5532 ;; 5533 5534freebsd* | dragonfly*) 5535 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5536 case $host_cpu in 5537 i*86 ) 5538 # Not sure whether the presence of OpenBSD here was a mistake. 5539 # Let's accept both of them until this is cleared up. 5540 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5541 lt_cv_file_magic_cmd=/usr/bin/file 5542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5543 ;; 5544 esac 5545 else 5546 lt_cv_deplibs_check_method=pass_all 5547 fi 5548 ;; 5549 5550haiku*) 5551 lt_cv_deplibs_check_method=pass_all 5552 ;; 5553 5554hpux10.20* | hpux11*) 5555 lt_cv_file_magic_cmd=/usr/bin/file 5556 case $host_cpu in 5557 ia64*) 5558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5560 ;; 5561 hppa*64*) 5562 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]' 5563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5564 ;; 5565 *) 5566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5567 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5568 ;; 5569 esac 5570 ;; 5571 5572interix[3-9]*) 5573 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5575 ;; 5576 5577irix5* | irix6* | nonstopux*) 5578 case $LD in 5579 *-32|*"-32 ") libmagic=32-bit;; 5580 *-n32|*"-n32 ") libmagic=N32;; 5581 *-64|*"-64 ") libmagic=64-bit;; 5582 *) libmagic=never-match;; 5583 esac 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 5587# This must be glibc/ELF. 5588linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5589 lt_cv_deplibs_check_method=pass_all 5590 ;; 5591 5592netbsd* | netbsdelf*-gnu) 5593 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5595 else 5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5597 fi 5598 ;; 5599 5600newos6*) 5601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5602 lt_cv_file_magic_cmd=/usr/bin/file 5603 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5604 ;; 5605 5606*nto* | *qnx*) 5607 lt_cv_deplibs_check_method=pass_all 5608 ;; 5609 5610openbsd*) 5611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5613 else 5614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5615 fi 5616 ;; 5617 5618osf3* | osf4* | osf5*) 5619 lt_cv_deplibs_check_method=pass_all 5620 ;; 5621 5622rdos*) 5623 lt_cv_deplibs_check_method=pass_all 5624 ;; 5625 5626solaris*) 5627 lt_cv_deplibs_check_method=pass_all 5628 ;; 5629 5630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5631 lt_cv_deplibs_check_method=pass_all 5632 ;; 5633 5634sysv4 | sysv4.3*) 5635 case $host_vendor in 5636 motorola) 5637 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]' 5638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5639 ;; 5640 ncr) 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 sequent) 5644 lt_cv_file_magic_cmd='/bin/file' 5645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5646 ;; 5647 sni) 5648 lt_cv_file_magic_cmd='/bin/file' 5649 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5650 lt_cv_file_magic_test_file=/lib/libc.so 5651 ;; 5652 siemens) 5653 lt_cv_deplibs_check_method=pass_all 5654 ;; 5655 pc) 5656 lt_cv_deplibs_check_method=pass_all 5657 ;; 5658 esac 5659 ;; 5660 5661tpf*) 5662 lt_cv_deplibs_check_method=pass_all 5663 ;; 5664esac 5665 5666fi 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5668$as_echo "$lt_cv_deplibs_check_method" >&6; } 5669 5670file_magic_glob= 5671want_nocaseglob=no 5672if test "$build" = "$host"; then 5673 case $host_os in 5674 mingw* | pw32*) 5675 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5676 want_nocaseglob=yes 5677 else 5678 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5679 fi 5680 ;; 5681 esac 5682fi 5683 5684file_magic_cmd=$lt_cv_file_magic_cmd 5685deplibs_check_method=$lt_cv_deplibs_check_method 5686test -z "$deplibs_check_method" && deplibs_check_method=unknown 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709if test -n "$ac_tool_prefix"; then 5710 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5711set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5713$as_echo_n "checking for $ac_word... " >&6; } 5714if ${ac_cv_prog_DLLTOOL+:} false; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 if test -n "$DLLTOOL"; then 5718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5719else 5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5721for as_dir in $PATH 5722do 5723 IFS=$as_save_IFS 5724 test -z "$as_dir" && as_dir=. 5725 for ac_exec_ext in '' $ac_executable_extensions; do 5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5727 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5729 break 2 5730 fi 5731done 5732 done 5733IFS=$as_save_IFS 5734 5735fi 5736fi 5737DLLTOOL=$ac_cv_prog_DLLTOOL 5738if test -n "$DLLTOOL"; then 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5740$as_echo "$DLLTOOL" >&6; } 5741else 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5743$as_echo "no" >&6; } 5744fi 5745 5746 5747fi 5748if test -z "$ac_cv_prog_DLLTOOL"; then 5749 ac_ct_DLLTOOL=$DLLTOOL 5750 # Extract the first word of "dlltool", so it can be a program name with args. 5751set dummy dlltool; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test -n "$ac_ct_DLLTOOL"; then 5758 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5759else 5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761for as_dir in $PATH 5762do 5763 IFS=$as_save_IFS 5764 test -z "$as_dir" && as_dir=. 5765 for ac_exec_ext in '' $ac_executable_extensions; do 5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5767 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772 done 5773IFS=$as_save_IFS 5774 5775fi 5776fi 5777ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5778if test -n "$ac_ct_DLLTOOL"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5780$as_echo "$ac_ct_DLLTOOL" >&6; } 5781else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5783$as_echo "no" >&6; } 5784fi 5785 5786 if test "x$ac_ct_DLLTOOL" = x; then 5787 DLLTOOL="false" 5788 else 5789 case $cross_compiling:$ac_tool_warned in 5790yes:) 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5793ac_tool_warned=yes ;; 5794esac 5795 DLLTOOL=$ac_ct_DLLTOOL 5796 fi 5797else 5798 DLLTOOL="$ac_cv_prog_DLLTOOL" 5799fi 5800 5801test -z "$DLLTOOL" && DLLTOOL=dlltool 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5813$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5814if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 lt_cv_sharedlib_from_linklib_cmd='unknown' 5818 5819case $host_os in 5820cygwin* | mingw* | pw32* | cegcc*) 5821 # two different shell functions defined in ltmain.sh 5822 # decide which to use based on capabilities of $DLLTOOL 5823 case `$DLLTOOL --help 2>&1` in 5824 *--identify-strict*) 5825 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5826 ;; 5827 *) 5828 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5829 ;; 5830 esac 5831 ;; 5832*) 5833 # fallback: assume linklib IS sharedlib 5834 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5835 ;; 5836esac 5837 5838fi 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5840$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5841sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5842test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5843 5844 5845 5846 5847 5848 5849 5850if test -n "$ac_tool_prefix"; then 5851 for ac_prog in ar 5852 do 5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5854set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5856$as_echo_n "checking for $ac_word... " >&6; } 5857if ${ac_cv_prog_AR+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 if test -n "$AR"; then 5861 ac_cv_prog_AR="$AR" # Let the user override the test. 5862else 5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864for as_dir in $PATH 5865do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_exec_ext in '' $ac_executable_extensions; do 5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5870 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5872 break 2 5873 fi 5874done 5875 done 5876IFS=$as_save_IFS 5877 5878fi 5879fi 5880AR=$ac_cv_prog_AR 5881if test -n "$AR"; then 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5883$as_echo "$AR" >&6; } 5884else 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886$as_echo "no" >&6; } 5887fi 5888 5889 5890 test -n "$AR" && break 5891 done 5892fi 5893if test -z "$AR"; then 5894 ac_ct_AR=$AR 5895 for ac_prog in ar 5896do 5897 # Extract the first word of "$ac_prog", so it can be a program name with args. 5898set dummy $ac_prog; ac_word=$2 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900$as_echo_n "checking for $ac_word... " >&6; } 5901if ${ac_cv_prog_ac_ct_AR+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 if test -n "$ac_ct_AR"; then 5905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5906else 5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH 5909do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5914 ac_cv_prog_ac_ct_AR="$ac_prog" 5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918done 5919 done 5920IFS=$as_save_IFS 5921 5922fi 5923fi 5924ac_ct_AR=$ac_cv_prog_ac_ct_AR 5925if test -n "$ac_ct_AR"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5927$as_echo "$ac_ct_AR" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932 5933 5934 test -n "$ac_ct_AR" && break 5935done 5936 5937 if test "x$ac_ct_AR" = x; then 5938 AR="false" 5939 else 5940 case $cross_compiling:$ac_tool_warned in 5941yes:) 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5944ac_tool_warned=yes ;; 5945esac 5946 AR=$ac_ct_AR 5947 fi 5948fi 5949 5950: ${AR=ar} 5951: ${AR_FLAGS=cru} 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5964$as_echo_n "checking for archiver @FILE support... " >&6; } 5965if ${lt_cv_ar_at_file+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 lt_cv_ar_at_file=no 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971 5972int 5973main () 5974{ 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_compile "$LINENO"; then : 5981 echo conftest.$ac_objext > conftest.lst 5982 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5984 (eval $lt_ar_try) 2>&5 5985 ac_status=$? 5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5987 test $ac_status = 0; } 5988 if test "$ac_status" -eq 0; then 5989 # Ensure the archiver fails upon bogus file names. 5990 rm -f conftest.$ac_objext libconftest.a 5991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5992 (eval $lt_ar_try) 2>&5 5993 ac_status=$? 5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5995 test $ac_status = 0; } 5996 if test "$ac_status" -ne 0; then 5997 lt_cv_ar_at_file=@ 5998 fi 5999 fi 6000 rm -f conftest.* libconftest.a 6001 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6004 6005fi 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6007$as_echo "$lt_cv_ar_at_file" >&6; } 6008 6009if test "x$lt_cv_ar_at_file" = xno; then 6010 archiver_list_spec= 6011else 6012 archiver_list_spec=$lt_cv_ar_at_file 6013fi 6014 6015 6016 6017 6018 6019 6020 6021if test -n "$ac_tool_prefix"; then 6022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6023set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 if test -n "$STRIP"; then 6030 ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6039 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 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 6049STRIP=$ac_cv_prog_STRIP 6050if test -n "$STRIP"; then 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6052$as_echo "$STRIP" >&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_STRIP"; then 6061 ac_ct_STRIP=$STRIP 6062 # Extract the first word of "strip", so it can be a program name with args. 6063set dummy strip; 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_STRIP+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068else 6069 if test -n "$ac_ct_STRIP"; then 6070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6079 ac_cv_prog_ac_ct_STRIP="strip" 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_STRIP=$ac_cv_prog_ac_ct_STRIP 6090if test -n "$ac_ct_STRIP"; then 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6092$as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then 6099 STRIP=":" 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 STRIP=$ac_ct_STRIP 6108 fi 6109else 6110 STRIP="$ac_cv_prog_STRIP" 6111fi 6112 6113test -z "$STRIP" && STRIP=: 6114 6115 6116 6117 6118 6119 6120if test -n "$ac_tool_prefix"; then 6121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6122set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6124$as_echo_n "checking for $ac_word... " >&6; } 6125if ${ac_cv_prog_RANLIB+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 if test -n "$RANLIB"; then 6129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6130else 6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6132for as_dir in $PATH 6133do 6134 IFS=$as_save_IFS 6135 test -z "$as_dir" && as_dir=. 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6140 break 2 6141 fi 6142done 6143 done 6144IFS=$as_save_IFS 6145 6146fi 6147fi 6148RANLIB=$ac_cv_prog_RANLIB 6149if test -n "$RANLIB"; then 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6151$as_echo "$RANLIB" >&6; } 6152else 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154$as_echo "no" >&6; } 6155fi 6156 6157 6158fi 6159if test -z "$ac_cv_prog_RANLIB"; then 6160 ac_ct_RANLIB=$RANLIB 6161 # Extract the first word of "ranlib", so it can be a program name with args. 6162set dummy ranlib; ac_word=$2 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6164$as_echo_n "checking for $ac_word... " >&6; } 6165if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6166 $as_echo_n "(cached) " >&6 6167else 6168 if test -n "$ac_ct_RANLIB"; then 6169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6170else 6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6172for as_dir in $PATH 6173do 6174 IFS=$as_save_IFS 6175 test -z "$as_dir" && as_dir=. 6176 for ac_exec_ext in '' $ac_executable_extensions; do 6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6178 ac_cv_prog_ac_ct_RANLIB="ranlib" 6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6180 break 2 6181 fi 6182done 6183 done 6184IFS=$as_save_IFS 6185 6186fi 6187fi 6188ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6189if test -n "$ac_ct_RANLIB"; then 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6191$as_echo "$ac_ct_RANLIB" >&6; } 6192else 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6194$as_echo "no" >&6; } 6195fi 6196 6197 if test "x$ac_ct_RANLIB" = x; then 6198 RANLIB=":" 6199 else 6200 case $cross_compiling:$ac_tool_warned in 6201yes:) 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6204ac_tool_warned=yes ;; 6205esac 6206 RANLIB=$ac_ct_RANLIB 6207 fi 6208else 6209 RANLIB="$ac_cv_prog_RANLIB" 6210fi 6211 6212test -z "$RANLIB" && RANLIB=: 6213 6214 6215 6216 6217 6218 6219# Determine commands to create old-style static archives. 6220old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6221old_postinstall_cmds='chmod 644 $oldlib' 6222old_postuninstall_cmds= 6223 6224if test -n "$RANLIB"; then 6225 case $host_os in 6226 openbsd*) 6227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6228 ;; 6229 *) 6230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6231 ;; 6232 esac 6233 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6234fi 6235 6236case $host_os in 6237 darwin*) 6238 lock_old_archive_extraction=yes ;; 6239 *) 6240 lock_old_archive_extraction=no ;; 6241esac 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281# If no C compiler was specified, use CC. 6282LTCC=${LTCC-"$CC"} 6283 6284# If no C compiler flags were specified, use CFLAGS. 6285LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6286 6287# Allow CC to be a program name with arguments. 6288compiler=$CC 6289 6290 6291# Check for command to grab the raw symbol name followed by C symbol from nm. 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6293$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6294if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 6298# These are sane defaults that work on at least a few old systems. 6299# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6300 6301# Character class describing NM global symbol codes. 6302symcode='[BCDEGRST]' 6303 6304# Regexp to match symbols that can be accessed directly from C. 6305sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6306 6307# Define system-specific variables. 6308case $host_os in 6309aix*) 6310 symcode='[BCDT]' 6311 ;; 6312cygwin* | mingw* | pw32* | cegcc*) 6313 symcode='[ABCDGISTW]' 6314 ;; 6315hpux*) 6316 if test "$host_cpu" = ia64; then 6317 symcode='[ABCDEGRST]' 6318 fi 6319 ;; 6320irix* | nonstopux*) 6321 symcode='[BCDEGRST]' 6322 ;; 6323osf*) 6324 symcode='[BCDEGQRST]' 6325 ;; 6326solaris*) 6327 symcode='[BDRT]' 6328 ;; 6329sco3.2v5*) 6330 symcode='[DT]' 6331 ;; 6332sysv4.2uw2*) 6333 symcode='[DT]' 6334 ;; 6335sysv5* | sco5v6* | unixware* | OpenUNIX*) 6336 symcode='[ABDT]' 6337 ;; 6338sysv4) 6339 symcode='[DFNSTU]' 6340 ;; 6341esac 6342 6343# If we're using GNU nm, then use its standard symbol codes. 6344case `$NM -V 2>&1` in 6345*GNU* | *'with BFD'*) 6346 symcode='[ABCDGIRSTW]' ;; 6347esac 6348 6349# Transform an extracted symbol line into a proper C declaration. 6350# Some systems (esp. on ia64) link data and code symbols differently, 6351# so use this general approach. 6352lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6353 6354# Transform an extracted symbol line into symbol name and symbol address 6355lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6356lt_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'" 6357 6358# Handle CRLF in mingw tool chain 6359opt_cr= 6360case $build_os in 6361mingw*) 6362 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6363 ;; 6364esac 6365 6366# Try without a prefix underscore, then with it. 6367for ac_symprfx in "" "_"; do 6368 6369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6370 symxfrm="\\1 $ac_symprfx\\2 \\2" 6371 6372 # Write the raw and C identifiers. 6373 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6374 # Fake it for dumpbin and say T for any non-static function 6375 # and D for any global variable. 6376 # Also find C++ and __fastcall symbols from MSVC++, 6377 # which start with @ or ?. 6378 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6379" {last_section=section; section=\$ 3};"\ 6380" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6381" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6382" \$ 0!~/External *\|/{next};"\ 6383" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6384" {if(hide[section]) next};"\ 6385" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6386" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6387" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6388" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6389" ' prfx=^$ac_symprfx" 6390 else 6391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6392 fi 6393 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6394 6395 # Check to see that the pipe works correctly. 6396 pipe_works=no 6397 6398 rm -f conftest* 6399 cat > conftest.$ac_ext <<_LT_EOF 6400#ifdef __cplusplus 6401extern "C" { 6402#endif 6403char nm_test_var; 6404void nm_test_func(void); 6405void nm_test_func(void){} 6406#ifdef __cplusplus 6407} 6408#endif 6409int main(){nm_test_var='a';nm_test_func();return(0);} 6410_LT_EOF 6411 6412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6413 (eval $ac_compile) 2>&5 6414 ac_status=$? 6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6416 test $ac_status = 0; }; then 6417 # Now try to grab the symbols. 6418 nlist=conftest.nm 6419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6420 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6421 ac_status=$? 6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6423 test $ac_status = 0; } && test -s "$nlist"; then 6424 # Try sorting and uniquifying the output. 6425 if sort "$nlist" | uniq > "$nlist"T; then 6426 mv -f "$nlist"T "$nlist" 6427 else 6428 rm -f "$nlist"T 6429 fi 6430 6431 # Make sure that we snagged all the symbols we need. 6432 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6433 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6434 cat <<_LT_EOF > conftest.$ac_ext 6435/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6436#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6437/* DATA imports from DLLs on WIN32 con't be const, because runtime 6438 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6439# define LT_DLSYM_CONST 6440#elif defined(__osf__) 6441/* This system does not cope well with relocations in const data. */ 6442# define LT_DLSYM_CONST 6443#else 6444# define LT_DLSYM_CONST const 6445#endif 6446 6447#ifdef __cplusplus 6448extern "C" { 6449#endif 6450 6451_LT_EOF 6452 # Now generate the symbol file. 6453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6454 6455 cat <<_LT_EOF >> conftest.$ac_ext 6456 6457/* The mapping between symbol names and symbols. */ 6458LT_DLSYM_CONST struct { 6459 const char *name; 6460 void *address; 6461} 6462lt__PROGRAM__LTX_preloaded_symbols[] = 6463{ 6464 { "@PROGRAM@", (void *) 0 }, 6465_LT_EOF 6466 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6467 cat <<\_LT_EOF >> conftest.$ac_ext 6468 {0, (void *) 0} 6469}; 6470 6471/* This works around a problem in FreeBSD linker */ 6472#ifdef FREEBSD_WORKAROUND 6473static const void *lt_preloaded_setup() { 6474 return lt__PROGRAM__LTX_preloaded_symbols; 6475} 6476#endif 6477 6478#ifdef __cplusplus 6479} 6480#endif 6481_LT_EOF 6482 # Now try linking the two files. 6483 mv conftest.$ac_objext conftstm.$ac_objext 6484 lt_globsym_save_LIBS=$LIBS 6485 lt_globsym_save_CFLAGS=$CFLAGS 6486 LIBS="conftstm.$ac_objext" 6487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6489 (eval $ac_link) 2>&5 6490 ac_status=$? 6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6492 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6493 pipe_works=yes 6494 fi 6495 LIBS=$lt_globsym_save_LIBS 6496 CFLAGS=$lt_globsym_save_CFLAGS 6497 else 6498 echo "cannot find nm_test_func in $nlist" >&5 6499 fi 6500 else 6501 echo "cannot find nm_test_var in $nlist" >&5 6502 fi 6503 else 6504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6505 fi 6506 else 6507 echo "$progname: failed program was:" >&5 6508 cat conftest.$ac_ext >&5 6509 fi 6510 rm -rf conftest* conftst* 6511 6512 # Do not use the global_symbol_pipe unless it works. 6513 if test "$pipe_works" = yes; then 6514 break 6515 else 6516 lt_cv_sys_global_symbol_pipe= 6517 fi 6518done 6519 6520fi 6521 6522if test -z "$lt_cv_sys_global_symbol_pipe"; then 6523 lt_cv_sys_global_symbol_to_cdecl= 6524fi 6525if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6527$as_echo "failed" >&6; } 6528else 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6530$as_echo "ok" >&6; } 6531fi 6532 6533# Response file support. 6534if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6535 nm_file_list_spec='@' 6536elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6537 nm_file_list_spec='@' 6538fi 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6567$as_echo_n "checking for sysroot... " >&6; } 6568 6569# Check whether --with-sysroot was given. 6570if test "${with_sysroot+set}" = set; then : 6571 withval=$with_sysroot; 6572else 6573 with_sysroot=no 6574fi 6575 6576 6577lt_sysroot= 6578case ${with_sysroot} in #( 6579 yes) 6580 if test "$GCC" = yes; then 6581 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6582 fi 6583 ;; #( 6584 /*) 6585 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6586 ;; #( 6587 no|'') 6588 ;; #( 6589 *) 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6591$as_echo "${with_sysroot}" >&6; } 6592 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6593 ;; 6594esac 6595 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6597$as_echo "${lt_sysroot:-no}" >&6; } 6598 6599 6600 6601 6602 6603# Check whether --enable-libtool-lock was given. 6604if test "${enable_libtool_lock+set}" = set; then : 6605 enableval=$enable_libtool_lock; 6606fi 6607 6608test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6609 6610# Some flags need to be propagated to the compiler or linker for good 6611# libtool support. 6612case $host in 6613ia64-*-hpux*) 6614 # Find out which ABI we are using. 6615 echo 'int i;' > conftest.$ac_ext 6616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6617 (eval $ac_compile) 2>&5 6618 ac_status=$? 6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6620 test $ac_status = 0; }; then 6621 case `/usr/bin/file conftest.$ac_objext` in 6622 *ELF-32*) 6623 HPUX_IA64_MODE="32" 6624 ;; 6625 *ELF-64*) 6626 HPUX_IA64_MODE="64" 6627 ;; 6628 esac 6629 fi 6630 rm -rf conftest* 6631 ;; 6632*-*-irix6*) 6633 # Find out which ABI we are using. 6634 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6636 (eval $ac_compile) 2>&5 6637 ac_status=$? 6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6639 test $ac_status = 0; }; then 6640 if test "$lt_cv_prog_gnu_ld" = yes; then 6641 case `/usr/bin/file conftest.$ac_objext` in 6642 *32-bit*) 6643 LD="${LD-ld} -melf32bsmip" 6644 ;; 6645 *N32*) 6646 LD="${LD-ld} -melf32bmipn32" 6647 ;; 6648 *64-bit*) 6649 LD="${LD-ld} -melf64bmip" 6650 ;; 6651 esac 6652 else 6653 case `/usr/bin/file conftest.$ac_objext` in 6654 *32-bit*) 6655 LD="${LD-ld} -32" 6656 ;; 6657 *N32*) 6658 LD="${LD-ld} -n32" 6659 ;; 6660 *64-bit*) 6661 LD="${LD-ld} -64" 6662 ;; 6663 esac 6664 fi 6665 fi 6666 rm -rf conftest* 6667 ;; 6668 6669x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6670s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6671 # Find out which ABI we are using. 6672 echo 'int i;' > conftest.$ac_ext 6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6674 (eval $ac_compile) 2>&5 6675 ac_status=$? 6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6677 test $ac_status = 0; }; then 6678 case `/usr/bin/file conftest.o` in 6679 *32-bit*) 6680 case $host in 6681 x86_64-*kfreebsd*-gnu) 6682 LD="${LD-ld} -m elf_i386_fbsd" 6683 ;; 6684 x86_64-*linux*) 6685 case `/usr/bin/file conftest.o` in 6686 *x86-64*) 6687 LD="${LD-ld} -m elf32_x86_64" 6688 ;; 6689 *) 6690 LD="${LD-ld} -m elf_i386" 6691 ;; 6692 esac 6693 ;; 6694 powerpc64le-*) 6695 LD="${LD-ld} -m elf32lppclinux" 6696 ;; 6697 powerpc64-*) 6698 LD="${LD-ld} -m elf32ppclinux" 6699 ;; 6700 s390x-*linux*) 6701 LD="${LD-ld} -m elf_s390" 6702 ;; 6703 sparc64-*linux*) 6704 LD="${LD-ld} -m elf32_sparc" 6705 ;; 6706 esac 6707 ;; 6708 *64-bit*) 6709 case $host in 6710 x86_64-*kfreebsd*-gnu) 6711 LD="${LD-ld} -m elf_x86_64_fbsd" 6712 ;; 6713 x86_64-*linux*) 6714 LD="${LD-ld} -m elf_x86_64" 6715 ;; 6716 powerpcle-*) 6717 LD="${LD-ld} -m elf64lppc" 6718 ;; 6719 powerpc-*) 6720 LD="${LD-ld} -m elf64ppc" 6721 ;; 6722 s390*-*linux*|s390*-*tpf*) 6723 LD="${LD-ld} -m elf64_s390" 6724 ;; 6725 sparc*-*linux*) 6726 LD="${LD-ld} -m elf64_sparc" 6727 ;; 6728 esac 6729 ;; 6730 esac 6731 fi 6732 rm -rf conftest* 6733 ;; 6734 6735*-*-sco3.2v5*) 6736 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6737 SAVE_CFLAGS="$CFLAGS" 6738 CFLAGS="$CFLAGS -belf" 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6740$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6741if ${lt_cv_cc_needs_belf+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 ac_ext=c 6745ac_cpp='$CPP $CPPFLAGS' 6746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6748ac_compiler_gnu=$ac_cv_c_compiler_gnu 6749 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752 6753int 6754main () 6755{ 6756 6757 ; 6758 return 0; 6759} 6760_ACEOF 6761if ac_fn_c_try_link "$LINENO"; then : 6762 lt_cv_cc_needs_belf=yes 6763else 6764 lt_cv_cc_needs_belf=no 6765fi 6766rm -f core conftest.err conftest.$ac_objext \ 6767 conftest$ac_exeext conftest.$ac_ext 6768 ac_ext=c 6769ac_cpp='$CPP $CPPFLAGS' 6770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6772ac_compiler_gnu=$ac_cv_c_compiler_gnu 6773 6774fi 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6776$as_echo "$lt_cv_cc_needs_belf" >&6; } 6777 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6778 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6779 CFLAGS="$SAVE_CFLAGS" 6780 fi 6781 ;; 6782*-*solaris*) 6783 # Find out which ABI we are using. 6784 echo 'int i;' > conftest.$ac_ext 6785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6786 (eval $ac_compile) 2>&5 6787 ac_status=$? 6788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6789 test $ac_status = 0; }; then 6790 case `/usr/bin/file conftest.o` in 6791 *64-bit*) 6792 case $lt_cv_prog_gnu_ld in 6793 yes*) 6794 case $host in 6795 i?86-*-solaris*) 6796 LD="${LD-ld} -m elf_x86_64" 6797 ;; 6798 sparc*-*-solaris*) 6799 LD="${LD-ld} -m elf64_sparc" 6800 ;; 6801 esac 6802 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6803 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6804 LD="${LD-ld}_sol2" 6805 fi 6806 ;; 6807 *) 6808 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6809 LD="${LD-ld} -64" 6810 fi 6811 ;; 6812 esac 6813 ;; 6814 esac 6815 fi 6816 rm -rf conftest* 6817 ;; 6818esac 6819 6820need_locks="$enable_libtool_lock" 6821 6822if test -n "$ac_tool_prefix"; then 6823 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6824set dummy ${ac_tool_prefix}mt; ac_word=$2 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6826$as_echo_n "checking for $ac_word... " >&6; } 6827if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829else 6830 if test -n "$MANIFEST_TOOL"; then 6831 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6832else 6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6834for as_dir in $PATH 6835do 6836 IFS=$as_save_IFS 6837 test -z "$as_dir" && as_dir=. 6838 for ac_exec_ext in '' $ac_executable_extensions; do 6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6840 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6842 break 2 6843 fi 6844done 6845 done 6846IFS=$as_save_IFS 6847 6848fi 6849fi 6850MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6851if test -n "$MANIFEST_TOOL"; then 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6853$as_echo "$MANIFEST_TOOL" >&6; } 6854else 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6856$as_echo "no" >&6; } 6857fi 6858 6859 6860fi 6861if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6862 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6863 # Extract the first word of "mt", so it can be a program name with args. 6864set dummy mt; ac_word=$2 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6866$as_echo_n "checking for $ac_word... " >&6; } 6867if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 if test -n "$ac_ct_MANIFEST_TOOL"; then 6871 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6872else 6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874for as_dir in $PATH 6875do 6876 IFS=$as_save_IFS 6877 test -z "$as_dir" && as_dir=. 6878 for ac_exec_ext in '' $ac_executable_extensions; do 6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6880 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6882 break 2 6883 fi 6884done 6885 done 6886IFS=$as_save_IFS 6887 6888fi 6889fi 6890ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6891if test -n "$ac_ct_MANIFEST_TOOL"; then 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6893$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6894else 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6896$as_echo "no" >&6; } 6897fi 6898 6899 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6900 MANIFEST_TOOL=":" 6901 else 6902 case $cross_compiling:$ac_tool_warned in 6903yes:) 6904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6906ac_tool_warned=yes ;; 6907esac 6908 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6909 fi 6910else 6911 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6912fi 6913 6914test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6916$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6917if ${lt_cv_path_mainfest_tool+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 lt_cv_path_mainfest_tool=no 6921 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6922 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6923 cat conftest.err >&5 6924 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6925 lt_cv_path_mainfest_tool=yes 6926 fi 6927 rm -f conftest* 6928fi 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6930$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6931if test "x$lt_cv_path_mainfest_tool" != xyes; then 6932 MANIFEST_TOOL=: 6933fi 6934 6935 6936 6937 6938 6939 6940 case $host_os in 6941 rhapsody* | darwin*) 6942 if test -n "$ac_tool_prefix"; then 6943 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6944set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6946$as_echo_n "checking for $ac_word... " >&6; } 6947if ${ac_cv_prog_DSYMUTIL+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 if test -n "$DSYMUTIL"; then 6951 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6952else 6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6954for as_dir in $PATH 6955do 6956 IFS=$as_save_IFS 6957 test -z "$as_dir" && as_dir=. 6958 for ac_exec_ext in '' $ac_executable_extensions; do 6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6960 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6962 break 2 6963 fi 6964done 6965 done 6966IFS=$as_save_IFS 6967 6968fi 6969fi 6970DSYMUTIL=$ac_cv_prog_DSYMUTIL 6971if test -n "$DSYMUTIL"; then 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6973$as_echo "$DSYMUTIL" >&6; } 6974else 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6976$as_echo "no" >&6; } 6977fi 6978 6979 6980fi 6981if test -z "$ac_cv_prog_DSYMUTIL"; then 6982 ac_ct_DSYMUTIL=$DSYMUTIL 6983 # Extract the first word of "dsymutil", so it can be a program name with args. 6984set dummy dsymutil; ac_word=$2 6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6986$as_echo_n "checking for $ac_word... " >&6; } 6987if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6988 $as_echo_n "(cached) " >&6 6989else 6990 if test -n "$ac_ct_DSYMUTIL"; then 6991 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6992else 6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6994for as_dir in $PATH 6995do 6996 IFS=$as_save_IFS 6997 test -z "$as_dir" && as_dir=. 6998 for ac_exec_ext in '' $ac_executable_extensions; do 6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7000 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7002 break 2 7003 fi 7004done 7005 done 7006IFS=$as_save_IFS 7007 7008fi 7009fi 7010ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7011if test -n "$ac_ct_DSYMUTIL"; then 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7013$as_echo "$ac_ct_DSYMUTIL" >&6; } 7014else 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7016$as_echo "no" >&6; } 7017fi 7018 7019 if test "x$ac_ct_DSYMUTIL" = x; then 7020 DSYMUTIL=":" 7021 else 7022 case $cross_compiling:$ac_tool_warned in 7023yes:) 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7026ac_tool_warned=yes ;; 7027esac 7028 DSYMUTIL=$ac_ct_DSYMUTIL 7029 fi 7030else 7031 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7032fi 7033 7034 if test -n "$ac_tool_prefix"; then 7035 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7036set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038$as_echo_n "checking for $ac_word... " >&6; } 7039if ${ac_cv_prog_NMEDIT+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 if test -n "$NMEDIT"; then 7043 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7044else 7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046for as_dir in $PATH 7047do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7052 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056done 7057 done 7058IFS=$as_save_IFS 7059 7060fi 7061fi 7062NMEDIT=$ac_cv_prog_NMEDIT 7063if test -n "$NMEDIT"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7065$as_echo "$NMEDIT" >&6; } 7066else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068$as_echo "no" >&6; } 7069fi 7070 7071 7072fi 7073if test -z "$ac_cv_prog_NMEDIT"; then 7074 ac_ct_NMEDIT=$NMEDIT 7075 # Extract the first word of "nmedit", so it can be a program name with args. 7076set dummy nmedit; ac_word=$2 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7078$as_echo_n "checking for $ac_word... " >&6; } 7079if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 if test -n "$ac_ct_NMEDIT"; then 7083 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7084else 7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086for as_dir in $PATH 7087do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7092 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096done 7097 done 7098IFS=$as_save_IFS 7099 7100fi 7101fi 7102ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7103if test -n "$ac_ct_NMEDIT"; then 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7105$as_echo "$ac_ct_NMEDIT" >&6; } 7106else 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108$as_echo "no" >&6; } 7109fi 7110 7111 if test "x$ac_ct_NMEDIT" = x; then 7112 NMEDIT=":" 7113 else 7114 case $cross_compiling:$ac_tool_warned in 7115yes:) 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7118ac_tool_warned=yes ;; 7119esac 7120 NMEDIT=$ac_ct_NMEDIT 7121 fi 7122else 7123 NMEDIT="$ac_cv_prog_NMEDIT" 7124fi 7125 7126 if test -n "$ac_tool_prefix"; then 7127 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7128set dummy ${ac_tool_prefix}lipo; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_LIPO+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$LIPO"; then 7135 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154LIPO=$ac_cv_prog_LIPO 7155if test -n "$LIPO"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7157$as_echo "$LIPO" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 7164fi 7165if test -z "$ac_cv_prog_LIPO"; then 7166 ac_ct_LIPO=$LIPO 7167 # Extract the first word of "lipo", so it can be a program name with args. 7168set dummy lipo; ac_word=$2 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170$as_echo_n "checking for $ac_word... " >&6; } 7171if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 if test -n "$ac_ct_LIPO"; then 7175 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7184 ac_cv_prog_ac_ct_LIPO="lipo" 7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189 done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7195if test -n "$ac_ct_LIPO"; then 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7197$as_echo "$ac_ct_LIPO" >&6; } 7198else 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7200$as_echo "no" >&6; } 7201fi 7202 7203 if test "x$ac_ct_LIPO" = x; then 7204 LIPO=":" 7205 else 7206 case $cross_compiling:$ac_tool_warned in 7207yes:) 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7210ac_tool_warned=yes ;; 7211esac 7212 LIPO=$ac_ct_LIPO 7213 fi 7214else 7215 LIPO="$ac_cv_prog_LIPO" 7216fi 7217 7218 if test -n "$ac_tool_prefix"; then 7219 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7220set dummy ${ac_tool_prefix}otool; ac_word=$2 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7222$as_echo_n "checking for $ac_word... " >&6; } 7223if ${ac_cv_prog_OTOOL+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 if test -n "$OTOOL"; then 7227 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7228else 7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230for as_dir in $PATH 7231do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7236 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240done 7241 done 7242IFS=$as_save_IFS 7243 7244fi 7245fi 7246OTOOL=$ac_cv_prog_OTOOL 7247if test -n "$OTOOL"; then 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7249$as_echo "$OTOOL" >&6; } 7250else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252$as_echo "no" >&6; } 7253fi 7254 7255 7256fi 7257if test -z "$ac_cv_prog_OTOOL"; then 7258 ac_ct_OTOOL=$OTOOL 7259 # Extract the first word of "otool", so it can be a program name with args. 7260set dummy otool; ac_word=$2 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7262$as_echo_n "checking for $ac_word... " >&6; } 7263if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7264 $as_echo_n "(cached) " >&6 7265else 7266 if test -n "$ac_ct_OTOOL"; then 7267 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7268else 7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270for as_dir in $PATH 7271do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 for ac_exec_ext in '' $ac_executable_extensions; do 7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7276 ac_cv_prog_ac_ct_OTOOL="otool" 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7278 break 2 7279 fi 7280done 7281 done 7282IFS=$as_save_IFS 7283 7284fi 7285fi 7286ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7287if test -n "$ac_ct_OTOOL"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7289$as_echo "$ac_ct_OTOOL" >&6; } 7290else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7292$as_echo "no" >&6; } 7293fi 7294 7295 if test "x$ac_ct_OTOOL" = x; then 7296 OTOOL=":" 7297 else 7298 case $cross_compiling:$ac_tool_warned in 7299yes:) 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7302ac_tool_warned=yes ;; 7303esac 7304 OTOOL=$ac_ct_OTOOL 7305 fi 7306else 7307 OTOOL="$ac_cv_prog_OTOOL" 7308fi 7309 7310 if test -n "$ac_tool_prefix"; then 7311 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7312set dummy ${ac_tool_prefix}otool64; ac_word=$2 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7314$as_echo_n "checking for $ac_word... " >&6; } 7315if ${ac_cv_prog_OTOOL64+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 if test -n "$OTOOL64"; then 7319 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7320else 7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7322for as_dir in $PATH 7323do 7324 IFS=$as_save_IFS 7325 test -z "$as_dir" && as_dir=. 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7328 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332done 7333 done 7334IFS=$as_save_IFS 7335 7336fi 7337fi 7338OTOOL64=$ac_cv_prog_OTOOL64 7339if test -n "$OTOOL64"; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7341$as_echo "$OTOOL64" >&6; } 7342else 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344$as_echo "no" >&6; } 7345fi 7346 7347 7348fi 7349if test -z "$ac_cv_prog_OTOOL64"; then 7350 ac_ct_OTOOL64=$OTOOL64 7351 # Extract the first word of "otool64", so it can be a program name with args. 7352set dummy otool64; ac_word=$2 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7354$as_echo_n "checking for $ac_word... " >&6; } 7355if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 if test -n "$ac_ct_OTOOL64"; then 7359 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7360else 7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362for as_dir in $PATH 7363do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7368 ac_cv_prog_ac_ct_OTOOL64="otool64" 7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372done 7373 done 7374IFS=$as_save_IFS 7375 7376fi 7377fi 7378ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7379if test -n "$ac_ct_OTOOL64"; then 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7381$as_echo "$ac_ct_OTOOL64" >&6; } 7382else 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7384$as_echo "no" >&6; } 7385fi 7386 7387 if test "x$ac_ct_OTOOL64" = x; then 7388 OTOOL64=":" 7389 else 7390 case $cross_compiling:$ac_tool_warned in 7391yes:) 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7394ac_tool_warned=yes ;; 7395esac 7396 OTOOL64=$ac_ct_OTOOL64 7397 fi 7398else 7399 OTOOL64="$ac_cv_prog_OTOOL64" 7400fi 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7429$as_echo_n "checking for -single_module linker flag... " >&6; } 7430if ${lt_cv_apple_cc_single_mod+:} false; then : 7431 $as_echo_n "(cached) " >&6 7432else 7433 lt_cv_apple_cc_single_mod=no 7434 if test -z "${LT_MULTI_MODULE}"; then 7435 # By default we will add the -single_module flag. You can override 7436 # by either setting the environment variable LT_MULTI_MODULE 7437 # non-empty at configure time, or by adding -multi_module to the 7438 # link flags. 7439 rm -rf libconftest.dylib* 7440 echo "int foo(void){return 1;}" > conftest.c 7441 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7442-dynamiclib -Wl,-single_module conftest.c" >&5 7443 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7444 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7445 _lt_result=$? 7446 # If there is a non-empty error log, and "single_module" 7447 # appears in it, assume the flag caused a linker warning 7448 if test -s conftest.err && $GREP single_module conftest.err; then 7449 cat conftest.err >&5 7450 # Otherwise, if the output was created with a 0 exit code from 7451 # the compiler, it worked. 7452 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7453 lt_cv_apple_cc_single_mod=yes 7454 else 7455 cat conftest.err >&5 7456 fi 7457 rm -rf libconftest.dylib* 7458 rm -f conftest.* 7459 fi 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7462$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7463 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7465$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7466if ${lt_cv_ld_exported_symbols_list+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 lt_cv_ld_exported_symbols_list=no 7470 save_LDFLAGS=$LDFLAGS 7471 echo "_main" > conftest.sym 7472 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7474/* end confdefs.h. */ 7475 7476int 7477main () 7478{ 7479 7480 ; 7481 return 0; 7482} 7483_ACEOF 7484if ac_fn_c_try_link "$LINENO"; then : 7485 lt_cv_ld_exported_symbols_list=yes 7486else 7487 lt_cv_ld_exported_symbols_list=no 7488fi 7489rm -f core conftest.err conftest.$ac_objext \ 7490 conftest$ac_exeext conftest.$ac_ext 7491 LDFLAGS="$save_LDFLAGS" 7492 7493fi 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7495$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7496 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7498$as_echo_n "checking for -force_load linker flag... " >&6; } 7499if ${lt_cv_ld_force_load+:} false; then : 7500 $as_echo_n "(cached) " >&6 7501else 7502 lt_cv_ld_force_load=no 7503 cat > conftest.c << _LT_EOF 7504int forced_loaded() { return 2;} 7505_LT_EOF 7506 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7507 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7508 echo "$AR cru libconftest.a conftest.o" >&5 7509 $AR cru libconftest.a conftest.o 2>&5 7510 echo "$RANLIB libconftest.a" >&5 7511 $RANLIB libconftest.a 2>&5 7512 cat > conftest.c << _LT_EOF 7513int main() { return 0;} 7514_LT_EOF 7515 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7516 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7517 _lt_result=$? 7518 if test -s conftest.err && $GREP force_load conftest.err; then 7519 cat conftest.err >&5 7520 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7521 lt_cv_ld_force_load=yes 7522 else 7523 cat conftest.err >&5 7524 fi 7525 rm -f conftest.err libconftest.a conftest conftest.c 7526 rm -rf conftest.dSYM 7527 7528fi 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7530$as_echo "$lt_cv_ld_force_load" >&6; } 7531 case $host_os in 7532 rhapsody* | darwin1.[012]) 7533 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7534 darwin1.*) 7535 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7536 darwin*) # darwin 5.x on 7537 # if running on 10.5 or later, the deployment target defaults 7538 # to the OS version, if on x86, and 10.4, the deployment 7539 # target defaults to 10.4. Don't you love it? 7540 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7541 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7542 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7543 10.[012]*) 7544 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7545 10.*) 7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7547 esac 7548 ;; 7549 esac 7550 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7551 _lt_dar_single_mod='$single_module' 7552 fi 7553 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7554 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7555 else 7556 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7557 fi 7558 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7559 _lt_dsymutil='~$DSYMUTIL $lib || :' 7560 else 7561 _lt_dsymutil= 7562 fi 7563 ;; 7564 esac 7565 7566for ac_header in dlfcn.h 7567do : 7568 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7569" 7570if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7571 cat >>confdefs.h <<_ACEOF 7572#define HAVE_DLFCN_H 1 7573_ACEOF 7574 7575fi 7576 7577done 7578 7579 7580 7581 7582 7583# Set options 7584 7585 7586 7587 enable_dlopen=no 7588 7589 7590 enable_win32_dll=no 7591 7592 7593 # Check whether --enable-shared was given. 7594if test "${enable_shared+set}" = set; then : 7595 enableval=$enable_shared; p=${PACKAGE-default} 7596 case $enableval in 7597 yes) enable_shared=yes ;; 7598 no) enable_shared=no ;; 7599 *) 7600 enable_shared=no 7601 # Look at the argument we got. We use all the common list separators. 7602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7603 for pkg in $enableval; do 7604 IFS="$lt_save_ifs" 7605 if test "X$pkg" = "X$p"; then 7606 enable_shared=yes 7607 fi 7608 done 7609 IFS="$lt_save_ifs" 7610 ;; 7611 esac 7612else 7613 enable_shared=yes 7614fi 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 # Check whether --enable-static was given. 7625if test "${enable_static+set}" = set; then : 7626 enableval=$enable_static; p=${PACKAGE-default} 7627 case $enableval in 7628 yes) enable_static=yes ;; 7629 no) enable_static=no ;; 7630 *) 7631 enable_static=no 7632 # Look at the argument we got. We use all the common list separators. 7633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7634 for pkg in $enableval; do 7635 IFS="$lt_save_ifs" 7636 if test "X$pkg" = "X$p"; then 7637 enable_static=yes 7638 fi 7639 done 7640 IFS="$lt_save_ifs" 7641 ;; 7642 esac 7643else 7644 enable_static=yes 7645fi 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656# Check whether --with-pic was given. 7657if test "${with_pic+set}" = set; then : 7658 withval=$with_pic; lt_p=${PACKAGE-default} 7659 case $withval in 7660 yes|no) pic_mode=$withval ;; 7661 *) 7662 pic_mode=default 7663 # Look at the argument we got. We use all the common list separators. 7664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7665 for lt_pkg in $withval; do 7666 IFS="$lt_save_ifs" 7667 if test "X$lt_pkg" = "X$lt_p"; then 7668 pic_mode=yes 7669 fi 7670 done 7671 IFS="$lt_save_ifs" 7672 ;; 7673 esac 7674else 7675 pic_mode=default 7676fi 7677 7678 7679test -z "$pic_mode" && pic_mode=default 7680 7681 7682 7683 7684 7685 7686 7687 # Check whether --enable-fast-install was given. 7688if test "${enable_fast_install+set}" = set; then : 7689 enableval=$enable_fast_install; p=${PACKAGE-default} 7690 case $enableval in 7691 yes) enable_fast_install=yes ;; 7692 no) enable_fast_install=no ;; 7693 *) 7694 enable_fast_install=no 7695 # Look at the argument we got. We use all the common list separators. 7696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7697 for pkg in $enableval; do 7698 IFS="$lt_save_ifs" 7699 if test "X$pkg" = "X$p"; then 7700 enable_fast_install=yes 7701 fi 7702 done 7703 IFS="$lt_save_ifs" 7704 ;; 7705 esac 7706else 7707 enable_fast_install=yes 7708fi 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720# This can be used to rebuild libtool when needed 7721LIBTOOL_DEPS="$ltmain" 7722 7723# Always use our own libtool. 7724LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755test -z "$LN_S" && LN_S="ln -s" 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770if test -n "${ZSH_VERSION+set}" ; then 7771 setopt NO_GLOB_SUBST 7772fi 7773 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7775$as_echo_n "checking for objdir... " >&6; } 7776if ${lt_cv_objdir+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 rm -f .libs 2>/dev/null 7780mkdir .libs 2>/dev/null 7781if test -d .libs; then 7782 lt_cv_objdir=.libs 7783else 7784 # MS-DOS does not allow filenames that begin with a dot. 7785 lt_cv_objdir=_libs 7786fi 7787rmdir .libs 2>/dev/null 7788fi 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7790$as_echo "$lt_cv_objdir" >&6; } 7791objdir=$lt_cv_objdir 7792 7793 7794 7795 7796 7797cat >>confdefs.h <<_ACEOF 7798#define LT_OBJDIR "$lt_cv_objdir/" 7799_ACEOF 7800 7801 7802 7803 7804case $host_os in 7805aix3*) 7806 # AIX sometimes has problems with the GCC collect2 program. For some 7807 # reason, if we set the COLLECT_NAMES environment variable, the problems 7808 # vanish in a puff of smoke. 7809 if test "X${COLLECT_NAMES+set}" != Xset; then 7810 COLLECT_NAMES= 7811 export COLLECT_NAMES 7812 fi 7813 ;; 7814esac 7815 7816# Global variables: 7817ofile=libtool 7818can_build_shared=yes 7819 7820# All known linkers require a `.a' archive for static linking (except MSVC, 7821# which needs '.lib'). 7822libext=a 7823 7824with_gnu_ld="$lt_cv_prog_gnu_ld" 7825 7826old_CC="$CC" 7827old_CFLAGS="$CFLAGS" 7828 7829# Set sane defaults for various variables 7830test -z "$CC" && CC=cc 7831test -z "$LTCC" && LTCC=$CC 7832test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7833test -z "$LD" && LD=ld 7834test -z "$ac_objext" && ac_objext=o 7835 7836for cc_temp in $compiler""; do 7837 case $cc_temp in 7838 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7839 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7840 \-*) ;; 7841 *) break;; 7842 esac 7843done 7844cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7845 7846 7847# Only perform the check for file, if the check method requires it 7848test -z "$MAGIC_CMD" && MAGIC_CMD=file 7849case $deplibs_check_method in 7850file_magic*) 7851 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7853$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7854if ${lt_cv_path_MAGIC_CMD+:} false; then : 7855 $as_echo_n "(cached) " >&6 7856else 7857 case $MAGIC_CMD in 7858[\\/*] | ?:[\\/]*) 7859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7860 ;; 7861*) 7862 lt_save_MAGIC_CMD="$MAGIC_CMD" 7863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7865 for ac_dir in $ac_dummy; do 7866 IFS="$lt_save_ifs" 7867 test -z "$ac_dir" && ac_dir=. 7868 if test -f $ac_dir/${ac_tool_prefix}file; then 7869 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7870 if test -n "$file_magic_test_file"; then 7871 case $deplibs_check_method in 7872 "file_magic "*) 7873 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7876 $EGREP "$file_magic_regex" > /dev/null; then 7877 : 7878 else 7879 cat <<_LT_EOF 1>&2 7880 7881*** Warning: the command libtool uses to detect shared libraries, 7882*** $file_magic_cmd, produces output that libtool cannot recognize. 7883*** The result is that libtool may fail to recognize shared libraries 7884*** as such. This will affect the creation of libtool libraries that 7885*** depend on shared libraries, but programs linked with such libtool 7886*** libraries will work regardless of this problem. Nevertheless, you 7887*** may want to report the problem to your system manager and/or to 7888*** bug-libtool@gnu.org 7889 7890_LT_EOF 7891 fi ;; 7892 esac 7893 fi 7894 break 7895 fi 7896 done 7897 IFS="$lt_save_ifs" 7898 MAGIC_CMD="$lt_save_MAGIC_CMD" 7899 ;; 7900esac 7901fi 7902 7903MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7904if test -n "$MAGIC_CMD"; then 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7906$as_echo "$MAGIC_CMD" >&6; } 7907else 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7909$as_echo "no" >&6; } 7910fi 7911 7912 7913 7914 7915 7916if test -z "$lt_cv_path_MAGIC_CMD"; then 7917 if test -n "$ac_tool_prefix"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7919$as_echo_n "checking for file... " >&6; } 7920if ${lt_cv_path_MAGIC_CMD+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 case $MAGIC_CMD in 7924[\\/*] | ?:[\\/]*) 7925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7926 ;; 7927*) 7928 lt_save_MAGIC_CMD="$MAGIC_CMD" 7929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7931 for ac_dir in $ac_dummy; do 7932 IFS="$lt_save_ifs" 7933 test -z "$ac_dir" && ac_dir=. 7934 if test -f $ac_dir/file; then 7935 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7936 if test -n "$file_magic_test_file"; then 7937 case $deplibs_check_method in 7938 "file_magic "*) 7939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7942 $EGREP "$file_magic_regex" > /dev/null; then 7943 : 7944 else 7945 cat <<_LT_EOF 1>&2 7946 7947*** Warning: the command libtool uses to detect shared libraries, 7948*** $file_magic_cmd, produces output that libtool cannot recognize. 7949*** The result is that libtool may fail to recognize shared libraries 7950*** as such. This will affect the creation of libtool libraries that 7951*** depend on shared libraries, but programs linked with such libtool 7952*** libraries will work regardless of this problem. Nevertheless, you 7953*** may want to report the problem to your system manager and/or to 7954*** bug-libtool@gnu.org 7955 7956_LT_EOF 7957 fi ;; 7958 esac 7959 fi 7960 break 7961 fi 7962 done 7963 IFS="$lt_save_ifs" 7964 MAGIC_CMD="$lt_save_MAGIC_CMD" 7965 ;; 7966esac 7967fi 7968 7969MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7970if test -n "$MAGIC_CMD"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7972$as_echo "$MAGIC_CMD" >&6; } 7973else 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7975$as_echo "no" >&6; } 7976fi 7977 7978 7979 else 7980 MAGIC_CMD=: 7981 fi 7982fi 7983 7984 fi 7985 ;; 7986esac 7987 7988# Use C for the default configuration in the libtool script 7989 7990lt_save_CC="$CC" 7991ac_ext=c 7992ac_cpp='$CPP $CPPFLAGS' 7993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7995ac_compiler_gnu=$ac_cv_c_compiler_gnu 7996 7997 7998# Source file extension for C test sources. 7999ac_ext=c 8000 8001# Object file extension for compiled C test sources. 8002objext=o 8003objext=$objext 8004 8005# Code to be used in simple compile tests 8006lt_simple_compile_test_code="int some_variable = 0;" 8007 8008# Code to be used in simple link tests 8009lt_simple_link_test_code='int main(){return(0);}' 8010 8011 8012 8013 8014 8015 8016 8017# If no C compiler was specified, use CC. 8018LTCC=${LTCC-"$CC"} 8019 8020# If no C compiler flags were specified, use CFLAGS. 8021LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8022 8023# Allow CC to be a program name with arguments. 8024compiler=$CC 8025 8026# Save the default compiler, since it gets overwritten when the other 8027# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8028compiler_DEFAULT=$CC 8029 8030# save warnings/boilerplate of simple test code 8031ac_outfile=conftest.$ac_objext 8032echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8033eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8034_lt_compiler_boilerplate=`cat conftest.err` 8035$RM conftest* 8036 8037ac_outfile=conftest.$ac_objext 8038echo "$lt_simple_link_test_code" >conftest.$ac_ext 8039eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8040_lt_linker_boilerplate=`cat conftest.err` 8041$RM -r conftest* 8042 8043 8044## CAVEAT EMPTOR: 8045## There is no encapsulation within the following macros, do not change 8046## the running order or otherwise move them around unless you know exactly 8047## what you are doing... 8048if test -n "$compiler"; then 8049 8050lt_prog_compiler_no_builtin_flag= 8051 8052if test "$GCC" = yes; then 8053 case $cc_basename in 8054 nvcc*) 8055 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8056 *) 8057 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8058 esac 8059 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8061$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8062if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 lt_cv_prog_compiler_rtti_exceptions=no 8066 ac_outfile=conftest.$ac_objext 8067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8068 lt_compiler_flag="-fno-rtti -fno-exceptions" 8069 # Insert the option either (1) after the last *FLAGS variable, or 8070 # (2) before a word containing "conftest.", or (3) at the end. 8071 # Note that $ac_compile itself does not contain backslashes and begins 8072 # with a dollar sign (not a hyphen), so the echo should work correctly. 8073 # The option is referenced via a variable to avoid confusing sed. 8074 lt_compile=`echo "$ac_compile" | $SED \ 8075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8077 -e 's:$: $lt_compiler_flag:'` 8078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8079 (eval "$lt_compile" 2>conftest.err) 8080 ac_status=$? 8081 cat conftest.err >&5 8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8083 if (exit $ac_status) && test -s "$ac_outfile"; then 8084 # The compiler can only warn and ignore the option if not recognized 8085 # So say no if there are warnings other than the usual output. 8086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8089 lt_cv_prog_compiler_rtti_exceptions=yes 8090 fi 8091 fi 8092 $RM conftest* 8093 8094fi 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8096$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8097 8098if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8099 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8100else 8101 : 8102fi 8103 8104fi 8105 8106 8107 8108 8109 8110 8111 lt_prog_compiler_wl= 8112lt_prog_compiler_pic= 8113lt_prog_compiler_static= 8114 8115 8116 if test "$GCC" = yes; then 8117 lt_prog_compiler_wl='-Wl,' 8118 lt_prog_compiler_static='-static' 8119 8120 case $host_os in 8121 aix*) 8122 # All AIX code is PIC. 8123 if test "$host_cpu" = ia64; then 8124 # AIX 5 now supports IA64 processor 8125 lt_prog_compiler_static='-Bstatic' 8126 fi 8127 ;; 8128 8129 amigaos*) 8130 case $host_cpu in 8131 powerpc) 8132 # see comment about AmigaOS4 .so support 8133 lt_prog_compiler_pic='-fPIC' 8134 ;; 8135 m68k) 8136 # FIXME: we need at least 68020 code to build shared libraries, but 8137 # adding the `-m68020' flag to GCC prevents building anything better, 8138 # like `-m68040'. 8139 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8140 ;; 8141 esac 8142 ;; 8143 8144 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8145 # PIC is the default for these OSes. 8146 ;; 8147 8148 mingw* | cygwin* | pw32* | os2* | cegcc*) 8149 # This hack is so that the source file can tell whether it is being 8150 # built for inclusion in a dll (and should export symbols for example). 8151 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8152 # (--disable-auto-import) libraries 8153 lt_prog_compiler_pic='-DDLL_EXPORT' 8154 ;; 8155 8156 darwin* | rhapsody*) 8157 # PIC is the default on this platform 8158 # Common symbols not allowed in MH_DYLIB files 8159 lt_prog_compiler_pic='-fno-common' 8160 ;; 8161 8162 haiku*) 8163 # PIC is the default for Haiku. 8164 # The "-static" flag exists, but is broken. 8165 lt_prog_compiler_static= 8166 ;; 8167 8168 hpux*) 8169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8171 # sets the default TLS model and affects inlining. 8172 case $host_cpu in 8173 hppa*64*) 8174 # +Z the default 8175 ;; 8176 *) 8177 lt_prog_compiler_pic='-fPIC' 8178 ;; 8179 esac 8180 ;; 8181 8182 interix[3-9]*) 8183 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8184 # Instead, we relocate shared libraries at runtime. 8185 ;; 8186 8187 msdosdjgpp*) 8188 # Just because we use GCC doesn't mean we suddenly get shared libraries 8189 # on systems that don't support them. 8190 lt_prog_compiler_can_build_shared=no 8191 enable_shared=no 8192 ;; 8193 8194 *nto* | *qnx*) 8195 # QNX uses GNU C++, but need to define -shared option too, otherwise 8196 # it will coredump. 8197 lt_prog_compiler_pic='-fPIC -shared' 8198 ;; 8199 8200 sysv4*MP*) 8201 if test -d /usr/nec; then 8202 lt_prog_compiler_pic=-Kconform_pic 8203 fi 8204 ;; 8205 8206 *) 8207 lt_prog_compiler_pic='-fPIC' 8208 ;; 8209 esac 8210 8211 case $cc_basename in 8212 nvcc*) # Cuda Compiler Driver 2.2 8213 lt_prog_compiler_wl='-Xlinker ' 8214 if test -n "$lt_prog_compiler_pic"; then 8215 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8216 fi 8217 ;; 8218 esac 8219 else 8220 # PORTME Check for flag to pass linker flags through the system compiler. 8221 case $host_os in 8222 aix*) 8223 lt_prog_compiler_wl='-Wl,' 8224 if test "$host_cpu" = ia64; then 8225 # AIX 5 now supports IA64 processor 8226 lt_prog_compiler_static='-Bstatic' 8227 else 8228 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8229 fi 8230 ;; 8231 8232 mingw* | cygwin* | pw32* | os2* | cegcc*) 8233 # This hack is so that the source file can tell whether it is being 8234 # built for inclusion in a dll (and should export symbols for example). 8235 lt_prog_compiler_pic='-DDLL_EXPORT' 8236 ;; 8237 8238 hpux9* | hpux10* | hpux11*) 8239 lt_prog_compiler_wl='-Wl,' 8240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8241 # not for PA HP-UX. 8242 case $host_cpu in 8243 hppa*64*|ia64*) 8244 # +Z the default 8245 ;; 8246 *) 8247 lt_prog_compiler_pic='+Z' 8248 ;; 8249 esac 8250 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8251 lt_prog_compiler_static='${wl}-a ${wl}archive' 8252 ;; 8253 8254 irix5* | irix6* | nonstopux*) 8255 lt_prog_compiler_wl='-Wl,' 8256 # PIC (with -KPIC) is the default. 8257 lt_prog_compiler_static='-non_shared' 8258 ;; 8259 8260 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8261 case $cc_basename in 8262 # old Intel for x86_64 which still supported -KPIC. 8263 ecc*) 8264 lt_prog_compiler_wl='-Wl,' 8265 lt_prog_compiler_pic='-KPIC' 8266 lt_prog_compiler_static='-static' 8267 ;; 8268 # icc used to be incompatible with GCC. 8269 # ICC 10 doesn't accept -KPIC any more. 8270 icc* | ifort*) 8271 lt_prog_compiler_wl='-Wl,' 8272 lt_prog_compiler_pic='-fPIC' 8273 lt_prog_compiler_static='-static' 8274 ;; 8275 # Lahey Fortran 8.1. 8276 lf95*) 8277 lt_prog_compiler_wl='-Wl,' 8278 lt_prog_compiler_pic='--shared' 8279 lt_prog_compiler_static='--static' 8280 ;; 8281 nagfor*) 8282 # NAG Fortran compiler 8283 lt_prog_compiler_wl='-Wl,-Wl,,' 8284 lt_prog_compiler_pic='-PIC' 8285 lt_prog_compiler_static='-Bstatic' 8286 ;; 8287 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8288 # Portland Group compilers (*not* the Pentium gcc compiler, 8289 # which looks to be a dead project) 8290 lt_prog_compiler_wl='-Wl,' 8291 lt_prog_compiler_pic='-fpic' 8292 lt_prog_compiler_static='-Bstatic' 8293 ;; 8294 ccc*) 8295 lt_prog_compiler_wl='-Wl,' 8296 # All Alpha code is PIC. 8297 lt_prog_compiler_static='-non_shared' 8298 ;; 8299 xl* | bgxl* | bgf* | mpixl*) 8300 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8301 lt_prog_compiler_wl='-Wl,' 8302 lt_prog_compiler_pic='-qpic' 8303 lt_prog_compiler_static='-qstaticlink' 8304 ;; 8305 *) 8306 case `$CC -V 2>&1 | sed 5q` in 8307 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8308 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8309 lt_prog_compiler_pic='-KPIC' 8310 lt_prog_compiler_static='-Bstatic' 8311 lt_prog_compiler_wl='' 8312 ;; 8313 *Sun\ F* | *Sun*Fortran*) 8314 lt_prog_compiler_pic='-KPIC' 8315 lt_prog_compiler_static='-Bstatic' 8316 lt_prog_compiler_wl='-Qoption ld ' 8317 ;; 8318 *Sun\ C*) 8319 # Sun C 5.9 8320 lt_prog_compiler_pic='-KPIC' 8321 lt_prog_compiler_static='-Bstatic' 8322 lt_prog_compiler_wl='-Wl,' 8323 ;; 8324 *Intel*\ [CF]*Compiler*) 8325 lt_prog_compiler_wl='-Wl,' 8326 lt_prog_compiler_pic='-fPIC' 8327 lt_prog_compiler_static='-static' 8328 ;; 8329 *Portland\ Group*) 8330 lt_prog_compiler_wl='-Wl,' 8331 lt_prog_compiler_pic='-fpic' 8332 lt_prog_compiler_static='-Bstatic' 8333 ;; 8334 esac 8335 ;; 8336 esac 8337 ;; 8338 8339 newsos6) 8340 lt_prog_compiler_pic='-KPIC' 8341 lt_prog_compiler_static='-Bstatic' 8342 ;; 8343 8344 *nto* | *qnx*) 8345 # QNX uses GNU C++, but need to define -shared option too, otherwise 8346 # it will coredump. 8347 lt_prog_compiler_pic='-fPIC -shared' 8348 ;; 8349 8350 osf3* | osf4* | osf5*) 8351 lt_prog_compiler_wl='-Wl,' 8352 # All OSF/1 code is PIC. 8353 lt_prog_compiler_static='-non_shared' 8354 ;; 8355 8356 rdos*) 8357 lt_prog_compiler_static='-non_shared' 8358 ;; 8359 8360 solaris*) 8361 lt_prog_compiler_pic='-KPIC' 8362 lt_prog_compiler_static='-Bstatic' 8363 case $cc_basename in 8364 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8365 lt_prog_compiler_wl='-Qoption ld ';; 8366 *) 8367 lt_prog_compiler_wl='-Wl,';; 8368 esac 8369 ;; 8370 8371 sunos4*) 8372 lt_prog_compiler_wl='-Qoption ld ' 8373 lt_prog_compiler_pic='-PIC' 8374 lt_prog_compiler_static='-Bstatic' 8375 ;; 8376 8377 sysv4 | sysv4.2uw2* | sysv4.3*) 8378 lt_prog_compiler_wl='-Wl,' 8379 lt_prog_compiler_pic='-KPIC' 8380 lt_prog_compiler_static='-Bstatic' 8381 ;; 8382 8383 sysv4*MP*) 8384 if test -d /usr/nec ;then 8385 lt_prog_compiler_pic='-Kconform_pic' 8386 lt_prog_compiler_static='-Bstatic' 8387 fi 8388 ;; 8389 8390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8391 lt_prog_compiler_wl='-Wl,' 8392 lt_prog_compiler_pic='-KPIC' 8393 lt_prog_compiler_static='-Bstatic' 8394 ;; 8395 8396 unicos*) 8397 lt_prog_compiler_wl='-Wl,' 8398 lt_prog_compiler_can_build_shared=no 8399 ;; 8400 8401 uts4*) 8402 lt_prog_compiler_pic='-pic' 8403 lt_prog_compiler_static='-Bstatic' 8404 ;; 8405 8406 *) 8407 lt_prog_compiler_can_build_shared=no 8408 ;; 8409 esac 8410 fi 8411 8412case $host_os in 8413 # For platforms which do not support PIC, -DPIC is meaningless: 8414 *djgpp*) 8415 lt_prog_compiler_pic= 8416 ;; 8417 *) 8418 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8419 ;; 8420esac 8421 8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8423$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8424if ${lt_cv_prog_compiler_pic+:} false; then : 8425 $as_echo_n "(cached) " >&6 8426else 8427 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8428fi 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8430$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8431lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8432 8433# 8434# Check to make sure the PIC flag actually works. 8435# 8436if test -n "$lt_prog_compiler_pic"; then 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8438$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8439if ${lt_cv_prog_compiler_pic_works+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 lt_cv_prog_compiler_pic_works=no 8443 ac_outfile=conftest.$ac_objext 8444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8446 # Insert the option either (1) after the last *FLAGS variable, or 8447 # (2) before a word containing "conftest.", or (3) at the end. 8448 # Note that $ac_compile itself does not contain backslashes and begins 8449 # with a dollar sign (not a hyphen), so the echo should work correctly. 8450 # The option is referenced via a variable to avoid confusing sed. 8451 lt_compile=`echo "$ac_compile" | $SED \ 8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8454 -e 's:$: $lt_compiler_flag:'` 8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8456 (eval "$lt_compile" 2>conftest.err) 8457 ac_status=$? 8458 cat conftest.err >&5 8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8460 if (exit $ac_status) && test -s "$ac_outfile"; then 8461 # The compiler can only warn and ignore the option if not recognized 8462 # So say no if there are warnings other than the usual output. 8463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8466 lt_cv_prog_compiler_pic_works=yes 8467 fi 8468 fi 8469 $RM conftest* 8470 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8473$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8474 8475if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8476 case $lt_prog_compiler_pic in 8477 "" | " "*) ;; 8478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8479 esac 8480else 8481 lt_prog_compiler_pic= 8482 lt_prog_compiler_can_build_shared=no 8483fi 8484 8485fi 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497# 8498# Check to make sure the static flag actually works. 8499# 8500wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8502$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8503if ${lt_cv_prog_compiler_static_works+:} false; then : 8504 $as_echo_n "(cached) " >&6 8505else 8506 lt_cv_prog_compiler_static_works=no 8507 save_LDFLAGS="$LDFLAGS" 8508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8509 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8511 # The linker can only warn and ignore the option if not recognized 8512 # So say no if there are warnings 8513 if test -s conftest.err; then 8514 # Append any errors to the config.log. 8515 cat conftest.err 1>&5 8516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8518 if diff conftest.exp conftest.er2 >/dev/null; then 8519 lt_cv_prog_compiler_static_works=yes 8520 fi 8521 else 8522 lt_cv_prog_compiler_static_works=yes 8523 fi 8524 fi 8525 $RM -r conftest* 8526 LDFLAGS="$save_LDFLAGS" 8527 8528fi 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8530$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8531 8532if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8533 : 8534else 8535 lt_prog_compiler_static= 8536fi 8537 8538 8539 8540 8541 8542 8543 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8545$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8546if ${lt_cv_prog_compiler_c_o+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 lt_cv_prog_compiler_c_o=no 8550 $RM -r conftest 2>/dev/null 8551 mkdir conftest 8552 cd conftest 8553 mkdir out 8554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8555 8556 lt_compiler_flag="-o out/conftest2.$ac_objext" 8557 # Insert the option either (1) after the last *FLAGS variable, or 8558 # (2) before a word containing "conftest.", or (3) at the end. 8559 # Note that $ac_compile itself does not contain backslashes and begins 8560 # with a dollar sign (not a hyphen), so the echo should work correctly. 8561 lt_compile=`echo "$ac_compile" | $SED \ 8562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8564 -e 's:$: $lt_compiler_flag:'` 8565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8566 (eval "$lt_compile" 2>out/conftest.err) 8567 ac_status=$? 8568 cat out/conftest.err >&5 8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8570 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8571 then 8572 # The compiler can only warn and ignore the option if not recognized 8573 # So say no if there are warnings 8574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8577 lt_cv_prog_compiler_c_o=yes 8578 fi 8579 fi 8580 chmod u+w . 2>&5 8581 $RM conftest* 8582 # SGI C++ compiler will create directory out/ii_files/ for 8583 # template instantiation 8584 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8585 $RM out/* && rmdir out 8586 cd .. 8587 $RM -r conftest 8588 $RM conftest* 8589 8590fi 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8592$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8593 8594 8595 8596 8597 8598 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8600$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8601if ${lt_cv_prog_compiler_c_o+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 lt_cv_prog_compiler_c_o=no 8605 $RM -r conftest 2>/dev/null 8606 mkdir conftest 8607 cd conftest 8608 mkdir out 8609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8610 8611 lt_compiler_flag="-o out/conftest2.$ac_objext" 8612 # Insert the option either (1) after the last *FLAGS variable, or 8613 # (2) before a word containing "conftest.", or (3) at the end. 8614 # Note that $ac_compile itself does not contain backslashes and begins 8615 # with a dollar sign (not a hyphen), so the echo should work correctly. 8616 lt_compile=`echo "$ac_compile" | $SED \ 8617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8619 -e 's:$: $lt_compiler_flag:'` 8620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8621 (eval "$lt_compile" 2>out/conftest.err) 8622 ac_status=$? 8623 cat out/conftest.err >&5 8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8625 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8626 then 8627 # The compiler can only warn and ignore the option if not recognized 8628 # So say no if there are warnings 8629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8632 lt_cv_prog_compiler_c_o=yes 8633 fi 8634 fi 8635 chmod u+w . 2>&5 8636 $RM conftest* 8637 # SGI C++ compiler will create directory out/ii_files/ for 8638 # template instantiation 8639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8640 $RM out/* && rmdir out 8641 cd .. 8642 $RM -r conftest 8643 $RM conftest* 8644 8645fi 8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8647$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8648 8649 8650 8651 8652hard_links="nottested" 8653if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8654 # do not overwrite the value of need_locks provided by the user 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8656$as_echo_n "checking if we can lock with hard links... " >&6; } 8657 hard_links=yes 8658 $RM conftest* 8659 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8660 touch conftest.a 8661 ln conftest.a conftest.b 2>&5 || hard_links=no 8662 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8664$as_echo "$hard_links" >&6; } 8665 if test "$hard_links" = no; then 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8667$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8668 need_locks=warn 8669 fi 8670else 8671 need_locks=no 8672fi 8673 8674 8675 8676 8677 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8680$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8681 8682 runpath_var= 8683 allow_undefined_flag= 8684 always_export_symbols=no 8685 archive_cmds= 8686 archive_expsym_cmds= 8687 compiler_needs_object=no 8688 enable_shared_with_static_runtimes=no 8689 export_dynamic_flag_spec= 8690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8691 hardcode_automatic=no 8692 hardcode_direct=no 8693 hardcode_direct_absolute=no 8694 hardcode_libdir_flag_spec= 8695 hardcode_libdir_separator= 8696 hardcode_minus_L=no 8697 hardcode_shlibpath_var=unsupported 8698 inherit_rpath=no 8699 link_all_deplibs=unknown 8700 module_cmds= 8701 module_expsym_cmds= 8702 old_archive_from_new_cmds= 8703 old_archive_from_expsyms_cmds= 8704 thread_safe_flag_spec= 8705 whole_archive_flag_spec= 8706 # include_expsyms should be a list of space-separated symbols to be *always* 8707 # included in the symbol list 8708 include_expsyms= 8709 # exclude_expsyms can be an extended regexp of symbols to exclude 8710 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8712 # as well as any symbol that contains `d'. 8713 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8715 # platforms (ab)use it in PIC code, but their linkers get confused if 8716 # the symbol is explicitly referenced. Since portable code cannot 8717 # rely on this symbol name, it's probably fine to never include it in 8718 # preloaded symbol tables. 8719 # Exclude shared library initialization/finalization symbols. 8720 extract_expsyms_cmds= 8721 8722 case $host_os in 8723 cygwin* | mingw* | pw32* | cegcc*) 8724 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8725 # When not using gcc, we currently assume that we are using 8726 # Microsoft Visual C++. 8727 if test "$GCC" != yes; then 8728 with_gnu_ld=no 8729 fi 8730 ;; 8731 interix*) 8732 # we just hope/assume this is gcc and not c89 (= MSVC++) 8733 with_gnu_ld=yes 8734 ;; 8735 openbsd*) 8736 with_gnu_ld=no 8737 ;; 8738 linux* | k*bsd*-gnu | gnu*) 8739 link_all_deplibs=no 8740 ;; 8741 esac 8742 8743 ld_shlibs=yes 8744 8745 # On some targets, GNU ld is compatible enough with the native linker 8746 # that we're better off using the native interface for both. 8747 lt_use_gnu_ld_interface=no 8748 if test "$with_gnu_ld" = yes; then 8749 case $host_os in 8750 aix*) 8751 # The AIX port of GNU ld has always aspired to compatibility 8752 # with the native linker. However, as the warning in the GNU ld 8753 # block says, versions before 2.19.5* couldn't really create working 8754 # shared libraries, regardless of the interface used. 8755 case `$LD -v 2>&1` in 8756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8758 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8759 *) 8760 lt_use_gnu_ld_interface=yes 8761 ;; 8762 esac 8763 ;; 8764 *) 8765 lt_use_gnu_ld_interface=yes 8766 ;; 8767 esac 8768 fi 8769 8770 if test "$lt_use_gnu_ld_interface" = yes; then 8771 # If archive_cmds runs LD, not CC, wlarc should be empty 8772 wlarc='${wl}' 8773 8774 # Set some defaults for GNU ld with shared library support. These 8775 # are reset later if shared libraries are not supported. Putting them 8776 # here allows them to be overridden if necessary. 8777 runpath_var=LD_RUN_PATH 8778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8779 export_dynamic_flag_spec='${wl}--export-dynamic' 8780 # ancient GNU ld didn't support --whole-archive et. al. 8781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8783 else 8784 whole_archive_flag_spec= 8785 fi 8786 supports_anon_versioning=no 8787 case `$LD -v 2>&1` in 8788 *GNU\ gold*) supports_anon_versioning=yes ;; 8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8792 *\ 2.11.*) ;; # other 2.11 versions 8793 *) supports_anon_versioning=yes ;; 8794 esac 8795 8796 # See if GNU ld supports shared libraries. 8797 case $host_os in 8798 aix[3-9]*) 8799 # On AIX/PPC, the GNU linker is very broken 8800 if test "$host_cpu" != ia64; then 8801 ld_shlibs=no 8802 cat <<_LT_EOF 1>&2 8803 8804*** Warning: the GNU linker, at least up to release 2.19, is reported 8805*** to be unable to reliably create shared libraries on AIX. 8806*** Therefore, libtool is disabling shared libraries support. If you 8807*** really care for shared libraries, you may want to install binutils 8808*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8809*** You will then need to restart the configuration process. 8810 8811_LT_EOF 8812 fi 8813 ;; 8814 8815 amigaos*) 8816 case $host_cpu in 8817 powerpc) 8818 # see comment about AmigaOS4 .so support 8819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8820 archive_expsym_cmds='' 8821 ;; 8822 m68k) 8823 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)' 8824 hardcode_libdir_flag_spec='-L$libdir' 8825 hardcode_minus_L=yes 8826 ;; 8827 esac 8828 ;; 8829 8830 beos*) 8831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8832 allow_undefined_flag=unsupported 8833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8834 # support --undefined. This deserves some investigation. FIXME 8835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8836 else 8837 ld_shlibs=no 8838 fi 8839 ;; 8840 8841 cygwin* | mingw* | pw32* | cegcc*) 8842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8843 # as there is no search path for DLLs. 8844 hardcode_libdir_flag_spec='-L$libdir' 8845 export_dynamic_flag_spec='${wl}--export-all-symbols' 8846 allow_undefined_flag=unsupported 8847 always_export_symbols=no 8848 enable_shared_with_static_runtimes=yes 8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8850 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8851 8852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8854 # If the export-symbols file already is a .def file (1st line 8855 # is EXPORTS), use it as is; otherwise, prepend... 8856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8857 cp $export_symbols $output_objdir/$soname.def; 8858 else 8859 echo EXPORTS > $output_objdir/$soname.def; 8860 cat $export_symbols >> $output_objdir/$soname.def; 8861 fi~ 8862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8863 else 8864 ld_shlibs=no 8865 fi 8866 ;; 8867 8868 haiku*) 8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8870 link_all_deplibs=yes 8871 ;; 8872 8873 interix[3-9]*) 8874 hardcode_direct=no 8875 hardcode_shlibpath_var=no 8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8877 export_dynamic_flag_spec='${wl}-E' 8878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8879 # Instead, shared libraries are loaded at an image base (0x10000000 by 8880 # default) and relocated if they conflict, which is a slow very memory 8881 # consuming and fragmenting process. To avoid this, we pick a random, 8882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8883 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8885 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' 8886 ;; 8887 8888 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8889 tmp_diet=no 8890 if test "$host_os" = linux-dietlibc; then 8891 case $cc_basename in 8892 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8893 esac 8894 fi 8895 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8896 && test "$tmp_diet" = no 8897 then 8898 tmp_addflag=' $pic_flag' 8899 tmp_sharedflag='-shared' 8900 case $cc_basename,$host_cpu in 8901 pgcc*) # Portland Group C compiler 8902 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' 8903 tmp_addflag=' $pic_flag' 8904 ;; 8905 pgf77* | pgf90* | pgf95* | pgfortran*) 8906 # Portland Group f77 and f90 compilers 8907 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' 8908 tmp_addflag=' $pic_flag -Mnomain' ;; 8909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8910 tmp_addflag=' -i_dynamic' ;; 8911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8912 tmp_addflag=' -i_dynamic -nofor_main' ;; 8913 ifc* | ifort*) # Intel Fortran compiler 8914 tmp_addflag=' -nofor_main' ;; 8915 lf95*) # Lahey Fortran 8.1 8916 whole_archive_flag_spec= 8917 tmp_sharedflag='--shared' ;; 8918 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8919 tmp_sharedflag='-qmkshrobj' 8920 tmp_addflag= ;; 8921 nvcc*) # Cuda Compiler Driver 2.2 8922 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' 8923 compiler_needs_object=yes 8924 ;; 8925 esac 8926 case `$CC -V 2>&1 | sed 5q` in 8927 *Sun\ C*) # Sun C 5.9 8928 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' 8929 compiler_needs_object=yes 8930 tmp_sharedflag='-G' ;; 8931 *Sun\ F*) # Sun Fortran 8.3 8932 tmp_sharedflag='-G' ;; 8933 esac 8934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8935 8936 if test "x$supports_anon_versioning" = xyes; then 8937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8939 echo "local: *; };" >> $output_objdir/$libname.ver~ 8940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8941 fi 8942 8943 case $cc_basename in 8944 xlf* | bgf* | bgxlf* | mpixlf*) 8945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8948 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8949 if test "x$supports_anon_versioning" = xyes; then 8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8952 echo "local: *; };" >> $output_objdir/$libname.ver~ 8953 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8954 fi 8955 ;; 8956 esac 8957 else 8958 ld_shlibs=no 8959 fi 8960 ;; 8961 8962 netbsd* | netbsdelf*-gnu) 8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8965 wlarc= 8966 else 8967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8968 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8969 fi 8970 ;; 8971 8972 solaris*) 8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8974 ld_shlibs=no 8975 cat <<_LT_EOF 1>&2 8976 8977*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8978*** create shared libraries on Solaris systems. Therefore, libtool 8979*** is disabling shared libraries support. We urge you to upgrade GNU 8980*** binutils to release 2.9.1 or newer. Another option is to modify 8981*** your PATH or compiler configuration so that the native linker is 8982*** used, and then restart. 8983 8984_LT_EOF 8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8988 else 8989 ld_shlibs=no 8990 fi 8991 ;; 8992 8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8994 case `$LD -v 2>&1` in 8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8996 ld_shlibs=no 8997 cat <<_LT_EOF 1>&2 8998 8999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9000*** reliably create shared libraries on SCO systems. Therefore, libtool 9001*** is disabling shared libraries support. We urge you to upgrade GNU 9002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9003*** your PATH or compiler configuration so that the native linker is 9004*** used, and then restart. 9005 9006_LT_EOF 9007 ;; 9008 *) 9009 # For security reasons, it is highly recommended that you always 9010 # use absolute paths for naming shared libraries, and exclude the 9011 # DT_RUNPATH tag from executables and libraries. But doing so 9012 # requires that you compile everything twice, which is a pain. 9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9017 else 9018 ld_shlibs=no 9019 fi 9020 ;; 9021 esac 9022 ;; 9023 9024 sunos4*) 9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9026 wlarc= 9027 hardcode_direct=yes 9028 hardcode_shlibpath_var=no 9029 ;; 9030 9031 *) 9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9035 else 9036 ld_shlibs=no 9037 fi 9038 ;; 9039 esac 9040 9041 if test "$ld_shlibs" = no; then 9042 runpath_var= 9043 hardcode_libdir_flag_spec= 9044 export_dynamic_flag_spec= 9045 whole_archive_flag_spec= 9046 fi 9047 else 9048 # PORTME fill in a description of your system's linker (not GNU ld) 9049 case $host_os in 9050 aix3*) 9051 allow_undefined_flag=unsupported 9052 always_export_symbols=yes 9053 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' 9054 # Note: this linker hardcodes the directories in LIBPATH if there 9055 # are no directories specified by -L. 9056 hardcode_minus_L=yes 9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9058 # Neither direct hardcoding nor static linking is supported with a 9059 # broken collect2. 9060 hardcode_direct=unsupported 9061 fi 9062 ;; 9063 9064 aix[4-9]*) 9065 if test "$host_cpu" = ia64; then 9066 # On IA64, the linker does run time linking by default, so we don't 9067 # have to do anything special. 9068 aix_use_runtimelinking=no 9069 exp_sym_flag='-Bexport' 9070 no_entry_flag="" 9071 else 9072 # If we're using GNU nm, then we don't want the "-C" option. 9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9074 # Also, AIX nm treats weak defined symbols like other global 9075 # defined symbols, whereas GNU nm marks them as "W". 9076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9077 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' 9078 else 9079 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' 9080 fi 9081 aix_use_runtimelinking=no 9082 9083 # Test if we are trying to use run time linking or normal 9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9085 # need to do runtime linking. 9086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9087 for ld_flag in $LDFLAGS; do 9088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9089 aix_use_runtimelinking=yes 9090 break 9091 fi 9092 done 9093 ;; 9094 esac 9095 9096 exp_sym_flag='-bexport' 9097 no_entry_flag='-bnoentry' 9098 fi 9099 9100 # When large executables or shared objects are built, AIX ld can 9101 # have problems creating the table of contents. If linking a library 9102 # or program results in "error TOC overflow" add -mminimal-toc to 9103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9105 9106 archive_cmds='' 9107 hardcode_direct=yes 9108 hardcode_direct_absolute=yes 9109 hardcode_libdir_separator=':' 9110 link_all_deplibs=yes 9111 file_list_spec='${wl}-f,' 9112 9113 if test "$GCC" = yes; then 9114 case $host_os in aix4.[012]|aix4.[012].*) 9115 # We only want to do this on AIX 4.2 and lower, the check 9116 # below for broken collect2 doesn't work under 4.3+ 9117 collect2name=`${CC} -print-prog-name=collect2` 9118 if test -f "$collect2name" && 9119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9120 then 9121 # We have reworked collect2 9122 : 9123 else 9124 # We have old collect2 9125 hardcode_direct=unsupported 9126 # It fails to find uninstalled libraries when the uninstalled 9127 # path is not listed in the libpath. Setting hardcode_minus_L 9128 # to unsupported forces relinking 9129 hardcode_minus_L=yes 9130 hardcode_libdir_flag_spec='-L$libdir' 9131 hardcode_libdir_separator= 9132 fi 9133 ;; 9134 esac 9135 shared_flag='-shared' 9136 if test "$aix_use_runtimelinking" = yes; then 9137 shared_flag="$shared_flag "'${wl}-G' 9138 fi 9139 link_all_deplibs=no 9140 else 9141 # not using gcc 9142 if test "$host_cpu" = ia64; then 9143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9144 # chokes on -Wl,-G. The following line is correct: 9145 shared_flag='-G' 9146 else 9147 if test "$aix_use_runtimelinking" = yes; then 9148 shared_flag='${wl}-G' 9149 else 9150 shared_flag='${wl}-bM:SRE' 9151 fi 9152 fi 9153 fi 9154 9155 export_dynamic_flag_spec='${wl}-bexpall' 9156 # It seems that -bexpall does not export symbols beginning with 9157 # underscore (_), so it is better to generate a list of symbols to export. 9158 always_export_symbols=yes 9159 if test "$aix_use_runtimelinking" = yes; then 9160 # Warning - without using the other runtime loading flags (-brtl), 9161 # -berok will link without error, but may produce a broken library. 9162 allow_undefined_flag='-berok' 9163 # Determine the default libpath from the value encoded in an 9164 # empty executable. 9165 if test "${lt_cv_aix_libpath+set}" = set; then 9166 aix_libpath=$lt_cv_aix_libpath 9167else 9168 if ${lt_cv_aix_libpath_+:} false; then : 9169 $as_echo_n "(cached) " >&6 9170else 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173 9174int 9175main () 9176{ 9177 9178 ; 9179 return 0; 9180} 9181_ACEOF 9182if ac_fn_c_try_link "$LINENO"; then : 9183 9184 lt_aix_libpath_sed=' 9185 /Import File Strings/,/^$/ { 9186 /^0/ { 9187 s/^0 *\([^ ]*\) *$/\1/ 9188 p 9189 } 9190 }' 9191 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9192 # Check for a 64-bit object if we didn't find anything. 9193 if test -z "$lt_cv_aix_libpath_"; then 9194 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9195 fi 9196fi 9197rm -f core conftest.err conftest.$ac_objext \ 9198 conftest$ac_exeext conftest.$ac_ext 9199 if test -z "$lt_cv_aix_libpath_"; then 9200 lt_cv_aix_libpath_="/usr/lib:/lib" 9201 fi 9202 9203fi 9204 9205 aix_libpath=$lt_cv_aix_libpath_ 9206fi 9207 9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9209 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" 9210 else 9211 if test "$host_cpu" = ia64; then 9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9213 allow_undefined_flag="-z nodefs" 9214 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" 9215 else 9216 # Determine the default libpath from the value encoded in an 9217 # empty executable. 9218 if test "${lt_cv_aix_libpath+set}" = set; then 9219 aix_libpath=$lt_cv_aix_libpath 9220else 9221 if ${lt_cv_aix_libpath_+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226 9227int 9228main () 9229{ 9230 9231 ; 9232 return 0; 9233} 9234_ACEOF 9235if ac_fn_c_try_link "$LINENO"; then : 9236 9237 lt_aix_libpath_sed=' 9238 /Import File Strings/,/^$/ { 9239 /^0/ { 9240 s/^0 *\([^ ]*\) *$/\1/ 9241 p 9242 } 9243 }' 9244 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9245 # Check for a 64-bit object if we didn't find anything. 9246 if test -z "$lt_cv_aix_libpath_"; then 9247 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9248 fi 9249fi 9250rm -f core conftest.err conftest.$ac_objext \ 9251 conftest$ac_exeext conftest.$ac_ext 9252 if test -z "$lt_cv_aix_libpath_"; then 9253 lt_cv_aix_libpath_="/usr/lib:/lib" 9254 fi 9255 9256fi 9257 9258 aix_libpath=$lt_cv_aix_libpath_ 9259fi 9260 9261 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9262 # Warning - without using the other run time loading flags, 9263 # -berok will link without error, but may produce a broken library. 9264 no_undefined_flag=' ${wl}-bernotok' 9265 allow_undefined_flag=' ${wl}-berok' 9266 if test "$with_gnu_ld" = yes; then 9267 # We only use this code for GNU lds that support --whole-archive. 9268 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9269 else 9270 # Exported symbols can be pulled into shared objects from archives 9271 whole_archive_flag_spec='$convenience' 9272 fi 9273 archive_cmds_need_lc=yes 9274 # This is similar to how AIX traditionally builds its shared libraries. 9275 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' 9276 fi 9277 fi 9278 ;; 9279 9280 amigaos*) 9281 case $host_cpu in 9282 powerpc) 9283 # see comment about AmigaOS4 .so support 9284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9285 archive_expsym_cmds='' 9286 ;; 9287 m68k) 9288 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)' 9289 hardcode_libdir_flag_spec='-L$libdir' 9290 hardcode_minus_L=yes 9291 ;; 9292 esac 9293 ;; 9294 9295 bsdi[45]*) 9296 export_dynamic_flag_spec=-rdynamic 9297 ;; 9298 9299 cygwin* | mingw* | pw32* | cegcc*) 9300 # When not using gcc, we currently assume that we are using 9301 # Microsoft Visual C++. 9302 # hardcode_libdir_flag_spec is actually meaningless, as there is 9303 # no search path for DLLs. 9304 case $cc_basename in 9305 cl*) 9306 # Native MSVC 9307 hardcode_libdir_flag_spec=' ' 9308 allow_undefined_flag=unsupported 9309 always_export_symbols=yes 9310 file_list_spec='@' 9311 # Tell ltmain to make .lib files, not .a files. 9312 libext=lib 9313 # Tell ltmain to make .dll files, not .so files. 9314 shrext_cmds=".dll" 9315 # FIXME: Setting linknames here is a bad hack. 9316 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9317 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9318 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9319 else 9320 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9321 fi~ 9322 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9323 linknames=' 9324 # The linker will not automatically build a static lib if we build a DLL. 9325 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9326 enable_shared_with_static_runtimes=yes 9327 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9329 # Don't use ranlib 9330 old_postinstall_cmds='chmod 644 $oldlib' 9331 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9332 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9333 case $lt_outputfile in 9334 *.exe|*.EXE) ;; 9335 *) 9336 lt_outputfile="$lt_outputfile.exe" 9337 lt_tool_outputfile="$lt_tool_outputfile.exe" 9338 ;; 9339 esac~ 9340 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9341 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9342 $RM "$lt_outputfile.manifest"; 9343 fi' 9344 ;; 9345 *) 9346 # Assume MSVC wrapper 9347 hardcode_libdir_flag_spec=' ' 9348 allow_undefined_flag=unsupported 9349 # Tell ltmain to make .lib files, not .a files. 9350 libext=lib 9351 # Tell ltmain to make .dll files, not .so files. 9352 shrext_cmds=".dll" 9353 # FIXME: Setting linknames here is a bad hack. 9354 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9355 # The linker will automatically build a .lib file if we build a DLL. 9356 old_archive_from_new_cmds='true' 9357 # FIXME: Should let the user specify the lib program. 9358 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9359 enable_shared_with_static_runtimes=yes 9360 ;; 9361 esac 9362 ;; 9363 9364 darwin* | rhapsody*) 9365 9366 9367 archive_cmds_need_lc=no 9368 hardcode_direct=no 9369 hardcode_automatic=yes 9370 hardcode_shlibpath_var=unsupported 9371 if test "$lt_cv_ld_force_load" = "yes"; then 9372 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\"`' 9373 9374 else 9375 whole_archive_flag_spec='' 9376 fi 9377 link_all_deplibs=yes 9378 allow_undefined_flag="$_lt_dar_allow_undefined" 9379 case $cc_basename in 9380 ifort*) _lt_dar_can_shared=yes ;; 9381 *) _lt_dar_can_shared=$GCC ;; 9382 esac 9383 if test "$_lt_dar_can_shared" = "yes"; then 9384 output_verbose_link_cmd=func_echo_all 9385 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9386 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9387 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}" 9388 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}" 9389 9390 else 9391 ld_shlibs=no 9392 fi 9393 9394 ;; 9395 9396 dgux*) 9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9398 hardcode_libdir_flag_spec='-L$libdir' 9399 hardcode_shlibpath_var=no 9400 ;; 9401 9402 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9403 # support. Future versions do this automatically, but an explicit c++rt0.o 9404 # does not break anything, and helps significantly (at the cost of a little 9405 # extra space). 9406 freebsd2.2*) 9407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9408 hardcode_libdir_flag_spec='-R$libdir' 9409 hardcode_direct=yes 9410 hardcode_shlibpath_var=no 9411 ;; 9412 9413 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9414 freebsd2.*) 9415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9416 hardcode_direct=yes 9417 hardcode_minus_L=yes 9418 hardcode_shlibpath_var=no 9419 ;; 9420 9421 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9422 freebsd* | dragonfly*) 9423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9424 hardcode_libdir_flag_spec='-R$libdir' 9425 hardcode_direct=yes 9426 hardcode_shlibpath_var=no 9427 ;; 9428 9429 hpux9*) 9430 if test "$GCC" = yes; then 9431 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9432 else 9433 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' 9434 fi 9435 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9436 hardcode_libdir_separator=: 9437 hardcode_direct=yes 9438 9439 # hardcode_minus_L: Not really in the search PATH, 9440 # but as the default location of the library. 9441 hardcode_minus_L=yes 9442 export_dynamic_flag_spec='${wl}-E' 9443 ;; 9444 9445 hpux10*) 9446 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9447 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9448 else 9449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9450 fi 9451 if test "$with_gnu_ld" = no; then 9452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9453 hardcode_libdir_separator=: 9454 hardcode_direct=yes 9455 hardcode_direct_absolute=yes 9456 export_dynamic_flag_spec='${wl}-E' 9457 # hardcode_minus_L: Not really in the search PATH, 9458 # but as the default location of the library. 9459 hardcode_minus_L=yes 9460 fi 9461 ;; 9462 9463 hpux11*) 9464 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9465 case $host_cpu in 9466 hppa*64*) 9467 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9468 ;; 9469 ia64*) 9470 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9471 ;; 9472 *) 9473 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9474 ;; 9475 esac 9476 else 9477 case $host_cpu in 9478 hppa*64*) 9479 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9480 ;; 9481 ia64*) 9482 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9483 ;; 9484 *) 9485 9486 # Older versions of the 11.00 compiler do not understand -b yet 9487 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9489$as_echo_n "checking if $CC understands -b... " >&6; } 9490if ${lt_cv_prog_compiler__b+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492else 9493 lt_cv_prog_compiler__b=no 9494 save_LDFLAGS="$LDFLAGS" 9495 LDFLAGS="$LDFLAGS -b" 9496 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9498 # The linker can only warn and ignore the option if not recognized 9499 # So say no if there are warnings 9500 if test -s conftest.err; then 9501 # Append any errors to the config.log. 9502 cat conftest.err 1>&5 9503 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9505 if diff conftest.exp conftest.er2 >/dev/null; then 9506 lt_cv_prog_compiler__b=yes 9507 fi 9508 else 9509 lt_cv_prog_compiler__b=yes 9510 fi 9511 fi 9512 $RM -r conftest* 9513 LDFLAGS="$save_LDFLAGS" 9514 9515fi 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9517$as_echo "$lt_cv_prog_compiler__b" >&6; } 9518 9519if test x"$lt_cv_prog_compiler__b" = xyes; then 9520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9521else 9522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9523fi 9524 9525 ;; 9526 esac 9527 fi 9528 if test "$with_gnu_ld" = no; then 9529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9530 hardcode_libdir_separator=: 9531 9532 case $host_cpu in 9533 hppa*64*|ia64*) 9534 hardcode_direct=no 9535 hardcode_shlibpath_var=no 9536 ;; 9537 *) 9538 hardcode_direct=yes 9539 hardcode_direct_absolute=yes 9540 export_dynamic_flag_spec='${wl}-E' 9541 9542 # hardcode_minus_L: Not really in the search PATH, 9543 # but as the default location of the library. 9544 hardcode_minus_L=yes 9545 ;; 9546 esac 9547 fi 9548 ;; 9549 9550 irix5* | irix6* | nonstopux*) 9551 if test "$GCC" = yes; then 9552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9553 # Try to use the -exported_symbol ld option, if it does not 9554 # work, assume that -exports_file does not work either and 9555 # implicitly export all symbols. 9556 # This should be the same for all languages, so no per-tag cache variable. 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9558$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9559if ${lt_cv_irix_exported_symbol+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 save_LDFLAGS="$LDFLAGS" 9563 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566int foo (void) { return 0; } 9567_ACEOF 9568if ac_fn_c_try_link "$LINENO"; then : 9569 lt_cv_irix_exported_symbol=yes 9570else 9571 lt_cv_irix_exported_symbol=no 9572fi 9573rm -f core conftest.err conftest.$ac_objext \ 9574 conftest$ac_exeext conftest.$ac_ext 9575 LDFLAGS="$save_LDFLAGS" 9576fi 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9578$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9579 if test "$lt_cv_irix_exported_symbol" = yes; then 9580 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9581 fi 9582 else 9583 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' 9584 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' 9585 fi 9586 archive_cmds_need_lc='no' 9587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9588 hardcode_libdir_separator=: 9589 inherit_rpath=yes 9590 link_all_deplibs=yes 9591 ;; 9592 9593 netbsd* | netbsdelf*-gnu) 9594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9596 else 9597 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9598 fi 9599 hardcode_libdir_flag_spec='-R$libdir' 9600 hardcode_direct=yes 9601 hardcode_shlibpath_var=no 9602 ;; 9603 9604 newsos6) 9605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9606 hardcode_direct=yes 9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9608 hardcode_libdir_separator=: 9609 hardcode_shlibpath_var=no 9610 ;; 9611 9612 *nto* | *qnx*) 9613 ;; 9614 9615 openbsd*) 9616 if test -f /usr/libexec/ld.so; then 9617 hardcode_direct=yes 9618 hardcode_shlibpath_var=no 9619 hardcode_direct_absolute=yes 9620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9622 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9624 export_dynamic_flag_spec='${wl}-E' 9625 else 9626 case $host_os in 9627 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9629 hardcode_libdir_flag_spec='-R$libdir' 9630 ;; 9631 *) 9632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9633 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9634 ;; 9635 esac 9636 fi 9637 else 9638 ld_shlibs=no 9639 fi 9640 ;; 9641 9642 os2*) 9643 hardcode_libdir_flag_spec='-L$libdir' 9644 hardcode_minus_L=yes 9645 allow_undefined_flag=unsupported 9646 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' 9647 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9648 ;; 9649 9650 osf3*) 9651 if test "$GCC" = yes; then 9652 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9653 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' 9654 else 9655 allow_undefined_flag=' -expect_unresolved \*' 9656 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' 9657 fi 9658 archive_cmds_need_lc='no' 9659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9660 hardcode_libdir_separator=: 9661 ;; 9662 9663 osf4* | osf5*) # as osf3* with the addition of -msym flag 9664 if test "$GCC" = yes; then 9665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9666 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9668 else 9669 allow_undefined_flag=' -expect_unresolved \*' 9670 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' 9671 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~ 9672 $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' 9673 9674 # Both c and cxx compiler support -rpath directly 9675 hardcode_libdir_flag_spec='-rpath $libdir' 9676 fi 9677 archive_cmds_need_lc='no' 9678 hardcode_libdir_separator=: 9679 ;; 9680 9681 solaris*) 9682 no_undefined_flag=' -z defs' 9683 if test "$GCC" = yes; then 9684 wlarc='${wl}' 9685 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9687 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9688 else 9689 case `$CC -V 2>&1` in 9690 *"Compilers 5.0"*) 9691 wlarc='' 9692 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9694 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9695 ;; 9696 *) 9697 wlarc='${wl}' 9698 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9700 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9701 ;; 9702 esac 9703 fi 9704 hardcode_libdir_flag_spec='-R$libdir' 9705 hardcode_shlibpath_var=no 9706 case $host_os in 9707 solaris2.[0-5] | solaris2.[0-5].*) ;; 9708 *) 9709 # The compiler driver will combine and reorder linker options, 9710 # but understands `-z linker_flag'. GCC discards it without `$wl', 9711 # but is careful enough not to reorder. 9712 # Supported since Solaris 2.6 (maybe 2.5.1?) 9713 if test "$GCC" = yes; then 9714 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9715 else 9716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9717 fi 9718 ;; 9719 esac 9720 link_all_deplibs=yes 9721 ;; 9722 9723 sunos4*) 9724 if test "x$host_vendor" = xsequent; then 9725 # Use $CC to link under sequent, because it throws in some extra .o 9726 # files that make .init and .fini sections work. 9727 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9728 else 9729 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9730 fi 9731 hardcode_libdir_flag_spec='-L$libdir' 9732 hardcode_direct=yes 9733 hardcode_minus_L=yes 9734 hardcode_shlibpath_var=no 9735 ;; 9736 9737 sysv4) 9738 case $host_vendor in 9739 sni) 9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_direct=yes # is this really true??? 9742 ;; 9743 siemens) 9744 ## LD is ld it makes a PLAMLIB 9745 ## CC just makes a GrossModule. 9746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9747 reload_cmds='$CC -r -o $output$reload_objs' 9748 hardcode_direct=no 9749 ;; 9750 motorola) 9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9752 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9753 ;; 9754 esac 9755 runpath_var='LD_RUN_PATH' 9756 hardcode_shlibpath_var=no 9757 ;; 9758 9759 sysv4.3*) 9760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9761 hardcode_shlibpath_var=no 9762 export_dynamic_flag_spec='-Bexport' 9763 ;; 9764 9765 sysv4*MP*) 9766 if test -d /usr/nec; then 9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9768 hardcode_shlibpath_var=no 9769 runpath_var=LD_RUN_PATH 9770 hardcode_runpath_var=yes 9771 ld_shlibs=yes 9772 fi 9773 ;; 9774 9775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9776 no_undefined_flag='${wl}-z,text' 9777 archive_cmds_need_lc=no 9778 hardcode_shlibpath_var=no 9779 runpath_var='LD_RUN_PATH' 9780 9781 if test "$GCC" = yes; then 9782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9784 else 9785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9787 fi 9788 ;; 9789 9790 sysv5* | sco3.2v5* | sco5v6*) 9791 # Note: We can NOT use -z defs as we might desire, because we do not 9792 # link with -lc, and that would cause any symbols used from libc to 9793 # always be unresolved, which means just about no library would 9794 # ever link correctly. If we're not using GNU ld we use -z text 9795 # though, which does catch some bad symbols but isn't as heavy-handed 9796 # as -z defs. 9797 no_undefined_flag='${wl}-z,text' 9798 allow_undefined_flag='${wl}-z,nodefs' 9799 archive_cmds_need_lc=no 9800 hardcode_shlibpath_var=no 9801 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9802 hardcode_libdir_separator=':' 9803 link_all_deplibs=yes 9804 export_dynamic_flag_spec='${wl}-Bexport' 9805 runpath_var='LD_RUN_PATH' 9806 9807 if test "$GCC" = yes; then 9808 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9809 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9810 else 9811 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9812 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9813 fi 9814 ;; 9815 9816 uts4*) 9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 hardcode_shlibpath_var=no 9820 ;; 9821 9822 *) 9823 ld_shlibs=no 9824 ;; 9825 esac 9826 9827 if test x$host_vendor = xsni; then 9828 case $host in 9829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9830 export_dynamic_flag_spec='${wl}-Blargedynsym' 9831 ;; 9832 esac 9833 fi 9834 fi 9835 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9837$as_echo "$ld_shlibs" >&6; } 9838test "$ld_shlibs" = no && can_build_shared=no 9839 9840with_gnu_ld=$with_gnu_ld 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856# 9857# Do we need to explicitly link libc? 9858# 9859case "x$archive_cmds_need_lc" in 9860x|xyes) 9861 # Assume -lc should be added 9862 archive_cmds_need_lc=yes 9863 9864 if test "$enable_shared" = yes && test "$GCC" = yes; then 9865 case $archive_cmds in 9866 *'~'*) 9867 # FIXME: we may have to deal with multi-command sequences. 9868 ;; 9869 '$CC '*) 9870 # Test whether the compiler implicitly links with -lc since on some 9871 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9872 # to ld, don't add -lc before -lgcc. 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9874$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9875if ${lt_cv_archive_cmds_need_lc+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 $RM conftest* 9879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9880 9881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9882 (eval $ac_compile) 2>&5 9883 ac_status=$? 9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9885 test $ac_status = 0; } 2>conftest.err; then 9886 soname=conftest 9887 lib=conftest 9888 libobjs=conftest.$ac_objext 9889 deplibs= 9890 wl=$lt_prog_compiler_wl 9891 pic_flag=$lt_prog_compiler_pic 9892 compiler_flags=-v 9893 linker_flags=-v 9894 verstring= 9895 output_objdir=. 9896 libname=conftest 9897 lt_save_allow_undefined_flag=$allow_undefined_flag 9898 allow_undefined_flag= 9899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9901 ac_status=$? 9902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9903 test $ac_status = 0; } 9904 then 9905 lt_cv_archive_cmds_need_lc=no 9906 else 9907 lt_cv_archive_cmds_need_lc=yes 9908 fi 9909 allow_undefined_flag=$lt_save_allow_undefined_flag 9910 else 9911 cat conftest.err 1>&5 9912 fi 9913 $RM conftest* 9914 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9917$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9919 ;; 9920 esac 9921 fi 9922 ;; 9923esac 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10077$as_echo_n "checking dynamic linker characteristics... " >&6; } 10078 10079if test "$GCC" = yes; then 10080 case $host_os in 10081 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10082 *) lt_awk_arg="/^libraries:/" ;; 10083 esac 10084 case $host_os in 10085 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10086 *) lt_sed_strip_eq="s,=/,/,g" ;; 10087 esac 10088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10089 case $lt_search_path_spec in 10090 *\;*) 10091 # if the path contains ";" then we assume it to be the separator 10092 # otherwise default to the standard path separator (i.e. ":") - it is 10093 # assumed that no part of a normal pathname contains ";" but that should 10094 # okay in the real world where ";" in dirpaths is itself problematic. 10095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10096 ;; 10097 *) 10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10099 ;; 10100 esac 10101 # Ok, now we have the path, separated by spaces, we can step through it 10102 # and add multilib dir if necessary. 10103 lt_tmp_lt_search_path_spec= 10104 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10105 for lt_sys_path in $lt_search_path_spec; do 10106 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10108 else 10109 test -d "$lt_sys_path" && \ 10110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10111 fi 10112 done 10113 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10114BEGIN {RS=" "; FS="/|\n";} { 10115 lt_foo=""; 10116 lt_count=0; 10117 for (lt_i = NF; lt_i > 0; lt_i--) { 10118 if ($lt_i != "" && $lt_i != ".") { 10119 if ($lt_i == "..") { 10120 lt_count++; 10121 } else { 10122 if (lt_count == 0) { 10123 lt_foo="/" $lt_i lt_foo; 10124 } else { 10125 lt_count--; 10126 } 10127 } 10128 } 10129 } 10130 if (lt_foo != "") { lt_freq[lt_foo]++; } 10131 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10132}'` 10133 # AWK program above erroneously prepends '/' to C:/dos/paths 10134 # for these hosts. 10135 case $host_os in 10136 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10137 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10138 esac 10139 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10140else 10141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10142fi 10143library_names_spec= 10144libname_spec='lib$name' 10145soname_spec= 10146shrext_cmds=".so" 10147postinstall_cmds= 10148postuninstall_cmds= 10149finish_cmds= 10150finish_eval= 10151shlibpath_var= 10152shlibpath_overrides_runpath=unknown 10153version_type=none 10154dynamic_linker="$host_os ld.so" 10155sys_lib_dlsearch_path_spec="/lib /usr/lib" 10156need_lib_prefix=unknown 10157hardcode_into_libs=no 10158 10159# when you set need_version to no, make sure it does not cause -set_version 10160# flags to be left without arguments 10161need_version=unknown 10162 10163case $host_os in 10164aix3*) 10165 version_type=linux # correct to gnu/linux during the next big refactor 10166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10167 shlibpath_var=LIBPATH 10168 10169 # AIX 3 has no versioning support, so we append a major version to the name. 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 ;; 10172 10173aix[4-9]*) 10174 version_type=linux # correct to gnu/linux during the next big refactor 10175 need_lib_prefix=no 10176 need_version=no 10177 hardcode_into_libs=yes 10178 if test "$host_cpu" = ia64; then 10179 # AIX 5 supports IA64 10180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10181 shlibpath_var=LD_LIBRARY_PATH 10182 else 10183 # With GCC up to 2.95.x, collect2 would create an import file 10184 # for dependence libraries. The import file would start with 10185 # the line `#! .'. This would cause the generated library to 10186 # depend on `.', always an invalid library. This was fixed in 10187 # development snapshots of GCC prior to 3.0. 10188 case $host_os in 10189 aix4 | aix4.[01] | aix4.[01].*) 10190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10191 echo ' yes ' 10192 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10193 : 10194 else 10195 can_build_shared=no 10196 fi 10197 ;; 10198 esac 10199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10200 # soname into executable. Probably we can add versioning support to 10201 # collect2, so additional links can be useful in future. 10202 if test "$aix_use_runtimelinking" = yes; then 10203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10204 # instead of lib<name>.a to let people know that these are not 10205 # typical AIX shared libraries. 10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10207 else 10208 # We preserve .a as extension for shared libraries through AIX4.2 10209 # and later when we are not doing run time linking. 10210 library_names_spec='${libname}${release}.a $libname.a' 10211 soname_spec='${libname}${release}${shared_ext}$major' 10212 fi 10213 shlibpath_var=LIBPATH 10214 fi 10215 ;; 10216 10217amigaos*) 10218 case $host_cpu in 10219 powerpc) 10220 # Since July 2007 AmigaOS4 officially supports .so libraries. 10221 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10223 ;; 10224 m68k) 10225 library_names_spec='$libname.ixlibrary $libname.a' 10226 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10227 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' 10228 ;; 10229 esac 10230 ;; 10231 10232beos*) 10233 library_names_spec='${libname}${shared_ext}' 10234 dynamic_linker="$host_os ld.so" 10235 shlibpath_var=LIBRARY_PATH 10236 ;; 10237 10238bsdi[45]*) 10239 version_type=linux # correct to gnu/linux during the next big refactor 10240 need_version=no 10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10242 soname_spec='${libname}${release}${shared_ext}$major' 10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10244 shlibpath_var=LD_LIBRARY_PATH 10245 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10246 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10247 # the default ld.so.conf also contains /usr/contrib/lib and 10248 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10249 # libtool to hard-code these into programs 10250 ;; 10251 10252cygwin* | mingw* | pw32* | cegcc*) 10253 version_type=windows 10254 shrext_cmds=".dll" 10255 need_version=no 10256 need_lib_prefix=no 10257 10258 case $GCC,$cc_basename in 10259 yes,*) 10260 # gcc 10261 library_names_spec='$libname.dll.a' 10262 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10263 postinstall_cmds='base_file=`basename \${file}`~ 10264 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10265 dldir=$destdir/`dirname \$dlpath`~ 10266 test -d \$dldir || mkdir -p \$dldir~ 10267 $install_prog $dir/$dlname \$dldir/$dlname~ 10268 chmod a+x \$dldir/$dlname~ 10269 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10270 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10271 fi' 10272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10273 dlpath=$dir/\$dldll~ 10274 $RM \$dlpath' 10275 shlibpath_overrides_runpath=yes 10276 10277 case $host_os in 10278 cygwin*) 10279 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10280 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10281 10282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10283 ;; 10284 mingw* | cegcc*) 10285 # MinGW DLLs use traditional 'lib' prefix 10286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10287 ;; 10288 pw32*) 10289 # pw32 DLLs use 'pw' prefix rather than 'lib' 10290 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10291 ;; 10292 esac 10293 dynamic_linker='Win32 ld.exe' 10294 ;; 10295 10296 *,cl*) 10297 # Native MSVC 10298 libname_spec='$name' 10299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10300 library_names_spec='${libname}.dll.lib' 10301 10302 case $build_os in 10303 mingw*) 10304 sys_lib_search_path_spec= 10305 lt_save_ifs=$IFS 10306 IFS=';' 10307 for lt_path in $LIB 10308 do 10309 IFS=$lt_save_ifs 10310 # Let DOS variable expansion print the short 8.3 style file name. 10311 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10312 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10313 done 10314 IFS=$lt_save_ifs 10315 # Convert to MSYS style. 10316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10317 ;; 10318 cygwin*) 10319 # Convert to unix form, then to dos form, then back to unix form 10320 # but this time dos style (no spaces!) so that the unix form looks 10321 # like /cygdrive/c/PROGRA~1:/cygdr... 10322 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10323 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10324 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10325 ;; 10326 *) 10327 sys_lib_search_path_spec="$LIB" 10328 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10329 # It is most probably a Windows format PATH. 10330 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10331 else 10332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10333 fi 10334 # FIXME: find the short name or the path components, as spaces are 10335 # common. (e.g. "Program Files" -> "PROGRA~1") 10336 ;; 10337 esac 10338 10339 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10340 postinstall_cmds='base_file=`basename \${file}`~ 10341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10342 dldir=$destdir/`dirname \$dlpath`~ 10343 test -d \$dldir || mkdir -p \$dldir~ 10344 $install_prog $dir/$dlname \$dldir/$dlname' 10345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10346 dlpath=$dir/\$dldll~ 10347 $RM \$dlpath' 10348 shlibpath_overrides_runpath=yes 10349 dynamic_linker='Win32 link.exe' 10350 ;; 10351 10352 *) 10353 # Assume MSVC wrapper 10354 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10355 dynamic_linker='Win32 ld.exe' 10356 ;; 10357 esac 10358 # FIXME: first we should search . and the directory the executable is in 10359 shlibpath_var=PATH 10360 ;; 10361 10362darwin* | rhapsody*) 10363 dynamic_linker="$host_os dyld" 10364 version_type=darwin 10365 need_lib_prefix=no 10366 need_version=no 10367 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10368 soname_spec='${libname}${release}${major}$shared_ext' 10369 shlibpath_overrides_runpath=yes 10370 shlibpath_var=DYLD_LIBRARY_PATH 10371 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10372 10373 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10374 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10375 ;; 10376 10377dgux*) 10378 version_type=linux # correct to gnu/linux during the next big refactor 10379 need_lib_prefix=no 10380 need_version=no 10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10382 soname_spec='${libname}${release}${shared_ext}$major' 10383 shlibpath_var=LD_LIBRARY_PATH 10384 ;; 10385 10386freebsd* | dragonfly*) 10387 # DragonFly does not have aout. When/if they implement a new 10388 # versioning mechanism, adjust this. 10389 if test -x /usr/bin/objformat; then 10390 objformat=`/usr/bin/objformat` 10391 else 10392 case $host_os in 10393 freebsd[23].*) objformat=aout ;; 10394 *) objformat=elf ;; 10395 esac 10396 fi 10397 version_type=freebsd-$objformat 10398 case $version_type in 10399 freebsd-elf*) 10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10401 need_version=no 10402 need_lib_prefix=no 10403 ;; 10404 freebsd-*) 10405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10406 need_version=yes 10407 ;; 10408 esac 10409 shlibpath_var=LD_LIBRARY_PATH 10410 case $host_os in 10411 freebsd2.*) 10412 shlibpath_overrides_runpath=yes 10413 ;; 10414 freebsd3.[01]* | freebsdelf3.[01]*) 10415 shlibpath_overrides_runpath=yes 10416 hardcode_into_libs=yes 10417 ;; 10418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10420 shlibpath_overrides_runpath=no 10421 hardcode_into_libs=yes 10422 ;; 10423 *) # from 4.6 on, and DragonFly 10424 shlibpath_overrides_runpath=yes 10425 hardcode_into_libs=yes 10426 ;; 10427 esac 10428 ;; 10429 10430haiku*) 10431 version_type=linux # correct to gnu/linux during the next big refactor 10432 need_lib_prefix=no 10433 need_version=no 10434 dynamic_linker="$host_os runtime_loader" 10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10436 soname_spec='${libname}${release}${shared_ext}$major' 10437 shlibpath_var=LIBRARY_PATH 10438 shlibpath_overrides_runpath=yes 10439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10440 hardcode_into_libs=yes 10441 ;; 10442 10443hpux9* | hpux10* | hpux11*) 10444 # Give a soname corresponding to the major version so that dld.sl refuses to 10445 # link against other versions. 10446 version_type=sunos 10447 need_lib_prefix=no 10448 need_version=no 10449 case $host_cpu in 10450 ia64*) 10451 shrext_cmds='.so' 10452 hardcode_into_libs=yes 10453 dynamic_linker="$host_os dld.so" 10454 shlibpath_var=LD_LIBRARY_PATH 10455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10457 soname_spec='${libname}${release}${shared_ext}$major' 10458 if test "X$HPUX_IA64_MODE" = X32; then 10459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10460 else 10461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10462 fi 10463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10464 ;; 10465 hppa*64*) 10466 shrext_cmds='.sl' 10467 hardcode_into_libs=yes 10468 dynamic_linker="$host_os dld.sl" 10469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10472 soname_spec='${libname}${release}${shared_ext}$major' 10473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10475 ;; 10476 *) 10477 shrext_cmds='.sl' 10478 dynamic_linker="$host_os dld.sl" 10479 shlibpath_var=SHLIB_PATH 10480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10482 soname_spec='${libname}${release}${shared_ext}$major' 10483 ;; 10484 esac 10485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10486 postinstall_cmds='chmod 555 $lib' 10487 # or fails outright, so override atomically: 10488 install_override_mode=555 10489 ;; 10490 10491interix[3-9]*) 10492 version_type=linux # correct to gnu/linux during the next big refactor 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 soname_spec='${libname}${release}${shared_ext}$major' 10497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10498 shlibpath_var=LD_LIBRARY_PATH 10499 shlibpath_overrides_runpath=no 10500 hardcode_into_libs=yes 10501 ;; 10502 10503irix5* | irix6* | nonstopux*) 10504 case $host_os in 10505 nonstopux*) version_type=nonstopux ;; 10506 *) 10507 if test "$lt_cv_prog_gnu_ld" = yes; then 10508 version_type=linux # correct to gnu/linux during the next big refactor 10509 else 10510 version_type=irix 10511 fi ;; 10512 esac 10513 need_lib_prefix=no 10514 need_version=no 10515 soname_spec='${libname}${release}${shared_ext}$major' 10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10517 case $host_os in 10518 irix5* | nonstopux*) 10519 libsuff= shlibsuff= 10520 ;; 10521 *) 10522 case $LD in # libtool.m4 will add one of these switches to LD 10523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10524 libsuff= shlibsuff= libmagic=32-bit;; 10525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10526 libsuff=32 shlibsuff=N32 libmagic=N32;; 10527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10528 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10529 *) libsuff= shlibsuff= libmagic=never-match;; 10530 esac 10531 ;; 10532 esac 10533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10534 shlibpath_overrides_runpath=no 10535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10537 hardcode_into_libs=yes 10538 ;; 10539 10540# No shared lib support for Linux oldld, aout, or coff. 10541linux*oldld* | linux*aout* | linux*coff*) 10542 dynamic_linker=no 10543 ;; 10544 10545# This must be glibc/ELF. 10546linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10547 version_type=linux # correct to gnu/linux during the next big refactor 10548 need_lib_prefix=no 10549 need_version=no 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10551 soname_spec='${libname}${release}${shared_ext}$major' 10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10553 shlibpath_var=LD_LIBRARY_PATH 10554 shlibpath_overrides_runpath=no 10555 10556 # Some binutils ld are patched to set DT_RUNPATH 10557 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10558 $as_echo_n "(cached) " >&6 10559else 10560 lt_cv_shlibpath_overrides_runpath=no 10561 save_LDFLAGS=$LDFLAGS 10562 save_libdir=$libdir 10563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10566/* end confdefs.h. */ 10567 10568int 10569main () 10570{ 10571 10572 ; 10573 return 0; 10574} 10575_ACEOF 10576if ac_fn_c_try_link "$LINENO"; then : 10577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10578 lt_cv_shlibpath_overrides_runpath=yes 10579fi 10580fi 10581rm -f core conftest.err conftest.$ac_objext \ 10582 conftest$ac_exeext conftest.$ac_ext 10583 LDFLAGS=$save_LDFLAGS 10584 libdir=$save_libdir 10585 10586fi 10587 10588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10589 10590 # This implies no fast_install, which is unacceptable. 10591 # Some rework will be needed to allow for fast_install 10592 # before this can be enabled. 10593 hardcode_into_libs=yes 10594 10595 # Append ld.so.conf contents to the search path 10596 if test -f /etc/ld.so.conf; then 10597 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' ' '` 10598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10599 fi 10600 10601 # We used to test for /lib/ld.so.1 and disable shared libraries on 10602 # powerpc, because MkLinux only supported shared libraries with the 10603 # GNU dynamic linker. Since this was broken with cross compilers, 10604 # most powerpc-linux boxes support dynamic linking these days and 10605 # people can always --disable-shared, the test was removed, and we 10606 # assume the GNU/Linux dynamic linker is in use. 10607 dynamic_linker='GNU/Linux ld.so' 10608 ;; 10609 10610netbsdelf*-gnu) 10611 version_type=linux 10612 need_lib_prefix=no 10613 need_version=no 10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10615 soname_spec='${libname}${release}${shared_ext}$major' 10616 shlibpath_var=LD_LIBRARY_PATH 10617 shlibpath_overrides_runpath=no 10618 hardcode_into_libs=yes 10619 dynamic_linker='NetBSD ld.elf_so' 10620 ;; 10621 10622netbsd*) 10623 version_type=sunos 10624 need_lib_prefix=no 10625 need_version=no 10626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10629 dynamic_linker='NetBSD (a.out) ld.so' 10630 else 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10632 soname_spec='${libname}${release}${shared_ext}$major' 10633 dynamic_linker='NetBSD ld.elf_so' 10634 fi 10635 shlibpath_var=LD_LIBRARY_PATH 10636 shlibpath_overrides_runpath=yes 10637 hardcode_into_libs=yes 10638 ;; 10639 10640newsos6) 10641 version_type=linux # correct to gnu/linux during the next big refactor 10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes 10645 ;; 10646 10647*nto* | *qnx*) 10648 version_type=qnx 10649 need_lib_prefix=no 10650 need_version=no 10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10652 soname_spec='${libname}${release}${shared_ext}$major' 10653 shlibpath_var=LD_LIBRARY_PATH 10654 shlibpath_overrides_runpath=no 10655 hardcode_into_libs=yes 10656 dynamic_linker='ldqnx.so' 10657 ;; 10658 10659openbsd*) 10660 version_type=sunos 10661 sys_lib_dlsearch_path_spec="/usr/lib" 10662 need_lib_prefix=no 10663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10664 case $host_os in 10665 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10666 *) need_version=no ;; 10667 esac 10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10670 shlibpath_var=LD_LIBRARY_PATH 10671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10672 case $host_os in 10673 openbsd2.[89] | openbsd2.[89].*) 10674 shlibpath_overrides_runpath=no 10675 ;; 10676 *) 10677 shlibpath_overrides_runpath=yes 10678 ;; 10679 esac 10680 else 10681 shlibpath_overrides_runpath=yes 10682 fi 10683 ;; 10684 10685os2*) 10686 libname_spec='$name' 10687 shrext_cmds=".dll" 10688 need_lib_prefix=no 10689 library_names_spec='$libname${shared_ext} $libname.a' 10690 dynamic_linker='OS/2 ld.exe' 10691 shlibpath_var=LIBPATH 10692 ;; 10693 10694osf3* | osf4* | osf5*) 10695 version_type=osf 10696 need_lib_prefix=no 10697 need_version=no 10698 soname_spec='${libname}${release}${shared_ext}$major' 10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10703 ;; 10704 10705rdos*) 10706 dynamic_linker=no 10707 ;; 10708 10709solaris*) 10710 version_type=linux # correct to gnu/linux during the next big refactor 10711 need_lib_prefix=no 10712 need_version=no 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10714 soname_spec='${libname}${release}${shared_ext}$major' 10715 shlibpath_var=LD_LIBRARY_PATH 10716 shlibpath_overrides_runpath=yes 10717 hardcode_into_libs=yes 10718 # ldd complains unless libraries are executable 10719 postinstall_cmds='chmod +x $lib' 10720 ;; 10721 10722sunos4*) 10723 version_type=sunos 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10726 shlibpath_var=LD_LIBRARY_PATH 10727 shlibpath_overrides_runpath=yes 10728 if test "$with_gnu_ld" = yes; then 10729 need_lib_prefix=no 10730 fi 10731 need_version=yes 10732 ;; 10733 10734sysv4 | sysv4.3*) 10735 version_type=linux # correct to gnu/linux during the next big refactor 10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10737 soname_spec='${libname}${release}${shared_ext}$major' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 case $host_vendor in 10740 sni) 10741 shlibpath_overrides_runpath=no 10742 need_lib_prefix=no 10743 runpath_var=LD_RUN_PATH 10744 ;; 10745 siemens) 10746 need_lib_prefix=no 10747 ;; 10748 motorola) 10749 need_lib_prefix=no 10750 need_version=no 10751 shlibpath_overrides_runpath=no 10752 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10753 ;; 10754 esac 10755 ;; 10756 10757sysv4*MP*) 10758 if test -d /usr/nec ;then 10759 version_type=linux # correct to gnu/linux during the next big refactor 10760 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10761 soname_spec='$libname${shared_ext}.$major' 10762 shlibpath_var=LD_LIBRARY_PATH 10763 fi 10764 ;; 10765 10766sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10767 version_type=freebsd-elf 10768 need_lib_prefix=no 10769 need_version=no 10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10771 soname_spec='${libname}${release}${shared_ext}$major' 10772 shlibpath_var=LD_LIBRARY_PATH 10773 shlibpath_overrides_runpath=yes 10774 hardcode_into_libs=yes 10775 if test "$with_gnu_ld" = yes; then 10776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10777 else 10778 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10779 case $host_os in 10780 sco3.2v5*) 10781 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10782 ;; 10783 esac 10784 fi 10785 sys_lib_dlsearch_path_spec='/usr/lib' 10786 ;; 10787 10788tpf*) 10789 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10790 version_type=linux # correct to gnu/linux during the next big refactor 10791 need_lib_prefix=no 10792 need_version=no 10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 shlibpath_overrides_runpath=no 10796 hardcode_into_libs=yes 10797 ;; 10798 10799uts4*) 10800 version_type=linux # correct to gnu/linux during the next big refactor 10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10802 soname_spec='${libname}${release}${shared_ext}$major' 10803 shlibpath_var=LD_LIBRARY_PATH 10804 ;; 10805 10806*) 10807 dynamic_linker=no 10808 ;; 10809esac 10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10811$as_echo "$dynamic_linker" >&6; } 10812test "$dynamic_linker" = no && can_build_shared=no 10813 10814variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10815if test "$GCC" = yes; then 10816 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10817fi 10818 10819if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10820 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10821fi 10822if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10823 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10824fi 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10918$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10919hardcode_action= 10920if test -n "$hardcode_libdir_flag_spec" || 10921 test -n "$runpath_var" || 10922 test "X$hardcode_automatic" = "Xyes" ; then 10923 10924 # We can hardcode non-existent directories. 10925 if test "$hardcode_direct" != no && 10926 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10927 # have to relink, otherwise we might link with an installed library 10928 # when we should be linking with a yet-to-be-installed one 10929 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10930 test "$hardcode_minus_L" != no; then 10931 # Linking always hardcodes the temporary library directory. 10932 hardcode_action=relink 10933 else 10934 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10935 hardcode_action=immediate 10936 fi 10937else 10938 # We cannot hardcode anything, or else we can only hardcode existing 10939 # directories. 10940 hardcode_action=unsupported 10941fi 10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10943$as_echo "$hardcode_action" >&6; } 10944 10945if test "$hardcode_action" = relink || 10946 test "$inherit_rpath" = yes; then 10947 # Fast installation is not supported 10948 enable_fast_install=no 10949elif test "$shlibpath_overrides_runpath" = yes || 10950 test "$enable_shared" = no; then 10951 # Fast installation is not necessary 10952 enable_fast_install=needless 10953fi 10954 10955 10956 10957 10958 10959 10960 if test "x$enable_dlopen" != xyes; then 10961 enable_dlopen=unknown 10962 enable_dlopen_self=unknown 10963 enable_dlopen_self_static=unknown 10964else 10965 lt_cv_dlopen=no 10966 lt_cv_dlopen_libs= 10967 10968 case $host_os in 10969 beos*) 10970 lt_cv_dlopen="load_add_on" 10971 lt_cv_dlopen_libs= 10972 lt_cv_dlopen_self=yes 10973 ;; 10974 10975 mingw* | pw32* | cegcc*) 10976 lt_cv_dlopen="LoadLibrary" 10977 lt_cv_dlopen_libs= 10978 ;; 10979 10980 cygwin*) 10981 lt_cv_dlopen="dlopen" 10982 lt_cv_dlopen_libs= 10983 ;; 10984 10985 darwin*) 10986 # if libdl is installed we need to link against it 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10988$as_echo_n "checking for dlopen in -ldl... " >&6; } 10989if ${ac_cv_lib_dl_dlopen+:} false; then : 10990 $as_echo_n "(cached) " >&6 10991else 10992 ac_check_lib_save_LIBS=$LIBS 10993LIBS="-ldl $LIBS" 10994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10995/* end confdefs.h. */ 10996 10997/* Override any GCC internal prototype to avoid an error. 10998 Use char because int might match the return type of a GCC 10999 builtin and then its argument prototype would still apply. */ 11000#ifdef __cplusplus 11001extern "C" 11002#endif 11003char dlopen (); 11004int 11005main () 11006{ 11007return dlopen (); 11008 ; 11009 return 0; 11010} 11011_ACEOF 11012if ac_fn_c_try_link "$LINENO"; then : 11013 ac_cv_lib_dl_dlopen=yes 11014else 11015 ac_cv_lib_dl_dlopen=no 11016fi 11017rm -f core conftest.err conftest.$ac_objext \ 11018 conftest$ac_exeext conftest.$ac_ext 11019LIBS=$ac_check_lib_save_LIBS 11020fi 11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11022$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11023if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11025else 11026 11027 lt_cv_dlopen="dyld" 11028 lt_cv_dlopen_libs= 11029 lt_cv_dlopen_self=yes 11030 11031fi 11032 11033 ;; 11034 11035 *) 11036 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11037if test "x$ac_cv_func_shl_load" = xyes; then : 11038 lt_cv_dlopen="shl_load" 11039else 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11041$as_echo_n "checking for shl_load in -ldld... " >&6; } 11042if ${ac_cv_lib_dld_shl_load+:} false; then : 11043 $as_echo_n "(cached) " >&6 11044else 11045 ac_check_lib_save_LIBS=$LIBS 11046LIBS="-ldld $LIBS" 11047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11048/* end confdefs.h. */ 11049 11050/* Override any GCC internal prototype to avoid an error. 11051 Use char because int might match the return type of a GCC 11052 builtin and then its argument prototype would still apply. */ 11053#ifdef __cplusplus 11054extern "C" 11055#endif 11056char shl_load (); 11057int 11058main () 11059{ 11060return shl_load (); 11061 ; 11062 return 0; 11063} 11064_ACEOF 11065if ac_fn_c_try_link "$LINENO"; then : 11066 ac_cv_lib_dld_shl_load=yes 11067else 11068 ac_cv_lib_dld_shl_load=no 11069fi 11070rm -f core conftest.err conftest.$ac_objext \ 11071 conftest$ac_exeext conftest.$ac_ext 11072LIBS=$ac_check_lib_save_LIBS 11073fi 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11075$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11076if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11078else 11079 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11080if test "x$ac_cv_func_dlopen" = xyes; then : 11081 lt_cv_dlopen="dlopen" 11082else 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11084$as_echo_n "checking for dlopen in -ldl... " >&6; } 11085if ${ac_cv_lib_dl_dlopen+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087else 11088 ac_check_lib_save_LIBS=$LIBS 11089LIBS="-ldl $LIBS" 11090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11091/* end confdefs.h. */ 11092 11093/* Override any GCC internal prototype to avoid an error. 11094 Use char because int might match the return type of a GCC 11095 builtin and then its argument prototype would still apply. */ 11096#ifdef __cplusplus 11097extern "C" 11098#endif 11099char dlopen (); 11100int 11101main () 11102{ 11103return dlopen (); 11104 ; 11105 return 0; 11106} 11107_ACEOF 11108if ac_fn_c_try_link "$LINENO"; then : 11109 ac_cv_lib_dl_dlopen=yes 11110else 11111 ac_cv_lib_dl_dlopen=no 11112fi 11113rm -f core conftest.err conftest.$ac_objext \ 11114 conftest$ac_exeext conftest.$ac_ext 11115LIBS=$ac_check_lib_save_LIBS 11116fi 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11118$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11119if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11121else 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11123$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11124if ${ac_cv_lib_svld_dlopen+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 ac_check_lib_save_LIBS=$LIBS 11128LIBS="-lsvld $LIBS" 11129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130/* end confdefs.h. */ 11131 11132/* Override any GCC internal prototype to avoid an error. 11133 Use char because int might match the return type of a GCC 11134 builtin and then its argument prototype would still apply. */ 11135#ifdef __cplusplus 11136extern "C" 11137#endif 11138char dlopen (); 11139int 11140main () 11141{ 11142return dlopen (); 11143 ; 11144 return 0; 11145} 11146_ACEOF 11147if ac_fn_c_try_link "$LINENO"; then : 11148 ac_cv_lib_svld_dlopen=yes 11149else 11150 ac_cv_lib_svld_dlopen=no 11151fi 11152rm -f core conftest.err conftest.$ac_objext \ 11153 conftest$ac_exeext conftest.$ac_ext 11154LIBS=$ac_check_lib_save_LIBS 11155fi 11156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11157$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11158if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11160else 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11162$as_echo_n "checking for dld_link in -ldld... " >&6; } 11163if ${ac_cv_lib_dld_dld_link+:} false; then : 11164 $as_echo_n "(cached) " >&6 11165else 11166 ac_check_lib_save_LIBS=$LIBS 11167LIBS="-ldld $LIBS" 11168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11169/* end confdefs.h. */ 11170 11171/* Override any GCC internal prototype to avoid an error. 11172 Use char because int might match the return type of a GCC 11173 builtin and then its argument prototype would still apply. */ 11174#ifdef __cplusplus 11175extern "C" 11176#endif 11177char dld_link (); 11178int 11179main () 11180{ 11181return dld_link (); 11182 ; 11183 return 0; 11184} 11185_ACEOF 11186if ac_fn_c_try_link "$LINENO"; then : 11187 ac_cv_lib_dld_dld_link=yes 11188else 11189 ac_cv_lib_dld_dld_link=no 11190fi 11191rm -f core conftest.err conftest.$ac_objext \ 11192 conftest$ac_exeext conftest.$ac_ext 11193LIBS=$ac_check_lib_save_LIBS 11194fi 11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11196$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11197if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11199fi 11200 11201 11202fi 11203 11204 11205fi 11206 11207 11208fi 11209 11210 11211fi 11212 11213 11214fi 11215 11216 ;; 11217 esac 11218 11219 if test "x$lt_cv_dlopen" != xno; then 11220 enable_dlopen=yes 11221 else 11222 enable_dlopen=no 11223 fi 11224 11225 case $lt_cv_dlopen in 11226 dlopen) 11227 save_CPPFLAGS="$CPPFLAGS" 11228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11229 11230 save_LDFLAGS="$LDFLAGS" 11231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11232 11233 save_LIBS="$LIBS" 11234 LIBS="$lt_cv_dlopen_libs $LIBS" 11235 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11237$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11238if ${lt_cv_dlopen_self+:} false; then : 11239 $as_echo_n "(cached) " >&6 11240else 11241 if test "$cross_compiling" = yes; then : 11242 lt_cv_dlopen_self=cross 11243else 11244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11245 lt_status=$lt_dlunknown 11246 cat > conftest.$ac_ext <<_LT_EOF 11247#line $LINENO "configure" 11248#include "confdefs.h" 11249 11250#if HAVE_DLFCN_H 11251#include <dlfcn.h> 11252#endif 11253 11254#include <stdio.h> 11255 11256#ifdef RTLD_GLOBAL 11257# define LT_DLGLOBAL RTLD_GLOBAL 11258#else 11259# ifdef DL_GLOBAL 11260# define LT_DLGLOBAL DL_GLOBAL 11261# else 11262# define LT_DLGLOBAL 0 11263# endif 11264#endif 11265 11266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11267 find out it does not work in some platform. */ 11268#ifndef LT_DLLAZY_OR_NOW 11269# ifdef RTLD_LAZY 11270# define LT_DLLAZY_OR_NOW RTLD_LAZY 11271# else 11272# ifdef DL_LAZY 11273# define LT_DLLAZY_OR_NOW DL_LAZY 11274# else 11275# ifdef RTLD_NOW 11276# define LT_DLLAZY_OR_NOW RTLD_NOW 11277# else 11278# ifdef DL_NOW 11279# define LT_DLLAZY_OR_NOW DL_NOW 11280# else 11281# define LT_DLLAZY_OR_NOW 0 11282# endif 11283# endif 11284# endif 11285# endif 11286#endif 11287 11288/* When -fvisbility=hidden is used, assume the code has been annotated 11289 correspondingly for the symbols needed. */ 11290#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11291int fnord () __attribute__((visibility("default"))); 11292#endif 11293 11294int fnord () { return 42; } 11295int main () 11296{ 11297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11298 int status = $lt_dlunknown; 11299 11300 if (self) 11301 { 11302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11303 else 11304 { 11305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11306 else puts (dlerror ()); 11307 } 11308 /* dlclose (self); */ 11309 } 11310 else 11311 puts (dlerror ()); 11312 11313 return status; 11314} 11315_LT_EOF 11316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11317 (eval $ac_link) 2>&5 11318 ac_status=$? 11319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11320 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11321 (./conftest; exit; ) >&5 2>/dev/null 11322 lt_status=$? 11323 case x$lt_status in 11324 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11325 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11326 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11327 esac 11328 else : 11329 # compilation failed 11330 lt_cv_dlopen_self=no 11331 fi 11332fi 11333rm -fr conftest* 11334 11335 11336fi 11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11338$as_echo "$lt_cv_dlopen_self" >&6; } 11339 11340 if test "x$lt_cv_dlopen_self" = xyes; then 11341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11343$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11344if ${lt_cv_dlopen_self_static+:} false; then : 11345 $as_echo_n "(cached) " >&6 11346else 11347 if test "$cross_compiling" = yes; then : 11348 lt_cv_dlopen_self_static=cross 11349else 11350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11351 lt_status=$lt_dlunknown 11352 cat > conftest.$ac_ext <<_LT_EOF 11353#line $LINENO "configure" 11354#include "confdefs.h" 11355 11356#if HAVE_DLFCN_H 11357#include <dlfcn.h> 11358#endif 11359 11360#include <stdio.h> 11361 11362#ifdef RTLD_GLOBAL 11363# define LT_DLGLOBAL RTLD_GLOBAL 11364#else 11365# ifdef DL_GLOBAL 11366# define LT_DLGLOBAL DL_GLOBAL 11367# else 11368# define LT_DLGLOBAL 0 11369# endif 11370#endif 11371 11372/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11373 find out it does not work in some platform. */ 11374#ifndef LT_DLLAZY_OR_NOW 11375# ifdef RTLD_LAZY 11376# define LT_DLLAZY_OR_NOW RTLD_LAZY 11377# else 11378# ifdef DL_LAZY 11379# define LT_DLLAZY_OR_NOW DL_LAZY 11380# else 11381# ifdef RTLD_NOW 11382# define LT_DLLAZY_OR_NOW RTLD_NOW 11383# else 11384# ifdef DL_NOW 11385# define LT_DLLAZY_OR_NOW DL_NOW 11386# else 11387# define LT_DLLAZY_OR_NOW 0 11388# endif 11389# endif 11390# endif 11391# endif 11392#endif 11393 11394/* When -fvisbility=hidden is used, assume the code has been annotated 11395 correspondingly for the symbols needed. */ 11396#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11397int fnord () __attribute__((visibility("default"))); 11398#endif 11399 11400int fnord () { return 42; } 11401int main () 11402{ 11403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11404 int status = $lt_dlunknown; 11405 11406 if (self) 11407 { 11408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11409 else 11410 { 11411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11412 else puts (dlerror ()); 11413 } 11414 /* dlclose (self); */ 11415 } 11416 else 11417 puts (dlerror ()); 11418 11419 return status; 11420} 11421_LT_EOF 11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11423 (eval $ac_link) 2>&5 11424 ac_status=$? 11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11426 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11427 (./conftest; exit; ) >&5 2>/dev/null 11428 lt_status=$? 11429 case x$lt_status in 11430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11432 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11433 esac 11434 else : 11435 # compilation failed 11436 lt_cv_dlopen_self_static=no 11437 fi 11438fi 11439rm -fr conftest* 11440 11441 11442fi 11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11444$as_echo "$lt_cv_dlopen_self_static" >&6; } 11445 fi 11446 11447 CPPFLAGS="$save_CPPFLAGS" 11448 LDFLAGS="$save_LDFLAGS" 11449 LIBS="$save_LIBS" 11450 ;; 11451 esac 11452 11453 case $lt_cv_dlopen_self in 11454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11455 *) enable_dlopen_self=unknown ;; 11456 esac 11457 11458 case $lt_cv_dlopen_self_static in 11459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11460 *) enable_dlopen_self_static=unknown ;; 11461 esac 11462fi 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480striplib= 11481old_striplib= 11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11483$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11484if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11485 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11486 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11488$as_echo "yes" >&6; } 11489else 11490# FIXME - insert some real tests, host_os isn't really good enough 11491 case $host_os in 11492 darwin*) 11493 if test -n "$STRIP" ; then 11494 striplib="$STRIP -x" 11495 old_striplib="$STRIP -S" 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11497$as_echo "yes" >&6; } 11498 else 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11500$as_echo "no" >&6; } 11501 fi 11502 ;; 11503 *) 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11505$as_echo "no" >&6; } 11506 ;; 11507 esac 11508fi 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 # Report which library types will actually be built 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11523$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11525$as_echo "$can_build_shared" >&6; } 11526 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11528$as_echo_n "checking whether to build shared libraries... " >&6; } 11529 test "$can_build_shared" = "no" && enable_shared=no 11530 11531 # On AIX, shared libraries and static libraries use the same namespace, and 11532 # are all built from PIC. 11533 case $host_os in 11534 aix3*) 11535 test "$enable_shared" = yes && enable_static=no 11536 if test -n "$RANLIB"; then 11537 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11538 postinstall_cmds='$RANLIB $lib' 11539 fi 11540 ;; 11541 11542 aix[4-9]*) 11543 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11544 test "$enable_shared" = yes && enable_static=no 11545 fi 11546 ;; 11547 esac 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11549$as_echo "$enable_shared" >&6; } 11550 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11552$as_echo_n "checking whether to build static libraries... " >&6; } 11553 # Make sure either enable_shared or enable_static is yes. 11554 test "$enable_shared" = yes || enable_static=yes 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11556$as_echo "$enable_static" >&6; } 11557 11558 11559 11560 11561fi 11562ac_ext=c 11563ac_cpp='$CPP $CPPFLAGS' 11564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11566ac_compiler_gnu=$ac_cv_c_compiler_gnu 11567 11568CC="$lt_save_CC" 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 ac_config_commands="$ac_config_commands libtool" 11585 11586 11587 11588 11589# Only expand once: 11590 11591 11592for ac_prog in flex lex 11593do 11594 # Extract the first word of "$ac_prog", so it can be a program name with args. 11595set dummy $ac_prog; ac_word=$2 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11597$as_echo_n "checking for $ac_word... " >&6; } 11598if ${ac_cv_prog_LEX+:} false; then : 11599 $as_echo_n "(cached) " >&6 11600else 11601 if test -n "$LEX"; then 11602 ac_cv_prog_LEX="$LEX" # Let the user override the test. 11603else 11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11605for as_dir in $PATH 11606do 11607 IFS=$as_save_IFS 11608 test -z "$as_dir" && as_dir=. 11609 for ac_exec_ext in '' $ac_executable_extensions; do 11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11611 ac_cv_prog_LEX="$ac_prog" 11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11613 break 2 11614 fi 11615done 11616 done 11617IFS=$as_save_IFS 11618 11619fi 11620fi 11621LEX=$ac_cv_prog_LEX 11622if test -n "$LEX"; then 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 11624$as_echo "$LEX" >&6; } 11625else 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11627$as_echo "no" >&6; } 11628fi 11629 11630 11631 test -n "$LEX" && break 11632done 11633test -n "$LEX" || LEX=":" 11634 11635if test "x$LEX" != "x:"; then 11636 cat >conftest.l <<_ACEOF 11637%% 11638a { ECHO; } 11639b { REJECT; } 11640c { yymore (); } 11641d { yyless (1); } 11642e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 11643 yyless ((input () != 0)); } 11644f { unput (yytext[0]); } 11645. { BEGIN INITIAL; } 11646%% 11647#ifdef YYTEXT_POINTER 11648extern char *yytext; 11649#endif 11650int 11651main (void) 11652{ 11653 return ! yylex () + ! yywrap (); 11654} 11655_ACEOF 11656{ { ac_try="$LEX conftest.l" 11657case "(($ac_try" in 11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11659 *) ac_try_echo=$ac_try;; 11660esac 11661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11662$as_echo "$ac_try_echo"; } >&5 11663 (eval "$LEX conftest.l") 2>&5 11664 ac_status=$? 11665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11666 test $ac_status = 0; } 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 11668$as_echo_n "checking lex output file root... " >&6; } 11669if ${ac_cv_prog_lex_root+:} false; then : 11670 $as_echo_n "(cached) " >&6 11671else 11672 11673if test -f lex.yy.c; then 11674 ac_cv_prog_lex_root=lex.yy 11675elif test -f lexyy.c; then 11676 ac_cv_prog_lex_root=lexyy 11677else 11678 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 11679fi 11680fi 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 11682$as_echo "$ac_cv_prog_lex_root" >&6; } 11683LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 11684 11685if test -z "${LEXLIB+set}"; then 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 11687$as_echo_n "checking lex library... " >&6; } 11688if ${ac_cv_lib_lex+:} false; then : 11689 $as_echo_n "(cached) " >&6 11690else 11691 11692 ac_save_LIBS=$LIBS 11693 ac_cv_lib_lex='none needed' 11694 for ac_lib in '' -lfl -ll; do 11695 LIBS="$ac_lib $ac_save_LIBS" 11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11697/* end confdefs.h. */ 11698`cat $LEX_OUTPUT_ROOT.c` 11699_ACEOF 11700if ac_fn_c_try_link "$LINENO"; then : 11701 ac_cv_lib_lex=$ac_lib 11702fi 11703rm -f core conftest.err conftest.$ac_objext \ 11704 conftest$ac_exeext conftest.$ac_ext 11705 test "$ac_cv_lib_lex" != 'none needed' && break 11706 done 11707 LIBS=$ac_save_LIBS 11708 11709fi 11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 11711$as_echo "$ac_cv_lib_lex" >&6; } 11712 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 11713fi 11714 11715 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 11717$as_echo_n "checking whether yytext is a pointer... " >&6; } 11718if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 11719 $as_echo_n "(cached) " >&6 11720else 11721 # POSIX says lex can declare yytext either as a pointer or an array; the 11722# default is implementation-dependent. Figure out which it is, since 11723# not all implementations provide the %pointer and %array declarations. 11724ac_cv_prog_lex_yytext_pointer=no 11725ac_save_LIBS=$LIBS 11726LIBS="$LEXLIB $ac_save_LIBS" 11727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728/* end confdefs.h. */ 11729 11730 #define YYTEXT_POINTER 1 11731`cat $LEX_OUTPUT_ROOT.c` 11732_ACEOF 11733if ac_fn_c_try_link "$LINENO"; then : 11734 ac_cv_prog_lex_yytext_pointer=yes 11735fi 11736rm -f core conftest.err conftest.$ac_objext \ 11737 conftest$ac_exeext conftest.$ac_ext 11738LIBS=$ac_save_LIBS 11739 11740fi 11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 11742$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 11743if test $ac_cv_prog_lex_yytext_pointer = yes; then 11744 11745$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 11746 11747fi 11748rm -f conftest.l $LEX_OUTPUT_ROOT.c 11749 11750fi 11751if test "$LEX" = :; then 11752 LEX=${am_missing_run}flex 11753fi 11754for ac_prog in 'bison -y' byacc 11755do 11756 # Extract the first word of "$ac_prog", so it can be a program name with args. 11757set dummy $ac_prog; ac_word=$2 11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11759$as_echo_n "checking for $ac_word... " >&6; } 11760if ${ac_cv_prog_YACC+:} false; then : 11761 $as_echo_n "(cached) " >&6 11762else 11763 if test -n "$YACC"; then 11764 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11765else 11766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11767for as_dir in $PATH 11768do 11769 IFS=$as_save_IFS 11770 test -z "$as_dir" && as_dir=. 11771 for ac_exec_ext in '' $ac_executable_extensions; do 11772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11773 ac_cv_prog_YACC="$ac_prog" 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11775 break 2 11776 fi 11777done 11778 done 11779IFS=$as_save_IFS 11780 11781fi 11782fi 11783YACC=$ac_cv_prog_YACC 11784if test -n "$YACC"; then 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11786$as_echo "$YACC" >&6; } 11787else 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11789$as_echo "no" >&6; } 11790fi 11791 11792 11793 test -n "$YACC" && break 11794done 11795test -n "$YACC" || YACC="yacc" 11796 11797 11798 if test "X$prefix" = "XNONE"; then 11799 acl_final_prefix="$ac_default_prefix" 11800 else 11801 acl_final_prefix="$prefix" 11802 fi 11803 if test "X$exec_prefix" = "XNONE"; then 11804 acl_final_exec_prefix='${prefix}' 11805 else 11806 acl_final_exec_prefix="$exec_prefix" 11807 fi 11808 acl_save_prefix="$prefix" 11809 prefix="$acl_final_prefix" 11810 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11811 prefix="$acl_save_prefix" 11812 11813 11814 11815# Check whether --with-gnu-ld was given. 11816if test "${with_gnu_ld+set}" = set; then : 11817 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11818else 11819 with_gnu_ld=no 11820fi 11821 11822# Prepare PATH_SEPARATOR. 11823# The user is always right. 11824if test "${PATH_SEPARATOR+set}" != set; then 11825 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 11826 # contains only /bin. Note that ksh looks also at the FPATH variable, 11827 # so we have to set that as well for the test. 11828 PATH_SEPARATOR=: 11829 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 11830 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 11831 || PATH_SEPARATOR=';' 11832 } 11833fi 11834 11835ac_prog=ld 11836if test "$GCC" = yes; then 11837 # Check if gcc -print-prog-name=ld gives a path. 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11839$as_echo_n "checking for ld used by $CC... " >&6; } 11840 case $host in 11841 *-*-mingw*) 11842 # gcc leaves a trailing carriage return which upsets mingw 11843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11844 *) 11845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11846 esac 11847 case $ac_prog in 11848 # Accept absolute paths. 11849 [\\/]* | ?:[\\/]*) 11850 re_direlt='/[^/][^/]*/\.\./' 11851 # Canonicalize the pathname of ld 11852 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 11853 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 11854 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11855 done 11856 test -z "$LD" && LD="$ac_prog" 11857 ;; 11858 "") 11859 # If it fails, then pretend we aren't using GCC. 11860 ac_prog=ld 11861 ;; 11862 *) 11863 # If it is relative, then search for the first ld in PATH. 11864 with_gnu_ld=unknown 11865 ;; 11866 esac 11867elif test "$with_gnu_ld" = yes; then 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11869$as_echo_n "checking for GNU ld... " >&6; } 11870else 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11872$as_echo_n "checking for non-GNU ld... " >&6; } 11873fi 11874if ${acl_cv_path_LD+:} false; then : 11875 $as_echo_n "(cached) " >&6 11876else 11877 if test -z "$LD"; then 11878 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11879 for ac_dir in $PATH; do 11880 IFS="$acl_save_ifs" 11881 test -z "$ac_dir" && ac_dir=. 11882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11883 acl_cv_path_LD="$ac_dir/$ac_prog" 11884 # Check to see if the program is GNU ld. I'd rather use --version, 11885 # but apparently some variants of GNU ld only accept -v. 11886 # Break only if it was the GNU/non-GNU ld that we prefer. 11887 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 11888 *GNU* | *'with BFD'*) 11889 test "$with_gnu_ld" != no && break 11890 ;; 11891 *) 11892 test "$with_gnu_ld" != yes && break 11893 ;; 11894 esac 11895 fi 11896 done 11897 IFS="$acl_save_ifs" 11898else 11899 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11900fi 11901fi 11902 11903LD="$acl_cv_path_LD" 11904if test -n "$LD"; then 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11906$as_echo "$LD" >&6; } 11907else 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11909$as_echo "no" >&6; } 11910fi 11911test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11913$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11914if ${acl_cv_prog_gnu_ld+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916else 11917 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11918case `$LD -v 2>&1 </dev/null` in 11919*GNU* | *'with BFD'*) 11920 acl_cv_prog_gnu_ld=yes 11921 ;; 11922*) 11923 acl_cv_prog_gnu_ld=no 11924 ;; 11925esac 11926fi 11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 11928$as_echo "$acl_cv_prog_gnu_ld" >&6; } 11929with_gnu_ld=$acl_cv_prog_gnu_ld 11930 11931 11932 11933 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 11935$as_echo_n "checking for shared library run path origin... " >&6; } 11936if ${acl_cv_rpath+:} false; then : 11937 $as_echo_n "(cached) " >&6 11938else 11939 11940 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11941 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11942 . ./conftest.sh 11943 rm -f ./conftest.sh 11944 acl_cv_rpath=done 11945 11946fi 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 11948$as_echo "$acl_cv_rpath" >&6; } 11949 wl="$acl_cv_wl" 11950 acl_libext="$acl_cv_libext" 11951 acl_shlibext="$acl_cv_shlibext" 11952 acl_libname_spec="$acl_cv_libname_spec" 11953 acl_library_names_spec="$acl_cv_library_names_spec" 11954 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11955 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11956 acl_hardcode_direct="$acl_cv_hardcode_direct" 11957 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 11958 # Check whether --enable-rpath was given. 11959if test "${enable_rpath+set}" = set; then : 11960 enableval=$enable_rpath; : 11961else 11962 enable_rpath=yes 11963fi 11964 11965 11966 11967 11968 acl_libdirstem=lib 11969 acl_libdirstem2= 11970 case "$host_os" in 11971 solaris*) 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 11973$as_echo_n "checking for 64-bit host... " >&6; } 11974if ${gl_cv_solaris_64bit+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11978/* end confdefs.h. */ 11979 11980#ifdef _LP64 11981sixtyfour bits 11982#endif 11983 11984_ACEOF 11985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11986 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 11987 gl_cv_solaris_64bit=yes 11988else 11989 gl_cv_solaris_64bit=no 11990fi 11991rm -f conftest* 11992 11993 11994fi 11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 11996$as_echo "$gl_cv_solaris_64bit" >&6; } 11997 if test $gl_cv_solaris_64bit = yes; then 11998 acl_libdirstem=lib/64 11999 case "$host_cpu" in 12000 sparc*) acl_libdirstem2=lib/sparcv9 ;; 12001 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 12002 esac 12003 fi 12004 ;; 12005 *) 12006 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 12007 if test -n "$searchpath"; then 12008 acl_save_IFS="${IFS= }"; IFS=":" 12009 for searchdir in $searchpath; do 12010 if test -d "$searchdir"; then 12011 case "$searchdir" in 12012 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 12013 */../ | */.. ) 12014 # Better ignore directories of this form. They are misleading. 12015 ;; 12016 *) searchdir=`cd "$searchdir" && pwd` 12017 case "$searchdir" in 12018 */lib64 ) acl_libdirstem=lib64 ;; 12019 esac ;; 12020 esac 12021 fi 12022 done 12023 IFS="$acl_save_IFS" 12024 fi 12025 ;; 12026 esac 12027 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 use_additional=yes 12041 12042 acl_save_prefix="$prefix" 12043 prefix="$acl_final_prefix" 12044 acl_save_exec_prefix="$exec_prefix" 12045 exec_prefix="$acl_final_exec_prefix" 12046 12047 eval additional_includedir=\"$includedir\" 12048 eval additional_libdir=\"$libdir\" 12049 12050 exec_prefix="$acl_save_exec_prefix" 12051 prefix="$acl_save_prefix" 12052 12053 12054# Check whether --with-libiconv-prefix was given. 12055if test "${with_libiconv_prefix+set}" = set; then : 12056 withval=$with_libiconv_prefix; 12057 if test "X$withval" = "Xno"; then 12058 use_additional=no 12059 else 12060 if test "X$withval" = "X"; then 12061 12062 acl_save_prefix="$prefix" 12063 prefix="$acl_final_prefix" 12064 acl_save_exec_prefix="$exec_prefix" 12065 exec_prefix="$acl_final_exec_prefix" 12066 12067 eval additional_includedir=\"$includedir\" 12068 eval additional_libdir=\"$libdir\" 12069 12070 exec_prefix="$acl_save_exec_prefix" 12071 prefix="$acl_save_prefix" 12072 12073 else 12074 additional_includedir="$withval/include" 12075 additional_libdir="$withval/$acl_libdirstem" 12076 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 12077 && ! test -d "$withval/$acl_libdirstem"; then 12078 additional_libdir="$withval/$acl_libdirstem2" 12079 fi 12080 fi 12081 fi 12082 12083fi 12084 12085 LIBICONV= 12086 LTLIBICONV= 12087 INCICONV= 12088 LIBICONV_PREFIX= 12089 HAVE_LIBICONV= 12090 rpathdirs= 12091 ltrpathdirs= 12092 names_already_handled= 12093 names_next_round='iconv ' 12094 while test -n "$names_next_round"; do 12095 names_this_round="$names_next_round" 12096 names_next_round= 12097 for name in $names_this_round; do 12098 already_handled= 12099 for n in $names_already_handled; do 12100 if test "$n" = "$name"; then 12101 already_handled=yes 12102 break 12103 fi 12104 done 12105 if test -z "$already_handled"; then 12106 names_already_handled="$names_already_handled $name" 12107 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 12108 eval value=\"\$HAVE_LIB$uppername\" 12109 if test -n "$value"; then 12110 if test "$value" = yes; then 12111 eval value=\"\$LIB$uppername\" 12112 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 12113 eval value=\"\$LTLIB$uppername\" 12114 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 12115 else 12116 : 12117 fi 12118 else 12119 found_dir= 12120 found_la= 12121 found_so= 12122 found_a= 12123 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 12124 if test -n "$acl_shlibext"; then 12125 shrext=".$acl_shlibext" # typically: shrext=.so 12126 else 12127 shrext= 12128 fi 12129 if test $use_additional = yes; then 12130 dir="$additional_libdir" 12131 if test -n "$acl_shlibext"; then 12132 if test -f "$dir/$libname$shrext"; then 12133 found_dir="$dir" 12134 found_so="$dir/$libname$shrext" 12135 else 12136 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12137 ver=`(cd "$dir" && \ 12138 for f in "$libname$shrext".*; do echo "$f"; done \ 12139 | sed -e "s,^$libname$shrext\\\\.,," \ 12140 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12141 | sed 1q ) 2>/dev/null` 12142 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12143 found_dir="$dir" 12144 found_so="$dir/$libname$shrext.$ver" 12145 fi 12146 else 12147 eval library_names=\"$acl_library_names_spec\" 12148 for f in $library_names; do 12149 if test -f "$dir/$f"; then 12150 found_dir="$dir" 12151 found_so="$dir/$f" 12152 break 12153 fi 12154 done 12155 fi 12156 fi 12157 fi 12158 if test "X$found_dir" = "X"; then 12159 if test -f "$dir/$libname.$acl_libext"; then 12160 found_dir="$dir" 12161 found_a="$dir/$libname.$acl_libext" 12162 fi 12163 fi 12164 if test "X$found_dir" != "X"; then 12165 if test -f "$dir/$libname.la"; then 12166 found_la="$dir/$libname.la" 12167 fi 12168 fi 12169 fi 12170 if test "X$found_dir" = "X"; then 12171 for x in $LDFLAGS $LTLIBICONV; do 12172 12173 acl_save_prefix="$prefix" 12174 prefix="$acl_final_prefix" 12175 acl_save_exec_prefix="$exec_prefix" 12176 exec_prefix="$acl_final_exec_prefix" 12177 eval x=\"$x\" 12178 exec_prefix="$acl_save_exec_prefix" 12179 prefix="$acl_save_prefix" 12180 12181 case "$x" in 12182 -L*) 12183 dir=`echo "X$x" | sed -e 's/^X-L//'` 12184 if test -n "$acl_shlibext"; then 12185 if test -f "$dir/$libname$shrext"; then 12186 found_dir="$dir" 12187 found_so="$dir/$libname$shrext" 12188 else 12189 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12190 ver=`(cd "$dir" && \ 12191 for f in "$libname$shrext".*; do echo "$f"; done \ 12192 | sed -e "s,^$libname$shrext\\\\.,," \ 12193 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12194 | sed 1q ) 2>/dev/null` 12195 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12196 found_dir="$dir" 12197 found_so="$dir/$libname$shrext.$ver" 12198 fi 12199 else 12200 eval library_names=\"$acl_library_names_spec\" 12201 for f in $library_names; do 12202 if test -f "$dir/$f"; then 12203 found_dir="$dir" 12204 found_so="$dir/$f" 12205 break 12206 fi 12207 done 12208 fi 12209 fi 12210 fi 12211 if test "X$found_dir" = "X"; then 12212 if test -f "$dir/$libname.$acl_libext"; then 12213 found_dir="$dir" 12214 found_a="$dir/$libname.$acl_libext" 12215 fi 12216 fi 12217 if test "X$found_dir" != "X"; then 12218 if test -f "$dir/$libname.la"; then 12219 found_la="$dir/$libname.la" 12220 fi 12221 fi 12222 ;; 12223 esac 12224 if test "X$found_dir" != "X"; then 12225 break 12226 fi 12227 done 12228 fi 12229 if test "X$found_dir" != "X"; then 12230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 12231 if test "X$found_so" != "X"; then 12232 if test "$enable_rpath" = no \ 12233 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 12234 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 12235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12236 else 12237 haveit= 12238 for x in $ltrpathdirs; do 12239 if test "X$x" = "X$found_dir"; then 12240 haveit=yes 12241 break 12242 fi 12243 done 12244 if test -z "$haveit"; then 12245 ltrpathdirs="$ltrpathdirs $found_dir" 12246 fi 12247 if test "$acl_hardcode_direct" = yes; then 12248 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12249 else 12250 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 12251 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12252 haveit= 12253 for x in $rpathdirs; do 12254 if test "X$x" = "X$found_dir"; then 12255 haveit=yes 12256 break 12257 fi 12258 done 12259 if test -z "$haveit"; then 12260 rpathdirs="$rpathdirs $found_dir" 12261 fi 12262 else 12263 haveit= 12264 for x in $LDFLAGS $LIBICONV; do 12265 12266 acl_save_prefix="$prefix" 12267 prefix="$acl_final_prefix" 12268 acl_save_exec_prefix="$exec_prefix" 12269 exec_prefix="$acl_final_exec_prefix" 12270 eval x=\"$x\" 12271 exec_prefix="$acl_save_exec_prefix" 12272 prefix="$acl_save_prefix" 12273 12274 if test "X$x" = "X-L$found_dir"; then 12275 haveit=yes 12276 break 12277 fi 12278 done 12279 if test -z "$haveit"; then 12280 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 12281 fi 12282 if test "$acl_hardcode_minus_L" != no; then 12283 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12284 else 12285 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12286 fi 12287 fi 12288 fi 12289 fi 12290 else 12291 if test "X$found_a" != "X"; then 12292 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 12293 else 12294 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 12295 fi 12296 fi 12297 additional_includedir= 12298 case "$found_dir" in 12299 */$acl_libdirstem | */$acl_libdirstem/) 12300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 12301 if test "$name" = 'iconv'; then 12302 LIBICONV_PREFIX="$basedir" 12303 fi 12304 additional_includedir="$basedir/include" 12305 ;; 12306 */$acl_libdirstem2 | */$acl_libdirstem2/) 12307 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 12308 if test "$name" = 'iconv'; then 12309 LIBICONV_PREFIX="$basedir" 12310 fi 12311 additional_includedir="$basedir/include" 12312 ;; 12313 esac 12314 if test "X$additional_includedir" != "X"; then 12315 if test "X$additional_includedir" != "X/usr/include"; then 12316 haveit= 12317 if test "X$additional_includedir" = "X/usr/local/include"; then 12318 if test -n "$GCC"; then 12319 case $host_os in 12320 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12321 esac 12322 fi 12323 fi 12324 if test -z "$haveit"; then 12325 for x in $CPPFLAGS $INCICONV; do 12326 12327 acl_save_prefix="$prefix" 12328 prefix="$acl_final_prefix" 12329 acl_save_exec_prefix="$exec_prefix" 12330 exec_prefix="$acl_final_exec_prefix" 12331 eval x=\"$x\" 12332 exec_prefix="$acl_save_exec_prefix" 12333 prefix="$acl_save_prefix" 12334 12335 if test "X$x" = "X-I$additional_includedir"; then 12336 haveit=yes 12337 break 12338 fi 12339 done 12340 if test -z "$haveit"; then 12341 if test -d "$additional_includedir"; then 12342 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 12343 fi 12344 fi 12345 fi 12346 fi 12347 fi 12348 if test -n "$found_la"; then 12349 save_libdir="$libdir" 12350 case "$found_la" in 12351 */* | *\\*) . "$found_la" ;; 12352 *) . "./$found_la" ;; 12353 esac 12354 libdir="$save_libdir" 12355 for dep in $dependency_libs; do 12356 case "$dep" in 12357 -L*) 12358 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12359 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 12360 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 12361 haveit= 12362 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 12363 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 12364 if test -n "$GCC"; then 12365 case $host_os in 12366 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12367 esac 12368 fi 12369 fi 12370 if test -z "$haveit"; then 12371 haveit= 12372 for x in $LDFLAGS $LIBICONV; do 12373 12374 acl_save_prefix="$prefix" 12375 prefix="$acl_final_prefix" 12376 acl_save_exec_prefix="$exec_prefix" 12377 exec_prefix="$acl_final_exec_prefix" 12378 eval x=\"$x\" 12379 exec_prefix="$acl_save_exec_prefix" 12380 prefix="$acl_save_prefix" 12381 12382 if test "X$x" = "X-L$additional_libdir"; then 12383 haveit=yes 12384 break 12385 fi 12386 done 12387 if test -z "$haveit"; then 12388 if test -d "$additional_libdir"; then 12389 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12390 fi 12391 fi 12392 haveit= 12393 for x in $LDFLAGS $LTLIBICONV; do 12394 12395 acl_save_prefix="$prefix" 12396 prefix="$acl_final_prefix" 12397 acl_save_exec_prefix="$exec_prefix" 12398 exec_prefix="$acl_final_exec_prefix" 12399 eval x=\"$x\" 12400 exec_prefix="$acl_save_exec_prefix" 12401 prefix="$acl_save_prefix" 12402 12403 if test "X$x" = "X-L$additional_libdir"; then 12404 haveit=yes 12405 break 12406 fi 12407 done 12408 if test -z "$haveit"; then 12409 if test -d "$additional_libdir"; then 12410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12411 fi 12412 fi 12413 fi 12414 fi 12415 ;; 12416 -R*) 12417 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12418 if test "$enable_rpath" != no; then 12419 haveit= 12420 for x in $rpathdirs; do 12421 if test "X$x" = "X$dir"; then 12422 haveit=yes 12423 break 12424 fi 12425 done 12426 if test -z "$haveit"; then 12427 rpathdirs="$rpathdirs $dir" 12428 fi 12429 haveit= 12430 for x in $ltrpathdirs; do 12431 if test "X$x" = "X$dir"; then 12432 haveit=yes 12433 break 12434 fi 12435 done 12436 if test -z "$haveit"; then 12437 ltrpathdirs="$ltrpathdirs $dir" 12438 fi 12439 fi 12440 ;; 12441 -l*) 12442 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12443 ;; 12444 *.la) 12445 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12446 ;; 12447 *) 12448 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12449 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12450 ;; 12451 esac 12452 done 12453 fi 12454 else 12455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12457 fi 12458 fi 12459 fi 12460 done 12461 done 12462 if test "X$rpathdirs" != "X"; then 12463 if test -n "$acl_hardcode_libdir_separator"; then 12464 alldirs= 12465 for found_dir in $rpathdirs; do 12466 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 12467 done 12468 acl_save_libdir="$libdir" 12469 libdir="$alldirs" 12470 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12471 libdir="$acl_save_libdir" 12472 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12473 else 12474 for found_dir in $rpathdirs; do 12475 acl_save_libdir="$libdir" 12476 libdir="$found_dir" 12477 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12478 libdir="$acl_save_libdir" 12479 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12480 done 12481 fi 12482 fi 12483 if test "X$ltrpathdirs" != "X"; then 12484 for found_dir in $ltrpathdirs; do 12485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12486 done 12487 fi 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 am_save_CPPFLAGS="$CPPFLAGS" 12501 12502 for element in $INCICONV; do 12503 haveit= 12504 for x in $CPPFLAGS; do 12505 12506 acl_save_prefix="$prefix" 12507 prefix="$acl_final_prefix" 12508 acl_save_exec_prefix="$exec_prefix" 12509 exec_prefix="$acl_final_exec_prefix" 12510 eval x=\"$x\" 12511 exec_prefix="$acl_save_exec_prefix" 12512 prefix="$acl_save_prefix" 12513 12514 if test "X$x" = "X$element"; then 12515 haveit=yes 12516 break 12517 fi 12518 done 12519 if test -z "$haveit"; then 12520 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12521 fi 12522 done 12523 12524 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 12526$as_echo_n "checking for iconv... " >&6; } 12527if ${am_cv_func_iconv+:} false; then : 12528 $as_echo_n "(cached) " >&6 12529else 12530 12531 am_cv_func_iconv="no, consider installing GNU libiconv" 12532 am_cv_lib_iconv=no 12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12534/* end confdefs.h. */ 12535 12536#include <stdlib.h> 12537#include <iconv.h> 12538 12539int 12540main () 12541{ 12542iconv_t cd = iconv_open("",""); 12543 iconv(cd,NULL,NULL,NULL,NULL); 12544 iconv_close(cd); 12545 ; 12546 return 0; 12547} 12548_ACEOF 12549if ac_fn_c_try_link "$LINENO"; then : 12550 am_cv_func_iconv=yes 12551fi 12552rm -f core conftest.err conftest.$ac_objext \ 12553 conftest$ac_exeext conftest.$ac_ext 12554 if test "$am_cv_func_iconv" != yes; then 12555 am_save_LIBS="$LIBS" 12556 LIBS="$LIBS $LIBICONV" 12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12558/* end confdefs.h. */ 12559 12560#include <stdlib.h> 12561#include <iconv.h> 12562 12563int 12564main () 12565{ 12566iconv_t cd = iconv_open("",""); 12567 iconv(cd,NULL,NULL,NULL,NULL); 12568 iconv_close(cd); 12569 ; 12570 return 0; 12571} 12572_ACEOF 12573if ac_fn_c_try_link "$LINENO"; then : 12574 am_cv_lib_iconv=yes 12575 am_cv_func_iconv=yes 12576fi 12577rm -f core conftest.err conftest.$ac_objext \ 12578 conftest$ac_exeext conftest.$ac_ext 12579 LIBS="$am_save_LIBS" 12580 fi 12581 12582fi 12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 12584$as_echo "$am_cv_func_iconv" >&6; } 12585 if test "$am_cv_func_iconv" = yes; then 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 12587$as_echo_n "checking for working iconv... " >&6; } 12588if ${am_cv_func_iconv_works+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 12592 am_save_LIBS="$LIBS" 12593 if test $am_cv_lib_iconv = yes; then 12594 LIBS="$LIBS $LIBICONV" 12595 fi 12596 am_cv_func_iconv_works=no 12597 for ac_iconv_const in '' 'const'; do 12598 if test "$cross_compiling" = yes; then : 12599 case "$host_os" in 12600 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 12601 *) am_cv_func_iconv_works="guessing yes" ;; 12602 esac 12603else 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606 12607#include <iconv.h> 12608#include <string.h> 12609 12610#ifndef ICONV_CONST 12611# define ICONV_CONST $ac_iconv_const 12612#endif 12613 12614int 12615main () 12616{ 12617int result = 0; 12618 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 12619 returns. */ 12620 { 12621 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 12622 if (cd_utf8_to_88591 != (iconv_t)(-1)) 12623 { 12624 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 12625 char buf[10]; 12626 ICONV_CONST char *inptr = input; 12627 size_t inbytesleft = strlen (input); 12628 char *outptr = buf; 12629 size_t outbytesleft = sizeof (buf); 12630 size_t res = iconv (cd_utf8_to_88591, 12631 &inptr, &inbytesleft, 12632 &outptr, &outbytesleft); 12633 if (res == 0) 12634 result |= 1; 12635 iconv_close (cd_utf8_to_88591); 12636 } 12637 } 12638 /* Test against Solaris 10 bug: Failures are not distinguishable from 12639 successful returns. */ 12640 { 12641 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 12642 if (cd_ascii_to_88591 != (iconv_t)(-1)) 12643 { 12644 static ICONV_CONST char input[] = "\263"; 12645 char buf[10]; 12646 ICONV_CONST char *inptr = input; 12647 size_t inbytesleft = strlen (input); 12648 char *outptr = buf; 12649 size_t outbytesleft = sizeof (buf); 12650 size_t res = iconv (cd_ascii_to_88591, 12651 &inptr, &inbytesleft, 12652 &outptr, &outbytesleft); 12653 if (res == 0) 12654 result |= 2; 12655 iconv_close (cd_ascii_to_88591); 12656 } 12657 } 12658 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 12659 { 12660 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 12661 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12662 { 12663 static ICONV_CONST char input[] = "\304"; 12664 static char buf[2] = { (char)0xDE, (char)0xAD }; 12665 ICONV_CONST char *inptr = input; 12666 size_t inbytesleft = 1; 12667 char *outptr = buf; 12668 size_t outbytesleft = 1; 12669 size_t res = iconv (cd_88591_to_utf8, 12670 &inptr, &inbytesleft, 12671 &outptr, &outbytesleft); 12672 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 12673 result |= 4; 12674 iconv_close (cd_88591_to_utf8); 12675 } 12676 } 12677#if 0 /* This bug could be worked around by the caller. */ 12678 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 12679 { 12680 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 12681 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12682 { 12683 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 12684 char buf[50]; 12685 ICONV_CONST char *inptr = input; 12686 size_t inbytesleft = strlen (input); 12687 char *outptr = buf; 12688 size_t outbytesleft = sizeof (buf); 12689 size_t res = iconv (cd_88591_to_utf8, 12690 &inptr, &inbytesleft, 12691 &outptr, &outbytesleft); 12692 if ((int)res > 0) 12693 result |= 8; 12694 iconv_close (cd_88591_to_utf8); 12695 } 12696 } 12697#endif 12698 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 12699 provided. */ 12700 if (/* Try standardized names. */ 12701 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 12702 /* Try IRIX, OSF/1 names. */ 12703 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 12704 /* Try AIX names. */ 12705 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 12706 /* Try HP-UX names. */ 12707 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 12708 result |= 16; 12709 return result; 12710 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715if ac_fn_c_try_run "$LINENO"; then : 12716 am_cv_func_iconv_works=yes 12717fi 12718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12719 conftest.$ac_objext conftest.beam conftest.$ac_ext 12720fi 12721 12722 test "$am_cv_func_iconv_works" = no || break 12723 done 12724 LIBS="$am_save_LIBS" 12725 12726fi 12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 12728$as_echo "$am_cv_func_iconv_works" >&6; } 12729 case "$am_cv_func_iconv_works" in 12730 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 12731 *) am_func_iconv=yes ;; 12732 esac 12733 else 12734 am_func_iconv=no am_cv_lib_iconv=no 12735 fi 12736 if test "$am_func_iconv" = yes; then 12737 12738$as_echo "#define HAVE_ICONV 1" >>confdefs.h 12739 12740 fi 12741 if test "$am_cv_lib_iconv" = yes; then 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 12743$as_echo_n "checking how to link with libiconv... " >&6; } 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 12745$as_echo "$LIBICONV" >&6; } 12746 else 12747 CPPFLAGS="$am_save_CPPFLAGS" 12748 LIBICONV= 12749 LTLIBICONV= 12750 fi 12751 12752 12753 12754 if test "$am_cv_func_iconv" = yes; then 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 12756$as_echo_n "checking for iconv declaration... " >&6; } 12757 if ${am_cv_proto_iconv+:} false; then : 12758 $as_echo_n "(cached) " >&6 12759else 12760 12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12762/* end confdefs.h. */ 12763 12764#include <stdlib.h> 12765#include <iconv.h> 12766extern 12767#ifdef __cplusplus 12768"C" 12769#endif 12770#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 12771size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 12772#else 12773size_t iconv(); 12774#endif 12775 12776int 12777main () 12778{ 12779 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_compile "$LINENO"; then : 12785 am_cv_proto_iconv_arg1="" 12786else 12787 am_cv_proto_iconv_arg1="const" 12788fi 12789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12790 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 12791fi 12792 12793 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 12795 $am_cv_proto_iconv" >&5 12796$as_echo " 12797 $am_cv_proto_iconv" >&6; } 12798 12799cat >>confdefs.h <<_ACEOF 12800#define ICONV_CONST $am_cv_proto_iconv_arg1 12801_ACEOF 12802 12803 12804 fi 12805 12806 12807# Checks for header files. 12808ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12809if test "x$ac_cv_type_size_t" = xyes; then : 12810 12811else 12812 12813cat >>confdefs.h <<_ACEOF 12814#define size_t unsigned int 12815_ACEOF 12816 12817fi 12818 12819# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12820# for constant arguments. Useless! 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 12822$as_echo_n "checking for working alloca.h... " >&6; } 12823if ${ac_cv_working_alloca_h+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825else 12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12827/* end confdefs.h. */ 12828#include <alloca.h> 12829int 12830main () 12831{ 12832char *p = (char *) alloca (2 * sizeof (int)); 12833 if (p) return 0; 12834 ; 12835 return 0; 12836} 12837_ACEOF 12838if ac_fn_c_try_link "$LINENO"; then : 12839 ac_cv_working_alloca_h=yes 12840else 12841 ac_cv_working_alloca_h=no 12842fi 12843rm -f core conftest.err conftest.$ac_objext \ 12844 conftest$ac_exeext conftest.$ac_ext 12845fi 12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 12847$as_echo "$ac_cv_working_alloca_h" >&6; } 12848if test $ac_cv_working_alloca_h = yes; then 12849 12850$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 12851 12852fi 12853 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 12855$as_echo_n "checking for alloca... " >&6; } 12856if ${ac_cv_func_alloca_works+:} false; then : 12857 $as_echo_n "(cached) " >&6 12858else 12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861#ifdef __GNUC__ 12862# define alloca __builtin_alloca 12863#else 12864# ifdef _MSC_VER 12865# include <malloc.h> 12866# define alloca _alloca 12867# else 12868# ifdef HAVE_ALLOCA_H 12869# include <alloca.h> 12870# else 12871# ifdef _AIX 12872 #pragma alloca 12873# else 12874# ifndef alloca /* predefined by HP cc +Olibcalls */ 12875void *alloca (size_t); 12876# endif 12877# endif 12878# endif 12879# endif 12880#endif 12881 12882int 12883main () 12884{ 12885char *p = (char *) alloca (1); 12886 if (p) return 0; 12887 ; 12888 return 0; 12889} 12890_ACEOF 12891if ac_fn_c_try_link "$LINENO"; then : 12892 ac_cv_func_alloca_works=yes 12893else 12894 ac_cv_func_alloca_works=no 12895fi 12896rm -f core conftest.err conftest.$ac_objext \ 12897 conftest$ac_exeext conftest.$ac_ext 12898fi 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 12900$as_echo "$ac_cv_func_alloca_works" >&6; } 12901 12902if test $ac_cv_func_alloca_works = yes; then 12903 12904$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 12905 12906else 12907 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 12908# that cause trouble. Some versions do not even contain alloca or 12909# contain a buggy version. If you still want to use their alloca, 12910# use ar to extract alloca.o from them instead of compiling alloca.c. 12911 12912ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 12913 12914$as_echo "#define C_ALLOCA 1" >>confdefs.h 12915 12916 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 12918$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 12919if ${ac_cv_os_cray+:} false; then : 12920 $as_echo_n "(cached) " >&6 12921else 12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12923/* end confdefs.h. */ 12924#if defined CRAY && ! defined CRAY2 12925webecray 12926#else 12927wenotbecray 12928#endif 12929 12930_ACEOF 12931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12932 $EGREP "webecray" >/dev/null 2>&1; then : 12933 ac_cv_os_cray=yes 12934else 12935 ac_cv_os_cray=no 12936fi 12937rm -f conftest* 12938 12939fi 12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 12941$as_echo "$ac_cv_os_cray" >&6; } 12942if test $ac_cv_os_cray = yes; then 12943 for ac_func in _getb67 GETB67 getb67; do 12944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12945ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12946if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12947 12948cat >>confdefs.h <<_ACEOF 12949#define CRAY_STACKSEG_END $ac_func 12950_ACEOF 12951 12952 break 12953fi 12954 12955 done 12956fi 12957 12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 12959$as_echo_n "checking stack direction for C alloca... " >&6; } 12960if ${ac_cv_c_stack_direction+:} false; then : 12961 $as_echo_n "(cached) " >&6 12962else 12963 if test "$cross_compiling" = yes; then : 12964 ac_cv_c_stack_direction=0 12965else 12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967/* end confdefs.h. */ 12968$ac_includes_default 12969int 12970find_stack_direction (int *addr, int depth) 12971{ 12972 int dir, dummy = 0; 12973 if (! addr) 12974 addr = &dummy; 12975 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 12976 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 12977 return dir + dummy; 12978} 12979 12980int 12981main (int argc, char **argv) 12982{ 12983 return find_stack_direction (0, argc + !argv + 20) < 0; 12984} 12985_ACEOF 12986if ac_fn_c_try_run "$LINENO"; then : 12987 ac_cv_c_stack_direction=1 12988else 12989 ac_cv_c_stack_direction=-1 12990fi 12991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12992 conftest.$ac_objext conftest.beam conftest.$ac_ext 12993fi 12994 12995fi 12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 12997$as_echo "$ac_cv_c_stack_direction" >&6; } 12998cat >>confdefs.h <<_ACEOF 12999#define STACK_DIRECTION $ac_cv_c_stack_direction 13000_ACEOF 13001 13002 13003fi 13004 13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13006$as_echo_n "checking for ANSI C header files... " >&6; } 13007if ${ac_cv_header_stdc+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012#include <stdlib.h> 13013#include <stdarg.h> 13014#include <string.h> 13015#include <float.h> 13016 13017int 13018main () 13019{ 13020 13021 ; 13022 return 0; 13023} 13024_ACEOF 13025if ac_fn_c_try_compile "$LINENO"; then : 13026 ac_cv_header_stdc=yes 13027else 13028 ac_cv_header_stdc=no 13029fi 13030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13031 13032if test $ac_cv_header_stdc = yes; then 13033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13035/* end confdefs.h. */ 13036#include <string.h> 13037 13038_ACEOF 13039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13040 $EGREP "memchr" >/dev/null 2>&1; then : 13041 13042else 13043 ac_cv_header_stdc=no 13044fi 13045rm -f conftest* 13046 13047fi 13048 13049if test $ac_cv_header_stdc = yes; then 13050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13052/* end confdefs.h. */ 13053#include <stdlib.h> 13054 13055_ACEOF 13056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13057 $EGREP "free" >/dev/null 2>&1; then : 13058 13059else 13060 ac_cv_header_stdc=no 13061fi 13062rm -f conftest* 13063 13064fi 13065 13066if test $ac_cv_header_stdc = yes; then 13067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13068 if test "$cross_compiling" = yes; then : 13069 : 13070else 13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13072/* end confdefs.h. */ 13073#include <ctype.h> 13074#include <stdlib.h> 13075#if ((' ' & 0x0FF) == 0x020) 13076# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13077# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13078#else 13079# define ISLOWER(c) \ 13080 (('a' <= (c) && (c) <= 'i') \ 13081 || ('j' <= (c) && (c) <= 'r') \ 13082 || ('s' <= (c) && (c) <= 'z')) 13083# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13084#endif 13085 13086#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13087int 13088main () 13089{ 13090 int i; 13091 for (i = 0; i < 256; i++) 13092 if (XOR (islower (i), ISLOWER (i)) 13093 || toupper (i) != TOUPPER (i)) 13094 return 2; 13095 return 0; 13096} 13097_ACEOF 13098if ac_fn_c_try_run "$LINENO"; then : 13099 13100else 13101 ac_cv_header_stdc=no 13102fi 13103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13104 conftest.$ac_objext conftest.beam conftest.$ac_ext 13105fi 13106 13107fi 13108fi 13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13110$as_echo "$ac_cv_header_stdc" >&6; } 13111if test $ac_cv_header_stdc = yes; then 13112 13113$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13114 13115fi 13116 13117for ac_header in libintl.h malloc.h stddef.h stdlib.h string.h unistd.h 13118do : 13119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13120ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13121if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13122 cat >>confdefs.h <<_ACEOF 13123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13124_ACEOF 13125 13126fi 13127 13128done 13129 13130 13131# Checks for typedefs, structures, and compiler characteristics. 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13133$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13134if ${ac_cv_c_const+:} false; then : 13135 $as_echo_n "(cached) " >&6 13136else 13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13138/* end confdefs.h. */ 13139 13140int 13141main () 13142{ 13143 13144#ifndef __cplusplus 13145 /* Ultrix mips cc rejects this sort of thing. */ 13146 typedef int charset[2]; 13147 const charset cs = { 0, 0 }; 13148 /* SunOS 4.1.1 cc rejects this. */ 13149 char const *const *pcpcc; 13150 char **ppc; 13151 /* NEC SVR4.0.2 mips cc rejects this. */ 13152 struct point {int x, y;}; 13153 static struct point const zero = {0,0}; 13154 /* AIX XL C 1.02.0.0 rejects this. 13155 It does not let you subtract one const X* pointer from another in 13156 an arm of an if-expression whose if-part is not a constant 13157 expression */ 13158 const char *g = "string"; 13159 pcpcc = &g + (g ? g-g : 0); 13160 /* HPUX 7.0 cc rejects these. */ 13161 ++pcpcc; 13162 ppc = (char**) pcpcc; 13163 pcpcc = (char const *const *) ppc; 13164 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13165 char tx; 13166 char *t = &tx; 13167 char const *s = 0 ? (char *) 0 : (char const *) 0; 13168 13169 *t++ = 0; 13170 if (s) return 0; 13171 } 13172 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13173 int x[] = {25, 17}; 13174 const int *foo = &x[0]; 13175 ++foo; 13176 } 13177 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13178 typedef const int *iptr; 13179 iptr p = 0; 13180 ++p; 13181 } 13182 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13183 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13184 struct s { int j; const int *ap[3]; } bx; 13185 struct s *b = &bx; b->j = 5; 13186 } 13187 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13188 const int foo = 10; 13189 if (!foo) return 0; 13190 } 13191 return !cs[0] && !zero.x; 13192#endif 13193 13194 ; 13195 return 0; 13196} 13197_ACEOF 13198if ac_fn_c_try_compile "$LINENO"; then : 13199 ac_cv_c_const=yes 13200else 13201 ac_cv_c_const=no 13202fi 13203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13204fi 13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13206$as_echo "$ac_cv_c_const" >&6; } 13207if test $ac_cv_c_const = no; then 13208 13209$as_echo "#define const /**/" >>confdefs.h 13210 13211fi 13212 13213ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13214if test "x$ac_cv_type_size_t" = xyes; then : 13215 13216else 13217 13218cat >>confdefs.h <<_ACEOF 13219#define size_t unsigned int 13220_ACEOF 13221 13222fi 13223 13224 13225# Checks for library functions. 13226for ac_header in stdlib.h 13227do : 13228 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13229if test "x$ac_cv_header_stdlib_h" = xyes; then : 13230 cat >>confdefs.h <<_ACEOF 13231#define HAVE_STDLIB_H 1 13232_ACEOF 13233 13234fi 13235 13236done 13237 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 13239$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 13240if ${ac_cv_func_malloc_0_nonnull+:} false; then : 13241 $as_echo_n "(cached) " >&6 13242else 13243 if test "$cross_compiling" = yes; then : 13244 ac_cv_func_malloc_0_nonnull=no 13245else 13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13247/* end confdefs.h. */ 13248#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13249# include <stdlib.h> 13250#else 13251char *malloc (); 13252#endif 13253 13254int 13255main () 13256{ 13257return ! malloc (0); 13258 ; 13259 return 0; 13260} 13261_ACEOF 13262if ac_fn_c_try_run "$LINENO"; then : 13263 ac_cv_func_malloc_0_nonnull=yes 13264else 13265 ac_cv_func_malloc_0_nonnull=no 13266fi 13267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13268 conftest.$ac_objext conftest.beam conftest.$ac_ext 13269fi 13270 13271fi 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 13273$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 13274if test $ac_cv_func_malloc_0_nonnull = yes; then : 13275 13276$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 13277 13278else 13279 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 13280 13281 case " $LIBOBJS " in 13282 *" malloc.$ac_objext "* ) ;; 13283 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 13284 ;; 13285esac 13286 13287 13288$as_echo "#define malloc rpl_malloc" >>confdefs.h 13289 13290fi 13291 13292 13293for ac_header in stdlib.h 13294do : 13295 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13296if test "x$ac_cv_header_stdlib_h" = xyes; then : 13297 cat >>confdefs.h <<_ACEOF 13298#define HAVE_STDLIB_H 1 13299_ACEOF 13300 13301fi 13302 13303done 13304 13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 13306$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 13307if ${ac_cv_func_realloc_0_nonnull+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 if test "$cross_compiling" = yes; then : 13311 ac_cv_func_realloc_0_nonnull=no 13312else 13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314/* end confdefs.h. */ 13315#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13316# include <stdlib.h> 13317#else 13318char *realloc (); 13319#endif 13320 13321int 13322main () 13323{ 13324return ! realloc (0, 0); 13325 ; 13326 return 0; 13327} 13328_ACEOF 13329if ac_fn_c_try_run "$LINENO"; then : 13330 ac_cv_func_realloc_0_nonnull=yes 13331else 13332 ac_cv_func_realloc_0_nonnull=no 13333fi 13334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13335 conftest.$ac_objext conftest.beam conftest.$ac_ext 13336fi 13337 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 13340$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 13341if test $ac_cv_func_realloc_0_nonnull = yes; then : 13342 13343$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 13344 13345else 13346 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 13347 13348 case " $LIBOBJS " in 13349 *" realloc.$ac_objext "* ) ;; 13350 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 13351 ;; 13352esac 13353 13354 13355$as_echo "#define realloc rpl_realloc" >>confdefs.h 13356 13357fi 13358 13359 13360for ac_func in strcasecmp strstr memmem 13361do : 13362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13363ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13364if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13365 cat >>confdefs.h <<_ACEOF 13366#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13367_ACEOF 13368 13369fi 13370done 13371 13372 13373# Avail. at http://www.gnu.org/software/autoconf-archive/ax_func_snprintf.html 13374for ac_func in snprintf vsnprintf 13375do : 13376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13377ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13378if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13379 cat >>confdefs.h <<_ACEOF 13380#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13381_ACEOF 13382 13383fi 13384done 13385 13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 13387$as_echo_n "checking for working snprintf... " >&6; } 13388if ${ac_cv_have_working_snprintf+:} false; then : 13389 $as_echo_n "(cached) " >&6 13390else 13391 if test "$cross_compiling" = yes; then : 13392 ac_cv_have_working_snprintf=cross 13393else 13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13395/* end confdefs.h. */ 13396#include <stdio.h> 13397 13398int main(void) 13399{ 13400 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' }; 13401 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' }; 13402 int i; 13403 i = snprintf (bufs, 2, "%s", "111"); 13404 if (strcmp (bufs, "1")) exit (1); 13405 if (i != 3) exit (1); 13406 i = snprintf (bufd, 2, "%d", 111); 13407 if (strcmp (bufd, "1")) exit (1); 13408 if (i != 3) exit (1); 13409 exit(0); 13410} 13411_ACEOF 13412if ac_fn_c_try_run "$LINENO"; then : 13413 ac_cv_have_working_snprintf=yes 13414else 13415 ac_cv_have_working_snprintf=no 13416fi 13417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13418 conftest.$ac_objext conftest.beam conftest.$ac_ext 13419fi 13420 13421fi 13422 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_snprintf" >&5 13424$as_echo "$ac_cv_have_working_snprintf" >&6; } 13425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5 13426$as_echo_n "checking for working vsnprintf... " >&6; } 13427if ${ac_cv_have_working_vsnprintf+:} false; then : 13428 $as_echo_n "(cached) " >&6 13429else 13430 if test "$cross_compiling" = yes; then : 13431 ac_cv_have_working_vsnprintf=cross 13432else 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13434/* end confdefs.h. */ 13435#include <stdio.h> 13436#include <stdarg.h> 13437 13438int my_vsnprintf (char *buf, const char *tmpl, ...) 13439{ 13440 int i; 13441 va_list args; 13442 va_start (args, tmpl); 13443 i = vsnprintf (buf, 2, tmpl, args); 13444 va_end (args); 13445 return i; 13446} 13447 13448int main(void) 13449{ 13450 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' }; 13451 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' }; 13452 int i; 13453 i = my_vsnprintf (bufs, "%s", "111"); 13454 if (strcmp (bufs, "1")) exit (1); 13455 if (i != 3) exit (1); 13456 i = my_vsnprintf (bufd, "%d", 111); 13457 if (strcmp (bufd, "1")) exit (1); 13458 if (i != 3) exit (1); 13459 exit(0); 13460} 13461_ACEOF 13462if ac_fn_c_try_run "$LINENO"; then : 13463 ac_cv_have_working_vsnprintf=yes 13464else 13465 ac_cv_have_working_vsnprintf=no 13466fi 13467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13468 conftest.$ac_objext conftest.beam conftest.$ac_ext 13469fi 13470 13471fi 13472 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_vsnprintf" >&5 13474$as_echo "$ac_cv_have_working_vsnprintf" >&6; } 13475if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then 13476 case " $LIBOBJS " in 13477 *" snprintf.$ac_objext "* ) ;; 13478 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 13479 ;; 13480esac 13481 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5 13483$as_echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;} 13484 13485$as_echo "#define PREFER_PORTABLE_SNPRINTF 1" >>confdefs.h 13486 13487fi 13488 13489ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile dtdcoder/Makefile charset_coder/Makefile tests/Makefile" 13490 13491cat >confcache <<\_ACEOF 13492# This file is a shell script that caches the results of configure 13493# tests run on this system so they can be shared between configure 13494# scripts and configure runs, see configure's option --config-cache. 13495# It is not useful on other systems. If it contains results you don't 13496# want to keep, you may remove or edit it. 13497# 13498# config.status only pays attention to the cache file if you give it 13499# the --recheck option to rerun configure. 13500# 13501# `ac_cv_env_foo' variables (set or unset) will be overridden when 13502# loading this file, other *unset* `ac_cv_foo' will be assigned the 13503# following values. 13504 13505_ACEOF 13506 13507# The following way of writing the cache mishandles newlines in values, 13508# but we know of no workaround that is simple, portable, and efficient. 13509# So, we kill variables containing newlines. 13510# Ultrix sh set writes to stderr and can't be redirected directly, 13511# and sets the high bit in the cache file unless we assign to the vars. 13512( 13513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13514 eval ac_val=\$$ac_var 13515 case $ac_val in #( 13516 *${as_nl}*) 13517 case $ac_var in #( 13518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13519$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13520 esac 13521 case $ac_var in #( 13522 _ | IFS | as_nl) ;; #( 13523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13524 *) { eval $ac_var=; unset $ac_var;} ;; 13525 esac ;; 13526 esac 13527 done 13528 13529 (set) 2>&1 | 13530 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13531 *${as_nl}ac_space=\ *) 13532 # `set' does not quote correctly, so add quotes: double-quote 13533 # substitution turns \\\\ into \\, and sed turns \\ into \. 13534 sed -n \ 13535 "s/'/'\\\\''/g; 13536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13537 ;; #( 13538 *) 13539 # `set' quotes correctly as required by POSIX, so do not add quotes. 13540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13541 ;; 13542 esac | 13543 sort 13544) | 13545 sed ' 13546 /^ac_cv_env_/b end 13547 t clear 13548 :clear 13549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13550 t end 13551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13552 :end' >>confcache 13553if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13554 if test -w "$cache_file"; then 13555 if test "x$cache_file" != "x/dev/null"; then 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13557$as_echo "$as_me: updating cache $cache_file" >&6;} 13558 if test ! -f "$cache_file" || test -h "$cache_file"; then 13559 cat confcache >"$cache_file" 13560 else 13561 case $cache_file in #( 13562 */* | ?:*) 13563 mv -f confcache "$cache_file"$$ && 13564 mv -f "$cache_file"$$ "$cache_file" ;; #( 13565 *) 13566 mv -f confcache "$cache_file" ;; 13567 esac 13568 fi 13569 fi 13570 else 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13573 fi 13574fi 13575rm -f confcache 13576 13577test "x$prefix" = xNONE && prefix=$ac_default_prefix 13578# Let make expand exec_prefix. 13579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13580 13581DEFS=-DHAVE_CONFIG_H 13582 13583ac_libobjs= 13584ac_ltlibobjs= 13585U= 13586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13587 # 1. Remove the extension, and $U if already installed. 13588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13589 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13591 # will be set to the directory where LIBOBJS objects are built. 13592 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13593 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13594done 13595LIBOBJS=$ac_libobjs 13596 13597LTLIBOBJS=$ac_ltlibobjs 13598 13599 13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13601$as_echo_n "checking that generated files are newer than configure... " >&6; } 13602 if test -n "$am_sleep_pid"; then 13603 # Hide warnings about reused PIDs. 13604 wait $am_sleep_pid 2>/dev/null 13605 fi 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13607$as_echo "done" >&6; } 13608 if test -n "$EXEEXT"; then 13609 am__EXEEXT_TRUE= 13610 am__EXEEXT_FALSE='#' 13611else 13612 am__EXEEXT_TRUE='#' 13613 am__EXEEXT_FALSE= 13614fi 13615 13616if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13617 as_fn_error $? "conditional \"AMDEP\" was never defined. 13618Usually this means the macro was only invoked conditionally." "$LINENO" 5 13619fi 13620if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13621 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13622Usually this means the macro was only invoked conditionally." "$LINENO" 5 13623fi 13624 13625: "${CONFIG_STATUS=./config.status}" 13626ac_write_fail=0 13627ac_clean_files_save=$ac_clean_files 13628ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13630$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13631as_write_fail=0 13632cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13633#! $SHELL 13634# Generated by $as_me. 13635# Run this file to recreate the current configuration. 13636# Compiler output produced by configure, useful for debugging 13637# configure, is in config.log if it exists. 13638 13639debug=false 13640ac_cs_recheck=false 13641ac_cs_silent=false 13642 13643SHELL=\${CONFIG_SHELL-$SHELL} 13644export SHELL 13645_ASEOF 13646cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13647## -------------------- ## 13648## M4sh Initialization. ## 13649## -------------------- ## 13650 13651# Be more Bourne compatible 13652DUALCASE=1; export DUALCASE # for MKS sh 13653if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13654 emulate sh 13655 NULLCMD=: 13656 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13657 # is contrary to our usage. Disable this feature. 13658 alias -g '${1+"$@"}'='"$@"' 13659 setopt NO_GLOB_SUBST 13660else 13661 case `(set -o) 2>/dev/null` in #( 13662 *posix*) : 13663 set -o posix ;; #( 13664 *) : 13665 ;; 13666esac 13667fi 13668 13669 13670as_nl=' 13671' 13672export as_nl 13673# Printing a long string crashes Solaris 7 /usr/bin/printf. 13674as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13676as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13677# Prefer a ksh shell builtin over an external printf program on Solaris, 13678# but without wasting forks for bash or zsh. 13679if test -z "$BASH_VERSION$ZSH_VERSION" \ 13680 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13681 as_echo='print -r --' 13682 as_echo_n='print -rn --' 13683elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13684 as_echo='printf %s\n' 13685 as_echo_n='printf %s' 13686else 13687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13688 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13689 as_echo_n='/usr/ucb/echo -n' 13690 else 13691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13692 as_echo_n_body='eval 13693 arg=$1; 13694 case $arg in #( 13695 *"$as_nl"*) 13696 expr "X$arg" : "X\\(.*\\)$as_nl"; 13697 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13698 esac; 13699 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13700 ' 13701 export as_echo_n_body 13702 as_echo_n='sh -c $as_echo_n_body as_echo' 13703 fi 13704 export as_echo_body 13705 as_echo='sh -c $as_echo_body as_echo' 13706fi 13707 13708# The user is always right. 13709if test "${PATH_SEPARATOR+set}" != set; then 13710 PATH_SEPARATOR=: 13711 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13712 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13713 PATH_SEPARATOR=';' 13714 } 13715fi 13716 13717 13718# IFS 13719# We need space, tab and new line, in precisely that order. Quoting is 13720# there to prevent editors from complaining about space-tab. 13721# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13722# splitting by setting IFS to empty value.) 13723IFS=" "" $as_nl" 13724 13725# Find who we are. Look in the path if we contain no directory separator. 13726as_myself= 13727case $0 in #(( 13728 *[\\/]* ) as_myself=$0 ;; 13729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13730for as_dir in $PATH 13731do 13732 IFS=$as_save_IFS 13733 test -z "$as_dir" && as_dir=. 13734 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13735 done 13736IFS=$as_save_IFS 13737 13738 ;; 13739esac 13740# We did not find ourselves, most probably we were run as `sh COMMAND' 13741# in which case we are not to be found in the path. 13742if test "x$as_myself" = x; then 13743 as_myself=$0 13744fi 13745if test ! -f "$as_myself"; then 13746 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13747 exit 1 13748fi 13749 13750# Unset variables that we do not need and which cause bugs (e.g. in 13751# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13752# suppresses any "Segmentation fault" message there. '((' could 13753# trigger a bug in pdksh 5.2.14. 13754for as_var in BASH_ENV ENV MAIL MAILPATH 13755do eval test x\${$as_var+set} = xset \ 13756 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13757done 13758PS1='$ ' 13759PS2='> ' 13760PS4='+ ' 13761 13762# NLS nuisances. 13763LC_ALL=C 13764export LC_ALL 13765LANGUAGE=C 13766export LANGUAGE 13767 13768# CDPATH. 13769(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13770 13771 13772# as_fn_error STATUS ERROR [LINENO LOG_FD] 13773# ---------------------------------------- 13774# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13775# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13776# script with STATUS, using 1 if that was 0. 13777as_fn_error () 13778{ 13779 as_status=$1; test $as_status -eq 0 && as_status=1 13780 if test "$4"; then 13781 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13782 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13783 fi 13784 $as_echo "$as_me: error: $2" >&2 13785 as_fn_exit $as_status 13786} # as_fn_error 13787 13788 13789# as_fn_set_status STATUS 13790# ----------------------- 13791# Set $? to STATUS, without forking. 13792as_fn_set_status () 13793{ 13794 return $1 13795} # as_fn_set_status 13796 13797# as_fn_exit STATUS 13798# ----------------- 13799# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13800as_fn_exit () 13801{ 13802 set +e 13803 as_fn_set_status $1 13804 exit $1 13805} # as_fn_exit 13806 13807# as_fn_unset VAR 13808# --------------- 13809# Portably unset VAR. 13810as_fn_unset () 13811{ 13812 { eval $1=; unset $1;} 13813} 13814as_unset=as_fn_unset 13815# as_fn_append VAR VALUE 13816# ---------------------- 13817# Append the text in VALUE to the end of the definition contained in VAR. Take 13818# advantage of any shell optimizations that allow amortized linear growth over 13819# repeated appends, instead of the typical quadratic growth present in naive 13820# implementations. 13821if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13822 eval 'as_fn_append () 13823 { 13824 eval $1+=\$2 13825 }' 13826else 13827 as_fn_append () 13828 { 13829 eval $1=\$$1\$2 13830 } 13831fi # as_fn_append 13832 13833# as_fn_arith ARG... 13834# ------------------ 13835# Perform arithmetic evaluation on the ARGs, and store the result in the 13836# global $as_val. Take advantage of shells that can avoid forks. The arguments 13837# must be portable across $(()) and expr. 13838if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13839 eval 'as_fn_arith () 13840 { 13841 as_val=$(( $* )) 13842 }' 13843else 13844 as_fn_arith () 13845 { 13846 as_val=`expr "$@" || test $? -eq 1` 13847 } 13848fi # as_fn_arith 13849 13850 13851if expr a : '\(a\)' >/dev/null 2>&1 && 13852 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13853 as_expr=expr 13854else 13855 as_expr=false 13856fi 13857 13858if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13859 as_basename=basename 13860else 13861 as_basename=false 13862fi 13863 13864if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13865 as_dirname=dirname 13866else 13867 as_dirname=false 13868fi 13869 13870as_me=`$as_basename -- "$0" || 13871$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13872 X"$0" : 'X\(//\)$' \| \ 13873 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13874$as_echo X/"$0" | 13875 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13876 s//\1/ 13877 q 13878 } 13879 /^X\/\(\/\/\)$/{ 13880 s//\1/ 13881 q 13882 } 13883 /^X\/\(\/\).*/{ 13884 s//\1/ 13885 q 13886 } 13887 s/.*/./; q'` 13888 13889# Avoid depending upon Character Ranges. 13890as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13891as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13892as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13893as_cr_digits='0123456789' 13894as_cr_alnum=$as_cr_Letters$as_cr_digits 13895 13896ECHO_C= ECHO_N= ECHO_T= 13897case `echo -n x` in #((((( 13898-n*) 13899 case `echo 'xy\c'` in 13900 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13901 xy) ECHO_C='\c';; 13902 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13903 ECHO_T=' ';; 13904 esac;; 13905*) 13906 ECHO_N='-n';; 13907esac 13908 13909rm -f conf$$ conf$$.exe conf$$.file 13910if test -d conf$$.dir; then 13911 rm -f conf$$.dir/conf$$.file 13912else 13913 rm -f conf$$.dir 13914 mkdir conf$$.dir 2>/dev/null 13915fi 13916if (echo >conf$$.file) 2>/dev/null; then 13917 if ln -s conf$$.file conf$$ 2>/dev/null; then 13918 as_ln_s='ln -s' 13919 # ... but there are two gotchas: 13920 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13921 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13922 # In both cases, we have to default to `cp -pR'. 13923 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13924 as_ln_s='cp -pR' 13925 elif ln conf$$.file conf$$ 2>/dev/null; then 13926 as_ln_s=ln 13927 else 13928 as_ln_s='cp -pR' 13929 fi 13930else 13931 as_ln_s='cp -pR' 13932fi 13933rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13934rmdir conf$$.dir 2>/dev/null 13935 13936 13937# as_fn_mkdir_p 13938# ------------- 13939# Create "$as_dir" as a directory, including parents if necessary. 13940as_fn_mkdir_p () 13941{ 13942 13943 case $as_dir in #( 13944 -*) as_dir=./$as_dir;; 13945 esac 13946 test -d "$as_dir" || eval $as_mkdir_p || { 13947 as_dirs= 13948 while :; do 13949 case $as_dir in #( 13950 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13951 *) as_qdir=$as_dir;; 13952 esac 13953 as_dirs="'$as_qdir' $as_dirs" 13954 as_dir=`$as_dirname -- "$as_dir" || 13955$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13956 X"$as_dir" : 'X\(//\)[^/]' \| \ 13957 X"$as_dir" : 'X\(//\)$' \| \ 13958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13959$as_echo X"$as_dir" | 13960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13961 s//\1/ 13962 q 13963 } 13964 /^X\(\/\/\)[^/].*/{ 13965 s//\1/ 13966 q 13967 } 13968 /^X\(\/\/\)$/{ 13969 s//\1/ 13970 q 13971 } 13972 /^X\(\/\).*/{ 13973 s//\1/ 13974 q 13975 } 13976 s/.*/./; q'` 13977 test -d "$as_dir" && break 13978 done 13979 test -z "$as_dirs" || eval "mkdir $as_dirs" 13980 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13981 13982 13983} # as_fn_mkdir_p 13984if mkdir -p . 2>/dev/null; then 13985 as_mkdir_p='mkdir -p "$as_dir"' 13986else 13987 test -d ./-p && rmdir ./-p 13988 as_mkdir_p=false 13989fi 13990 13991 13992# as_fn_executable_p FILE 13993# ----------------------- 13994# Test if FILE is an executable regular file. 13995as_fn_executable_p () 13996{ 13997 test -f "$1" && test -x "$1" 13998} # as_fn_executable_p 13999as_test_x='test -x' 14000as_executable_p=as_fn_executable_p 14001 14002# Sed expression to map a string onto a valid CPP name. 14003as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14004 14005# Sed expression to map a string onto a valid variable name. 14006as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14007 14008 14009exec 6>&1 14010## ----------------------------------- ## 14011## Main body of $CONFIG_STATUS script. ## 14012## ----------------------------------- ## 14013_ASEOF 14014test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14015 14016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14017# Save the log message, to keep $0 and so on meaningful, and to 14018# report actual input values of CONFIG_FILES etc. instead of their 14019# values after options handling. 14020ac_log=" 14021This file was extended by html2xhtml $as_me 1.3, which was 14022generated by GNU Autoconf 2.69. Invocation command line was 14023 14024 CONFIG_FILES = $CONFIG_FILES 14025 CONFIG_HEADERS = $CONFIG_HEADERS 14026 CONFIG_LINKS = $CONFIG_LINKS 14027 CONFIG_COMMANDS = $CONFIG_COMMANDS 14028 $ $0 $@ 14029 14030on `(hostname || uname -n) 2>/dev/null | sed 1q` 14031" 14032 14033_ACEOF 14034 14035case $ac_config_files in *" 14036"*) set x $ac_config_files; shift; ac_config_files=$*;; 14037esac 14038 14039case $ac_config_headers in *" 14040"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14041esac 14042 14043 14044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14045# Files that config.status was made for. 14046config_files="$ac_config_files" 14047config_headers="$ac_config_headers" 14048config_commands="$ac_config_commands" 14049 14050_ACEOF 14051 14052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14053ac_cs_usage="\ 14054\`$as_me' instantiates files and other configuration actions 14055from templates according to the current configuration. Unless the files 14056and actions are specified as TAGs, all are instantiated by default. 14057 14058Usage: $0 [OPTION]... [TAG]... 14059 14060 -h, --help print this help, then exit 14061 -V, --version print version number and configuration settings, then exit 14062 --config print configuration, then exit 14063 -q, --quiet, --silent 14064 do not print progress messages 14065 -d, --debug don't remove temporary files 14066 --recheck update $as_me by reconfiguring in the same conditions 14067 --file=FILE[:TEMPLATE] 14068 instantiate the configuration file FILE 14069 --header=FILE[:TEMPLATE] 14070 instantiate the configuration header FILE 14071 14072Configuration files: 14073$config_files 14074 14075Configuration headers: 14076$config_headers 14077 14078Configuration commands: 14079$config_commands 14080 14081Report bugs to the package provider." 14082 14083_ACEOF 14084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14085ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14086ac_cs_version="\\ 14087html2xhtml config.status 1.3 14088configured by $0, generated by GNU Autoconf 2.69, 14089 with options \\"\$ac_cs_config\\" 14090 14091Copyright (C) 2012 Free Software Foundation, Inc. 14092This config.status script is free software; the Free Software Foundation 14093gives unlimited permission to copy, distribute and modify it." 14094 14095ac_pwd='$ac_pwd' 14096srcdir='$srcdir' 14097INSTALL='$INSTALL' 14098MKDIR_P='$MKDIR_P' 14099AWK='$AWK' 14100test -n "\$AWK" || AWK=awk 14101_ACEOF 14102 14103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14104# The default lists apply if the user does not specify any file. 14105ac_need_defaults=: 14106while test $# != 0 14107do 14108 case $1 in 14109 --*=?*) 14110 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14112 ac_shift=: 14113 ;; 14114 --*=) 14115 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14116 ac_optarg= 14117 ac_shift=: 14118 ;; 14119 *) 14120 ac_option=$1 14121 ac_optarg=$2 14122 ac_shift=shift 14123 ;; 14124 esac 14125 14126 case $ac_option in 14127 # Handling of the options. 14128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14129 ac_cs_recheck=: ;; 14130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14131 $as_echo "$ac_cs_version"; exit ;; 14132 --config | --confi | --conf | --con | --co | --c ) 14133 $as_echo "$ac_cs_config"; exit ;; 14134 --debug | --debu | --deb | --de | --d | -d ) 14135 debug=: ;; 14136 --file | --fil | --fi | --f ) 14137 $ac_shift 14138 case $ac_optarg in 14139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14140 '') as_fn_error $? "missing file argument" ;; 14141 esac 14142 as_fn_append CONFIG_FILES " '$ac_optarg'" 14143 ac_need_defaults=false;; 14144 --header | --heade | --head | --hea ) 14145 $ac_shift 14146 case $ac_optarg in 14147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14148 esac 14149 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14150 ac_need_defaults=false;; 14151 --he | --h) 14152 # Conflict between --help and --header 14153 as_fn_error $? "ambiguous option: \`$1' 14154Try \`$0 --help' for more information.";; 14155 --help | --hel | -h ) 14156 $as_echo "$ac_cs_usage"; exit ;; 14157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14158 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14159 ac_cs_silent=: ;; 14160 14161 # This is an error. 14162 -*) as_fn_error $? "unrecognized option: \`$1' 14163Try \`$0 --help' for more information." ;; 14164 14165 *) as_fn_append ac_config_targets " $1" 14166 ac_need_defaults=false ;; 14167 14168 esac 14169 shift 14170done 14171 14172ac_configure_extra_args= 14173 14174if $ac_cs_silent; then 14175 exec 6>/dev/null 14176 ac_configure_extra_args="$ac_configure_extra_args --silent" 14177fi 14178 14179_ACEOF 14180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14181if \$ac_cs_recheck; then 14182 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14183 shift 14184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14185 CONFIG_SHELL='$SHELL' 14186 export CONFIG_SHELL 14187 exec "\$@" 14188fi 14189 14190_ACEOF 14191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14192exec 5>>config.log 14193{ 14194 echo 14195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14196## Running $as_me. ## 14197_ASBOX 14198 $as_echo "$ac_log" 14199} >&5 14200 14201_ACEOF 14202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14203# 14204# INIT-COMMANDS 14205# 14206AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14207 14208 14209# The HP-UX ksh and POSIX shell print the target directory to stdout 14210# if CDPATH is set. 14211(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14212 14213sed_quote_subst='$sed_quote_subst' 14214double_quote_subst='$double_quote_subst' 14215delay_variable_subst='$delay_variable_subst' 14216macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14217macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14218enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14219enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14220pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14221enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14222SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14223ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14224PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14225host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14226host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14227host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14228build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14229build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14230build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14231SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14232Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14233GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14234EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14235FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14236LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14237NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14238LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14239max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14240ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14241exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14242lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14243lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14244lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14245lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14246lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14247reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14248reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14249OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14250deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14251file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14252file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14253want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14254DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14255sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14256AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14257AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14258archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14259STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14260RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14261old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14262old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14263old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14264lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14265CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14266CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14267compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14268GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14269lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14270lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14271lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14272lt_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"`' 14273nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14274lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14275objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14276MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14277lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14278lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14279lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14280lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14281lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14282need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14283MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14284DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14285NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14286LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14287OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14288OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14289libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14290shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14291extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14292archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14293enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14294export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14295whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14296compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14297old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14298old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14299archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14300archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14301module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14302module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14303with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14304allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14305no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14306hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14307hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14308hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14309hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14310hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14311hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14312hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14313inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14314link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14315always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14316export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14317exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14318include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14319prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14320postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14321file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14322variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14323need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14324need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14325version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14326runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14327shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14328shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14329libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14330library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14331soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14332install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14333postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14334postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14335finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14336finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14337hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14338sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14339sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14340hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14341enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14342enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14343enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14344old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14345striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14346 14347LTCC='$LTCC' 14348LTCFLAGS='$LTCFLAGS' 14349compiler='$compiler_DEFAULT' 14350 14351# A function that is used when there is no print builtin or printf. 14352func_fallback_echo () 14353{ 14354 eval 'cat <<_LTECHO_EOF 14355\$1 14356_LTECHO_EOF' 14357} 14358 14359# Quote evaled strings. 14360for var in SHELL \ 14361ECHO \ 14362PATH_SEPARATOR \ 14363SED \ 14364GREP \ 14365EGREP \ 14366FGREP \ 14367LD \ 14368NM \ 14369LN_S \ 14370lt_SP2NL \ 14371lt_NL2SP \ 14372reload_flag \ 14373OBJDUMP \ 14374deplibs_check_method \ 14375file_magic_cmd \ 14376file_magic_glob \ 14377want_nocaseglob \ 14378DLLTOOL \ 14379sharedlib_from_linklib_cmd \ 14380AR \ 14381AR_FLAGS \ 14382archiver_list_spec \ 14383STRIP \ 14384RANLIB \ 14385CC \ 14386CFLAGS \ 14387compiler \ 14388lt_cv_sys_global_symbol_pipe \ 14389lt_cv_sys_global_symbol_to_cdecl \ 14390lt_cv_sys_global_symbol_to_c_name_address \ 14391lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14392nm_file_list_spec \ 14393lt_prog_compiler_no_builtin_flag \ 14394lt_prog_compiler_pic \ 14395lt_prog_compiler_wl \ 14396lt_prog_compiler_static \ 14397lt_cv_prog_compiler_c_o \ 14398need_locks \ 14399MANIFEST_TOOL \ 14400DSYMUTIL \ 14401NMEDIT \ 14402LIPO \ 14403OTOOL \ 14404OTOOL64 \ 14405shrext_cmds \ 14406export_dynamic_flag_spec \ 14407whole_archive_flag_spec \ 14408compiler_needs_object \ 14409with_gnu_ld \ 14410allow_undefined_flag \ 14411no_undefined_flag \ 14412hardcode_libdir_flag_spec \ 14413hardcode_libdir_separator \ 14414exclude_expsyms \ 14415include_expsyms \ 14416file_list_spec \ 14417variables_saved_for_relink \ 14418libname_spec \ 14419library_names_spec \ 14420soname_spec \ 14421install_override_mode \ 14422finish_eval \ 14423old_striplib \ 14424striplib; do 14425 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14426 *[\\\\\\\`\\"\\\$]*) 14427 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14428 ;; 14429 *) 14430 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14431 ;; 14432 esac 14433done 14434 14435# Double-quote double-evaled strings. 14436for var in reload_cmds \ 14437old_postinstall_cmds \ 14438old_postuninstall_cmds \ 14439old_archive_cmds \ 14440extract_expsyms_cmds \ 14441old_archive_from_new_cmds \ 14442old_archive_from_expsyms_cmds \ 14443archive_cmds \ 14444archive_expsym_cmds \ 14445module_cmds \ 14446module_expsym_cmds \ 14447export_symbols_cmds \ 14448prelink_cmds \ 14449postlink_cmds \ 14450postinstall_cmds \ 14451postuninstall_cmds \ 14452finish_cmds \ 14453sys_lib_search_path_spec \ 14454sys_lib_dlsearch_path_spec; do 14455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14456 *[\\\\\\\`\\"\\\$]*) 14457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14458 ;; 14459 *) 14460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14461 ;; 14462 esac 14463done 14464 14465ac_aux_dir='$ac_aux_dir' 14466xsi_shell='$xsi_shell' 14467lt_shell_append='$lt_shell_append' 14468 14469# See if we are running on zsh, and set the options which allow our 14470# commands through without removal of \ escapes INIT. 14471if test -n "\${ZSH_VERSION+set}" ; then 14472 setopt NO_GLOB_SUBST 14473fi 14474 14475 14476 PACKAGE='$PACKAGE' 14477 VERSION='$VERSION' 14478 TIMESTAMP='$TIMESTAMP' 14479 RM='$RM' 14480 ofile='$ofile' 14481 14482 14483 14484 14485_ACEOF 14486 14487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14488 14489# Handling of arguments. 14490for ac_config_target in $ac_config_targets 14491do 14492 case $ac_config_target in 14493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14495 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14497 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14498 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14499 "dtdcoder/Makefile") CONFIG_FILES="$CONFIG_FILES dtdcoder/Makefile" ;; 14500 "charset_coder/Makefile") CONFIG_FILES="$CONFIG_FILES charset_coder/Makefile" ;; 14501 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14502 14503 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14504 esac 14505done 14506 14507 14508# If the user did not use the arguments to specify the items to instantiate, 14509# then the envvar interface is used. Set only those that are not. 14510# We use the long form for the default assignment because of an extremely 14511# bizarre bug on SunOS 4.1.3. 14512if $ac_need_defaults; then 14513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14516fi 14517 14518# Have a temporary directory for convenience. Make it in the build tree 14519# simply because there is no reason against having it here, and in addition, 14520# creating and moving files from /tmp can sometimes cause problems. 14521# Hook for its removal unless debugging. 14522# Note that there is a small window in which the directory will not be cleaned: 14523# after its creation but before its name has been assigned to `$tmp'. 14524$debug || 14525{ 14526 tmp= ac_tmp= 14527 trap 'exit_status=$? 14528 : "${ac_tmp:=$tmp}" 14529 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14530' 0 14531 trap 'as_fn_exit 1' 1 2 13 15 14532} 14533# Create a (secure) tmp directory for tmp files. 14534 14535{ 14536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14537 test -d "$tmp" 14538} || 14539{ 14540 tmp=./conf$$-$RANDOM 14541 (umask 077 && mkdir "$tmp") 14542} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14543ac_tmp=$tmp 14544 14545# Set up the scripts for CONFIG_FILES section. 14546# No need to generate them if there are no CONFIG_FILES. 14547# This happens for instance with `./config.status config.h'. 14548if test -n "$CONFIG_FILES"; then 14549 14550 14551ac_cr=`echo X | tr X '\015'` 14552# On cygwin, bash can eat \r inside `` if the user requested igncr. 14553# But we know of no other shell where ac_cr would be empty at this 14554# point, so we can use a bashism as a fallback. 14555if test "x$ac_cr" = x; then 14556 eval ac_cr=\$\'\\r\' 14557fi 14558ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14559if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14560 ac_cs_awk_cr='\\r' 14561else 14562 ac_cs_awk_cr=$ac_cr 14563fi 14564 14565echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14566_ACEOF 14567 14568 14569{ 14570 echo "cat >conf$$subs.awk <<_ACEOF" && 14571 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14572 echo "_ACEOF" 14573} >conf$$subs.sh || 14574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14575ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14576ac_delim='%!_!# ' 14577for ac_last_try in false false false false false :; do 14578 . ./conf$$subs.sh || 14579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14580 14581 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14582 if test $ac_delim_n = $ac_delim_num; then 14583 break 14584 elif $ac_last_try; then 14585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14586 else 14587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14588 fi 14589done 14590rm -f conf$$subs.sh 14591 14592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14593cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14594_ACEOF 14595sed -n ' 14596h 14597s/^/S["/; s/!.*/"]=/ 14598p 14599g 14600s/^[^!]*!// 14601:repl 14602t repl 14603s/'"$ac_delim"'$// 14604t delim 14605:nl 14606h 14607s/\(.\{148\}\)..*/\1/ 14608t more1 14609s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14610p 14611n 14612b repl 14613:more1 14614s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14615p 14616g 14617s/.\{148\}// 14618t nl 14619:delim 14620h 14621s/\(.\{148\}\)..*/\1/ 14622t more2 14623s/["\\]/\\&/g; s/^/"/; s/$/"/ 14624p 14625b 14626:more2 14627s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14628p 14629g 14630s/.\{148\}// 14631t delim 14632' <conf$$subs.awk | sed ' 14633/^[^""]/{ 14634 N 14635 s/\n// 14636} 14637' >>$CONFIG_STATUS || ac_write_fail=1 14638rm -f conf$$subs.awk 14639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14640_ACAWK 14641cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14642 for (key in S) S_is_set[key] = 1 14643 FS = "" 14644 14645} 14646{ 14647 line = $ 0 14648 nfields = split(line, field, "@") 14649 substed = 0 14650 len = length(field[1]) 14651 for (i = 2; i < nfields; i++) { 14652 key = field[i] 14653 keylen = length(key) 14654 if (S_is_set[key]) { 14655 value = S[key] 14656 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14657 len += length(value) + length(field[++i]) 14658 substed = 1 14659 } else 14660 len += 1 + keylen 14661 } 14662 14663 print line 14664} 14665 14666_ACAWK 14667_ACEOF 14668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14669if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14670 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14671else 14672 cat 14673fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14674 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14675_ACEOF 14676 14677# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14678# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14679# trailing colons and then remove the whole line if VPATH becomes empty 14680# (actually we leave an empty line to preserve line numbers). 14681if test "x$srcdir" = x.; then 14682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14683h 14684s/// 14685s/^/:/ 14686s/[ ]*$/:/ 14687s/:\$(srcdir):/:/g 14688s/:\${srcdir}:/:/g 14689s/:@srcdir@:/:/g 14690s/^:*// 14691s/:*$// 14692x 14693s/\(=[ ]*\).*/\1/ 14694G 14695s/\n// 14696s/^[^=]*=[ ]*$// 14697}' 14698fi 14699 14700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14701fi # test -n "$CONFIG_FILES" 14702 14703# Set up the scripts for CONFIG_HEADERS section. 14704# No need to generate them if there are no CONFIG_HEADERS. 14705# This happens for instance with `./config.status Makefile'. 14706if test -n "$CONFIG_HEADERS"; then 14707cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14708BEGIN { 14709_ACEOF 14710 14711# Transform confdefs.h into an awk script `defines.awk', embedded as 14712# here-document in config.status, that substitutes the proper values into 14713# config.h.in to produce config.h. 14714 14715# Create a delimiter string that does not exist in confdefs.h, to ease 14716# handling of long lines. 14717ac_delim='%!_!# ' 14718for ac_last_try in false false :; do 14719 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14720 if test -z "$ac_tt"; then 14721 break 14722 elif $ac_last_try; then 14723 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14724 else 14725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14726 fi 14727done 14728 14729# For the awk script, D is an array of macro values keyed by name, 14730# likewise P contains macro parameters if any. Preserve backslash 14731# newline sequences. 14732 14733ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14734sed -n ' 14735s/.\{148\}/&'"$ac_delim"'/g 14736t rset 14737:rset 14738s/^[ ]*#[ ]*define[ ][ ]*/ / 14739t def 14740d 14741:def 14742s/\\$// 14743t bsnl 14744s/["\\]/\\&/g 14745s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14746D["\1"]=" \3"/p 14747s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14748d 14749:bsnl 14750s/["\\]/\\&/g 14751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14752D["\1"]=" \3\\\\\\n"\\/p 14753t cont 14754s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14755t cont 14756d 14757:cont 14758n 14759s/.\{148\}/&'"$ac_delim"'/g 14760t clear 14761:clear 14762s/\\$// 14763t bsnlc 14764s/["\\]/\\&/g; s/^/"/; s/$/"/p 14765d 14766:bsnlc 14767s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14768b cont 14769' <confdefs.h | sed ' 14770s/'"$ac_delim"'/"\\\ 14771"/g' >>$CONFIG_STATUS || ac_write_fail=1 14772 14773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14774 for (key in D) D_is_set[key] = 1 14775 FS = "" 14776} 14777/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14778 line = \$ 0 14779 split(line, arg, " ") 14780 if (arg[1] == "#") { 14781 defundef = arg[2] 14782 mac1 = arg[3] 14783 } else { 14784 defundef = substr(arg[1], 2) 14785 mac1 = arg[2] 14786 } 14787 split(mac1, mac2, "(") #) 14788 macro = mac2[1] 14789 prefix = substr(line, 1, index(line, defundef) - 1) 14790 if (D_is_set[macro]) { 14791 # Preserve the white space surrounding the "#". 14792 print prefix "define", macro P[macro] D[macro] 14793 next 14794 } else { 14795 # Replace #undef with comments. This is necessary, for example, 14796 # in the case of _POSIX_SOURCE, which is predefined and required 14797 # on some systems where configure will not decide to define it. 14798 if (defundef == "undef") { 14799 print "/*", prefix defundef, macro, "*/" 14800 next 14801 } 14802 } 14803} 14804{ print } 14805_ACAWK 14806_ACEOF 14807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14808 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14809fi # test -n "$CONFIG_HEADERS" 14810 14811 14812eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14813shift 14814for ac_tag 14815do 14816 case $ac_tag in 14817 :[FHLC]) ac_mode=$ac_tag; continue;; 14818 esac 14819 case $ac_mode$ac_tag in 14820 :[FHL]*:*);; 14821 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14822 :[FH]-) ac_tag=-:-;; 14823 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14824 esac 14825 ac_save_IFS=$IFS 14826 IFS=: 14827 set x $ac_tag 14828 IFS=$ac_save_IFS 14829 shift 14830 ac_file=$1 14831 shift 14832 14833 case $ac_mode in 14834 :L) ac_source=$1;; 14835 :[FH]) 14836 ac_file_inputs= 14837 for ac_f 14838 do 14839 case $ac_f in 14840 -) ac_f="$ac_tmp/stdin";; 14841 *) # Look for the file first in the build tree, then in the source tree 14842 # (if the path is not absolute). The absolute path cannot be DOS-style, 14843 # because $ac_f cannot contain `:'. 14844 test -f "$ac_f" || 14845 case $ac_f in 14846 [\\/$]*) false;; 14847 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14848 esac || 14849 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14850 esac 14851 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14852 as_fn_append ac_file_inputs " '$ac_f'" 14853 done 14854 14855 # Let's still pretend it is `configure' which instantiates (i.e., don't 14856 # use $as_me), people would be surprised to read: 14857 # /* config.h. Generated by config.status. */ 14858 configure_input='Generated from '` 14859 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14860 `' by configure.' 14861 if test x"$ac_file" != x-; then 14862 configure_input="$ac_file. $configure_input" 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14864$as_echo "$as_me: creating $ac_file" >&6;} 14865 fi 14866 # Neutralize special characters interpreted by sed in replacement strings. 14867 case $configure_input in #( 14868 *\&* | *\|* | *\\* ) 14869 ac_sed_conf_input=`$as_echo "$configure_input" | 14870 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14871 *) ac_sed_conf_input=$configure_input;; 14872 esac 14873 14874 case $ac_tag in 14875 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14877 esac 14878 ;; 14879 esac 14880 14881 ac_dir=`$as_dirname -- "$ac_file" || 14882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14883 X"$ac_file" : 'X\(//\)[^/]' \| \ 14884 X"$ac_file" : 'X\(//\)$' \| \ 14885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14886$as_echo X"$ac_file" | 14887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14888 s//\1/ 14889 q 14890 } 14891 /^X\(\/\/\)[^/].*/{ 14892 s//\1/ 14893 q 14894 } 14895 /^X\(\/\/\)$/{ 14896 s//\1/ 14897 q 14898 } 14899 /^X\(\/\).*/{ 14900 s//\1/ 14901 q 14902 } 14903 s/.*/./; q'` 14904 as_dir="$ac_dir"; as_fn_mkdir_p 14905 ac_builddir=. 14906 14907case "$ac_dir" in 14908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14909*) 14910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14911 # A ".." for each directory in $ac_dir_suffix. 14912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14913 case $ac_top_builddir_sub in 14914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14916 esac ;; 14917esac 14918ac_abs_top_builddir=$ac_pwd 14919ac_abs_builddir=$ac_pwd$ac_dir_suffix 14920# for backward compatibility: 14921ac_top_builddir=$ac_top_build_prefix 14922 14923case $srcdir in 14924 .) # We are building in place. 14925 ac_srcdir=. 14926 ac_top_srcdir=$ac_top_builddir_sub 14927 ac_abs_top_srcdir=$ac_pwd ;; 14928 [\\/]* | ?:[\\/]* ) # Absolute name. 14929 ac_srcdir=$srcdir$ac_dir_suffix; 14930 ac_top_srcdir=$srcdir 14931 ac_abs_top_srcdir=$srcdir ;; 14932 *) # Relative name. 14933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14934 ac_top_srcdir=$ac_top_build_prefix$srcdir 14935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14936esac 14937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14938 14939 14940 case $ac_mode in 14941 :F) 14942 # 14943 # CONFIG_FILE 14944 # 14945 14946 case $INSTALL in 14947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14949 esac 14950 ac_MKDIR_P=$MKDIR_P 14951 case $MKDIR_P in 14952 [\\/$]* | ?:[\\/]* ) ;; 14953 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14954 esac 14955_ACEOF 14956 14957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14958# If the template does not know about datarootdir, expand it. 14959# FIXME: This hack should be removed a few years after 2.60. 14960ac_datarootdir_hack=; ac_datarootdir_seen= 14961ac_sed_dataroot=' 14962/datarootdir/ { 14963 p 14964 q 14965} 14966/@datadir@/p 14967/@docdir@/p 14968/@infodir@/p 14969/@localedir@/p 14970/@mandir@/p' 14971case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14972*datarootdir*) ac_datarootdir_seen=yes;; 14973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14975$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14976_ACEOF 14977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14978 ac_datarootdir_hack=' 14979 s&@datadir@&$datadir&g 14980 s&@docdir@&$docdir&g 14981 s&@infodir@&$infodir&g 14982 s&@localedir@&$localedir&g 14983 s&@mandir@&$mandir&g 14984 s&\\\${datarootdir}&$datarootdir&g' ;; 14985esac 14986_ACEOF 14987 14988# Neutralize VPATH when `$srcdir' = `.'. 14989# Shell code in configure.ac might set extrasub. 14990# FIXME: do we really want to maintain this feature? 14991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14992ac_sed_extra="$ac_vpsub 14993$extrasub 14994_ACEOF 14995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14996:t 14997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14998s|@configure_input@|$ac_sed_conf_input|;t t 14999s&@top_builddir@&$ac_top_builddir_sub&;t t 15000s&@top_build_prefix@&$ac_top_build_prefix&;t t 15001s&@srcdir@&$ac_srcdir&;t t 15002s&@abs_srcdir@&$ac_abs_srcdir&;t t 15003s&@top_srcdir@&$ac_top_srcdir&;t t 15004s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15005s&@builddir@&$ac_builddir&;t t 15006s&@abs_builddir@&$ac_abs_builddir&;t t 15007s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15008s&@INSTALL@&$ac_INSTALL&;t t 15009s&@MKDIR_P@&$ac_MKDIR_P&;t t 15010$ac_datarootdir_hack 15011" 15012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15013 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15014 15015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15016 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15018 "$ac_tmp/out"`; test -z "$ac_out"; } && 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15020which seems to be undefined. Please make sure it is defined" >&5 15021$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15022which seems to be undefined. Please make sure it is defined" >&2;} 15023 15024 rm -f "$ac_tmp/stdin" 15025 case $ac_file in 15026 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15027 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15028 esac \ 15029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15030 ;; 15031 :H) 15032 # 15033 # CONFIG_HEADER 15034 # 15035 if test x"$ac_file" != x-; then 15036 { 15037 $as_echo "/* $configure_input */" \ 15038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15039 } >"$ac_tmp/config.h" \ 15040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15041 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15043$as_echo "$as_me: $ac_file is unchanged" >&6;} 15044 else 15045 rm -f "$ac_file" 15046 mv "$ac_tmp/config.h" "$ac_file" \ 15047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15048 fi 15049 else 15050 $as_echo "/* $configure_input */" \ 15051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15052 || as_fn_error $? "could not create -" "$LINENO" 5 15053 fi 15054# Compute "$ac_file"'s index in $config_headers. 15055_am_arg="$ac_file" 15056_am_stamp_count=1 15057for _am_header in $config_headers :; do 15058 case $_am_header in 15059 $_am_arg | $_am_arg:* ) 15060 break ;; 15061 * ) 15062 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15063 esac 15064done 15065echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15066$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15067 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15068 X"$_am_arg" : 'X\(//\)$' \| \ 15069 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15070$as_echo X"$_am_arg" | 15071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15072 s//\1/ 15073 q 15074 } 15075 /^X\(\/\/\)[^/].*/{ 15076 s//\1/ 15077 q 15078 } 15079 /^X\(\/\/\)$/{ 15080 s//\1/ 15081 q 15082 } 15083 /^X\(\/\).*/{ 15084 s//\1/ 15085 q 15086 } 15087 s/.*/./; q'`/stamp-h$_am_stamp_count 15088 ;; 15089 15090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15091$as_echo "$as_me: executing $ac_file commands" >&6;} 15092 ;; 15093 esac 15094 15095 15096 case $ac_file$ac_mode in 15097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15098 # Older Autoconf quotes --file arguments for eval, but not when files 15099 # are listed without --file. Let's play safe and only enable the eval 15100 # if we detect the quoting. 15101 case $CONFIG_FILES in 15102 *\'*) eval set x "$CONFIG_FILES" ;; 15103 *) set x $CONFIG_FILES ;; 15104 esac 15105 shift 15106 for mf 15107 do 15108 # Strip MF so we end up with the name of the file. 15109 mf=`echo "$mf" | sed -e 's/:.*$//'` 15110 # Check whether this is an Automake generated Makefile or not. 15111 # We used to match only the files named 'Makefile.in', but 15112 # some people rename them; so instead we look at the file content. 15113 # Grep'ing the first line is not enough: some people post-process 15114 # each Makefile.in and add a new line on top of each file to say so. 15115 # Grep'ing the whole file is not good either: AIX grep has a line 15116 # limit of 2048, but all sed's we know have understand at least 4000. 15117 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15118 dirpart=`$as_dirname -- "$mf" || 15119$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15120 X"$mf" : 'X\(//\)[^/]' \| \ 15121 X"$mf" : 'X\(//\)$' \| \ 15122 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15123$as_echo X"$mf" | 15124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15125 s//\1/ 15126 q 15127 } 15128 /^X\(\/\/\)[^/].*/{ 15129 s//\1/ 15130 q 15131 } 15132 /^X\(\/\/\)$/{ 15133 s//\1/ 15134 q 15135 } 15136 /^X\(\/\).*/{ 15137 s//\1/ 15138 q 15139 } 15140 s/.*/./; q'` 15141 else 15142 continue 15143 fi 15144 # Extract the definition of DEPDIR, am__include, and am__quote 15145 # from the Makefile without running 'make'. 15146 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15147 test -z "$DEPDIR" && continue 15148 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15149 test -z "$am__include" && continue 15150 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15151 # Find all dependency output files, they are included files with 15152 # $(DEPDIR) in their names. We invoke sed twice because it is the 15153 # simplest approach to changing $(DEPDIR) to its actual value in the 15154 # expansion. 15155 for file in `sed -n " 15156 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15157 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15158 # Make sure the directory exists. 15159 test -f "$dirpart/$file" && continue 15160 fdir=`$as_dirname -- "$file" || 15161$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15162 X"$file" : 'X\(//\)[^/]' \| \ 15163 X"$file" : 'X\(//\)$' \| \ 15164 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15165$as_echo X"$file" | 15166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15167 s//\1/ 15168 q 15169 } 15170 /^X\(\/\/\)[^/].*/{ 15171 s//\1/ 15172 q 15173 } 15174 /^X\(\/\/\)$/{ 15175 s//\1/ 15176 q 15177 } 15178 /^X\(\/\).*/{ 15179 s//\1/ 15180 q 15181 } 15182 s/.*/./; q'` 15183 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15184 # echo "creating $dirpart/$file" 15185 echo '# dummy' > "$dirpart/$file" 15186 done 15187 done 15188} 15189 ;; 15190 "libtool":C) 15191 15192 # See if we are running on zsh, and set the options which allow our 15193 # commands through without removal of \ escapes. 15194 if test -n "${ZSH_VERSION+set}" ; then 15195 setopt NO_GLOB_SUBST 15196 fi 15197 15198 cfgfile="${ofile}T" 15199 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15200 $RM "$cfgfile" 15201 15202 cat <<_LT_EOF >> "$cfgfile" 15203#! $SHELL 15204 15205# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15206# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15207# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15208# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15209# 15210# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15211# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15212# Foundation, Inc. 15213# Written by Gordon Matzigkeit, 1996 15214# 15215# This file is part of GNU Libtool. 15216# 15217# GNU Libtool is free software; you can redistribute it and/or 15218# modify it under the terms of the GNU General Public License as 15219# published by the Free Software Foundation; either version 2 of 15220# the License, or (at your option) any later version. 15221# 15222# As a special exception to the GNU General Public License, 15223# if you distribute this file as part of a program or library that 15224# is built using GNU Libtool, you may include this file under the 15225# same distribution terms that you use for the rest of that program. 15226# 15227# GNU Libtool is distributed in the hope that it will be useful, 15228# but WITHOUT ANY WARRANTY; without even the implied warranty of 15229# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15230# GNU General Public License for more details. 15231# 15232# You should have received a copy of the GNU General Public License 15233# along with GNU Libtool; see the file COPYING. If not, a copy 15234# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15235# obtained by writing to the Free Software Foundation, Inc., 15236# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15237 15238 15239# The names of the tagged configurations supported by this script. 15240available_tags="" 15241 15242# ### BEGIN LIBTOOL CONFIG 15243 15244# Which release of libtool.m4 was used? 15245macro_version=$macro_version 15246macro_revision=$macro_revision 15247 15248# Whether or not to build shared libraries. 15249build_libtool_libs=$enable_shared 15250 15251# Whether or not to build static libraries. 15252build_old_libs=$enable_static 15253 15254# What type of objects to build. 15255pic_mode=$pic_mode 15256 15257# Whether or not to optimize for fast installation. 15258fast_install=$enable_fast_install 15259 15260# Shell to use when invoking shell scripts. 15261SHELL=$lt_SHELL 15262 15263# An echo program that protects backslashes. 15264ECHO=$lt_ECHO 15265 15266# The PATH separator for the build system. 15267PATH_SEPARATOR=$lt_PATH_SEPARATOR 15268 15269# The host system. 15270host_alias=$host_alias 15271host=$host 15272host_os=$host_os 15273 15274# The build system. 15275build_alias=$build_alias 15276build=$build 15277build_os=$build_os 15278 15279# A sed program that does not truncate output. 15280SED=$lt_SED 15281 15282# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15283Xsed="\$SED -e 1s/^X//" 15284 15285# A grep program that handles long lines. 15286GREP=$lt_GREP 15287 15288# An ERE matcher. 15289EGREP=$lt_EGREP 15290 15291# A literal string matcher. 15292FGREP=$lt_FGREP 15293 15294# A BSD- or MS-compatible name lister. 15295NM=$lt_NM 15296 15297# Whether we need soft or hard links. 15298LN_S=$lt_LN_S 15299 15300# What is the maximum length of a command? 15301max_cmd_len=$max_cmd_len 15302 15303# Object file suffix (normally "o"). 15304objext=$ac_objext 15305 15306# Executable file suffix (normally ""). 15307exeext=$exeext 15308 15309# whether the shell understands "unset". 15310lt_unset=$lt_unset 15311 15312# turn spaces into newlines. 15313SP2NL=$lt_lt_SP2NL 15314 15315# turn newlines into spaces. 15316NL2SP=$lt_lt_NL2SP 15317 15318# convert \$build file names to \$host format. 15319to_host_file_cmd=$lt_cv_to_host_file_cmd 15320 15321# convert \$build files to toolchain format. 15322to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15323 15324# An object symbol dumper. 15325OBJDUMP=$lt_OBJDUMP 15326 15327# Method to check whether dependent libraries are shared objects. 15328deplibs_check_method=$lt_deplibs_check_method 15329 15330# Command to use when deplibs_check_method = "file_magic". 15331file_magic_cmd=$lt_file_magic_cmd 15332 15333# How to find potential files when deplibs_check_method = "file_magic". 15334file_magic_glob=$lt_file_magic_glob 15335 15336# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15337want_nocaseglob=$lt_want_nocaseglob 15338 15339# DLL creation program. 15340DLLTOOL=$lt_DLLTOOL 15341 15342# Command to associate shared and link libraries. 15343sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15344 15345# The archiver. 15346AR=$lt_AR 15347 15348# Flags to create an archive. 15349AR_FLAGS=$lt_AR_FLAGS 15350 15351# How to feed a file listing to the archiver. 15352archiver_list_spec=$lt_archiver_list_spec 15353 15354# A symbol stripping program. 15355STRIP=$lt_STRIP 15356 15357# Commands used to install an old-style archive. 15358RANLIB=$lt_RANLIB 15359old_postinstall_cmds=$lt_old_postinstall_cmds 15360old_postuninstall_cmds=$lt_old_postuninstall_cmds 15361 15362# Whether to use a lock for old archive extraction. 15363lock_old_archive_extraction=$lock_old_archive_extraction 15364 15365# A C compiler. 15366LTCC=$lt_CC 15367 15368# LTCC compiler flags. 15369LTCFLAGS=$lt_CFLAGS 15370 15371# Take the output of nm and produce a listing of raw symbols and C names. 15372global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15373 15374# Transform the output of nm in a proper C declaration. 15375global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15376 15377# Transform the output of nm in a C name address pair. 15378global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15379 15380# Transform the output of nm in a C name address pair when lib prefix is needed. 15381global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15382 15383# Specify filename containing input files for \$NM. 15384nm_file_list_spec=$lt_nm_file_list_spec 15385 15386# The root where to search for dependent libraries,and in which our libraries should be installed. 15387lt_sysroot=$lt_sysroot 15388 15389# The name of the directory that contains temporary libtool files. 15390objdir=$objdir 15391 15392# Used to examine libraries when file_magic_cmd begins with "file". 15393MAGIC_CMD=$MAGIC_CMD 15394 15395# Must we lock files when doing compilation? 15396need_locks=$lt_need_locks 15397 15398# Manifest tool. 15399MANIFEST_TOOL=$lt_MANIFEST_TOOL 15400 15401# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15402DSYMUTIL=$lt_DSYMUTIL 15403 15404# Tool to change global to local symbols on Mac OS X. 15405NMEDIT=$lt_NMEDIT 15406 15407# Tool to manipulate fat objects and archives on Mac OS X. 15408LIPO=$lt_LIPO 15409 15410# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15411OTOOL=$lt_OTOOL 15412 15413# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15414OTOOL64=$lt_OTOOL64 15415 15416# Old archive suffix (normally "a"). 15417libext=$libext 15418 15419# Shared library suffix (normally ".so"). 15420shrext_cmds=$lt_shrext_cmds 15421 15422# The commands to extract the exported symbol list from a shared archive. 15423extract_expsyms_cmds=$lt_extract_expsyms_cmds 15424 15425# Variables whose values should be saved in libtool wrapper scripts and 15426# restored at link time. 15427variables_saved_for_relink=$lt_variables_saved_for_relink 15428 15429# Do we need the "lib" prefix for modules? 15430need_lib_prefix=$need_lib_prefix 15431 15432# Do we need a version for libraries? 15433need_version=$need_version 15434 15435# Library versioning type. 15436version_type=$version_type 15437 15438# Shared library runtime path variable. 15439runpath_var=$runpath_var 15440 15441# Shared library path variable. 15442shlibpath_var=$shlibpath_var 15443 15444# Is shlibpath searched before the hard-coded library search path? 15445shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15446 15447# Format of library name prefix. 15448libname_spec=$lt_libname_spec 15449 15450# List of archive names. First name is the real one, the rest are links. 15451# The last name is the one that the linker finds with -lNAME 15452library_names_spec=$lt_library_names_spec 15453 15454# The coded name of the library, if different from the real name. 15455soname_spec=$lt_soname_spec 15456 15457# Permission mode override for installation of shared libraries. 15458install_override_mode=$lt_install_override_mode 15459 15460# Command to use after installation of a shared archive. 15461postinstall_cmds=$lt_postinstall_cmds 15462 15463# Command to use after uninstallation of a shared archive. 15464postuninstall_cmds=$lt_postuninstall_cmds 15465 15466# Commands used to finish a libtool library installation in a directory. 15467finish_cmds=$lt_finish_cmds 15468 15469# As "finish_cmds", except a single script fragment to be evaled but 15470# not shown. 15471finish_eval=$lt_finish_eval 15472 15473# Whether we should hardcode library paths into libraries. 15474hardcode_into_libs=$hardcode_into_libs 15475 15476# Compile-time system search path for libraries. 15477sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15478 15479# Run-time system search path for libraries. 15480sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15481 15482# Whether dlopen is supported. 15483dlopen_support=$enable_dlopen 15484 15485# Whether dlopen of programs is supported. 15486dlopen_self=$enable_dlopen_self 15487 15488# Whether dlopen of statically linked programs is supported. 15489dlopen_self_static=$enable_dlopen_self_static 15490 15491# Commands to strip libraries. 15492old_striplib=$lt_old_striplib 15493striplib=$lt_striplib 15494 15495 15496# The linker used to build libraries. 15497LD=$lt_LD 15498 15499# How to create reloadable object files. 15500reload_flag=$lt_reload_flag 15501reload_cmds=$lt_reload_cmds 15502 15503# Commands used to build an old-style archive. 15504old_archive_cmds=$lt_old_archive_cmds 15505 15506# A language specific compiler. 15507CC=$lt_compiler 15508 15509# Is the compiler the GNU compiler? 15510with_gcc=$GCC 15511 15512# Compiler flag to turn off builtin functions. 15513no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15514 15515# Additional compiler flags for building library objects. 15516pic_flag=$lt_lt_prog_compiler_pic 15517 15518# How to pass a linker flag through the compiler. 15519wl=$lt_lt_prog_compiler_wl 15520 15521# Compiler flag to prevent dynamic linking. 15522link_static_flag=$lt_lt_prog_compiler_static 15523 15524# Does compiler simultaneously support -c and -o options? 15525compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15526 15527# Whether or not to add -lc for building shared libraries. 15528build_libtool_need_lc=$archive_cmds_need_lc 15529 15530# Whether or not to disallow shared libs when runtime libs are static. 15531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15532 15533# Compiler flag to allow reflexive dlopens. 15534export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15535 15536# Compiler flag to generate shared objects directly from archives. 15537whole_archive_flag_spec=$lt_whole_archive_flag_spec 15538 15539# Whether the compiler copes with passing no objects directly. 15540compiler_needs_object=$lt_compiler_needs_object 15541 15542# Create an old-style archive from a shared archive. 15543old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15544 15545# Create a temporary old-style archive to link instead of a shared archive. 15546old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15547 15548# Commands used to build a shared archive. 15549archive_cmds=$lt_archive_cmds 15550archive_expsym_cmds=$lt_archive_expsym_cmds 15551 15552# Commands used to build a loadable module if different from building 15553# a shared archive. 15554module_cmds=$lt_module_cmds 15555module_expsym_cmds=$lt_module_expsym_cmds 15556 15557# Whether we are building with GNU ld or not. 15558with_gnu_ld=$lt_with_gnu_ld 15559 15560# Flag that allows shared libraries with undefined symbols to be built. 15561allow_undefined_flag=$lt_allow_undefined_flag 15562 15563# Flag that enforces no undefined symbols. 15564no_undefined_flag=$lt_no_undefined_flag 15565 15566# Flag to hardcode \$libdir into a binary during linking. 15567# This must work even if \$libdir does not exist 15568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15569 15570# Whether we need a single "-rpath" flag with a separated argument. 15571hardcode_libdir_separator=$lt_hardcode_libdir_separator 15572 15573# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15574# DIR into the resulting binary. 15575hardcode_direct=$hardcode_direct 15576 15577# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15578# DIR into the resulting binary and the resulting library dependency is 15579# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15580# library is relocated. 15581hardcode_direct_absolute=$hardcode_direct_absolute 15582 15583# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15584# into the resulting binary. 15585hardcode_minus_L=$hardcode_minus_L 15586 15587# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15588# into the resulting binary. 15589hardcode_shlibpath_var=$hardcode_shlibpath_var 15590 15591# Set to "yes" if building a shared library automatically hardcodes DIR 15592# into the library and all subsequent libraries and executables linked 15593# against it. 15594hardcode_automatic=$hardcode_automatic 15595 15596# Set to yes if linker adds runtime paths of dependent libraries 15597# to runtime path list. 15598inherit_rpath=$inherit_rpath 15599 15600# Whether libtool must link a program against all its dependency libraries. 15601link_all_deplibs=$link_all_deplibs 15602 15603# Set to "yes" if exported symbols are required. 15604always_export_symbols=$always_export_symbols 15605 15606# The commands to list exported symbols. 15607export_symbols_cmds=$lt_export_symbols_cmds 15608 15609# Symbols that should not be listed in the preloaded symbols. 15610exclude_expsyms=$lt_exclude_expsyms 15611 15612# Symbols that must always be exported. 15613include_expsyms=$lt_include_expsyms 15614 15615# Commands necessary for linking programs (against libraries) with templates. 15616prelink_cmds=$lt_prelink_cmds 15617 15618# Commands necessary for finishing linking programs. 15619postlink_cmds=$lt_postlink_cmds 15620 15621# Specify filename containing input files. 15622file_list_spec=$lt_file_list_spec 15623 15624# How to hardcode a shared library path into an executable. 15625hardcode_action=$hardcode_action 15626 15627# ### END LIBTOOL CONFIG 15628 15629_LT_EOF 15630 15631 case $host_os in 15632 aix3*) 15633 cat <<\_LT_EOF >> "$cfgfile" 15634# AIX sometimes has problems with the GCC collect2 program. For some 15635# reason, if we set the COLLECT_NAMES environment variable, the problems 15636# vanish in a puff of smoke. 15637if test "X${COLLECT_NAMES+set}" != Xset; then 15638 COLLECT_NAMES= 15639 export COLLECT_NAMES 15640fi 15641_LT_EOF 15642 ;; 15643 esac 15644 15645 15646ltmain="$ac_aux_dir/ltmain.sh" 15647 15648 15649 # We use sed instead of cat because bash on DJGPP gets confused if 15650 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15651 # text mode, it properly converts lines to CR/LF. This bash problem 15652 # is reportedly fixed, but why not run on old versions too? 15653 sed '$q' "$ltmain" >> "$cfgfile" \ 15654 || (rm -f "$cfgfile"; exit 1) 15655 15656 if test x"$xsi_shell" = xyes; then 15657 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15658func_dirname ()\ 15659{\ 15660\ case ${1} in\ 15661\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15662\ * ) func_dirname_result="${3}" ;;\ 15663\ esac\ 15664} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15665 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15667test 0 -eq $? || _lt_function_replace_fail=: 15668 15669 15670 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15671func_basename ()\ 15672{\ 15673\ func_basename_result="${1##*/}"\ 15674} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15675 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15677test 0 -eq $? || _lt_function_replace_fail=: 15678 15679 15680 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15681func_dirname_and_basename ()\ 15682{\ 15683\ case ${1} in\ 15684\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15685\ * ) func_dirname_result="${3}" ;;\ 15686\ esac\ 15687\ func_basename_result="${1##*/}"\ 15688} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15689 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15691test 0 -eq $? || _lt_function_replace_fail=: 15692 15693 15694 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15695func_stripname ()\ 15696{\ 15697\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15698\ # positional parameters, so assign one to ordinary parameter first.\ 15699\ func_stripname_result=${3}\ 15700\ func_stripname_result=${func_stripname_result#"${1}"}\ 15701\ func_stripname_result=${func_stripname_result%"${2}"}\ 15702} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15703 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15705test 0 -eq $? || _lt_function_replace_fail=: 15706 15707 15708 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15709func_split_long_opt ()\ 15710{\ 15711\ func_split_long_opt_name=${1%%=*}\ 15712\ func_split_long_opt_arg=${1#*=}\ 15713} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15714 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15716test 0 -eq $? || _lt_function_replace_fail=: 15717 15718 15719 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15720func_split_short_opt ()\ 15721{\ 15722\ func_split_short_opt_arg=${1#??}\ 15723\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15724} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15725 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15727test 0 -eq $? || _lt_function_replace_fail=: 15728 15729 15730 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15731func_lo2o ()\ 15732{\ 15733\ case ${1} in\ 15734\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15735\ *) func_lo2o_result=${1} ;;\ 15736\ esac\ 15737} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15738 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15740test 0 -eq $? || _lt_function_replace_fail=: 15741 15742 15743 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15744func_xform ()\ 15745{\ 15746 func_xform_result=${1%.*}.lo\ 15747} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15748 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15750test 0 -eq $? || _lt_function_replace_fail=: 15751 15752 15753 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15754func_arith ()\ 15755{\ 15756 func_arith_result=$(( $* ))\ 15757} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15758 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15760test 0 -eq $? || _lt_function_replace_fail=: 15761 15762 15763 sed -e '/^func_len ()$/,/^} # func_len /c\ 15764func_len ()\ 15765{\ 15766 func_len_result=${#1}\ 15767} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15768 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15770test 0 -eq $? || _lt_function_replace_fail=: 15771 15772fi 15773 15774if test x"$lt_shell_append" = xyes; then 15775 sed -e '/^func_append ()$/,/^} # func_append /c\ 15776func_append ()\ 15777{\ 15778 eval "${1}+=\\${2}"\ 15779} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15780 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15782test 0 -eq $? || _lt_function_replace_fail=: 15783 15784 15785 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15786func_append_quoted ()\ 15787{\ 15788\ func_quote_for_eval "${2}"\ 15789\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15790} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15791 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15793test 0 -eq $? || _lt_function_replace_fail=: 15794 15795 15796 # Save a `func_append' function call where possible by direct use of '+=' 15797 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15798 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15800 test 0 -eq $? || _lt_function_replace_fail=: 15801else 15802 # Save a `func_append' function call even when '+=' is not available 15803 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15804 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15806 test 0 -eq $? || _lt_function_replace_fail=: 15807fi 15808 15809if test x"$_lt_function_replace_fail" = x":"; then 15810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15811$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15812fi 15813 15814 15815 mv -f "$cfgfile" "$ofile" || 15816 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15817 chmod +x "$ofile" 15818 15819 ;; 15820 15821 esac 15822done # for ac_tag 15823 15824 15825as_fn_exit 0 15826_ACEOF 15827ac_clean_files=$ac_clean_files_save 15828 15829test $ac_write_fail = 0 || 15830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15831 15832 15833# configure is writing to config.log, and then calls config.status. 15834# config.status does its own redirection, appending to config.log. 15835# Unfortunately, on DOS this fails, as config.log is still kept open 15836# by configure, so config.status won't be able to write to it; its 15837# output is simply discarded. So we exec the FD to /dev/null, 15838# effectively closing config.log, so it can be properly (re)opened and 15839# appended to by config.status. When coming back to configure, we 15840# need to make the FD available again. 15841if test "$no_create" != yes; then 15842 ac_cs_success=: 15843 ac_config_status_args= 15844 test "$silent" = yes && 15845 ac_config_status_args="$ac_config_status_args --quiet" 15846 exec 5>/dev/null 15847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15848 exec 5>>config.log 15849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15850 # would make configure fail if this is the last instruction. 15851 $ac_cs_success || as_fn_exit 1 15852fi 15853if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15855$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15856fi 15857 15858