1#! /bin/sh 2# From configure.ac Revision: 1.15 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69. 5# 6# 7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12# 13# Guido Draheim <guido@gmx.de> for ZZipLib.SF.net 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 210test \$(( 1 + 1 )) = 2 || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME= 592PACKAGE_TARNAME= 593PACKAGE_VERSION= 594PACKAGE_STRING= 595PACKAGE_BUGREPORT= 596PACKAGE_URL= 597 598ac_unique_file="zziplib.spec" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639CONFIG_FILES 640aclocaldir 641pkgconfigdir 642RESOLVES 643ZZIPLIB_LDFLAGS 644ZIPTESTS 645ASAN_CFLAGS 646ASAN_LIBS 647SDL_GENERATE 648SDL 649PKG_CONFIG_LIBDIR 650PKG_CONFIG_PATH 651PKG_CONFIG 652ZLIB_VERSION 653LARGEFILE_CFLAGS 654XMLTO 655MKZIP 656PYTHON 657PERL 658PAX_TAR_EXTRACT 659PAX_TAR_CREATE 660TAR 661GTAR 662GNUTAR 663PAX 664pkgconfig_libfile 665pkgconfig_libdir 666MAINT 667MAINTAINER_MODE_FALSE 668MAINTAINER_MODE_TRUE 669VERSION_INFO 670RELEASE_INFO 671CPP 672LT_SYS_LIBRARY_PATH 673OTOOL64 674OTOOL 675LIPO 676NMEDIT 677DSYMUTIL 678MANIFEST_TOOL 679RANLIB 680ac_ct_AR 681AR 682LN_S 683NM 684ac_ct_DUMPBIN 685DUMPBIN 686LD 687FGREP 688EGREP 689GREP 690SED 691LIBTOOL 692OBJDUMP 693DLLTOOL 694AS 695am__fastdepCC_FALSE 696am__fastdepCC_TRUE 697CCDEPMODE 698am__nodep 699AMDEPBACKSLASH 700AMDEP_FALSE 701AMDEP_TRUE 702am__quote 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712AM_BACKSLASH 713AM_DEFAULT_VERBOSITY 714AM_DEFAULT_V 715AM_V 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739ZLIB_LDIR 740ZLIB_INCL 741THREAD_SAFE 742target_os 743target_vendor 744target_cpu 745target 746host_os 747host_vendor 748host_cpu 749host 750build_os 751build_vendor 752build_cpu 753build 754target_alias 755host_alias 756build_alias 757LIBS 758ECHO_T 759ECHO_N 760ECHO_C 761DEFS 762mandir 763localedir 764libdir 765psdir 766pdfdir 767dvidir 768htmldir 769infodir 770docdir 771oldincludedir 772includedir 773localstatedir 774sharedstatedir 775sysconfdir 776datadir 777datarootdir 778libexecdir 779sbindir 780bindir 781program_transform_name 782prefix 783exec_prefix 784PACKAGE_URL 785PACKAGE_BUGREPORT 786PACKAGE_STRING 787PACKAGE_VERSION 788PACKAGE_TARNAME 789PACKAGE_NAME 790PATH_SEPARATOR 791SHELL' 792ac_subst_files='' 793ac_user_opts=' 794enable_option_checking 795enable_thread_safe 796with_zlib 797enable_silent_rules 798enable_debug 799enable_dependency_tracking 800enable_shared 801enable_static 802with_pic 803enable_fast_install 804with_aix_soname 805with_gnu_ld 806with_sysroot 807enable_libtool_lock 808enable_maintainer_mode 809enable_largefile 810with_largefile 811with_docdir 812with_debug 813with_lowstk 814enable_mmap 815enable_sdl 816with_asan 817with_defines 818enable_frame_pointer 819enable_enable_default_pkgconfigdir 820enable_enable_default_aclocaldir 821' 822 ac_precious_vars='build_alias 823host_alias 824target_alias 825CC 826CFLAGS 827LDFLAGS 828LIBS 829CPPFLAGS 830LT_SYS_LIBRARY_PATH 831CPP 832PKG_CONFIG 833PKG_CONFIG_PATH 834PKG_CONFIG_LIBDIR' 835 836 837# Initialize some variables set by options. 838ac_init_help= 839ac_init_version=false 840ac_unrecognized_opts= 841ac_unrecognized_sep= 842# The variables have the same names as the options, with 843# dashes changed to underlines. 844cache_file=/dev/null 845exec_prefix=NONE 846no_create= 847no_recursion= 848prefix=NONE 849program_prefix=NONE 850program_suffix=NONE 851program_transform_name=s,x,x, 852silent= 853site= 854srcdir= 855verbose= 856x_includes=NONE 857x_libraries=NONE 858 859# Installation directory options. 860# These are left unexpanded so users can "make install exec_prefix=/foo" 861# and all the variables that are supposed to be based on exec_prefix 862# by default will actually change. 863# Use braces instead of parens because sh, perl, etc. also accept them. 864# (The list follows the same order as the GNU Coding Standards.) 865bindir='${exec_prefix}/bin' 866sbindir='${exec_prefix}/sbin' 867libexecdir='${exec_prefix}/libexec' 868datarootdir='${prefix}/share' 869datadir='${datarootdir}' 870sysconfdir='${prefix}/etc' 871sharedstatedir='${prefix}/com' 872localstatedir='${prefix}/var' 873includedir='${prefix}/include' 874oldincludedir='/usr/include' 875docdir='${datarootdir}/doc/${PACKAGE}' 876infodir='${datarootdir}/info' 877htmldir='${docdir}' 878dvidir='${docdir}' 879pdfdir='${docdir}' 880psdir='${docdir}' 881libdir='${exec_prefix}/lib' 882localedir='${datarootdir}/locale' 883mandir='${datarootdir}/man' 884 885ac_prev= 886ac_dashdash= 887for ac_option 888do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1126 ac_prev=sbindir ;; 1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1128 | --sbi=* | --sb=*) 1129 sbindir=$ac_optarg ;; 1130 1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1133 | --sharedst | --shareds | --shared | --share | --shar \ 1134 | --sha | --sh) 1135 ac_prev=sharedstatedir ;; 1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1139 | --sha=* | --sh=*) 1140 sharedstatedir=$ac_optarg ;; 1141 1142 -site | --site | --sit) 1143 ac_prev=site ;; 1144 -site=* | --site=* | --sit=*) 1145 site=$ac_optarg ;; 1146 1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1148 ac_prev=srcdir ;; 1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1150 srcdir=$ac_optarg ;; 1151 1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1153 | --syscon | --sysco | --sysc | --sys | --sy) 1154 ac_prev=sysconfdir ;; 1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1157 sysconfdir=$ac_optarg ;; 1158 1159 -target | --target | --targe | --targ | --tar | --ta | --t) 1160 ac_prev=target_alias ;; 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1162 target_alias=$ac_optarg ;; 1163 1164 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1165 verbose=yes ;; 1166 1167 -version | --version | --versio | --versi | --vers | -V) 1168 ac_init_version=: ;; 1169 1170 -with-* | --with-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=\$ac_optarg ;; 1185 1186 -without-* | --without-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=no ;; 1201 1202 --x) 1203 # Obsolete; use --with-x. 1204 with_x=yes ;; 1205 1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1207 | --x-incl | --x-inc | --x-in | --x-i) 1208 ac_prev=x_includes ;; 1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1211 x_includes=$ac_optarg ;; 1212 1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1215 ac_prev=x_libraries ;; 1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1218 x_libraries=$ac_optarg ;; 1219 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1221Try \`$0 --help' for more information" 1222 ;; 1223 1224 *=*) 1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1226 # Reject names that are not valid shell variable names. 1227 case $ac_envvar in #( 1228 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1230 esac 1231 eval $ac_envvar=\$ac_optarg 1232 export $ac_envvar ;; 1233 1234 *) 1235 # FIXME: should be removed in autoconf 3.0. 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1240 ;; 1241 1242 esac 1243done 1244 1245if test -n "$ac_prev"; then 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1247 as_fn_error $? "missing argument to $ac_option" 1248fi 1249 1250if test -n "$ac_unrecognized_opts"; then 1251 case $enable_option_checking in 1252 no) ;; 1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1255 esac 1256fi 1257 1258# Check all directory arguments for consistency. 1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1260 datadir sysconfdir sharedstatedir localstatedir includedir \ 1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1262 libdir localedir mandir 1263do 1264 eval ac_val=\$$ac_var 1265 # Remove trailing slashes. 1266 case $ac_val in 1267 */ ) 1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1269 eval $ac_var=\$ac_val;; 1270 esac 1271 # Be sure to have absolute directory names. 1272 case $ac_val in 1273 [\\/$]* | ?:[\\/]* ) continue;; 1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1275 esac 1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1277done 1278 1279# There might be people who depend on the old broken behavior: `$host' 1280# used to hold the argument of --host etc. 1281# FIXME: To remove some day. 1282build=$build_alias 1283host=$host_alias 1284target=$target_alias 1285 1286# FIXME: To remove some day. 1287if test "x$host_alias" != x; then 1288 if test "x$build_alias" = x; then 1289 cross_compiling=maybe 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293fi 1294 1295ac_tool_prefix= 1296test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298test "$silent" = yes && exec 6>/dev/null 1299 1300 1301ac_pwd=`pwd` && test -n "$ac_pwd" && 1302ac_ls_di=`ls -di .` && 1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 as_fn_error $? "working directory cannot be determined" 1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1306 as_fn_error $? "pwd does not report name of working directory" 1307 1308 1309# Find the source files, if location was not specified. 1310if test -z "$srcdir"; then 1311 ac_srcdir_defaulted=yes 1312 # Try the directory containing this script, then the parent directory. 1313 ac_confdir=`$as_dirname -- "$as_myself" || 1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1315 X"$as_myself" : 'X\(//\)[^/]' \| \ 1316 X"$as_myself" : 'X\(//\)$' \| \ 1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1318$as_echo X"$as_myself" | 1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)[^/].*/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\).*/{ 1332 s//\1/ 1333 q 1334 } 1335 s/.*/./; q'` 1336 srcdir=$ac_confdir 1337 if test ! -r "$srcdir/$ac_unique_file"; then 1338 srcdir=.. 1339 fi 1340else 1341 ac_srcdir_defaulted=no 1342fi 1343if test ! -r "$srcdir/$ac_unique_file"; then 1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1346fi 1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1348ac_abs_confdir=`( 1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1350 pwd)` 1351# When building in place, set srcdir=. 1352if test "$ac_abs_confdir" = "$ac_pwd"; then 1353 srcdir=. 1354fi 1355# Remove unnecessary trailing slashes from srcdir. 1356# Double slashes in file names in object file debugging info 1357# mess up M-x gdb in Emacs. 1358case $srcdir in 1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1360esac 1361for ac_var in $ac_precious_vars; do 1362 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_env_${ac_var}_value=\$${ac_var} 1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1366done 1367 1368# 1369# Report the --help message. 1370# 1371if test "$ac_init_help" = "long"; then 1372 # Omit some internal or obsolete options to make the list less imposing. 1373 # This message is too long to be a string in the A/UX 3.1 sh. 1374 cat <<_ACEOF 1375\`configure' configures this package to adapt to many kinds of systems. 1376 1377Usage: $0 [OPTION]... [VAR=VALUE]... 1378 1379To assign environment variables (e.g., CC, CFLAGS...), specify them as 1380VAR=VALUE. See below for descriptions of some of the useful variables. 1381 1382Defaults for the options are specified in brackets. 1383 1384Configuration: 1385 -h, --help display this help and exit 1386 --help=short display options specific to this package 1387 --help=recursive display the short help of all the included packages 1388 -V, --version display version information and exit 1389 -q, --quiet, --silent do not print \`checking ...' messages 1390 --cache-file=FILE cache test results in FILE [disabled] 1391 -C, --config-cache alias for \`--cache-file=config.cache' 1392 -n, --no-create do not create output files 1393 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1394 1395Installation directories: 1396 --prefix=PREFIX install architecture-independent files in PREFIX 1397 [$ac_default_prefix] 1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1399 [PREFIX] 1400 1401By default, \`make install' will install all the files in 1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1403an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1404for instance \`--prefix=\$HOME'. 1405 1406For better control, use the options below. 1407 1408Fine tuning of the installation directories: 1409 --bindir=DIR user executables [EPREFIX/bin] 1410 --sbindir=DIR system admin executables [EPREFIX/sbin] 1411 --libexecdir=DIR program executables [EPREFIX/libexec] 1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1415 --libdir=DIR object code libraries [EPREFIX/lib] 1416 --includedir=DIR C header files [PREFIX/include] 1417 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1420 --infodir=DIR info documentation [DATAROOTDIR/info] 1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1422 --mandir=DIR man documentation [DATAROOTDIR/man] 1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428_ACEOF 1429 1430 cat <<\_ACEOF 1431 1432Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440 --target=TARGET configure for building compilers for TARGET [HOST] 1441_ACEOF 1442fi 1443 1444if test -n "$ac_init_help"; then 1445 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --disable-thread-safe disable thread-safe libtool option 1453 1454 --enable-silent-rules less verbose build output (undo: "make V=1") 1455 --disable-silent-rules verbose build output (undo: "make V=0") 1456 --enable-debug=[yes/info/profile/no] 1457 compile with debugging 1458 --enable-dependency-tracking 1459 do not reject slow dependency extractors 1460 --disable-dependency-tracking 1461 speeds up one-time build 1462 --enable-shared[=PKGS] build shared libraries [default=yes] 1463 --enable-static[=PKGS] build static libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --enable-maintainer-mode 1468 enable make rules and dependencies not useful (and 1469 sometimes confusing) to the casual installer 1470 --disable-largefile omit support for large files 1471 --disable-mmap disable mmap usage 1472 1473 --enable-sdl enable SDL usage (if present) 1474 1475 --enable-frame-pointer enable callframe generation for debugging 1476 --enable-default-pkgconfigdir(=PATH) override the libdir/pkgconfig default 1477 --enable-default-aclocaldir(=PATH) override the datadir/aclocal default 1478 1479Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-zlib zlib prefix (e.g. '$HOME/software') 1483 1484 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1485 both] 1486 --with-aix-soname=aix|svr4|both 1487 shared library versioning (aka "SONAME") variant to 1488 provide on AIX, [default=aix]. 1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1490 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1491 compiler's sysroot if not specified). 1492 --with-largefile compile as off64_t instead of 32bit off_t 1493 1494 --with-docdir docdir prefix (prefix/share/doc) 1495 1496 --with-debug debug messages in library 1497 1498 --with-lowstk limited thread stack 1499 1500 --with-asan compile with adress sanitizer 1501 1502 --with-defines easy,harden,allow_modulo_entries 1503 1504Some influential environment variables: 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1508 nonstandard directory <lib dir> 1509 LIBS libraries to pass to the linker, e.g. -l<library> 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1511 you have headers in a nonstandard directory <include dir> 1512 LT_SYS_LIBRARY_PATH 1513 User-defined run-time library search path. 1514 CPP C preprocessor 1515 PKG_CONFIG path to pkg-config utility 1516 PKG_CONFIG_PATH 1517 directories to add to pkg-config's search path 1518 PKG_CONFIG_LIBDIR 1519 path overriding pkg-config's built-in search path 1520 1521Use these variables to override the choices made by `configure' or to help 1522it to find libraries and programs with nonstandard names/locations. 1523 1524Report bugs to the package provider. 1525_ACEOF 1526ac_status=$? 1527fi 1528 1529if test "$ac_init_help" = "recursive"; then 1530 # If there are subdirs, report their specific --help. 1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1532 test -d "$ac_dir" || 1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1534 continue 1535 ac_builddir=. 1536 1537case "$ac_dir" in 1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539*) 1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547esac 1548ac_abs_top_builddir=$ac_pwd 1549ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550# for backward compatibility: 1551ac_top_builddir=$ac_top_build_prefix 1552 1553case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566esac 1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for guested configure. 1571 if test -f "$ac_srcdir/configure.gnu"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1574 elif test -f "$ac_srcdir/configure"; then 1575 echo && 1576 $SHELL "$ac_srcdir/configure" --help=recursive 1577 else 1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1579 fi || ac_status=$? 1580 cd "$ac_pwd" || { ac_status=$?; break; } 1581 done 1582fi 1583 1584test -n "$ac_init_help" && exit $ac_status 1585if $ac_init_version; then 1586 cat <<\_ACEOF 1587configure 1588generated by GNU Autoconf 2.69 1589 1590Copyright (C) 2012 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593 1594Guido Draheim <guido@gmx.de> for ZZipLib.SF.net 1595_ACEOF 1596 exit 1597fi 1598 1599## ------------------------ ## 1600## Autoconf initialization. ## 1601## ------------------------ ## 1602 1603# ac_fn_c_try_compile LINENO 1604# -------------------------- 1605# Try to compile conftest.$ac_ext, and return whether this succeeded. 1606ac_fn_c_try_compile () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 rm -f conftest.$ac_objext 1610 if { { ac_try="$ac_compile" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_compile") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } && { 1626 test -z "$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 } && test -s conftest.$ac_objext; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_compile 1640 1641# ac_fn_c_try_link LINENO 1642# ----------------------- 1643# Try to link conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_link () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext conftest$ac_exeext 1648 if { { ac_try="$ac_link" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest$ac_exeext && { 1667 test "$cross_compiling" = yes || 1668 test -x conftest$ac_exeext 1669 }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1679 # interfere with the next link command; also delete a directory that is 1680 # left behind by Apple's compiler. We do this before executing the actions. 1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685} # ac_fn_c_try_link 1686 1687# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1688# ------------------------------------------------------- 1689# Tests whether HEADER exists and can be compiled using the include files in 1690# INCLUDES, setting the cache variable VAR accordingly. 1691ac_fn_c_check_header_compile () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1695$as_echo_n "checking for $2... " >&6; } 1696if eval \${$3+:} false; then : 1697 $as_echo_n "(cached) " >&6 1698else 1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1700/* end confdefs.h. */ 1701$4 1702#include <$2> 1703_ACEOF 1704if ac_fn_c_try_compile "$LINENO"; then : 1705 eval "$3=yes" 1706else 1707 eval "$3=no" 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1710fi 1711eval ac_res=\$$3 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1713$as_echo "$ac_res" >&6; } 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} # ac_fn_c_check_header_compile 1717 1718# ac_fn_c_try_cpp LINENO 1719# ---------------------- 1720# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_cpp () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 if { { ac_try="$ac_cpp conftest.$ac_ext" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } > conftest.i && { 1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749fi 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_cpp 1754 1755# ac_fn_c_try_run LINENO 1756# ---------------------- 1757# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1758# that executables *can* be run. 1759ac_fn_c_try_run () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if { { ac_try="$ac_link" 1763case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_link") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1773 { { case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_try") 2>&5 1780 ac_status=$? 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; }; }; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: program exited with status $ac_status" >&5 1786 $as_echo "$as_me: failed program was:" >&5 1787sed 's/^/| /' conftest.$ac_ext >&5 1788 1789 ac_retval=$ac_status 1790fi 1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795} # ac_fn_c_try_run 1796 1797# ac_fn_c_check_func LINENO FUNC VAR 1798# ---------------------------------- 1799# Tests whether FUNC exists, setting the cache variable VAR accordingly 1800ac_fn_c_check_func () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807else 1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1812#define $2 innocuous_$2 1813 1814/* System header to define __stub macros and hopefully few prototypes, 1815 which can conflict with char $2 (); below. 1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1817 <limits.h> exists even on freestanding compilers. */ 1818 1819#ifdef __STDC__ 1820# include <limits.h> 1821#else 1822# include <assert.h> 1823#endif 1824 1825#undef $2 1826 1827/* Override any GCC internal prototype to avoid an error. 1828 Use char because int might match the return type of a GCC 1829 builtin and then its argument prototype would still apply. */ 1830#ifdef __cplusplus 1831extern "C" 1832#endif 1833char $2 (); 1834/* The GNU C library defines this for functions which it implements 1835 to always fail with ENOSYS. Some functions are actually named 1836 something starting with __ and the normal name is an alias. */ 1837#if defined __stub_$2 || defined __stub___$2 1838choke me 1839#endif 1840 1841int 1842main () 1843{ 1844return $2 (); 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849if ac_fn_c_try_link "$LINENO"; then : 1850 eval "$3=yes" 1851else 1852 eval "$3=no" 1853fi 1854rm -f core conftest.err conftest.$ac_objext \ 1855 conftest$ac_exeext conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_func 1863 1864# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1865# ------------------------------------------------------- 1866# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1867# the include files in INCLUDES and setting the cache variable VAR 1868# accordingly. 1869ac_fn_c_check_header_mongrel () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 if eval \${$3+:} false; then : 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval \${$3+:} false; then : 1876 $as_echo_n "(cached) " >&6 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881else 1882 # Is the header compilable? 1883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1884$as_echo_n "checking $2 usability... " >&6; } 1885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887$4 1888#include <$2> 1889_ACEOF 1890if ac_fn_c_try_compile "$LINENO"; then : 1891 ac_header_compiler=yes 1892else 1893 ac_header_compiler=no 1894fi 1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1897$as_echo "$ac_header_compiler" >&6; } 1898 1899# Is the header present? 1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1901$as_echo_n "checking $2 presence... " >&6; } 1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904#include <$2> 1905_ACEOF 1906if ac_fn_c_try_cpp "$LINENO"; then : 1907 ac_header_preproc=yes 1908else 1909 ac_header_preproc=no 1910fi 1911rm -f conftest.err conftest.i conftest.$ac_ext 1912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1913$as_echo "$ac_header_preproc" >&6; } 1914 1915# So? What about this header? 1916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1917 yes:no: ) 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1919$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1921$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1922 ;; 1923 no:yes:* ) 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1925$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1927$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1929$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1931$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1933$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1934 ;; 1935esac 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937$as_echo_n "checking for $2... " >&6; } 1938if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940else 1941 eval "$3=\$ac_header_compiler" 1942fi 1943eval ac_res=\$$3 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1945$as_echo "$ac_res" >&6; } 1946fi 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1948 1949} # ac_fn_c_check_header_mongrel 1950 1951# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1952# ------------------------------------------- 1953# Tests whether TYPE exists after having included INCLUDES, setting cache 1954# variable VAR accordingly. 1955ac_fn_c_check_type () 1956{ 1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1959$as_echo_n "checking for $2... " >&6; } 1960if eval \${$3+:} false; then : 1961 $as_echo_n "(cached) " >&6 1962else 1963 eval "$3=no" 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966$4 1967int 1968main () 1969{ 1970if (sizeof ($2)) 1971 return 0; 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_compile "$LINENO"; then : 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978/* end confdefs.h. */ 1979$4 1980int 1981main () 1982{ 1983if (sizeof (($2))) 1984 return 0; 1985 ; 1986 return 0; 1987} 1988_ACEOF 1989if ac_fn_c_try_compile "$LINENO"; then : 1990 1991else 1992 eval "$3=yes" 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995fi 1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1997fi 1998eval ac_res=\$$3 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2000$as_echo "$ac_res" >&6; } 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2002 2003} # ac_fn_c_check_type 2004cat >config.log <<_ACEOF 2005This file contains any messages produced by compilers while 2006running configure, to aid debugging if configure makes a mistake. 2007 2008It was created by $as_me, which was 2009generated by GNU Autoconf 2.69. Invocation command line was 2010 2011 $ $0 $@ 2012 2013_ACEOF 2014exec 5>>config.log 2015{ 2016cat <<_ASUNAME 2017## --------- ## 2018## Platform. ## 2019## --------- ## 2020 2021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2022uname -m = `(uname -m) 2>/dev/null || echo unknown` 2023uname -r = `(uname -r) 2>/dev/null || echo unknown` 2024uname -s = `(uname -s) 2>/dev/null || echo unknown` 2025uname -v = `(uname -v) 2>/dev/null || echo unknown` 2026 2027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2028/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2029 2030/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2031/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2033/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2034/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2035/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2036/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2037 2038_ASUNAME 2039 2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2041for as_dir in $PATH 2042do 2043 IFS=$as_save_IFS 2044 test -z "$as_dir" && as_dir=. 2045 $as_echo "PATH: $as_dir" 2046 done 2047IFS=$as_save_IFS 2048 2049} >&5 2050 2051cat >&5 <<_ACEOF 2052 2053 2054## ----------- ## 2055## Core tests. ## 2056## ----------- ## 2057 2058_ACEOF 2059 2060 2061# Keep a trace of the command line. 2062# Strip out --no-create and --no-recursion so they do not pile up. 2063# Strip out --silent because we don't want to record it for future runs. 2064# Also quote any args containing shell meta-characters. 2065# Make two passes to allow for proper duplicate-argument suppression. 2066ac_configure_args= 2067ac_configure_args0= 2068ac_configure_args1= 2069ac_must_keep_next=false 2070for ac_pass in 1 2 2071do 2072 for ac_arg 2073 do 2074 case $ac_arg in 2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2077 | -silent | --silent | --silen | --sile | --sil) 2078 continue ;; 2079 *\'*) 2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2081 esac 2082 case $ac_pass in 2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2084 2) 2085 as_fn_append ac_configure_args1 " '$ac_arg'" 2086 if test $ac_must_keep_next = true; then 2087 ac_must_keep_next=false # Got value, back to normal. 2088 else 2089 case $ac_arg in 2090 *=* | --config-cache | -C | -disable-* | --disable-* \ 2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2093 | -with-* | --with-* | -without-* | --without-* | --x) 2094 case "$ac_configure_args0 " in 2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2096 esac 2097 ;; 2098 -* ) ac_must_keep_next=true ;; 2099 esac 2100 fi 2101 as_fn_append ac_configure_args " '$ac_arg'" 2102 ;; 2103 esac 2104 done 2105done 2106{ ac_configure_args0=; unset ac_configure_args0;} 2107{ ac_configure_args1=; unset ac_configure_args1;} 2108 2109# When interrupted or exit'd, cleanup temporary files, and complete 2110# config.log. We remove comments because anyway the quotes in there 2111# would cause problems or look ugly. 2112# WARNING: Use '\'' to represent an apostrophe within the trap. 2113# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2114trap 'exit_status=$? 2115 # Save into config.log some information that might help in debugging. 2116 { 2117 echo 2118 2119 $as_echo "## ---------------- ## 2120## Cache variables. ## 2121## ---------------- ##" 2122 echo 2123 # The following way of writing the cache mishandles newlines in values, 2124( 2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2126 eval ac_val=\$$ac_var 2127 case $ac_val in #( 2128 *${as_nl}*) 2129 case $ac_var in #( 2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2132 esac 2133 case $ac_var in #( 2134 _ | IFS | as_nl) ;; #( 2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2136 *) { eval $ac_var=; unset $ac_var;} ;; 2137 esac ;; 2138 esac 2139 done 2140 (set) 2>&1 | 2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2142 *${as_nl}ac_space=\ *) 2143 sed -n \ 2144 "s/'\''/'\''\\\\'\'''\''/g; 2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2146 ;; #( 2147 *) 2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2149 ;; 2150 esac | 2151 sort 2152) 2153 echo 2154 2155 $as_echo "## ----------------- ## 2156## Output variables. ## 2157## ----------------- ##" 2158 echo 2159 for ac_var in $ac_subst_vars 2160 do 2161 eval ac_val=\$$ac_var 2162 case $ac_val in 2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2164 esac 2165 $as_echo "$ac_var='\''$ac_val'\''" 2166 done | sort 2167 echo 2168 2169 if test -n "$ac_subst_files"; then 2170 $as_echo "## ------------------- ## 2171## File substitutions. ## 2172## ------------------- ##" 2173 echo 2174 for ac_var in $ac_subst_files 2175 do 2176 eval ac_val=\$$ac_var 2177 case $ac_val in 2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2179 esac 2180 $as_echo "$ac_var='\''$ac_val'\''" 2181 done | sort 2182 echo 2183 fi 2184 2185 if test -s confdefs.h; then 2186 $as_echo "## ----------- ## 2187## confdefs.h. ## 2188## ----------- ##" 2189 echo 2190 cat confdefs.h 2191 echo 2192 fi 2193 test "$ac_signal" != 0 && 2194 $as_echo "$as_me: caught signal $ac_signal" 2195 $as_echo "$as_me: exit $exit_status" 2196 } >&5 2197 rm -f core *.core core.conftest.* && 2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2199 exit $exit_status 2200' 0 2201for ac_signal in 1 2 13 15; do 2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2203done 2204ac_signal=0 2205 2206# confdefs.h avoids OS command line length limits that DEFS can exceed. 2207rm -f -r conftest* confdefs.h 2208 2209$as_echo "/* confdefs.h */" > confdefs.h 2210 2211# Predefined preprocessor variables. 2212 2213cat >>confdefs.h <<_ACEOF 2214#define PACKAGE_NAME "$PACKAGE_NAME" 2215_ACEOF 2216 2217cat >>confdefs.h <<_ACEOF 2218#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2219_ACEOF 2220 2221cat >>confdefs.h <<_ACEOF 2222#define PACKAGE_VERSION "$PACKAGE_VERSION" 2223_ACEOF 2224 2225cat >>confdefs.h <<_ACEOF 2226#define PACKAGE_STRING "$PACKAGE_STRING" 2227_ACEOF 2228 2229cat >>confdefs.h <<_ACEOF 2230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2231_ACEOF 2232 2233cat >>confdefs.h <<_ACEOF 2234#define PACKAGE_URL "$PACKAGE_URL" 2235_ACEOF 2236 2237 2238# Let the site file select an alternate cache file if it wants to. 2239# Prefer an explicitly selected file to automatically selected ones. 2240ac_site_file1=NONE 2241ac_site_file2=NONE 2242if test -n "$CONFIG_SITE"; then 2243 # We do not want a PATH search for config.site. 2244 case $CONFIG_SITE in #(( 2245 -*) ac_site_file1=./$CONFIG_SITE;; 2246 */*) ac_site_file1=$CONFIG_SITE;; 2247 *) ac_site_file1=./$CONFIG_SITE;; 2248 esac 2249elif test "x$prefix" != xNONE; then 2250 ac_site_file1=$prefix/share/config.site 2251 ac_site_file2=$prefix/etc/config.site 2252else 2253 ac_site_file1=$ac_default_prefix/share/config.site 2254 ac_site_file2=$ac_default_prefix/etc/config.site 2255fi 2256for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2257do 2258 test "x$ac_site_file" = xNONE && continue 2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2261$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2262 sed 's/^/| /' "$ac_site_file" >&5 2263 . "$ac_site_file" \ 2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2266as_fn_error $? "failed to load site script $ac_site_file 2267See \`config.log' for more details" "$LINENO" 5; } 2268 fi 2269done 2270 2271if test -r "$cache_file"; then 2272 # Some versions of bash will fail to source /dev/null (special files 2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2276$as_echo "$as_me: loading cache $cache_file" >&6;} 2277 case $cache_file in 2278 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2279 *) . "./$cache_file";; 2280 esac 2281 fi 2282else 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2284$as_echo "$as_me: creating cache $cache_file" >&6;} 2285 >$cache_file 2286fi 2287 2288# Check that the precious variables saved in the cache have kept the same 2289# value. 2290ac_cache_corrupted=false 2291for ac_var in $ac_precious_vars; do 2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2293 eval ac_new_set=\$ac_env_${ac_var}_set 2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2295 eval ac_new_val=\$ac_env_${ac_var}_value 2296 case $ac_old_set,$ac_new_set in 2297 set,) 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2299$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2300 ac_cache_corrupted=: ;; 2301 ,set) 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2303$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2304 ac_cache_corrupted=: ;; 2305 ,);; 2306 *) 2307 if test "x$ac_old_val" != "x$ac_new_val"; then 2308 # differences in whitespace do not lead to failure. 2309 ac_old_val_w=`echo x $ac_old_val` 2310 ac_new_val_w=`echo x $ac_new_val` 2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2313$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2314 ac_cache_corrupted=: 2315 else 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2317$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2318 eval $ac_var=\$ac_old_val 2319 fi 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2321$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2323$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2324 fi;; 2325 esac 2326 # Pass precious variables to config.status. 2327 if test "$ac_new_set" = set; then 2328 case $ac_new_val in 2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2330 *) ac_arg=$ac_var=$ac_new_val ;; 2331 esac 2332 case " $ac_configure_args " in 2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2334 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2335 esac 2336 fi 2337done 2338if $ac_cache_corrupted; then 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2342$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2343 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2344fi 2345## -------------------- ## 2346## Main body of script. ## 2347## -------------------- ## 2348 2349ac_ext=c 2350ac_cpp='$CPP $CPPFLAGS' 2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2353ac_compiler_gnu=$ac_cv_c_compiler_gnu 2354 2355 2356 2357 2358 2359ac_aux_dir= 2360for ac_dir in uses "$srcdir"/uses; do 2361 if test -f "$ac_dir/install-sh"; then 2362 ac_aux_dir=$ac_dir 2363 ac_install_sh="$ac_aux_dir/install-sh -c" 2364 break 2365 elif test -f "$ac_dir/install.sh"; then 2366 ac_aux_dir=$ac_dir 2367 ac_install_sh="$ac_aux_dir/install.sh -c" 2368 break 2369 elif test -f "$ac_dir/shtool"; then 2370 ac_aux_dir=$ac_dir 2371 ac_install_sh="$ac_aux_dir/shtool install -c" 2372 break 2373 fi 2374done 2375if test -z "$ac_aux_dir"; then 2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in uses \"$srcdir\"/uses" "$LINENO" 5 2377fi 2378 2379# These three variables are undocumented and unsupported, 2380# and are intended to be withdrawn in a future Autoconf release. 2381# They can cause serious problems if a builder's source tree is in a directory 2382# whose full name contains unusual characters. 2383ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2384ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2385ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2386 2387 2388 2389# ======================================================================= 2390# Make sure we can run config.sub. 2391$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2393 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2395$as_echo_n "checking build system type... " >&6; } 2396if ${ac_cv_build+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 ac_build_alias=$build_alias 2400test "x$ac_build_alias" = x && 2401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2402test "x$ac_build_alias" = x && 2403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2404ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2406 2407fi 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2409$as_echo "$ac_cv_build" >&6; } 2410case $ac_cv_build in 2411*-*-*) ;; 2412*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2413esac 2414build=$ac_cv_build 2415ac_save_IFS=$IFS; IFS='-' 2416set x $ac_cv_build 2417shift 2418build_cpu=$1 2419build_vendor=$2 2420shift; shift 2421# Remember, the first character of IFS is used to create $*, 2422# except with old shells: 2423build_os=$* 2424IFS=$ac_save_IFS 2425case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2426 2427 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2429$as_echo_n "checking host system type... " >&6; } 2430if ${ac_cv_host+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 if test "x$host_alias" = x; then 2434 ac_cv_host=$ac_cv_build 2435else 2436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2438fi 2439 2440fi 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2442$as_echo "$ac_cv_host" >&6; } 2443case $ac_cv_host in 2444*-*-*) ;; 2445*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2446esac 2447host=$ac_cv_host 2448ac_save_IFS=$IFS; IFS='-' 2449set x $ac_cv_host 2450shift 2451host_cpu=$1 2452host_vendor=$2 2453shift; shift 2454# Remember, the first character of IFS is used to create $*, 2455# except with old shells: 2456host_os=$* 2457IFS=$ac_save_IFS 2458case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2459 2460 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2462$as_echo_n "checking target system type... " >&6; } 2463if ${ac_cv_target+:} false; then : 2464 $as_echo_n "(cached) " >&6 2465else 2466 if test "x$target_alias" = x; then 2467 ac_cv_target=$ac_cv_host 2468else 2469 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2471fi 2472 2473fi 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2475$as_echo "$ac_cv_target" >&6; } 2476case $ac_cv_target in 2477*-*-*) ;; 2478*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2479esac 2480target=$ac_cv_target 2481ac_save_IFS=$IFS; IFS='-' 2482set x $ac_cv_target 2483shift 2484target_cpu=$1 2485target_vendor=$2 2486shift; shift 2487# Remember, the first character of IFS is used to create $*, 2488# except with old shells: 2489target_os=$* 2490IFS=$ac_save_IFS 2491case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2492 2493 2494# The aliases save the names the user supplied, while $host etc. 2495# will get canonicalized. 2496test -n "$target_alias" && 2497 test "$program_prefix$program_suffix$program_transform_name" = \ 2498 NONENONEs,x,x, && 2499 program_prefix=${target_alias}- 2500 2501 # -------------------------------------------- 2502case "$prefix:$ac_default_prefix" in 2503 NONE:/usr/local) 2504 result="" 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default prefix path" >&5 2506$as_echo_n "checking default prefix path... " >&6; } 2507 case "${target_os}" in 2508 *cygwin* | *mingw* | *uwin* | *djgpp | *emx* ) 2509 if test "${host_os}" = "${target_os}" ; then 2510 ac_default_prefix="/programs" 2511 result="(win/dos target)" 2512 else 2513 case "$PATH" in 2514 *:/usr/local/cross-tools/$target_alias/bin:*) 2515 ac_default_prefix="/usr/local/cross-tools/$target_alias" ;; 2516 *:/usr/local/$target_alias/bin:*) 2517 ac_default_prefix="/usr/local/$target_alias" ;; 2518 *:/usr/local/$target_cpu-$target_os/bin:*) 2519 ac_default_prefix="/usr/local/$target_cpu-$target_os" ;; 2520 *) 2521 ac_default_prefix="/programs" ;; 2522 esac 2523 result="(win/dos cross-compiler)" 2524 fi 2525 ;; 2526 esac 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_default_prefix $result" >&5 2528$as_echo "$ac_default_prefix $result" >&6; } 2529 ;; 2530esac 2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default prefix system" >&5 2532$as_echo_n "checking default prefix system... " >&6; } 2533result="$prefix" ; test "$result" = "NONE" && result="$ac_default_prefix" 2534case ${result} in 2535 /programs | /programs/*) result="is win-/programs" 2536 # on win/dos, .exe .dll and .cfg live in the same directory 2537 libdir=`echo $libdir |sed -e 's:^..exec_prefix./lib$:${bindir}:'` 2538 sbindir=`echo $sbindir |sed -e 's:^..exec_prefix./sbin$:${libdir}:'` 2539 sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:${sbindir}:'` 2540 libexecdir=`echo $libexecdir |sed -e 's:/libexec$:/system:'` 2541 # help-files shall be set with --infodir, docprefix is datadir 2542 docprefix="${datadir}" 2543 mandir=`echo $mandir \ 2544 |sed -e 's:^..prefix./man$:${datadir}/info:'` 2545 includedir=`echo $includedir \ 2546 |sed -e 's:^..prefix./include$:${datadir}/include:'` 2547 # other state files (but /etc) are moved to datadir 2548 sharedstatedir=`echo $sharedstatedir \ 2549 |sed -e 's:^..prefix./com$:${datadir}/default:'` 2550 localstatedir=`echo $localstatedir \ 2551 |sed -e 's:^..prefix./var$:${datadir}/current:'` 2552 ;; 2553 /usr) result="is /usr-shipped" 2554 # doc files are left at prefix 2555 docprefix="${prefix}" 2556 # state files go under /top 2557 sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:/etc:'` 2558 sharedstatedir=`echo $sharedstatedir \ 2559 |sed -e 's:^..prefix./com$:/etc/default:'` 2560 # $prefix/var is going to end up in /var/lib 2561 localstatedir=`echo $localstatedir \ 2562 |sed -e 's:^..prefix./var$:/var/lib:'` 2563 ;; 2564 /opt | /opt/*) result="is /opt-package" 2565 # state files go under /top/prefix 2566 sysconfdir=`echo $sysconfdir \ 2567 |sed -e 's:^..prefix./etc$:/etc${prefix}:'` 2568 sharedstatedir=`echo $sharedstatedir \ 2569 |sed -e 's:^..prefix./com$:/etc/default${prefix}:'` 2570 # $prefix/var is going to to be /var$prefix... once again 2571 localstatedir=`echo $localstatedir \ 2572 |sed -e 's:^..prefix./var$:/var${prefix}:'` 2573 # doc files are left at prefix 2574 docprefix="${prefix}" 2575 ;; 2576 *) result="is /local-package" 2577 # doc files are moved from prefix down to datadir 2578 docprefix="${datadir}" 2579 mandir=`echo $mandir \ 2580 |sed -e 's:^..prefix./man$:${datadir}/man:'` 2581 infodir=`echo $infodir \ 2582 |sed -e 's:^..prefix./infodir$:${datadir}/info:'` 2583 # never use $prefix/com - that is no good idea 2584 sharedstatedir=`echo $sharedstatedir \ 2585 |sed -e 's:^..prefix./com$:${sysconfdir}/default:'` 2586 ;; 2587esac 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 2589$as_echo "$result" >&6; } 2590# -------------------------------------------------------- 2591 2592# ----------------------------------------------------------------------- 2593# Check whether --enable-thread-safe was given. 2594if test "${enable_thread_safe+set}" = set; then : 2595 enableval=$enable_thread_safe; 2596else 2597 enable_thread_safe="yes" 2598fi 2599 2600THREAD_SAFE="" 2601test "$enable_thread_safe" = "yes" && THREAD_SAFE="-thread-safe" 2602test "$enable_thread_safe" = "$host_os" && THREAD_SAFE="-thread-safe" 2603 2604if test -n "$THREAD_SAFE" ; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...using thread-safe linkage" >&5 2606$as_echo "...using thread-safe linkage" >&6; } 2607else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled thread-safe linkage" >&5 2609$as_echo "disabled thread-safe linkage" >&6; } 2610fi 2611# ---------------------------------------------------------------- 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib install prefix" >&5 2613$as_echo_n "checking zlib install prefix... " >&6; } 2614 2615# Check whether --with-zlib was given. 2616if test "${with_zlib+set}" = set; then : 2617 withval=$with_zlib; 2618else 2619 with_zlib="no" 2620fi 2621 2622if test "${with_zlib}" = yes ; then # choose --prefix paths 2623 if test "${prefix}" = NONE ; then 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, but only itself..." >&5 2625$as_echo "oops, but only itself..." >&6; } 2626 as_fn_error $? "--with-zlib requires a path argument or a --prefix path set" "$LINENO" 5 2627 fi 2628 with_zlib="$prefix" 2629fi 2630 2631case ".$with_zlib" in 2632 .no|.no,*) 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 2634$as_echo "none" >&6; } 2635 with_zlib="no, not configured" ;; 2636 ./usr) 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, ignored (may try --with-zlib=/usr/.)" >&5 2638$as_echo "oops, ignored (may try --with-zlib=/usr/.)" >&6; } 2639 with_zlib="no, /usr ignored" ;; 2640 *) if test ! -d "$with_zlib/include" ; then 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, given but..." >&5 2642$as_echo "oops, given but..." >&6; } 2643 as_fn_error $? "\"$with_zlib/include\" is not a directory" "$LINENO" 5 2644 fi 2645 if test ! -d "$with_zlib/lib" ; then 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops, given but..." >&5 2647$as_echo "oops, given but..." >&6; } 2648 as_fn_error $? "\"$with_zlib/lib\" is not a directory" "$LINENO" 5 2649 fi 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib" >&5 2651$as_echo "$with_zlib" >&6; } 2652 ZLIB_INCL="-I$with_zlib/include" 2653 ZLIB_LDIR="-L$with_zlib/lib" 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CPPFLAGS $ZLIB_INCL" >&5 2655$as_echo "..adding CPPFLAGS $ZLIB_INCL" >&6; } 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding LDFLAGS $ZLIB_LDIR" >&5 2657$as_echo "..adding LDFLAGS $ZLIB_LDIR" >&6; } 2658 CPPFLAGS="$CPPFLAGS $ZLIB_INCL" 2659 LDFLAGS="$LDFLAGS $ZLIB_LDIR" 2660 ;; 2661esac 2662 2663 2664# ----------------------------------------------------------------------- 2665 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rpm spec file" >&5 2667$as_echo_n "checking rpm spec file... " >&6; } 2668 if test "." != "." ; then 2669 ax_spec_file_="" 2670 ax_spec_file=`basename ` 2671 else 2672 case ".$ac_unique_file" in 2673 *.spec) ax_spec_file="$ac_unique_file" 2674 ax_spec_file_="$ac_unique_file" ;; 2675 *) ax_spec_file="TODO" 2676 if test ".$PACKAGE" != "." 2677 then ax_spec_file_="$PACKAGE.spec" 2678 else ax_spec_file_="README" 2679 fi 2680 cat >&5 <<EOF 2681 no ax_spec_file argument has been given, using defaults of 2682 (1) $ax_spec_file_ 2683 (2) $ax_spec_file 2684EOF 2685 ;; 2686 esac 2687 fi 2688 # find specfile 2689 for i in . $srcdir $srcdir/.. .. ; do 2690 if test -f "$i/$ax_spec_file_" ; then 2691 ax_spec_dir="$i" 2692 ax_spec_file="$ax_spec_dir/$ax_spec_file_" 2693 break 2694 fi 2695 if test -f "$i/$ax_spec_file" ; then 2696 ax_spec_dir="$i" 2697 ax_spec_file="$ax_spec_dir/$ax_spec_file" 2698 break 2699 fi 2700 done 2701 case "$ax_spec_file" in 2702 ./*) if test "$ax_spec_file" = "./$ax_spec_file_" ; then 2703 ax_spec_file="$ax_spec_file_" 2704 fi 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_spec_file" >&5 2706$as_echo "$ax_spec_file" >&6; } ;; 2707 */*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_spec_file" >&5 2708$as_echo "$ax_spec_file" >&6; } ;; 2709 *) as_fn_error $? "no rpm spec file found" "$LINENO" 5 ;; 2710 esac 2711 2712 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec package" >&5 2714$as_echo_n "checking for spec package... " >&6; } 2715 if test ".$PACKAGE_NAME" = "." ; then if test ! -f $ax_spec_file 2716 then k="(w/o spec)" 2717 else k="" 2718 2719 if test ".$PACKAGE_NAME" = "." ; then 2720 PACKAGE_NAME=`grep -i '^[ ]*name[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'` 2721 if test ".$PACKAGE_NAME" = "." ; then 2722 for PACKAGE_NAME in name PACKAGE_NAME package_name ; do 2723 PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/^%//g'` 2724 PACKAGE_NAME=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` 2725 test ".PACKAGE_NAME" != "." && break 2726 done 2727 fi 2728 case ".$PACKAGE_NAME" in 2729 .%{*) 2730 PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%{//' -e 's/}$//'` 2731 PACKAGE_NAME=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2732 .%*) 2733 PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%//'` 2734 PACKAGE_NAME=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_NAME[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2735 esac 2736 2737 fi # test ".$[]PACKAGE_NAME" = "." 2738 2739 PACKAGE_NAME=`echo $PACKAGE_NAME | sed -e 's/ /-/g'` 2740 fi fi 2741 test ".$PACKAGE_NAME" = "." && k="(fallback)" 2742 test ".$PACKAGE_NAME" = "." && PACKAGE_NAME=`basename $ax_spec_file .spec` 2743 test ".$PACKAGE_NAME" = ".README" && PACKAGE_NAME="TODO" 2744 test ".$PACKAGE_NAME" = ".TODO" && PACKAGE_NAME="foo" 2745 2746 test "PACKAGE_NAME" = "PACKAGE_NAME" && test ".$PACKAGE" = "." && PACKAGE="$PACKAGE_NAME" 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_NAME $k" >&5 2748$as_echo "$PACKAGE_NAME $k" >&6; } 2749 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec version" >&5 2751$as_echo_n "checking for spec version... " >&6; } 2752 if test ".$PACKAGE_VERSION" = "." ; then if test ! -f $ax_spec_file 2753 then k="(w/o spec)" 2754 else k="" 2755 2756 if test ".$PACKAGE_VERSION" = "." ; then 2757 PACKAGE_VERSION=`grep -i '^[ ]*version[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'` 2758 if test ".$PACKAGE_VERSION" = "." ; then 2759 for PACKAGE_VERSION in version PACKAGE_VERSION package_version ; do 2760 PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/^%//g'` 2761 PACKAGE_VERSION=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` 2762 test ".PACKAGE_VERSION" != "." && break 2763 done 2764 fi 2765 case ".$PACKAGE_VERSION" in 2766 .%{*) 2767 PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%{//' -e 's/}$//'` 2768 PACKAGE_VERSION=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2769 .%*) 2770 PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%//'` 2771 PACKAGE_VERSION=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_VERSION[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2772 esac 2773 2774 fi # test ".$[]PACKAGE_VERSION" = "." 2775 2776 PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e 's/ /-/g'` 2777 fi fi 2778 test ".$PACKAGE_VERSION" = "." && k="(fallback)" 2779 test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION=`date +0.%y.%W%w` 2780 2781 test "PACKAGE_VERSION" = "PACKAGE_VERSION" && test ".$VERSION" = "." && VERSION="$PACKAGE_VERSION" 2782 case "$PACKAGE_VERSION" in # note we set traditional VERSION before cleaning things up 2783 *.*.) PACKAGE_VERSION="$PACKAGE_VERSION"`date +%W%w` ;; 2784 *.*.*) ;; 2785 *.) PACKAGE_VERSION="$PACKAGE_VERSION"`date +%y.%W%w` ;; 2786 *.*) PACKAGE_VERSION="$PACKAGE_VERSION.0" ;; 2787 *) PACKAGE_VERSION=`$as_echo "$PACKAGE_VERSION" | $as_tr_sh` ; PACKAGE_VERSION="$PACKAGE_VERSION.`date +%y.%W%w`" ;; 2788 esac 2789 PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e "s/[.]0\\(0-9\\)/.\\1/g"` 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_VERSION $k" >&5 2791$as_echo "$PACKAGE_VERSION $k" >&6; } 2792 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec license type" >&5 2794$as_echo_n "checking for spec license type... " >&6; } 2795 if test ".$PACKAGE_LICENSE" = "." ; then if test ! -f $ax_spec_file 2796 then k="(w/o spec)" 2797 else k="" 2798 2799 if test ".$PACKAGE_LICENSE" = "." ; then 2800 PACKAGE_LICENSE=`grep -i '^[ ]*license[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'` 2801 if test ".$PACKAGE_LICENSE" = "." ; then 2802 for PACKAGE_LICENSE in license PACKAGE_LICENSE package_license ; do 2803 PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/^%//g'` 2804 PACKAGE_LICENSE=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` 2805 test ".PACKAGE_LICENSE" != "." && break 2806 done 2807 fi 2808 case ".$PACKAGE_LICENSE" in 2809 .%{*) 2810 PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%{//' -e 's/}$//'` 2811 PACKAGE_LICENSE=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2812 .%*) 2813 PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%//'` 2814 PACKAGE_LICENSE=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_LICENSE[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2815 esac 2816 2817 fi # test ".$[]PACKAGE_LICENSE" = "." 2818 2819 PACKAGE_LICENSE=`echo $PACKAGE_LICENSE | sed -e 's/ *License//g'` 2820 fi fi 2821 test ".$PACKAGE_LICENSE" = "." && k="(fallback)" 2822 if test ".$PACKAGE_LICENSE" = "." ; then 2823 for ac_file in "$srcdir/COPYING" "$srcdir/COPYING" "$srcdir/LICENSE" ; do 2824 test -f "$ac_file" || continue 2825 if grep "GNU LESSER GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null 2826 then PACKAGE_LICENSE="GNU LGPL" ; break 2827 elif grep "GNU GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null 2828 then PACKAGE_LICENSE="GNU GPL" ; break 2829 elif grep "MOZILLA PUBLIC LICENSE" "$ac_file" >/dev/null 2830 then PACKAGE_LICENSE="MPL" ; break 2831 elif grep "Mozilla Public License" "$ac_file" >/dev/null 2832 then PACKAGE_LICENSE="MPL" ; break 2833 elif grep -i "artistic license" "$ac_file" >/dev/null 2834 then PACKAGE_LICENSE="Artistic" ; break 2835 elif grep -i "artistic control" "$ac_file" >/dev/null 2836 then PACKAGE_LICENSE="Artistic" ; break 2837 elif grep -i "semblance of artistic" "$ac_file" >/dev/null 2838 then PACKAGE_LICENSE="Artistic" ; break 2839 elif grep -i "above copyright notice" "$ac_file" >/dev/null 2840 then PACKAGE_LICENSE="BSD" ; break 2841 fi 2842 done 2843 if test ".$PACKAGE_LICENSE" = "." ; then 2844 if test "$srcdir/COPYING.LIB" ; then PACKAGE_LICENSE="GNU LGPL" 2845 elif test ".$ltmain" != "." ; then PACKAGE_LICENSE="GNU LGPL" 2846 else PACKAGE_LICENSE="GNU GPL" 2847 fi 2848 fi 2849 fi 2850 2851 test "$PACKAGE_LICENSE" = "GPL" && PACKAGE_LICENSE="GNU GPL" 2852 test "$PACKAGE_LICENSE" = "LGPL" && PACKAGE_LICENSE="GNU LGPL" 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_LICENSE $k" >&5 2854$as_echo "$PACKAGE_LICENSE $k" >&6; } 2855 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec summary" >&5 2857$as_echo_n "checking for spec summary... " >&6; } 2858 if test ".$PACKAGE_SUMMARY" = "." ; then if test ! -f $ax_spec_file 2859 then k="(w/o spec)" 2860 else k="" 2861 2862 if test ".$PACKAGE_SUMMARY" = "." ; then 2863 PACKAGE_SUMMARY=`grep -i '^[ ]*summary[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'` 2864 if test ".$PACKAGE_SUMMARY" = "." ; then 2865 for PACKAGE_SUMMARY in summary PACKAGE_SUMMARY package_summary ; do 2866 PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/^%//g'` 2867 PACKAGE_SUMMARY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` 2868 test ".PACKAGE_SUMMARY" != "." && break 2869 done 2870 fi 2871 case ".$PACKAGE_SUMMARY" in 2872 .%{*) 2873 PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%{//' -e 's/}$//'` 2874 PACKAGE_SUMMARY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2875 .%*) 2876 PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%//'` 2877 PACKAGE_SUMMARY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_SUMMARY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2878 esac 2879 2880 fi # test ".$[]PACKAGE_SUMMARY" = "." 2881 2882 fi fi 2883 test ".$PACKAGE_SUMMARY" = "." && k="(fallback)" 2884 if test ".$PACKAGE_SUMMARY" = "." ; then PACKAGE_SUMMARY="$PACKAGE" 2885 test ".$PACKAGE_SUMMARY" = "." && PACKAGE_SUMMARY="foo" 2886 test ".$ltmain" != "." && PACKAGE_SUMMARY="$PACKAGE_SUMMARY library" 2887 fi 2888 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_SUMMARY $k" >&5 2890$as_echo "$PACKAGE_SUMMARY $k" >&6; } 2891 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec category" >&5 2893$as_echo_n "checking for spec category... " >&6; } 2894 if test ".$PACKAGE_CATEGORY" = "." ; then if test ! -f $ax_spec_file 2895 then k="(w/o spec)" 2896 else k="" 2897 2898 if test ".$PACKAGE_CATEGORY" = "." ; then 2899 PACKAGE_CATEGORY=`grep -i '^[ ]*group[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'` 2900 if test ".$PACKAGE_CATEGORY" = "." ; then 2901 for PACKAGE_CATEGORY in group PACKAGE_CATEGORY package_category ; do 2902 PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/^%//g'` 2903 PACKAGE_CATEGORY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` 2904 test ".PACKAGE_CATEGORY" != "." && break 2905 done 2906 fi 2907 case ".$PACKAGE_CATEGORY" in 2908 .%{*) 2909 PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%{//' -e 's/}$//'` 2910 PACKAGE_CATEGORY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2911 .%*) 2912 PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%//'` 2913 PACKAGE_CATEGORY=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_CATEGORY[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2914 esac 2915 2916 fi # test ".$[]PACKAGE_CATEGORY" = "." 2917 2918 PACKAGE_CATEGORY=`echo $PACKAGE_CATEGORY | sed -e 's/ /-/g'` 2919 fi fi 2920 test ".$PACKAGE_CATEGORY" = "." && k="(fallback)" 2921 if test ".$PACKAGE_CATEGORY" = "." ; then if test ".$ltmain" != "." 2922 then PACKAGE_CATEGORY="Development/Library" 2923 else PACKAGE_CATEGORY="Development/Other" 2924 fi fi 2925 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_CATEGORY $k" >&5 2927$as_echo "$PACKAGE_CATEGORY $k" >&6; } 2928 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spec icon" >&5 2930$as_echo_n "checking for spec icon... " >&6; } 2931 if test ".$PACKAGE_ICON" = "." ; then if test ! -f $ax_spec_file 2932 then k="(w/o spec)" 2933 else k="" 2934 2935 if test ".$PACKAGE_ICON" = "." ; then 2936 PACKAGE_ICON=`grep -i '^[ ]*icon[ ]*:' "$ax_spec_file" | sed -e 's/.*:[ ]*//' -e 's/[ ][ ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'` 2937 if test ".$PACKAGE_ICON" = "." ; then 2938 for PACKAGE_ICON in icon PACKAGE_ICON package_icon ; do 2939 PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/^%//g'` 2940 PACKAGE_ICON=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` 2941 test ".PACKAGE_ICON" != "." && break 2942 done 2943 fi 2944 case ".$PACKAGE_ICON" in 2945 .%{*) 2946 PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%{//' -e 's/}$//'` 2947 PACKAGE_ICON=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2948 .%*) 2949 PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%//'` 2950 PACKAGE_ICON=`sed -e "/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]/!d" -e "s/^%[ ]*define[ ][ ]*$PACKAGE_ICON[ ]*//" -e 's/[ ][ ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;; 2951 esac 2952 2953 fi # test ".$[]PACKAGE_ICON" = "." 2954 2955 fi fi 2956 test ".$PACKAGE_ICON" = "." && k="(fallback)" 2957 if test ".$PACKAGE_ICON" = "." ; then PACKAGE_ICON="$PACKAGE-icon.png" ; fi 2958 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_ICON $k" >&5 2960$as_echo "$PACKAGE_ICON $k" >&6; } 2961 2962 2963am__api_version='1.15' 2964 2965# Find a good install program. We prefer a C program (faster), 2966# so one script is as good as another. But avoid the broken or 2967# incompatible versions: 2968# SysV /etc/install, /usr/sbin/install 2969# SunOS /usr/etc/install 2970# IRIX /sbin/install 2971# AIX /bin/install 2972# AmigaOS /C/install, which installs bootblocks on floppy discs 2973# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2974# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2975# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2976# OS/2's system install, which has a completely different semantic 2977# ./install, which can be erroneously created by make from ./install.sh. 2978# Reject install programs that cannot install multiple files. 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2980$as_echo_n "checking for a BSD-compatible install... " >&6; } 2981if test -z "$INSTALL"; then 2982if ${ac_cv_path_install+:} false; then : 2983 $as_echo_n "(cached) " >&6 2984else 2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 # Account for people who put trailing slashes in PATH elements. 2991case $as_dir/ in #(( 2992 ./ | .// | /[cC]/* | \ 2993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2994 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2995 /usr/ucb/* ) ;; 2996 *) 2997 # OSF1 and SCO ODT 3.0 have their own names for install. 2998 # Don't use installbsd from OSF since it installs stuff as root 2999 # by default. 3000 for ac_prog in ginstall scoinst install; do 3001 for ac_exec_ext in '' $ac_executable_extensions; do 3002 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3003 if test $ac_prog = install && 3004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3005 # AIX install. It has an incompatible calling convention. 3006 : 3007 elif test $ac_prog = install && 3008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3009 # program-specific install script used by HP pwplus--don't use. 3010 : 3011 else 3012 rm -rf conftest.one conftest.two conftest.dir 3013 echo one > conftest.one 3014 echo two > conftest.two 3015 mkdir conftest.dir 3016 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3017 test -s conftest.one && test -s conftest.two && 3018 test -s conftest.dir/conftest.one && 3019 test -s conftest.dir/conftest.two 3020 then 3021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3022 break 3 3023 fi 3024 fi 3025 fi 3026 done 3027 done 3028 ;; 3029esac 3030 3031 done 3032IFS=$as_save_IFS 3033 3034rm -rf conftest.one conftest.two conftest.dir 3035 3036fi 3037 if test "${ac_cv_path_install+set}" = set; then 3038 INSTALL=$ac_cv_path_install 3039 else 3040 # As a last resort, use the slow shell script. Don't cache a 3041 # value for INSTALL within a source directory, because that will 3042 # break other packages using the cache if that directory is 3043 # removed, or if the value is a relative name. 3044 INSTALL=$ac_install_sh 3045 fi 3046fi 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3048$as_echo "$INSTALL" >&6; } 3049 3050# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3051# It thinks the first close brace ends the variable substitution. 3052test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3053 3054test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3055 3056test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3057 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3059$as_echo_n "checking whether build environment is sane... " >&6; } 3060# Reject unsafe characters in $srcdir or the absolute working directory 3061# name. Accept space and tab only in the latter. 3062am_lf=' 3063' 3064case `pwd` in 3065 *[\\\"\#\$\&\'\`$am_lf]*) 3066 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3067esac 3068case $srcdir in 3069 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3070 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3071esac 3072 3073# Do 'set' in a subshell so we don't clobber the current shell's 3074# arguments. Must try -L first in case configure is actually a 3075# symlink; some systems play weird games with the mod time of symlinks 3076# (eg FreeBSD returns the mod time of the symlink's containing 3077# directory). 3078if ( 3079 am_has_slept=no 3080 for am_try in 1 2; do 3081 echo "timestamp, slept: $am_has_slept" > conftest.file 3082 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3083 if test "$*" = "X"; then 3084 # -L didn't work. 3085 set X `ls -t "$srcdir/configure" conftest.file` 3086 fi 3087 if test "$*" != "X $srcdir/configure conftest.file" \ 3088 && test "$*" != "X conftest.file $srcdir/configure"; then 3089 3090 # If neither matched, then we have a broken ls. This can happen 3091 # if, for instance, CONFIG_SHELL is bash and it inherits a 3092 # broken ls alias from the environment. This has actually 3093 # happened. Such a system could not be considered "sane". 3094 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3095 alias in your environment" "$LINENO" 5 3096 fi 3097 if test "$2" = conftest.file || test $am_try -eq 2; then 3098 break 3099 fi 3100 # Just in case. 3101 sleep 1 3102 am_has_slept=yes 3103 done 3104 test "$2" = conftest.file 3105 ) 3106then 3107 # Ok. 3108 : 3109else 3110 as_fn_error $? "newly created file is older than distributed files! 3111Check your system clock" "$LINENO" 5 3112fi 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3114$as_echo "yes" >&6; } 3115# If we didn't sleep, we still need to ensure time stamps of config.status and 3116# generated files are strictly newer. 3117am_sleep_pid= 3118if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3119 ( sleep 1 ) & 3120 am_sleep_pid=$! 3121fi 3122 3123rm -f conftest.file 3124 3125test "$program_prefix" != NONE && 3126 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3127# Use a double $ so make ignores it. 3128test "$program_suffix" != NONE && 3129 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3130# Double any \ or $. 3131# By default was `s,x,x', remove it if useless. 3132ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3133program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3134 3135# Expand $ac_aux_dir to an absolute path. 3136am_aux_dir=`cd "$ac_aux_dir" && pwd` 3137 3138if test x"${MISSING+set}" != xset; then 3139 case $am_aux_dir in 3140 *\ * | *\ *) 3141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3142 *) 3143 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3144 esac 3145fi 3146# Use eval to expand $SHELL 3147if eval "$MISSING --is-lightweight"; then 3148 am_missing_run="$MISSING " 3149else 3150 am_missing_run= 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3152$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3153fi 3154 3155if test x"${install_sh+set}" != xset; then 3156 case $am_aux_dir in 3157 *\ * | *\ *) 3158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3159 *) 3160 install_sh="\${SHELL} $am_aux_dir/install-sh" 3161 esac 3162fi 3163 3164# Installed binaries are usually stripped using 'strip' when the user 3165# run "make install-strip". However 'strip' might not be the right 3166# tool to use in cross-compilation environments, therefore Automake 3167# will honor the 'STRIP' environment variable to overrule this program. 3168if test "$cross_compiling" != no; then 3169 if test -n "$ac_tool_prefix"; then 3170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3171set dummy ${ac_tool_prefix}strip; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if ${ac_cv_prog_STRIP+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$STRIP"; then 3178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3187 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197STRIP=$ac_cv_prog_STRIP 3198if test -n "$STRIP"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3200$as_echo "$STRIP" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207fi 3208if test -z "$ac_cv_prog_STRIP"; then 3209 ac_ct_STRIP=$STRIP 3210 # Extract the first word of "strip", so it can be a program name with args. 3211set dummy strip; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$ac_ct_STRIP"; then 3218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3227 ac_cv_prog_ac_ct_STRIP="strip" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3238if test -n "$ac_ct_STRIP"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3240$as_echo "$ac_ct_STRIP" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 if test "x$ac_ct_STRIP" = x; then 3247 STRIP=":" 3248 else 3249 case $cross_compiling:$ac_tool_warned in 3250yes:) 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3253ac_tool_warned=yes ;; 3254esac 3255 STRIP=$ac_ct_STRIP 3256 fi 3257else 3258 STRIP="$ac_cv_prog_STRIP" 3259fi 3260 3261fi 3262INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3263 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3265$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3266if test -z "$MKDIR_P"; then 3267 if ${ac_cv_path_mkdir+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3272do 3273 IFS=$as_save_IFS 3274 test -z "$as_dir" && as_dir=. 3275 for ac_prog in mkdir gmkdir; do 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3279 'mkdir (GNU coreutils) '* | \ 3280 'mkdir (coreutils) '* | \ 3281 'mkdir (fileutils) '4.1*) 3282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3283 break 3;; 3284 esac 3285 done 3286 done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291 3292 test -d ./--version && rmdir ./--version 3293 if test "${ac_cv_path_mkdir+set}" = set; then 3294 MKDIR_P="$ac_cv_path_mkdir -p" 3295 else 3296 # As a last resort, use the slow shell script. Don't cache a 3297 # value for MKDIR_P within a source directory, because that will 3298 # break other packages using the cache if that directory is 3299 # removed, or if the value is a relative name. 3300 MKDIR_P="$ac_install_sh -d" 3301 fi 3302fi 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3304$as_echo "$MKDIR_P" >&6; } 3305 3306for ac_prog in gawk mawk nawk awk 3307do 3308 # Extract the first word of "$ac_prog", so it can be a program name with args. 3309set dummy $ac_prog; ac_word=$2 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311$as_echo_n "checking for $ac_word... " >&6; } 3312if ${ac_cv_prog_AWK+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 if test -n "$AWK"; then 3316 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3325 ac_cv_prog_AWK="$ac_prog" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333fi 3334fi 3335AWK=$ac_cv_prog_AWK 3336if test -n "$AWK"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3338$as_echo "$AWK" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345 test -n "$AWK" && break 3346done 3347 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3349$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3350set x ${MAKE-make} 3351ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3352if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 cat >conftest.make <<\_ACEOF 3356SHELL = /bin/sh 3357all: 3358 @echo '@@@%%%=$(MAKE)=@@@%%%' 3359_ACEOF 3360# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3361case `${MAKE-make} -f conftest.make 2>/dev/null` in 3362 *@@@%%%=?*=@@@%%%*) 3363 eval ac_cv_prog_make_${ac_make}_set=yes;; 3364 *) 3365 eval ac_cv_prog_make_${ac_make}_set=no;; 3366esac 3367rm -f conftest.make 3368fi 3369if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3371$as_echo "yes" >&6; } 3372 SET_MAKE= 3373else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375$as_echo "no" >&6; } 3376 SET_MAKE="MAKE=${MAKE-make}" 3377fi 3378 3379rm -rf .tst 2>/dev/null 3380mkdir .tst 2>/dev/null 3381if test -d .tst; then 3382 am__leading_dot=. 3383else 3384 am__leading_dot=_ 3385fi 3386rmdir .tst 2>/dev/null 3387 3388# Check whether --enable-silent-rules was given. 3389if test "${enable_silent_rules+set}" = set; then : 3390 enableval=$enable_silent_rules; 3391fi 3392 3393case $enable_silent_rules in # ((( 3394 yes) AM_DEFAULT_VERBOSITY=0;; 3395 no) AM_DEFAULT_VERBOSITY=1;; 3396 *) AM_DEFAULT_VERBOSITY=1;; 3397esac 3398am_make=${MAKE-make} 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3400$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3401if ${am_cv_make_support_nested_variables+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 if $as_echo 'TRUE=$(BAR$(V)) 3405BAR0=false 3406BAR1=true 3407V=1 3408am__doit: 3409 @$(TRUE) 3410.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3411 am_cv_make_support_nested_variables=yes 3412else 3413 am_cv_make_support_nested_variables=no 3414fi 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3417$as_echo "$am_cv_make_support_nested_variables" >&6; } 3418if test $am_cv_make_support_nested_variables = yes; then 3419 AM_V='$(V)' 3420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3421else 3422 AM_V=$AM_DEFAULT_VERBOSITY 3423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3424fi 3425AM_BACKSLASH='\' 3426 3427if test "`cd $srcdir && pwd`" != "`pwd`"; then 3428 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3429 # is not polluted with repeated "-I." 3430 am__isrc=' -I$(srcdir)' 3431 # test to see if srcdir already configured 3432 if test -f $srcdir/config.status; then 3433 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3434 fi 3435fi 3436 3437# test whether we have cygpath 3438if test -z "$CYGPATH_W"; then 3439 if (cygpath --version) >/dev/null 2>/dev/null; then 3440 CYGPATH_W='cygpath -w' 3441 else 3442 CYGPATH_W=echo 3443 fi 3444fi 3445 3446 3447# Define the identity of the package. 3448 3449 PACKAGE=$PACKAGE 3450 VERSION=$VERSION 3451 3452 3453cat >>confdefs.h <<_ACEOF 3454#define PACKAGE "$PACKAGE" 3455_ACEOF 3456 3457 3458cat >>confdefs.h <<_ACEOF 3459#define VERSION "$VERSION" 3460_ACEOF 3461 3462# Some tools Automake needs. 3463 3464ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3465 3466 3467AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3468 3469 3470AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3471 3472 3473AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3474 3475 3476MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3477 3478# For better backward compatibility. To be removed once Automake 1.9.x 3479# dies out for good. For more background, see: 3480# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3481# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3482mkdir_p='$(MKDIR_P)' 3483 3484# We need awk for the "check" target (and possibly the TAP driver). The 3485# system "awk" is bad on some platforms. 3486# Always define AMTAR for backward compatibility. Yes, it's still used 3487# in the wild :-( We should find a proper way to deprecate it ... 3488AMTAR='$${TAR-tar}' 3489 3490 3491# We'll loop over all known methods to create a tar archive until one works. 3492_am_tools='gnutar pax cpio none' 3493 3494am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3495 3496 3497 3498 3499 3500 3501# POSIX will say in a future version that running "rm -f" with no argument 3502# is OK; and we want to be able to make that assumption in our Makefile 3503# recipes. So use an aggressive probe to check that the usage we want is 3504# actually supported "in the wild" to an acceptable degree. 3505# See automake bug#10828. 3506# To make any issue more visible, cause the running configure to be aborted 3507# by default if the 'rm' program in use doesn't match our expectations; the 3508# user can still override this though. 3509if rm -f && rm -fr && rm -rf; then : OK; else 3510 cat >&2 <<'END' 3511Oops! 3512 3513Your 'rm' program seems unable to run without file operands specified 3514on the command line, even when the '-f' option is present. This is contrary 3515to the behaviour of most rm programs out there, and not conforming with 3516the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3517 3518Please tell bug-automake@gnu.org about your system, including the value 3519of your $PATH and any error possibly output before this message. This 3520can help us improve future automake versions. 3521 3522END 3523 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3524 echo 'Configuration will proceed anyway, since you have set the' >&2 3525 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3526 echo >&2 3527 else 3528 cat >&2 <<'END' 3529Aborting the configuration process, to ensure you take notice of the issue. 3530 3531You can download and install GNU coreutils to get an 'rm' implementation 3532that behaves properly: <http://www.gnu.org/software/coreutils/>. 3533 3534If you want to complete the configuration process using your problematic 3535'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3536to "yes", and re-run configure. 3537 3538END 3539 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3540 fi 3541fi 3542 3543 3544 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 3546$as_echo_n "checking whether to enable debugging... " >&6; } 3547 3548 ax_enable_debug_default=no 3549 ax_enable_debug_is_release=$ax_is_release 3550 3551 # If this is a release, override the default. 3552 if test "$ax_enable_debug_is_release" = "yes"; then : 3553 ax_enable_debug_default="no" 3554fi 3555 3556 3557 3558 3559 # Check whether --enable-debug was given. 3560if test "${enable_debug+set}" = set; then : 3561 enableval=$enable_debug; 3562else 3563 enable_debug=$ax_enable_debug_default 3564fi 3565 3566 3567 # empty mean debug yes 3568 if test "x$enable_debug" = "x"; then : 3569 enable_debug="yes" 3570fi 3571 3572 # case of debug 3573 case $enable_debug in #( 3574 yes) : 3575 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3577$as_echo "yes" >&6; } 3578 CFLAGS="${CFLAGS} -g -O0" 3579 CXXFLAGS="${CXXFLAGS} -g -O0" 3580 FFLAGS="${FFLAGS} -g -O0" 3581 FCFLAGS="${FCFLAGS} -g -O0" 3582 OBJCFLAGS="${OBJCFLAGS} -g -O0" 3583 ;; #( 3584 info) : 3585 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5 3587$as_echo "info" >&6; } 3588 CFLAGS="${CFLAGS} -g" 3589 CXXFLAGS="${CXXFLAGS} -g" 3590 FFLAGS="${FFLAGS} -g" 3591 FCFLAGS="${FCFLAGS} -g" 3592 OBJCFLAGS="${OBJCFLAGS} -g" 3593 ;; #( 3594 profile) : 3595 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5 3597$as_echo "profile" >&6; } 3598 CFLAGS="${CFLAGS} -g -pg" 3599 CXXFLAGS="${CXXFLAGS} -g -pg" 3600 FFLAGS="${FFLAGS} -g -pg" 3601 FCFLAGS="${FCFLAGS} -g -pg" 3602 OBJCFLAGS="${OBJCFLAGS} -g -pg" 3603 LDFLAGS="${LDFLAGS} -pg" 3604 ;; #( 3605 *) : 3606 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3608$as_echo "no" >&6; } 3609 if test "x${CFLAGS+set}" != "xset"; then : 3610 CFLAGS="" 3611fi 3612 if test "x${CXXFLAGS+set}" != "xset"; then : 3613 CXXFLAGS="" 3614fi 3615 if test "x${FFLAGS+set}" != "xset"; then : 3616 FFLAGS="" 3617fi 3618 if test "x${FCFLAGS+set}" != "xset"; then : 3619 FCFLAGS="" 3620fi 3621 if test "x${OBJCFLAGS+set}" != "xset"; then : 3622 OBJCFLAGS="" 3623fi 3624 ;; 3625esac 3626 3627 if test "x$enable_debug" = "xyes"; then : 3628 3629else 3630 3631$as_echo "#define NDEBUG /**/" >>confdefs.h 3632 3633fi 3634 ax_enable_debug=$enable_debug 3635 3636ac_ext=c 3637ac_cpp='$CPP $CPPFLAGS' 3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_c_compiler_gnu 3641if test -n "$ac_tool_prefix"; then 3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3643set dummy ${ac_tool_prefix}gcc; ac_word=$2 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3645$as_echo_n "checking for $ac_word... " >&6; } 3646if ${ac_cv_prog_CC+:} false; then : 3647 $as_echo_n "(cached) " >&6 3648else 3649 if test -n "$CC"; then 3650 ac_cv_prog_CC="$CC" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 test -z "$as_dir" && as_dir=. 3657 for ac_exec_ext in '' $ac_executable_extensions; do 3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3659 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3661 break 2 3662 fi 3663done 3664 done 3665IFS=$as_save_IFS 3666 3667fi 3668fi 3669CC=$ac_cv_prog_CC 3670if test -n "$CC"; then 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3672$as_echo "$CC" >&6; } 3673else 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3675$as_echo "no" >&6; } 3676fi 3677 3678 3679fi 3680if test -z "$ac_cv_prog_CC"; then 3681 ac_ct_CC=$CC 3682 # Extract the first word of "gcc", so it can be a program name with args. 3683set dummy gcc; ac_word=$2 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3685$as_echo_n "checking for $ac_word... " >&6; } 3686if ${ac_cv_prog_ac_ct_CC+:} false; then : 3687 $as_echo_n "(cached) " >&6 3688else 3689 if test -n "$ac_ct_CC"; then 3690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3691else 3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693for as_dir in $PATH 3694do 3695 IFS=$as_save_IFS 3696 test -z "$as_dir" && as_dir=. 3697 for ac_exec_ext in '' $ac_executable_extensions; do 3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3699 ac_cv_prog_ac_ct_CC="gcc" 3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3701 break 2 3702 fi 3703done 3704 done 3705IFS=$as_save_IFS 3706 3707fi 3708fi 3709ac_ct_CC=$ac_cv_prog_ac_ct_CC 3710if test -n "$ac_ct_CC"; then 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3712$as_echo "$ac_ct_CC" >&6; } 3713else 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3715$as_echo "no" >&6; } 3716fi 3717 3718 if test "x$ac_ct_CC" = x; then 3719 CC="" 3720 else 3721 case $cross_compiling:$ac_tool_warned in 3722yes:) 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3725ac_tool_warned=yes ;; 3726esac 3727 CC=$ac_ct_CC 3728 fi 3729else 3730 CC="$ac_cv_prog_CC" 3731fi 3732 3733if test -z "$CC"; then 3734 if test -n "$ac_tool_prefix"; then 3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3736set dummy ${ac_tool_prefix}cc; ac_word=$2 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3738$as_echo_n "checking for $ac_word... " >&6; } 3739if ${ac_cv_prog_CC+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 if test -n "$CC"; then 3743 ac_cv_prog_CC="$CC" # Let the user override the test. 3744else 3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746for as_dir in $PATH 3747do 3748 IFS=$as_save_IFS 3749 test -z "$as_dir" && as_dir=. 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3752 ac_cv_prog_CC="${ac_tool_prefix}cc" 3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3754 break 2 3755 fi 3756done 3757 done 3758IFS=$as_save_IFS 3759 3760fi 3761fi 3762CC=$ac_cv_prog_CC 3763if test -n "$CC"; then 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3765$as_echo "$CC" >&6; } 3766else 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768$as_echo "no" >&6; } 3769fi 3770 3771 3772 fi 3773fi 3774if test -z "$CC"; then 3775 # Extract the first word of "cc", so it can be a program name with args. 3776set dummy cc; ac_word=$2 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3778$as_echo_n "checking for $ac_word... " >&6; } 3779if ${ac_cv_prog_CC+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 if test -n "$CC"; then 3783 ac_cv_prog_CC="$CC" # Let the user override the test. 3784else 3785 ac_prog_rejected=no 3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3787for as_dir in $PATH 3788do 3789 IFS=$as_save_IFS 3790 test -z "$as_dir" && as_dir=. 3791 for ac_exec_ext in '' $ac_executable_extensions; do 3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3794 ac_prog_rejected=yes 3795 continue 3796 fi 3797 ac_cv_prog_CC="cc" 3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3799 break 2 3800 fi 3801done 3802 done 3803IFS=$as_save_IFS 3804 3805if test $ac_prog_rejected = yes; then 3806 # We found a bogon in the path, so make sure we never use it. 3807 set dummy $ac_cv_prog_CC 3808 shift 3809 if test $# != 0; then 3810 # We chose a different compiler from the bogus one. 3811 # However, it has the same basename, so the bogon will be chosen 3812 # first if we set CC to just the basename; use the full file name. 3813 shift 3814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3815 fi 3816fi 3817fi 3818fi 3819CC=$ac_cv_prog_CC 3820if test -n "$CC"; then 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3822$as_echo "$CC" >&6; } 3823else 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825$as_echo "no" >&6; } 3826fi 3827 3828 3829fi 3830if test -z "$CC"; then 3831 if test -n "$ac_tool_prefix"; then 3832 for ac_prog in cl.exe 3833 do 3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3835set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3837$as_echo_n "checking for $ac_word... " >&6; } 3838if ${ac_cv_prog_CC+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 if test -n "$CC"; then 3842 ac_cv_prog_CC="$CC" # Let the user override the test. 3843else 3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3845for as_dir in $PATH 3846do 3847 IFS=$as_save_IFS 3848 test -z "$as_dir" && as_dir=. 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3853 break 2 3854 fi 3855done 3856 done 3857IFS=$as_save_IFS 3858 3859fi 3860fi 3861CC=$ac_cv_prog_CC 3862if test -n "$CC"; then 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3864$as_echo "$CC" >&6; } 3865else 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3867$as_echo "no" >&6; } 3868fi 3869 3870 3871 test -n "$CC" && break 3872 done 3873fi 3874if test -z "$CC"; then 3875 ac_ct_CC=$CC 3876 for ac_prog in cl.exe 3877do 3878 # Extract the first word of "$ac_prog", so it can be a program name with args. 3879set dummy $ac_prog; ac_word=$2 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3881$as_echo_n "checking for $ac_word... " >&6; } 3882if ${ac_cv_prog_ac_ct_CC+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 if test -n "$ac_ct_CC"; then 3886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3887else 3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3889for as_dir in $PATH 3890do 3891 IFS=$as_save_IFS 3892 test -z "$as_dir" && as_dir=. 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3895 ac_cv_prog_ac_ct_CC="$ac_prog" 3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3897 break 2 3898 fi 3899done 3900 done 3901IFS=$as_save_IFS 3902 3903fi 3904fi 3905ac_ct_CC=$ac_cv_prog_ac_ct_CC 3906if test -n "$ac_ct_CC"; then 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3908$as_echo "$ac_ct_CC" >&6; } 3909else 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3911$as_echo "no" >&6; } 3912fi 3913 3914 3915 test -n "$ac_ct_CC" && break 3916done 3917 3918 if test "x$ac_ct_CC" = x; then 3919 CC="" 3920 else 3921 case $cross_compiling:$ac_tool_warned in 3922yes:) 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3925ac_tool_warned=yes ;; 3926esac 3927 CC=$ac_ct_CC 3928 fi 3929fi 3930 3931fi 3932 3933 3934test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3936as_fn_error $? "no acceptable C compiler found in \$PATH 3937See \`config.log' for more details" "$LINENO" 5; } 3938 3939# Provide some information about the compiler. 3940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3941set X $ac_compile 3942ac_compiler=$2 3943for ac_option in --version -v -V -qversion; do 3944 { { ac_try="$ac_compiler $ac_option >&5" 3945case "(($ac_try" in 3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3947 *) ac_try_echo=$ac_try;; 3948esac 3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3950$as_echo "$ac_try_echo"; } >&5 3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3952 ac_status=$? 3953 if test -s conftest.err; then 3954 sed '10a\ 3955... rest of stderr output deleted ... 3956 10q' conftest.err >conftest.er1 3957 cat conftest.er1 >&5 3958 fi 3959 rm -f conftest.er1 conftest.err 3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; } 3962done 3963 3964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967int 3968main () 3969{ 3970 3971 ; 3972 return 0; 3973} 3974_ACEOF 3975ac_clean_files_save=$ac_clean_files 3976ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3977# Try to create an executable without -o first, disregard a.out. 3978# It will help us diagnose broken compilers, and finding out an intuition 3979# of exeext. 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3981$as_echo_n "checking whether the C compiler works... " >&6; } 3982ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3983 3984# The possible output files: 3985ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3986 3987ac_rmfiles= 3988for ac_file in $ac_files 3989do 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3993 esac 3994done 3995rm -f $ac_rmfiles 3996 3997if { { ac_try="$ac_link_default" 3998case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4003$as_echo "$ac_try_echo"; } >&5 4004 (eval "$ac_link_default") 2>&5 4005 ac_status=$? 4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4007 test $ac_status = 0; }; then : 4008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4009# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4010# in a Makefile. We should not override ac_cv_exeext if it was cached, 4011# so that the user can short-circuit this test for compilers unknown to 4012# Autoconf. 4013for ac_file in $ac_files '' 4014do 4015 test -f "$ac_file" || continue 4016 case $ac_file in 4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4018 ;; 4019 [ab].out ) 4020 # We found the default executable, but exeext='' is most 4021 # certainly right. 4022 break;; 4023 *.* ) 4024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4025 then :; else 4026 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4027 fi 4028 # We set ac_cv_exeext here because the later test for it is not 4029 # safe: cross compilers may not add the suffix if given an `-o' 4030 # argument, so we may need to know it at that point already. 4031 # Even if this section looks crufty: it has the advantage of 4032 # actually working. 4033 break;; 4034 * ) 4035 break;; 4036 esac 4037done 4038test "$ac_cv_exeext" = no && ac_cv_exeext= 4039 4040else 4041 ac_file='' 4042fi 4043if test -z "$ac_file"; then : 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4045$as_echo "no" >&6; } 4046$as_echo "$as_me: failed program was:" >&5 4047sed 's/^/| /' conftest.$ac_ext >&5 4048 4049{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4051as_fn_error 77 "C compiler cannot create executables 4052See \`config.log' for more details" "$LINENO" 5; } 4053else 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4055$as_echo "yes" >&6; } 4056fi 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4058$as_echo_n "checking for C compiler default output file name... " >&6; } 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4060$as_echo "$ac_file" >&6; } 4061ac_exeext=$ac_cv_exeext 4062 4063rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4064ac_clean_files=$ac_clean_files_save 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4066$as_echo_n "checking for suffix of executables... " >&6; } 4067if { { ac_try="$ac_link" 4068case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071esac 4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4073$as_echo "$ac_try_echo"; } >&5 4074 (eval "$ac_link") 2>&5 4075 ac_status=$? 4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4077 test $ac_status = 0; }; then : 4078 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4080# work properly (i.e., refer to `conftest.exe'), while it won't with 4081# `rm'. 4082for ac_file in conftest.exe conftest conftest.*; do 4083 test -f "$ac_file" || continue 4084 case $ac_file in 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4087 break;; 4088 * ) break;; 4089 esac 4090done 4091else 4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4094as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4095See \`config.log' for more details" "$LINENO" 5; } 4096fi 4097rm -f conftest conftest$ac_cv_exeext 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4099$as_echo "$ac_cv_exeext" >&6; } 4100 4101rm -f conftest.$ac_ext 4102EXEEXT=$ac_cv_exeext 4103ac_exeext=$EXEEXT 4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106#include <stdio.h> 4107int 4108main () 4109{ 4110FILE *f = fopen ("conftest.out", "w"); 4111 return ferror (f) || fclose (f) != 0; 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117ac_clean_files="$ac_clean_files conftest.out" 4118# Check that the compiler produces executables we can run. If not, either 4119# the compiler is broken, or we cross compile. 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4121$as_echo_n "checking whether we are cross compiling... " >&6; } 4122if test "$cross_compiling" != yes; then 4123 { { ac_try="$ac_link" 4124case "(($ac_try" in 4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4126 *) ac_try_echo=$ac_try;; 4127esac 4128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4129$as_echo "$ac_try_echo"; } >&5 4130 (eval "$ac_link") 2>&5 4131 ac_status=$? 4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4133 test $ac_status = 0; } 4134 if { ac_try='./conftest$ac_cv_exeext' 4135 { { case "(($ac_try" in 4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137 *) ac_try_echo=$ac_try;; 4138esac 4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4140$as_echo "$ac_try_echo"; } >&5 4141 (eval "$ac_try") 2>&5 4142 ac_status=$? 4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4144 test $ac_status = 0; }; }; then 4145 cross_compiling=no 4146 else 4147 if test "$cross_compiling" = maybe; then 4148 cross_compiling=yes 4149 else 4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4152as_fn_error $? "cannot run C compiled programs. 4153If you meant to cross compile, use \`--host'. 4154See \`config.log' for more details" "$LINENO" 5; } 4155 fi 4156 fi 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4159$as_echo "$cross_compiling" >&6; } 4160 4161rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4162ac_clean_files=$ac_clean_files_save 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4164$as_echo_n "checking for suffix of object files... " >&6; } 4165if ${ac_cv_objext+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170 4171int 4172main () 4173{ 4174 4175 ; 4176 return 0; 4177} 4178_ACEOF 4179rm -f conftest.o conftest.obj 4180if { { ac_try="$ac_compile" 4181case "(($ac_try" in 4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4183 *) ac_try_echo=$ac_try;; 4184esac 4185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4186$as_echo "$ac_try_echo"; } >&5 4187 (eval "$ac_compile") 2>&5 4188 ac_status=$? 4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4190 test $ac_status = 0; }; then : 4191 for ac_file in conftest.o conftest.obj conftest.*; do 4192 test -f "$ac_file" || continue; 4193 case $ac_file in 4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4196 break;; 4197 esac 4198done 4199else 4200 $as_echo "$as_me: failed program was:" >&5 4201sed 's/^/| /' conftest.$ac_ext >&5 4202 4203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4205as_fn_error $? "cannot compute suffix of object files: cannot compile 4206See \`config.log' for more details" "$LINENO" 5; } 4207fi 4208rm -f conftest.$ac_cv_objext conftest.$ac_ext 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4211$as_echo "$ac_cv_objext" >&6; } 4212OBJEXT=$ac_cv_objext 4213ac_objext=$OBJEXT 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4215$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4216if ${ac_cv_c_compiler_gnu+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221 4222int 4223main () 4224{ 4225#ifndef __GNUC__ 4226 choke me 4227#endif 4228 4229 ; 4230 return 0; 4231} 4232_ACEOF 4233if ac_fn_c_try_compile "$LINENO"; then : 4234 ac_compiler_gnu=yes 4235else 4236 ac_compiler_gnu=no 4237fi 4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4239ac_cv_c_compiler_gnu=$ac_compiler_gnu 4240 4241fi 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4243$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4244if test $ac_compiler_gnu = yes; then 4245 GCC=yes 4246else 4247 GCC= 4248fi 4249ac_test_CFLAGS=${CFLAGS+set} 4250ac_save_CFLAGS=$CFLAGS 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4252$as_echo_n "checking whether $CC accepts -g... " >&6; } 4253if ${ac_cv_prog_cc_g+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 ac_save_c_werror_flag=$ac_c_werror_flag 4257 ac_c_werror_flag=yes 4258 ac_cv_prog_cc_g=no 4259 CFLAGS="-g" 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262 4263int 4264main () 4265{ 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271if ac_fn_c_try_compile "$LINENO"; then : 4272 ac_cv_prog_cc_g=yes 4273else 4274 CFLAGS="" 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278int 4279main () 4280{ 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286if ac_fn_c_try_compile "$LINENO"; then : 4287 4288else 4289 ac_c_werror_flag=$ac_save_c_werror_flag 4290 CFLAGS="-g" 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293 4294int 4295main () 4296{ 4297 4298 ; 4299 return 0; 4300} 4301_ACEOF 4302if ac_fn_c_try_compile "$LINENO"; then : 4303 ac_cv_prog_cc_g=yes 4304fi 4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4306fi 4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4308fi 4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4310 ac_c_werror_flag=$ac_save_c_werror_flag 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4313$as_echo "$ac_cv_prog_cc_g" >&6; } 4314if test "$ac_test_CFLAGS" = set; then 4315 CFLAGS=$ac_save_CFLAGS 4316elif test $ac_cv_prog_cc_g = yes; then 4317 if test "$GCC" = yes; then 4318 CFLAGS="-g -O2" 4319 else 4320 CFLAGS="-g" 4321 fi 4322else 4323 if test "$GCC" = yes; then 4324 CFLAGS="-O2" 4325 else 4326 CFLAGS= 4327 fi 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4330$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4331if ${ac_cv_prog_cc_c89+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 ac_cv_prog_cc_c89=no 4335ac_save_CC=$CC 4336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <stdarg.h> 4339#include <stdio.h> 4340struct stat; 4341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4342struct buf { int x; }; 4343FILE * (*rcsopen) (struct buf *, struct stat *, int); 4344static char *e (p, i) 4345 char **p; 4346 int i; 4347{ 4348 return p[i]; 4349} 4350static char *f (char * (*g) (char **, int), char **p, ...) 4351{ 4352 char *s; 4353 va_list v; 4354 va_start (v,p); 4355 s = g (p, va_arg (v,int)); 4356 va_end (v); 4357 return s; 4358} 4359 4360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4361 function prototypes and stuff, but not '\xHH' hex character constants. 4362 These don't provoke an error unfortunately, instead are silently treated 4363 as 'x'. The following induces an error, until -std is added to get 4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4365 array size at least. It's necessary to write '\x00'==0 to get something 4366 that's true only with -std. */ 4367int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4368 4369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4370 inside strings and character constants. */ 4371#define FOO(x) 'x' 4372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4373 4374int test (int i, double x); 4375struct s1 {int (*f) (int a);}; 4376struct s2 {int (*f) (double a);}; 4377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4378int argc; 4379char **argv; 4380int 4381main () 4382{ 4383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4384 ; 4385 return 0; 4386} 4387_ACEOF 4388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4390do 4391 CC="$ac_save_CC $ac_arg" 4392 if ac_fn_c_try_compile "$LINENO"; then : 4393 ac_cv_prog_cc_c89=$ac_arg 4394fi 4395rm -f core conftest.err conftest.$ac_objext 4396 test "x$ac_cv_prog_cc_c89" != "xno" && break 4397done 4398rm -f conftest.$ac_ext 4399CC=$ac_save_CC 4400 4401fi 4402# AC_CACHE_VAL 4403case "x$ac_cv_prog_cc_c89" in 4404 x) 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4406$as_echo "none needed" >&6; } ;; 4407 xno) 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4409$as_echo "unsupported" >&6; } ;; 4410 *) 4411 CC="$CC $ac_cv_prog_cc_c89" 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4414esac 4415if test "x$ac_cv_prog_cc_c89" != xno; then : 4416 4417fi 4418 4419ac_ext=c 4420ac_cpp='$CPP $CPPFLAGS' 4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4423ac_compiler_gnu=$ac_cv_c_compiler_gnu 4424 4425ac_ext=c 4426ac_cpp='$CPP $CPPFLAGS' 4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4429ac_compiler_gnu=$ac_cv_c_compiler_gnu 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4431$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4432if ${am_cv_prog_cc_c_o+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437 4438int 4439main () 4440{ 4441 4442 ; 4443 return 0; 4444} 4445_ACEOF 4446 # Make sure it works both with $CC and with simple cc. 4447 # Following AC_PROG_CC_C_O, we do the test twice because some 4448 # compilers refuse to overwrite an existing .o file with -o, 4449 # though they will create one. 4450 am_cv_prog_cc_c_o=yes 4451 for am_i in 1 2; do 4452 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4453 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4454 ac_status=$? 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } \ 4457 && test -f conftest2.$ac_objext; then 4458 : OK 4459 else 4460 am_cv_prog_cc_c_o=no 4461 break 4462 fi 4463 done 4464 rm -f core conftest* 4465 unset am_i 4466fi 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4468$as_echo "$am_cv_prog_cc_c_o" >&6; } 4469if test "$am_cv_prog_cc_c_o" != yes; then 4470 # Losing compiler, so override with the script. 4471 # FIXME: It is wrong to rewrite CC. 4472 # But if we don't then we get into trouble of one sort or another. 4473 # A longer-term fix would be to have automake use am__CC in this case, 4474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4475 CC="$am_aux_dir/compile $CC" 4476fi 4477ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482 4483DEPDIR="${am__leading_dot}deps" 4484 4485ac_config_commands="$ac_config_commands depfiles" 4486 4487 4488am_make=${MAKE-make} 4489cat > confinc << 'END' 4490am__doit: 4491 @echo this is the am__doit target 4492.PHONY: am__doit 4493END 4494# If we don't find an include directive, just comment out the code. 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4496$as_echo_n "checking for style of include used by $am_make... " >&6; } 4497am__include="#" 4498am__quote= 4499_am_result=none 4500# First try GNU make style include. 4501echo "include confinc" > confmf 4502# Ignore all kinds of additional output from 'make'. 4503case `$am_make -s -f confmf 2> /dev/null` in #( 4504*the\ am__doit\ target*) 4505 am__include=include 4506 am__quote= 4507 _am_result=GNU 4508 ;; 4509esac 4510# Now try BSD make style include. 4511if test "$am__include" = "#"; then 4512 echo '.include "confinc"' > confmf 4513 case `$am_make -s -f confmf 2> /dev/null` in #( 4514 *the\ am__doit\ target*) 4515 am__include=.include 4516 am__quote="\"" 4517 _am_result=BSD 4518 ;; 4519 esac 4520fi 4521 4522 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4524$as_echo "$_am_result" >&6; } 4525rm -f confinc confmf 4526 4527# Check whether --enable-dependency-tracking was given. 4528if test "${enable_dependency_tracking+set}" = set; then : 4529 enableval=$enable_dependency_tracking; 4530fi 4531 4532if test "x$enable_dependency_tracking" != xno; then 4533 am_depcomp="$ac_aux_dir/depcomp" 4534 AMDEPBACKSLASH='\' 4535 am__nodep='_no' 4536fi 4537 if test "x$enable_dependency_tracking" != xno; then 4538 AMDEP_TRUE= 4539 AMDEP_FALSE='#' 4540else 4541 AMDEP_TRUE='#' 4542 AMDEP_FALSE= 4543fi 4544 4545 4546 4547depcc="$CC" am_compiler_list= 4548 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4550$as_echo_n "checking dependency style of $depcc... " >&6; } 4551if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4552 $as_echo_n "(cached) " >&6 4553else 4554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4555 # We make a subdir and do the tests there. Otherwise we can end up 4556 # making bogus files that we don't know about and never remove. For 4557 # instance it was reported that on HP-UX the gcc test will end up 4558 # making a dummy file named 'D' -- because '-MD' means "put the output 4559 # in D". 4560 rm -rf conftest.dir 4561 mkdir conftest.dir 4562 # Copy depcomp to subdir because otherwise we won't find it if we're 4563 # using a relative directory. 4564 cp "$am_depcomp" conftest.dir 4565 cd conftest.dir 4566 # We will build objects and dependencies in a subdirectory because 4567 # it helps to detect inapplicable dependency modes. For instance 4568 # both Tru64's cc and ICC support -MD to output dependencies as a 4569 # side effect of compilation, but ICC will put the dependencies in 4570 # the current directory while Tru64 will put them in the object 4571 # directory. 4572 mkdir sub 4573 4574 am_cv_CC_dependencies_compiler_type=none 4575 if test "$am_compiler_list" = ""; then 4576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4577 fi 4578 am__universal=false 4579 case " $depcc " in #( 4580 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4581 esac 4582 4583 for depmode in $am_compiler_list; do 4584 # Setup a source with many dependencies, because some compilers 4585 # like to wrap large dependency lists on column 80 (with \), and 4586 # we should not choose a depcomp mode which is confused by this. 4587 # 4588 # We need to recreate these files for each test, as the compiler may 4589 # overwrite some of them when testing with obscure command lines. 4590 # This happens at least with the AIX C compiler. 4591 : > sub/conftest.c 4592 for i in 1 2 3 4 5 6; do 4593 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4594 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4595 # Solaris 10 /bin/sh. 4596 echo '/* dummy */' > sub/conftst$i.h 4597 done 4598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4599 4600 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4601 # mode. It turns out that the SunPro C++ compiler does not properly 4602 # handle '-M -o', and we need to detect this. Also, some Intel 4603 # versions had trouble with output in subdirs. 4604 am__obj=sub/conftest.${OBJEXT-o} 4605 am__minus_obj="-o $am__obj" 4606 case $depmode in 4607 gcc) 4608 # This depmode causes a compiler race in universal mode. 4609 test "$am__universal" = false || continue 4610 ;; 4611 nosideeffect) 4612 # After this tag, mechanisms are not by side-effect, so they'll 4613 # only be used when explicitly requested. 4614 if test "x$enable_dependency_tracking" = xyes; then 4615 continue 4616 else 4617 break 4618 fi 4619 ;; 4620 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4621 # This compiler won't grok '-c -o', but also, the minuso test has 4622 # not run yet. These depmodes are late enough in the game, and 4623 # so weak that their functioning should not be impacted. 4624 am__obj=conftest.${OBJEXT-o} 4625 am__minus_obj= 4626 ;; 4627 none) break ;; 4628 esac 4629 if depmode=$depmode \ 4630 source=sub/conftest.c object=$am__obj \ 4631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4633 >/dev/null 2>conftest.err && 4634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4638 # icc doesn't choke on unknown options, it will just issue warnings 4639 # or remarks (even with -Werror). So we grep stderr for any message 4640 # that says an option was ignored or not supported. 4641 # When given -MP, icc 7.0 and 7.1 complain thusly: 4642 # icc: Command line warning: ignoring option '-M'; no argument required 4643 # The diagnosis changed in icc 8.0: 4644 # icc: Command line remark: option '-MP' not supported 4645 if (grep 'ignoring option' conftest.err || 4646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4647 am_cv_CC_dependencies_compiler_type=$depmode 4648 break 4649 fi 4650 fi 4651 done 4652 4653 cd .. 4654 rm -rf conftest.dir 4655else 4656 am_cv_CC_dependencies_compiler_type=none 4657fi 4658 4659fi 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4661$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4662CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4663 4664 if 4665 test "x$enable_dependency_tracking" != xno \ 4666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4667 am__fastdepCC_TRUE= 4668 am__fastdepCC_FALSE='#' 4669else 4670 am__fastdepCC_TRUE='#' 4671 am__fastdepCC_FALSE= 4672fi 4673 4674 4675 4676enable_win32_dll=yes 4677 4678case $host in 4679*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4680 if test -n "$ac_tool_prefix"; then 4681 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4682set dummy ${ac_tool_prefix}as; ac_word=$2 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4684$as_echo_n "checking for $ac_word... " >&6; } 4685if ${ac_cv_prog_AS+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 if test -n "$AS"; then 4689 ac_cv_prog_AS="$AS" # Let the user override the test. 4690else 4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4692for as_dir in $PATH 4693do 4694 IFS=$as_save_IFS 4695 test -z "$as_dir" && as_dir=. 4696 for ac_exec_ext in '' $ac_executable_extensions; do 4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4698 ac_cv_prog_AS="${ac_tool_prefix}as" 4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4700 break 2 4701 fi 4702done 4703 done 4704IFS=$as_save_IFS 4705 4706fi 4707fi 4708AS=$ac_cv_prog_AS 4709if test -n "$AS"; then 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4711$as_echo "$AS" >&6; } 4712else 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714$as_echo "no" >&6; } 4715fi 4716 4717 4718fi 4719if test -z "$ac_cv_prog_AS"; then 4720 ac_ct_AS=$AS 4721 # Extract the first word of "as", so it can be a program name with args. 4722set dummy as; ac_word=$2 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4724$as_echo_n "checking for $ac_word... " >&6; } 4725if ${ac_cv_prog_ac_ct_AS+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 if test -n "$ac_ct_AS"; then 4729 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4730else 4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4738 ac_cv_prog_ac_ct_AS="as" 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4740 break 2 4741 fi 4742done 4743 done 4744IFS=$as_save_IFS 4745 4746fi 4747fi 4748ac_ct_AS=$ac_cv_prog_ac_ct_AS 4749if test -n "$ac_ct_AS"; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4751$as_echo "$ac_ct_AS" >&6; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754$as_echo "no" >&6; } 4755fi 4756 4757 if test "x$ac_ct_AS" = x; then 4758 AS="false" 4759 else 4760 case $cross_compiling:$ac_tool_warned in 4761yes:) 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4764ac_tool_warned=yes ;; 4765esac 4766 AS=$ac_ct_AS 4767 fi 4768else 4769 AS="$ac_cv_prog_AS" 4770fi 4771 4772 if test -n "$ac_tool_prefix"; then 4773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4774set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4776$as_echo_n "checking for $ac_word... " >&6; } 4777if ${ac_cv_prog_DLLTOOL+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 if test -n "$DLLTOOL"; then 4781 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4782else 4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4784for as_dir in $PATH 4785do 4786 IFS=$as_save_IFS 4787 test -z "$as_dir" && as_dir=. 4788 for ac_exec_ext in '' $ac_executable_extensions; do 4789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4790 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4792 break 2 4793 fi 4794done 4795 done 4796IFS=$as_save_IFS 4797 4798fi 4799fi 4800DLLTOOL=$ac_cv_prog_DLLTOOL 4801if test -n "$DLLTOOL"; then 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4803$as_echo "$DLLTOOL" >&6; } 4804else 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4806$as_echo "no" >&6; } 4807fi 4808 4809 4810fi 4811if test -z "$ac_cv_prog_DLLTOOL"; then 4812 ac_ct_DLLTOOL=$DLLTOOL 4813 # Extract the first word of "dlltool", so it can be a program name with args. 4814set dummy dlltool; ac_word=$2 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4816$as_echo_n "checking for $ac_word... " >&6; } 4817if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 if test -n "$ac_ct_DLLTOOL"; then 4821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4822else 4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4824for as_dir in $PATH 4825do 4826 IFS=$as_save_IFS 4827 test -z "$as_dir" && as_dir=. 4828 for ac_exec_ext in '' $ac_executable_extensions; do 4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4830 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4832 break 2 4833 fi 4834done 4835 done 4836IFS=$as_save_IFS 4837 4838fi 4839fi 4840ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4841if test -n "$ac_ct_DLLTOOL"; then 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4843$as_echo "$ac_ct_DLLTOOL" >&6; } 4844else 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846$as_echo "no" >&6; } 4847fi 4848 4849 if test "x$ac_ct_DLLTOOL" = x; then 4850 DLLTOOL="false" 4851 else 4852 case $cross_compiling:$ac_tool_warned in 4853yes:) 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4856ac_tool_warned=yes ;; 4857esac 4858 DLLTOOL=$ac_ct_DLLTOOL 4859 fi 4860else 4861 DLLTOOL="$ac_cv_prog_DLLTOOL" 4862fi 4863 4864 if test -n "$ac_tool_prefix"; then 4865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4866set dummy ${ac_tool_prefix}objdump; ac_word=$2 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868$as_echo_n "checking for $ac_word... " >&6; } 4869if ${ac_cv_prog_OBJDUMP+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 if test -n "$OBJDUMP"; then 4873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4874else 4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887 done 4888IFS=$as_save_IFS 4889 4890fi 4891fi 4892OBJDUMP=$ac_cv_prog_OBJDUMP 4893if test -n "$OBJDUMP"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4895$as_echo "$OBJDUMP" >&6; } 4896else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898$as_echo "no" >&6; } 4899fi 4900 4901 4902fi 4903if test -z "$ac_cv_prog_OBJDUMP"; then 4904 ac_ct_OBJDUMP=$OBJDUMP 4905 # Extract the first word of "objdump", so it can be a program name with args. 4906set dummy objdump; ac_word=$2 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4908$as_echo_n "checking for $ac_word... " >&6; } 4909if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 if test -n "$ac_ct_OBJDUMP"; then 4913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4914else 4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4916for as_dir in $PATH 4917do 4918 IFS=$as_save_IFS 4919 test -z "$as_dir" && as_dir=. 4920 for ac_exec_ext in '' $ac_executable_extensions; do 4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4922 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4924 break 2 4925 fi 4926done 4927 done 4928IFS=$as_save_IFS 4929 4930fi 4931fi 4932ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4933if test -n "$ac_ct_OBJDUMP"; then 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4935$as_echo "$ac_ct_OBJDUMP" >&6; } 4936else 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4938$as_echo "no" >&6; } 4939fi 4940 4941 if test "x$ac_ct_OBJDUMP" = x; then 4942 OBJDUMP="false" 4943 else 4944 case $cross_compiling:$ac_tool_warned in 4945yes:) 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4948ac_tool_warned=yes ;; 4949esac 4950 OBJDUMP=$ac_ct_OBJDUMP 4951 fi 4952else 4953 OBJDUMP="$ac_cv_prog_OBJDUMP" 4954fi 4955 4956 ;; 4957esac 4958 4959test -z "$AS" && AS=as 4960 4961 4962 4963 4964 4965test -z "$DLLTOOL" && DLLTOOL=dlltool 4966 4967 4968 4969 4970 4971test -z "$OBJDUMP" && OBJDUMP=objdump 4972 4973 4974 4975 4976 4977 4978 4979case `pwd` in 4980 *\ * | *\ *) 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4982$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4983esac 4984 4985 4986 4987macro_version='2.4.6' 4988macro_revision='2.4.6' 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002ltmain=$ac_aux_dir/ltmain.sh 5003 5004# Backslashify metacharacters that are still active within 5005# double-quoted strings. 5006sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5007 5008# Same as above, but do not quote variable references. 5009double_quote_subst='s/\(["`\\]\)/\\\1/g' 5010 5011# Sed substitution to delay expansion of an escaped shell variable in a 5012# double_quote_subst'ed string. 5013delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5014 5015# Sed substitution to delay expansion of an escaped single quote. 5016delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5017 5018# Sed substitution to avoid accidental globbing in evaled expressions 5019no_glob_subst='s/\*/\\\*/g' 5020 5021ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5022ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5023ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5024 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5026$as_echo_n "checking how to print strings... " >&6; } 5027# Test print first, because it will be a builtin if present. 5028if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5029 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5030 ECHO='print -r --' 5031elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5032 ECHO='printf %s\n' 5033else 5034 # Use this function as a fallback that always works. 5035 func_fallback_echo () 5036 { 5037 eval 'cat <<_LTECHO_EOF 5038$1 5039_LTECHO_EOF' 5040 } 5041 ECHO='func_fallback_echo' 5042fi 5043 5044# func_echo_all arg... 5045# Invoke $ECHO with all args, space-separated. 5046func_echo_all () 5047{ 5048 $ECHO "" 5049} 5050 5051case $ECHO in 5052 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5053$as_echo "printf" >&6; } ;; 5054 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5055$as_echo "print -r" >&6; } ;; 5056 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5057$as_echo "cat" >&6; } ;; 5058esac 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5074$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5075if ${ac_cv_path_SED+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5079 for ac_i in 1 2 3 4 5 6 7; do 5080 ac_script="$ac_script$as_nl$ac_script" 5081 done 5082 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5083 { ac_script=; unset ac_script;} 5084 if test -z "$SED"; then 5085 ac_path_SED_found=false 5086 # Loop through the user's path and test for each of PROGNAME-LIST 5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088for as_dir in $PATH 5089do 5090 IFS=$as_save_IFS 5091 test -z "$as_dir" && as_dir=. 5092 for ac_prog in sed gsed; do 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5095 as_fn_executable_p "$ac_path_SED" || continue 5096# Check for GNU ac_path_SED and select it if it is found. 5097 # Check for GNU $ac_path_SED 5098case `"$ac_path_SED" --version 2>&1` in 5099*GNU*) 5100 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5101*) 5102 ac_count=0 5103 $as_echo_n 0123456789 >"conftest.in" 5104 while : 5105 do 5106 cat "conftest.in" "conftest.in" >"conftest.tmp" 5107 mv "conftest.tmp" "conftest.in" 5108 cp "conftest.in" "conftest.nl" 5109 $as_echo '' >> "conftest.nl" 5110 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5112 as_fn_arith $ac_count + 1 && ac_count=$as_val 5113 if test $ac_count -gt ${ac_path_SED_max-0}; then 5114 # Best one so far, save it but keep looking for a better one 5115 ac_cv_path_SED="$ac_path_SED" 5116 ac_path_SED_max=$ac_count 5117 fi 5118 # 10*(2^10) chars as input seems more than enough 5119 test $ac_count -gt 10 && break 5120 done 5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5122esac 5123 5124 $ac_path_SED_found && break 3 5125 done 5126 done 5127 done 5128IFS=$as_save_IFS 5129 if test -z "$ac_cv_path_SED"; then 5130 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5131 fi 5132else 5133 ac_cv_path_SED=$SED 5134fi 5135 5136fi 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5138$as_echo "$ac_cv_path_SED" >&6; } 5139 SED="$ac_cv_path_SED" 5140 rm -f conftest.sed 5141 5142test -z "$SED" && SED=sed 5143Xsed="$SED -e 1s/^X//" 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5156$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5157if ${ac_cv_path_GREP+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 if test -z "$GREP"; then 5161 ac_path_GREP_found=false 5162 # Loop through the user's path and test for each of PROGNAME-LIST 5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5165do 5166 IFS=$as_save_IFS 5167 test -z "$as_dir" && as_dir=. 5168 for ac_prog in grep ggrep; do 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5171 as_fn_executable_p "$ac_path_GREP" || continue 5172# Check for GNU ac_path_GREP and select it if it is found. 5173 # Check for GNU $ac_path_GREP 5174case `"$ac_path_GREP" --version 2>&1` in 5175*GNU*) 5176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5177*) 5178 ac_count=0 5179 $as_echo_n 0123456789 >"conftest.in" 5180 while : 5181 do 5182 cat "conftest.in" "conftest.in" >"conftest.tmp" 5183 mv "conftest.tmp" "conftest.in" 5184 cp "conftest.in" "conftest.nl" 5185 $as_echo 'GREP' >> "conftest.nl" 5186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5188 as_fn_arith $ac_count + 1 && ac_count=$as_val 5189 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5190 # Best one so far, save it but keep looking for a better one 5191 ac_cv_path_GREP="$ac_path_GREP" 5192 ac_path_GREP_max=$ac_count 5193 fi 5194 # 10*(2^10) chars as input seems more than enough 5195 test $ac_count -gt 10 && break 5196 done 5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5198esac 5199 5200 $ac_path_GREP_found && break 3 5201 done 5202 done 5203 done 5204IFS=$as_save_IFS 5205 if test -z "$ac_cv_path_GREP"; then 5206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5207 fi 5208else 5209 ac_cv_path_GREP=$GREP 5210fi 5211 5212fi 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5214$as_echo "$ac_cv_path_GREP" >&6; } 5215 GREP="$ac_cv_path_GREP" 5216 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5219$as_echo_n "checking for egrep... " >&6; } 5220if ${ac_cv_path_EGREP+:} false; then : 5221 $as_echo_n "(cached) " >&6 5222else 5223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5224 then ac_cv_path_EGREP="$GREP -E" 5225 else 5226 if test -z "$EGREP"; then 5227 ac_path_EGREP_found=false 5228 # Loop through the user's path and test for each of PROGNAME-LIST 5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5231do 5232 IFS=$as_save_IFS 5233 test -z "$as_dir" && as_dir=. 5234 for ac_prog in egrep; do 5235 for ac_exec_ext in '' $ac_executable_extensions; do 5236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5237 as_fn_executable_p "$ac_path_EGREP" || continue 5238# Check for GNU ac_path_EGREP and select it if it is found. 5239 # Check for GNU $ac_path_EGREP 5240case `"$ac_path_EGREP" --version 2>&1` in 5241*GNU*) 5242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5243*) 5244 ac_count=0 5245 $as_echo_n 0123456789 >"conftest.in" 5246 while : 5247 do 5248 cat "conftest.in" "conftest.in" >"conftest.tmp" 5249 mv "conftest.tmp" "conftest.in" 5250 cp "conftest.in" "conftest.nl" 5251 $as_echo 'EGREP' >> "conftest.nl" 5252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5254 as_fn_arith $ac_count + 1 && ac_count=$as_val 5255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5256 # Best one so far, save it but keep looking for a better one 5257 ac_cv_path_EGREP="$ac_path_EGREP" 5258 ac_path_EGREP_max=$ac_count 5259 fi 5260 # 10*(2^10) chars as input seems more than enough 5261 test $ac_count -gt 10 && break 5262 done 5263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5264esac 5265 5266 $ac_path_EGREP_found && break 3 5267 done 5268 done 5269 done 5270IFS=$as_save_IFS 5271 if test -z "$ac_cv_path_EGREP"; then 5272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5273 fi 5274else 5275 ac_cv_path_EGREP=$EGREP 5276fi 5277 5278 fi 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5281$as_echo "$ac_cv_path_EGREP" >&6; } 5282 EGREP="$ac_cv_path_EGREP" 5283 5284 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5286$as_echo_n "checking for fgrep... " >&6; } 5287if ${ac_cv_path_FGREP+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289else 5290 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5291 then ac_cv_path_FGREP="$GREP -F" 5292 else 5293 if test -z "$FGREP"; then 5294 ac_path_FGREP_found=false 5295 # Loop through the user's path and test for each of PROGNAME-LIST 5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5298do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_prog in fgrep; do 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5304 as_fn_executable_p "$ac_path_FGREP" || continue 5305# Check for GNU ac_path_FGREP and select it if it is found. 5306 # Check for GNU $ac_path_FGREP 5307case `"$ac_path_FGREP" --version 2>&1` in 5308*GNU*) 5309 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5310*) 5311 ac_count=0 5312 $as_echo_n 0123456789 >"conftest.in" 5313 while : 5314 do 5315 cat "conftest.in" "conftest.in" >"conftest.tmp" 5316 mv "conftest.tmp" "conftest.in" 5317 cp "conftest.in" "conftest.nl" 5318 $as_echo 'FGREP' >> "conftest.nl" 5319 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5321 as_fn_arith $ac_count + 1 && ac_count=$as_val 5322 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5323 # Best one so far, save it but keep looking for a better one 5324 ac_cv_path_FGREP="$ac_path_FGREP" 5325 ac_path_FGREP_max=$ac_count 5326 fi 5327 # 10*(2^10) chars as input seems more than enough 5328 test $ac_count -gt 10 && break 5329 done 5330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5331esac 5332 5333 $ac_path_FGREP_found && break 3 5334 done 5335 done 5336 done 5337IFS=$as_save_IFS 5338 if test -z "$ac_cv_path_FGREP"; then 5339 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5340 fi 5341else 5342 ac_cv_path_FGREP=$FGREP 5343fi 5344 5345 fi 5346fi 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5348$as_echo "$ac_cv_path_FGREP" >&6; } 5349 FGREP="$ac_cv_path_FGREP" 5350 5351 5352test -z "$GREP" && GREP=grep 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372# Check whether --with-gnu-ld was given. 5373if test "${with_gnu_ld+set}" = set; then : 5374 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5375else 5376 with_gnu_ld=no 5377fi 5378 5379ac_prog=ld 5380if test yes = "$GCC"; then 5381 # Check if gcc -print-prog-name=ld gives a path. 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5383$as_echo_n "checking for ld used by $CC... " >&6; } 5384 case $host in 5385 *-*-mingw*) 5386 # gcc leaves a trailing carriage return, which upsets mingw 5387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5388 *) 5389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5390 esac 5391 case $ac_prog in 5392 # Accept absolute paths. 5393 [\\/]* | ?:[\\/]*) 5394 re_direlt='/[^/][^/]*/\.\./' 5395 # Canonicalize the pathname of ld 5396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5399 done 5400 test -z "$LD" && LD=$ac_prog 5401 ;; 5402 "") 5403 # If it fails, then pretend we aren't using GCC. 5404 ac_prog=ld 5405 ;; 5406 *) 5407 # If it is relative, then search for the first ld in PATH. 5408 with_gnu_ld=unknown 5409 ;; 5410 esac 5411elif test yes = "$with_gnu_ld"; then 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5413$as_echo_n "checking for GNU ld... " >&6; } 5414else 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5416$as_echo_n "checking for non-GNU ld... " >&6; } 5417fi 5418if ${lt_cv_path_LD+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 if test -z "$LD"; then 5422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5423 for ac_dir in $PATH; do 5424 IFS=$lt_save_ifs 5425 test -z "$ac_dir" && ac_dir=. 5426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5427 lt_cv_path_LD=$ac_dir/$ac_prog 5428 # Check to see if the program is GNU ld. I'd rather use --version, 5429 # but apparently some variants of GNU ld only accept -v. 5430 # Break only if it was the GNU/non-GNU ld that we prefer. 5431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5432 *GNU* | *'with BFD'*) 5433 test no != "$with_gnu_ld" && break 5434 ;; 5435 *) 5436 test yes != "$with_gnu_ld" && break 5437 ;; 5438 esac 5439 fi 5440 done 5441 IFS=$lt_save_ifs 5442else 5443 lt_cv_path_LD=$LD # Let the user override the test with a path. 5444fi 5445fi 5446 5447LD=$lt_cv_path_LD 5448if test -n "$LD"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5450$as_echo "$LD" >&6; } 5451else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454fi 5455test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5457$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5458if ${lt_cv_prog_gnu_ld+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5462case `$LD -v 2>&1 </dev/null` in 5463*GNU* | *'with BFD'*) 5464 lt_cv_prog_gnu_ld=yes 5465 ;; 5466*) 5467 lt_cv_prog_gnu_ld=no 5468 ;; 5469esac 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5472$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5473with_gnu_ld=$lt_cv_prog_gnu_ld 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5484$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5485if ${lt_cv_path_NM+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 if test -n "$NM"; then 5489 # Let the user override the test. 5490 lt_cv_path_NM=$NM 5491else 5492 lt_nm_to_check=${ac_tool_prefix}nm 5493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5494 lt_nm_to_check="$lt_nm_to_check nm" 5495 fi 5496 for lt_tmp_nm in $lt_nm_to_check; do 5497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5499 IFS=$lt_save_ifs 5500 test -z "$ac_dir" && ac_dir=. 5501 tmp_nm=$ac_dir/$lt_tmp_nm 5502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5503 # Check to see if the nm accepts a BSD-compat flag. 5504 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5505 # nm: unknown option "B" ignored 5506 # Tru64's nm complains that /dev/null is an invalid object file 5507 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5508 case $build_os in 5509 mingw*) lt_bad_file=conftest.nm/nofile ;; 5510 *) lt_bad_file=/dev/null ;; 5511 esac 5512 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5513 *$lt_bad_file* | *'Invalid file or object type'*) 5514 lt_cv_path_NM="$tmp_nm -B" 5515 break 2 5516 ;; 5517 *) 5518 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5519 */dev/null*) 5520 lt_cv_path_NM="$tmp_nm -p" 5521 break 2 5522 ;; 5523 *) 5524 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5525 continue # so that we can try to find one that supports BSD flags 5526 ;; 5527 esac 5528 ;; 5529 esac 5530 fi 5531 done 5532 IFS=$lt_save_ifs 5533 done 5534 : ${lt_cv_path_NM=no} 5535fi 5536fi 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5538$as_echo "$lt_cv_path_NM" >&6; } 5539if test no != "$lt_cv_path_NM"; then 5540 NM=$lt_cv_path_NM 5541else 5542 # Didn't find any BSD compatible name lister, look for dumpbin. 5543 if test -n "$DUMPBIN"; then : 5544 # Let the user override the test. 5545 else 5546 if test -n "$ac_tool_prefix"; then 5547 for ac_prog in dumpbin "link -dump" 5548 do 5549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5550set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5552$as_echo_n "checking for $ac_word... " >&6; } 5553if ${ac_cv_prog_DUMPBIN+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -n "$DUMPBIN"; then 5557 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5558else 5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5560for as_dir in $PATH 5561do 5562 IFS=$as_save_IFS 5563 test -z "$as_dir" && as_dir=. 5564 for ac_exec_ext in '' $ac_executable_extensions; do 5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5566 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570done 5571 done 5572IFS=$as_save_IFS 5573 5574fi 5575fi 5576DUMPBIN=$ac_cv_prog_DUMPBIN 5577if test -n "$DUMPBIN"; then 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5579$as_echo "$DUMPBIN" >&6; } 5580else 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5582$as_echo "no" >&6; } 5583fi 5584 5585 5586 test -n "$DUMPBIN" && break 5587 done 5588fi 5589if test -z "$DUMPBIN"; then 5590 ac_ct_DUMPBIN=$DUMPBIN 5591 for ac_prog in dumpbin "link -dump" 5592do 5593 # Extract the first word of "$ac_prog", so it can be a program name with args. 5594set dummy $ac_prog; ac_word=$2 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5596$as_echo_n "checking for $ac_word... " >&6; } 5597if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 if test -n "$ac_ct_DUMPBIN"; then 5601 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5602else 5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5604for as_dir in $PATH 5605do 5606 IFS=$as_save_IFS 5607 test -z "$as_dir" && as_dir=. 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5610 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5612 break 2 5613 fi 5614done 5615 done 5616IFS=$as_save_IFS 5617 5618fi 5619fi 5620ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5621if test -n "$ac_ct_DUMPBIN"; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5623$as_echo "$ac_ct_DUMPBIN" >&6; } 5624else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5626$as_echo "no" >&6; } 5627fi 5628 5629 5630 test -n "$ac_ct_DUMPBIN" && break 5631done 5632 5633 if test "x$ac_ct_DUMPBIN" = x; then 5634 DUMPBIN=":" 5635 else 5636 case $cross_compiling:$ac_tool_warned in 5637yes:) 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5640ac_tool_warned=yes ;; 5641esac 5642 DUMPBIN=$ac_ct_DUMPBIN 5643 fi 5644fi 5645 5646 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5647 *COFF*) 5648 DUMPBIN="$DUMPBIN -symbols -headers" 5649 ;; 5650 *) 5651 DUMPBIN=: 5652 ;; 5653 esac 5654 fi 5655 5656 if test : != "$DUMPBIN"; then 5657 NM=$DUMPBIN 5658 fi 5659fi 5660test -z "$NM" && NM=nm 5661 5662 5663 5664 5665 5666 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5668$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5669if ${lt_cv_nm_interface+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 lt_cv_nm_interface="BSD nm" 5673 echo "int some_variable = 0;" > conftest.$ac_ext 5674 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5675 (eval "$ac_compile" 2>conftest.err) 5676 cat conftest.err >&5 5677 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5678 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5679 cat conftest.err >&5 5680 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5681 cat conftest.out >&5 5682 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5683 lt_cv_nm_interface="MS dumpbin" 5684 fi 5685 rm -f conftest* 5686fi 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5688$as_echo "$lt_cv_nm_interface" >&6; } 5689 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5691$as_echo_n "checking whether ln -s works... " >&6; } 5692LN_S=$as_ln_s 5693if test "$LN_S" = "ln -s"; then 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5695$as_echo "yes" >&6; } 5696else 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5698$as_echo "no, using $LN_S" >&6; } 5699fi 5700 5701# find the maximum length of command line arguments 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5703$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5704if ${lt_cv_sys_max_cmd_len+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 i=0 5708 teststring=ABCD 5709 5710 case $build_os in 5711 msdosdjgpp*) 5712 # On DJGPP, this test can blow up pretty badly due to problems in libc 5713 # (any single argument exceeding 2000 bytes causes a buffer overrun 5714 # during glob expansion). Even if it were fixed, the result of this 5715 # check would be larger than it should be. 5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5717 ;; 5718 5719 gnu*) 5720 # Under GNU Hurd, this test is not required because there is 5721 # no limit to the length of command line arguments. 5722 # Libtool will interpret -1 as no limit whatsoever 5723 lt_cv_sys_max_cmd_len=-1; 5724 ;; 5725 5726 cygwin* | mingw* | cegcc*) 5727 # On Win9x/ME, this test blows up -- it succeeds, but takes 5728 # about 5 minutes as the teststring grows exponentially. 5729 # Worse, since 9x/ME are not pre-emptively multitasking, 5730 # you end up with a "frozen" computer, even though with patience 5731 # the test eventually succeeds (with a max line length of 256k). 5732 # Instead, let's just punt: use the minimum linelength reported by 5733 # all of the supported platforms: 8192 (on NT/2K/XP). 5734 lt_cv_sys_max_cmd_len=8192; 5735 ;; 5736 5737 mint*) 5738 # On MiNT this can take a long time and run out of memory. 5739 lt_cv_sys_max_cmd_len=8192; 5740 ;; 5741 5742 amigaos*) 5743 # On AmigaOS with pdksh, this test takes hours, literally. 5744 # So we just punt and use a minimum line length of 8192. 5745 lt_cv_sys_max_cmd_len=8192; 5746 ;; 5747 5748 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5749 # This has been around since 386BSD, at least. Likely further. 5750 if test -x /sbin/sysctl; then 5751 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5752 elif test -x /usr/sbin/sysctl; then 5753 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5754 else 5755 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5756 fi 5757 # And add a safety zone 5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5760 ;; 5761 5762 interix*) 5763 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5764 lt_cv_sys_max_cmd_len=196608 5765 ;; 5766 5767 os2*) 5768 # The test takes a long time on OS/2. 5769 lt_cv_sys_max_cmd_len=8192 5770 ;; 5771 5772 osf*) 5773 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5774 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5775 # nice to cause kernel panics so lets avoid the loop below. 5776 # First set a reasonable default. 5777 lt_cv_sys_max_cmd_len=16384 5778 # 5779 if test -x /sbin/sysconfig; then 5780 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5781 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5782 esac 5783 fi 5784 ;; 5785 sco3.2v5*) 5786 lt_cv_sys_max_cmd_len=102400 5787 ;; 5788 sysv5* | sco5v6* | sysv4.2uw2*) 5789 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5790 if test -n "$kargmax"; then 5791 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5792 else 5793 lt_cv_sys_max_cmd_len=32768 5794 fi 5795 ;; 5796 *) 5797 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5798 if test -n "$lt_cv_sys_max_cmd_len" && \ 5799 test undefined != "$lt_cv_sys_max_cmd_len"; then 5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5802 else 5803 # Make teststring a little bigger before we do anything with it. 5804 # a 1K string should be a reasonable start. 5805 for i in 1 2 3 4 5 6 7 8; do 5806 teststring=$teststring$teststring 5807 done 5808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5809 # If test is not a shell built-in, we'll probably end up computing a 5810 # maximum length that is only half of the actual maximum length, but 5811 # we can't tell. 5812 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5813 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5814 test 17 != "$i" # 1/2 MB should be enough 5815 do 5816 i=`expr $i + 1` 5817 teststring=$teststring$teststring 5818 done 5819 # Only check the string length outside the loop. 5820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5821 teststring= 5822 # Add a significant safety factor because C++ compilers can tack on 5823 # massive amounts of additional arguments before passing them to the 5824 # linker. It appears as though 1/2 is a usable value. 5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5826 fi 5827 ;; 5828 esac 5829 5830fi 5831 5832if test -n "$lt_cv_sys_max_cmd_len"; then 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5834$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5835else 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5837$as_echo "none" >&6; } 5838fi 5839max_cmd_len=$lt_cv_sys_max_cmd_len 5840 5841 5842 5843 5844 5845 5846: ${CP="cp -f"} 5847: ${MV="mv -f"} 5848: ${RM="rm -f"} 5849 5850if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5851 lt_unset=unset 5852else 5853 lt_unset=false 5854fi 5855 5856 5857 5858 5859 5860# test EBCDIC or ASCII 5861case `echo X|tr X '\101'` in 5862 A) # ASCII based system 5863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5864 lt_SP2NL='tr \040 \012' 5865 lt_NL2SP='tr \015\012 \040\040' 5866 ;; 5867 *) # EBCDIC based system 5868 lt_SP2NL='tr \100 \n' 5869 lt_NL2SP='tr \r\n \100\100' 5870 ;; 5871esac 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5882$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5883if ${lt_cv_to_host_file_cmd+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 case $host in 5887 *-*-mingw* ) 5888 case $build in 5889 *-*-mingw* ) # actually msys 5890 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5891 ;; 5892 *-*-cygwin* ) 5893 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5894 ;; 5895 * ) # otherwise, assume *nix 5896 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5897 ;; 5898 esac 5899 ;; 5900 *-*-cygwin* ) 5901 case $build in 5902 *-*-mingw* ) # actually msys 5903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5904 ;; 5905 *-*-cygwin* ) 5906 lt_cv_to_host_file_cmd=func_convert_file_noop 5907 ;; 5908 * ) # otherwise, assume *nix 5909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5910 ;; 5911 esac 5912 ;; 5913 * ) # unhandled hosts (and "normal" native builds) 5914 lt_cv_to_host_file_cmd=func_convert_file_noop 5915 ;; 5916esac 5917 5918fi 5919 5920to_host_file_cmd=$lt_cv_to_host_file_cmd 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5922$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5923 5924 5925 5926 5927 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5929$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5930if ${lt_cv_to_tool_file_cmd+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 #assume ordinary cross tools, or native build. 5934lt_cv_to_tool_file_cmd=func_convert_file_noop 5935case $host in 5936 *-*-mingw* ) 5937 case $build in 5938 *-*-mingw* ) # actually msys 5939 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5940 ;; 5941 esac 5942 ;; 5943esac 5944 5945fi 5946 5947to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5949$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5950 5951 5952 5953 5954 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5956$as_echo_n "checking for $LD option to reload object files... " >&6; } 5957if ${lt_cv_ld_reload_flag+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 lt_cv_ld_reload_flag='-r' 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5963$as_echo "$lt_cv_ld_reload_flag" >&6; } 5964reload_flag=$lt_cv_ld_reload_flag 5965case $reload_flag in 5966"" | " "*) ;; 5967*) reload_flag=" $reload_flag" ;; 5968esac 5969reload_cmds='$LD$reload_flag -o $output$reload_objs' 5970case $host_os in 5971 cygwin* | mingw* | pw32* | cegcc*) 5972 if test yes != "$GCC"; then 5973 reload_cmds=false 5974 fi 5975 ;; 5976 darwin*) 5977 if test yes = "$GCC"; then 5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5979 else 5980 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5981 fi 5982 ;; 5983esac 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993if test -n "$ac_tool_prefix"; then 5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5995set dummy ${ac_tool_prefix}objdump; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if ${ac_cv_prog_OBJDUMP+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$OBJDUMP"; then 6002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6011 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021OBJDUMP=$ac_cv_prog_OBJDUMP 6022if test -n "$OBJDUMP"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6024$as_echo "$OBJDUMP" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 6031fi 6032if test -z "$ac_cv_prog_OBJDUMP"; then 6033 ac_ct_OBJDUMP=$OBJDUMP 6034 # Extract the first word of "objdump", so it can be a program name with args. 6035set dummy objdump; ac_word=$2 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6037$as_echo_n "checking for $ac_word... " >&6; } 6038if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 if test -n "$ac_ct_OBJDUMP"; then 6042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6043else 6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045for as_dir in $PATH 6046do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6051 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055done 6056 done 6057IFS=$as_save_IFS 6058 6059fi 6060fi 6061ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6062if test -n "$ac_ct_OBJDUMP"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6064$as_echo "$ac_ct_OBJDUMP" >&6; } 6065else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067$as_echo "no" >&6; } 6068fi 6069 6070 if test "x$ac_ct_OBJDUMP" = x; then 6071 OBJDUMP="false" 6072 else 6073 case $cross_compiling:$ac_tool_warned in 6074yes:) 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6077ac_tool_warned=yes ;; 6078esac 6079 OBJDUMP=$ac_ct_OBJDUMP 6080 fi 6081else 6082 OBJDUMP="$ac_cv_prog_OBJDUMP" 6083fi 6084 6085test -z "$OBJDUMP" && OBJDUMP=objdump 6086 6087 6088 6089 6090 6091 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6093$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6094if ${lt_cv_deplibs_check_method+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 lt_cv_file_magic_cmd='$MAGIC_CMD' 6098lt_cv_file_magic_test_file= 6099lt_cv_deplibs_check_method='unknown' 6100# Need to set the preceding variable on all platforms that support 6101# interlibrary dependencies. 6102# 'none' -- dependencies not supported. 6103# 'unknown' -- same as none, but documents that we really don't know. 6104# 'pass_all' -- all dependencies passed with no checks. 6105# 'test_compile' -- check by making test program. 6106# 'file_magic [[regex]]' -- check by looking for files in library path 6107# that responds to the $file_magic_cmd with a given extended regex. 6108# If you have 'file' or equivalent on your system and you're not sure 6109# whether 'pass_all' will *always* work, you probably want this one. 6110 6111case $host_os in 6112aix[4-9]*) 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116beos*) 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 6120bsdi[45]*) 6121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6122 lt_cv_file_magic_cmd='/usr/bin/file -L' 6123 lt_cv_file_magic_test_file=/shlib/libc.so 6124 ;; 6125 6126cygwin*) 6127 # func_win32_libid is a shell function defined in ltmain.sh 6128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6129 lt_cv_file_magic_cmd='func_win32_libid' 6130 ;; 6131 6132mingw* | pw32*) 6133 # Base MSYS/MinGW do not provide the 'file' command needed by 6134 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6135 # unless we find 'file', for example because we are cross-compiling. 6136 if ( file / ) >/dev/null 2>&1; then 6137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6138 lt_cv_file_magic_cmd='func_win32_libid' 6139 else 6140 # Keep this pattern in sync with the one in func_win32_libid. 6141 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6142 lt_cv_file_magic_cmd='$OBJDUMP -f' 6143 fi 6144 ;; 6145 6146cegcc*) 6147 # use the weaker test based on 'objdump'. See mingw*. 6148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6149 lt_cv_file_magic_cmd='$OBJDUMP -f' 6150 ;; 6151 6152darwin* | rhapsody*) 6153 lt_cv_deplibs_check_method=pass_all 6154 ;; 6155 6156freebsd* | dragonfly*) 6157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6158 case $host_cpu in 6159 i*86 ) 6160 # Not sure whether the presence of OpenBSD here was a mistake. 6161 # Let's accept both of them until this is cleared up. 6162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6163 lt_cv_file_magic_cmd=/usr/bin/file 6164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6165 ;; 6166 esac 6167 else 6168 lt_cv_deplibs_check_method=pass_all 6169 fi 6170 ;; 6171 6172haiku*) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 6176hpux10.20* | hpux11*) 6177 lt_cv_file_magic_cmd=/usr/bin/file 6178 case $host_cpu in 6179 ia64*) 6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6182 ;; 6183 hppa*64*) 6184 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]' 6185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6186 ;; 6187 *) 6188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6189 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6190 ;; 6191 esac 6192 ;; 6193 6194interix[3-9]*) 6195 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6197 ;; 6198 6199irix5* | irix6* | nonstopux*) 6200 case $LD in 6201 *-32|*"-32 ") libmagic=32-bit;; 6202 *-n32|*"-n32 ") libmagic=N32;; 6203 *-64|*"-64 ") libmagic=64-bit;; 6204 *) libmagic=never-match;; 6205 esac 6206 lt_cv_deplibs_check_method=pass_all 6207 ;; 6208 6209# This must be glibc/ELF. 6210linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6211 lt_cv_deplibs_check_method=pass_all 6212 ;; 6213 6214netbsd*) 6215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6217 else 6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6219 fi 6220 ;; 6221 6222newos6*) 6223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6224 lt_cv_file_magic_cmd=/usr/bin/file 6225 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6226 ;; 6227 6228*nto* | *qnx*) 6229 lt_cv_deplibs_check_method=pass_all 6230 ;; 6231 6232openbsd* | bitrig*) 6233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6235 else 6236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6237 fi 6238 ;; 6239 6240osf3* | osf4* | osf5*) 6241 lt_cv_deplibs_check_method=pass_all 6242 ;; 6243 6244rdos*) 6245 lt_cv_deplibs_check_method=pass_all 6246 ;; 6247 6248solaris*) 6249 lt_cv_deplibs_check_method=pass_all 6250 ;; 6251 6252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6253 lt_cv_deplibs_check_method=pass_all 6254 ;; 6255 6256sysv4 | sysv4.3*) 6257 case $host_vendor in 6258 motorola) 6259 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]' 6260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6261 ;; 6262 ncr) 6263 lt_cv_deplibs_check_method=pass_all 6264 ;; 6265 sequent) 6266 lt_cv_file_magic_cmd='/bin/file' 6267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6268 ;; 6269 sni) 6270 lt_cv_file_magic_cmd='/bin/file' 6271 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6272 lt_cv_file_magic_test_file=/lib/libc.so 6273 ;; 6274 siemens) 6275 lt_cv_deplibs_check_method=pass_all 6276 ;; 6277 pc) 6278 lt_cv_deplibs_check_method=pass_all 6279 ;; 6280 esac 6281 ;; 6282 6283tpf*) 6284 lt_cv_deplibs_check_method=pass_all 6285 ;; 6286os2*) 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289esac 6290 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6293$as_echo "$lt_cv_deplibs_check_method" >&6; } 6294 6295file_magic_glob= 6296want_nocaseglob=no 6297if test "$build" = "$host"; then 6298 case $host_os in 6299 mingw* | pw32*) 6300 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6301 want_nocaseglob=yes 6302 else 6303 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6304 fi 6305 ;; 6306 esac 6307fi 6308 6309file_magic_cmd=$lt_cv_file_magic_cmd 6310deplibs_check_method=$lt_cv_deplibs_check_method 6311test -z "$deplibs_check_method" && deplibs_check_method=unknown 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334if test -n "$ac_tool_prefix"; then 6335 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6336set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6338$as_echo_n "checking for $ac_word... " >&6; } 6339if ${ac_cv_prog_DLLTOOL+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 if test -n "$DLLTOOL"; then 6343 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6344else 6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6346for as_dir in $PATH 6347do 6348 IFS=$as_save_IFS 6349 test -z "$as_dir" && as_dir=. 6350 for ac_exec_ext in '' $ac_executable_extensions; do 6351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6352 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6354 break 2 6355 fi 6356done 6357 done 6358IFS=$as_save_IFS 6359 6360fi 6361fi 6362DLLTOOL=$ac_cv_prog_DLLTOOL 6363if test -n "$DLLTOOL"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6365$as_echo "$DLLTOOL" >&6; } 6366else 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6368$as_echo "no" >&6; } 6369fi 6370 6371 6372fi 6373if test -z "$ac_cv_prog_DLLTOOL"; then 6374 ac_ct_DLLTOOL=$DLLTOOL 6375 # Extract the first word of "dlltool", so it can be a program name with args. 6376set dummy dlltool; ac_word=$2 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6378$as_echo_n "checking for $ac_word... " >&6; } 6379if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6380 $as_echo_n "(cached) " >&6 6381else 6382 if test -n "$ac_ct_DLLTOOL"; then 6383 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6384else 6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6386for as_dir in $PATH 6387do 6388 IFS=$as_save_IFS 6389 test -z "$as_dir" && as_dir=. 6390 for ac_exec_ext in '' $ac_executable_extensions; do 6391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6392 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6394 break 2 6395 fi 6396done 6397 done 6398IFS=$as_save_IFS 6399 6400fi 6401fi 6402ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6403if test -n "$ac_ct_DLLTOOL"; then 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6405$as_echo "$ac_ct_DLLTOOL" >&6; } 6406else 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6408$as_echo "no" >&6; } 6409fi 6410 6411 if test "x$ac_ct_DLLTOOL" = x; then 6412 DLLTOOL="false" 6413 else 6414 case $cross_compiling:$ac_tool_warned in 6415yes:) 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6418ac_tool_warned=yes ;; 6419esac 6420 DLLTOOL=$ac_ct_DLLTOOL 6421 fi 6422else 6423 DLLTOOL="$ac_cv_prog_DLLTOOL" 6424fi 6425 6426test -z "$DLLTOOL" && DLLTOOL=dlltool 6427 6428 6429 6430 6431 6432 6433 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6435$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6436if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 lt_cv_sharedlib_from_linklib_cmd='unknown' 6440 6441case $host_os in 6442cygwin* | mingw* | pw32* | cegcc*) 6443 # two different shell functions defined in ltmain.sh; 6444 # decide which one to use based on capabilities of $DLLTOOL 6445 case `$DLLTOOL --help 2>&1` in 6446 *--identify-strict*) 6447 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6448 ;; 6449 *) 6450 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6451 ;; 6452 esac 6453 ;; 6454*) 6455 # fallback: assume linklib IS sharedlib 6456 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6457 ;; 6458esac 6459 6460fi 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6462$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6463sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6464test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6465 6466 6467 6468 6469 6470 6471 6472 6473if test -n "$ac_tool_prefix"; then 6474 for ac_prog in ar 6475 do 6476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6477set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6479$as_echo_n "checking for $ac_word... " >&6; } 6480if ${ac_cv_prog_AR+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 if test -n "$AR"; then 6484 ac_cv_prog_AR="$AR" # Let the user override the test. 6485else 6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6487for as_dir in $PATH 6488do 6489 IFS=$as_save_IFS 6490 test -z "$as_dir" && as_dir=. 6491 for ac_exec_ext in '' $ac_executable_extensions; do 6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6493 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6495 break 2 6496 fi 6497done 6498 done 6499IFS=$as_save_IFS 6500 6501fi 6502fi 6503AR=$ac_cv_prog_AR 6504if test -n "$AR"; then 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6506$as_echo "$AR" >&6; } 6507else 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6509$as_echo "no" >&6; } 6510fi 6511 6512 6513 test -n "$AR" && break 6514 done 6515fi 6516if test -z "$AR"; then 6517 ac_ct_AR=$AR 6518 for ac_prog in ar 6519do 6520 # Extract the first word of "$ac_prog", so it can be a program name with args. 6521set dummy $ac_prog; ac_word=$2 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6523$as_echo_n "checking for $ac_word... " >&6; } 6524if ${ac_cv_prog_ac_ct_AR+:} false; then : 6525 $as_echo_n "(cached) " >&6 6526else 6527 if test -n "$ac_ct_AR"; then 6528 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6529else 6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6531for as_dir in $PATH 6532do 6533 IFS=$as_save_IFS 6534 test -z "$as_dir" && as_dir=. 6535 for ac_exec_ext in '' $ac_executable_extensions; do 6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6537 ac_cv_prog_ac_ct_AR="$ac_prog" 6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6539 break 2 6540 fi 6541done 6542 done 6543IFS=$as_save_IFS 6544 6545fi 6546fi 6547ac_ct_AR=$ac_cv_prog_ac_ct_AR 6548if test -n "$ac_ct_AR"; then 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6550$as_echo "$ac_ct_AR" >&6; } 6551else 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6553$as_echo "no" >&6; } 6554fi 6555 6556 6557 test -n "$ac_ct_AR" && break 6558done 6559 6560 if test "x$ac_ct_AR" = x; then 6561 AR="false" 6562 else 6563 case $cross_compiling:$ac_tool_warned in 6564yes:) 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6567ac_tool_warned=yes ;; 6568esac 6569 AR=$ac_ct_AR 6570 fi 6571fi 6572 6573: ${AR=ar} 6574: ${AR_FLAGS=cru} 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6587$as_echo_n "checking for archiver @FILE support... " >&6; } 6588if ${lt_cv_ar_at_file+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 lt_cv_ar_at_file=no 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593/* end confdefs.h. */ 6594 6595int 6596main () 6597{ 6598 6599 ; 6600 return 0; 6601} 6602_ACEOF 6603if ac_fn_c_try_compile "$LINENO"; then : 6604 echo conftest.$ac_objext > conftest.lst 6605 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6607 (eval $lt_ar_try) 2>&5 6608 ac_status=$? 6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6610 test $ac_status = 0; } 6611 if test 0 -eq "$ac_status"; then 6612 # Ensure the archiver fails upon bogus file names. 6613 rm -f conftest.$ac_objext libconftest.a 6614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6615 (eval $lt_ar_try) 2>&5 6616 ac_status=$? 6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6618 test $ac_status = 0; } 6619 if test 0 -ne "$ac_status"; then 6620 lt_cv_ar_at_file=@ 6621 fi 6622 fi 6623 rm -f conftest.* libconftest.a 6624 6625fi 6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6627 6628fi 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6630$as_echo "$lt_cv_ar_at_file" >&6; } 6631 6632if test no = "$lt_cv_ar_at_file"; then 6633 archiver_list_spec= 6634else 6635 archiver_list_spec=$lt_cv_ar_at_file 6636fi 6637 6638 6639 6640 6641 6642 6643 6644if test -n "$ac_tool_prefix"; then 6645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6646set dummy ${ac_tool_prefix}strip; ac_word=$2 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6648$as_echo_n "checking for $ac_word... " >&6; } 6649if ${ac_cv_prog_STRIP+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 if test -n "$STRIP"; then 6653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6654else 6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656for as_dir in $PATH 6657do 6658 IFS=$as_save_IFS 6659 test -z "$as_dir" && as_dir=. 6660 for ac_exec_ext in '' $ac_executable_extensions; do 6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6662 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6664 break 2 6665 fi 6666done 6667 done 6668IFS=$as_save_IFS 6669 6670fi 6671fi 6672STRIP=$ac_cv_prog_STRIP 6673if test -n "$STRIP"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6675$as_echo "$STRIP" >&6; } 6676else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678$as_echo "no" >&6; } 6679fi 6680 6681 6682fi 6683if test -z "$ac_cv_prog_STRIP"; then 6684 ac_ct_STRIP=$STRIP 6685 # Extract the first word of "strip", so it can be a program name with args. 6686set dummy strip; ac_word=$2 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$ac_ct_STRIP"; then 6693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6702 ac_cv_prog_ac_ct_STRIP="strip" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6713if test -n "$ac_ct_STRIP"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6715$as_echo "$ac_ct_STRIP" >&6; } 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 if test "x$ac_ct_STRIP" = x; then 6722 STRIP=":" 6723 else 6724 case $cross_compiling:$ac_tool_warned in 6725yes:) 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6728ac_tool_warned=yes ;; 6729esac 6730 STRIP=$ac_ct_STRIP 6731 fi 6732else 6733 STRIP="$ac_cv_prog_STRIP" 6734fi 6735 6736test -z "$STRIP" && STRIP=: 6737 6738 6739 6740 6741 6742 6743if test -n "$ac_tool_prefix"; then 6744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6745set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6747$as_echo_n "checking for $ac_word... " >&6; } 6748if ${ac_cv_prog_RANLIB+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 if test -n "$RANLIB"; then 6752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6753else 6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 test -z "$as_dir" && as_dir=. 6759 for ac_exec_ext in '' $ac_executable_extensions; do 6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6763 break 2 6764 fi 6765done 6766 done 6767IFS=$as_save_IFS 6768 6769fi 6770fi 6771RANLIB=$ac_cv_prog_RANLIB 6772if test -n "$RANLIB"; then 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6774$as_echo "$RANLIB" >&6; } 6775else 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6777$as_echo "no" >&6; } 6778fi 6779 6780 6781fi 6782if test -z "$ac_cv_prog_RANLIB"; then 6783 ac_ct_RANLIB=$RANLIB 6784 # Extract the first word of "ranlib", so it can be a program name with args. 6785set dummy ranlib; ac_word=$2 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6787$as_echo_n "checking for $ac_word... " >&6; } 6788if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 if test -n "$ac_ct_RANLIB"; then 6792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6793else 6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6801 ac_cv_prog_ac_ct_RANLIB="ranlib" 6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806 done 6807IFS=$as_save_IFS 6808 6809fi 6810fi 6811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6812if test -n "$ac_ct_RANLIB"; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6814$as_echo "$ac_ct_RANLIB" >&6; } 6815else 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817$as_echo "no" >&6; } 6818fi 6819 6820 if test "x$ac_ct_RANLIB" = x; then 6821 RANLIB=":" 6822 else 6823 case $cross_compiling:$ac_tool_warned in 6824yes:) 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6827ac_tool_warned=yes ;; 6828esac 6829 RANLIB=$ac_ct_RANLIB 6830 fi 6831else 6832 RANLIB="$ac_cv_prog_RANLIB" 6833fi 6834 6835test -z "$RANLIB" && RANLIB=: 6836 6837 6838 6839 6840 6841 6842# Determine commands to create old-style static archives. 6843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6844old_postinstall_cmds='chmod 644 $oldlib' 6845old_postuninstall_cmds= 6846 6847if test -n "$RANLIB"; then 6848 case $host_os in 6849 bitrig* | openbsd*) 6850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6851 ;; 6852 *) 6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6854 ;; 6855 esac 6856 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6857fi 6858 6859case $host_os in 6860 darwin*) 6861 lock_old_archive_extraction=yes ;; 6862 *) 6863 lock_old_archive_extraction=no ;; 6864esac 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904# If no C compiler was specified, use CC. 6905LTCC=${LTCC-"$CC"} 6906 6907# If no C compiler flags were specified, use CFLAGS. 6908LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6909 6910# Allow CC to be a program name with arguments. 6911compiler=$CC 6912 6913 6914# Check for command to grab the raw symbol name followed by C symbol from nm. 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6916$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6917if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 6921# These are sane defaults that work on at least a few old systems. 6922# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6923 6924# Character class describing NM global symbol codes. 6925symcode='[BCDEGRST]' 6926 6927# Regexp to match symbols that can be accessed directly from C. 6928sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6929 6930# Define system-specific variables. 6931case $host_os in 6932aix*) 6933 symcode='[BCDT]' 6934 ;; 6935cygwin* | mingw* | pw32* | cegcc*) 6936 symcode='[ABCDGISTW]' 6937 ;; 6938hpux*) 6939 if test ia64 = "$host_cpu"; then 6940 symcode='[ABCDEGRST]' 6941 fi 6942 ;; 6943irix* | nonstopux*) 6944 symcode='[BCDEGRST]' 6945 ;; 6946osf*) 6947 symcode='[BCDEGQRST]' 6948 ;; 6949solaris*) 6950 symcode='[BDRT]' 6951 ;; 6952sco3.2v5*) 6953 symcode='[DT]' 6954 ;; 6955sysv4.2uw2*) 6956 symcode='[DT]' 6957 ;; 6958sysv5* | sco5v6* | unixware* | OpenUNIX*) 6959 symcode='[ABDT]' 6960 ;; 6961sysv4) 6962 symcode='[DFNSTU]' 6963 ;; 6964esac 6965 6966# If we're using GNU nm, then use its standard symbol codes. 6967case `$NM -V 2>&1` in 6968*GNU* | *'with BFD'*) 6969 symcode='[ABCDGIRSTW]' ;; 6970esac 6971 6972if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6973 # Gets list of data symbols to import. 6974 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6975 # Adjust the below global symbol transforms to fixup imported variables. 6976 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6977 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6978 lt_c_name_lib_hook="\ 6979 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6980 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6981else 6982 # Disable hooks by default. 6983 lt_cv_sys_global_symbol_to_import= 6984 lt_cdecl_hook= 6985 lt_c_name_hook= 6986 lt_c_name_lib_hook= 6987fi 6988 6989# Transform an extracted symbol line into a proper C declaration. 6990# Some systems (esp. on ia64) link data and code symbols differently, 6991# so use this general approach. 6992lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6993$lt_cdecl_hook\ 6994" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6995" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6996 6997# Transform an extracted symbol line into symbol name and symbol address 6998lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6999$lt_c_name_hook\ 7000" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7001" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7002 7003# Transform an extracted symbol line into symbol name with lib prefix and 7004# symbol address. 7005lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7006$lt_c_name_lib_hook\ 7007" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7008" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7009" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7010 7011# Handle CRLF in mingw tool chain 7012opt_cr= 7013case $build_os in 7014mingw*) 7015 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7016 ;; 7017esac 7018 7019# Try without a prefix underscore, then with it. 7020for ac_symprfx in "" "_"; do 7021 7022 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7023 symxfrm="\\1 $ac_symprfx\\2 \\2" 7024 7025 # Write the raw and C identifiers. 7026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7027 # Fake it for dumpbin and say T for any non-static function, 7028 # D for any global variable and I for any imported variable. 7029 # Also find C++ and __fastcall symbols from MSVC++, 7030 # which start with @ or ?. 7031 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7032" {last_section=section; section=\$ 3};"\ 7033" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7034" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7035" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7036" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7037" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7038" \$ 0!~/External *\|/{next};"\ 7039" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7040" {if(hide[section]) next};"\ 7041" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7042" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7043" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7044" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7045" ' prfx=^$ac_symprfx" 7046 else 7047 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7048 fi 7049 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7050 7051 # Check to see that the pipe works correctly. 7052 pipe_works=no 7053 7054 rm -f conftest* 7055 cat > conftest.$ac_ext <<_LT_EOF 7056#ifdef __cplusplus 7057extern "C" { 7058#endif 7059char nm_test_var; 7060void nm_test_func(void); 7061void nm_test_func(void){} 7062#ifdef __cplusplus 7063} 7064#endif 7065int main(){nm_test_var='a';nm_test_func();return(0);} 7066_LT_EOF 7067 7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7069 (eval $ac_compile) 2>&5 7070 ac_status=$? 7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7072 test $ac_status = 0; }; then 7073 # Now try to grab the symbols. 7074 nlist=conftest.nm 7075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7076 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7077 ac_status=$? 7078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7079 test $ac_status = 0; } && test -s "$nlist"; then 7080 # Try sorting and uniquifying the output. 7081 if sort "$nlist" | uniq > "$nlist"T; then 7082 mv -f "$nlist"T "$nlist" 7083 else 7084 rm -f "$nlist"T 7085 fi 7086 7087 # Make sure that we snagged all the symbols we need. 7088 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7090 cat <<_LT_EOF > conftest.$ac_ext 7091/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7092#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7093/* DATA imports from DLLs on WIN32 can't be const, because runtime 7094 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7095# define LT_DLSYM_CONST 7096#elif defined __osf__ 7097/* This system does not cope well with relocations in const data. */ 7098# define LT_DLSYM_CONST 7099#else 7100# define LT_DLSYM_CONST const 7101#endif 7102 7103#ifdef __cplusplus 7104extern "C" { 7105#endif 7106 7107_LT_EOF 7108 # Now generate the symbol file. 7109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7110 7111 cat <<_LT_EOF >> conftest.$ac_ext 7112 7113/* The mapping between symbol names and symbols. */ 7114LT_DLSYM_CONST struct { 7115 const char *name; 7116 void *address; 7117} 7118lt__PROGRAM__LTX_preloaded_symbols[] = 7119{ 7120 { "@PROGRAM@", (void *) 0 }, 7121_LT_EOF 7122 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7123 cat <<\_LT_EOF >> conftest.$ac_ext 7124 {0, (void *) 0} 7125}; 7126 7127/* This works around a problem in FreeBSD linker */ 7128#ifdef FREEBSD_WORKAROUND 7129static const void *lt_preloaded_setup() { 7130 return lt__PROGRAM__LTX_preloaded_symbols; 7131} 7132#endif 7133 7134#ifdef __cplusplus 7135} 7136#endif 7137_LT_EOF 7138 # Now try linking the two files. 7139 mv conftest.$ac_objext conftstm.$ac_objext 7140 lt_globsym_save_LIBS=$LIBS 7141 lt_globsym_save_CFLAGS=$CFLAGS 7142 LIBS=conftstm.$ac_objext 7143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7145 (eval $ac_link) 2>&5 7146 ac_status=$? 7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7148 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7149 pipe_works=yes 7150 fi 7151 LIBS=$lt_globsym_save_LIBS 7152 CFLAGS=$lt_globsym_save_CFLAGS 7153 else 7154 echo "cannot find nm_test_func in $nlist" >&5 7155 fi 7156 else 7157 echo "cannot find nm_test_var in $nlist" >&5 7158 fi 7159 else 7160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7161 fi 7162 else 7163 echo "$progname: failed program was:" >&5 7164 cat conftest.$ac_ext >&5 7165 fi 7166 rm -rf conftest* conftst* 7167 7168 # Do not use the global_symbol_pipe unless it works. 7169 if test yes = "$pipe_works"; then 7170 break 7171 else 7172 lt_cv_sys_global_symbol_pipe= 7173 fi 7174done 7175 7176fi 7177 7178if test -z "$lt_cv_sys_global_symbol_pipe"; then 7179 lt_cv_sys_global_symbol_to_cdecl= 7180fi 7181if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7183$as_echo "failed" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7186$as_echo "ok" >&6; } 7187fi 7188 7189# Response file support. 7190if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7191 nm_file_list_spec='@' 7192elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7193 nm_file_list_spec='@' 7194fi 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7233$as_echo_n "checking for sysroot... " >&6; } 7234 7235# Check whether --with-sysroot was given. 7236if test "${with_sysroot+set}" = set; then : 7237 withval=$with_sysroot; 7238else 7239 with_sysroot=no 7240fi 7241 7242 7243lt_sysroot= 7244case $with_sysroot in #( 7245 yes) 7246 if test yes = "$GCC"; then 7247 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7248 fi 7249 ;; #( 7250 /*) 7251 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7252 ;; #( 7253 no|'') 7254 ;; #( 7255 *) 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7257$as_echo "$with_sysroot" >&6; } 7258 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7259 ;; 7260esac 7261 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7263$as_echo "${lt_sysroot:-no}" >&6; } 7264 7265 7266 7267 7268 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7270$as_echo_n "checking for a working dd... " >&6; } 7271if ${ac_cv_path_lt_DD+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 printf 0123456789abcdef0123456789abcdef >conftest.i 7275cat conftest.i conftest.i >conftest2.i 7276: ${lt_DD:=$DD} 7277if test -z "$lt_DD"; then 7278 ac_path_lt_DD_found=false 7279 # Loop through the user's path and test for each of PROGNAME-LIST 7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7281for as_dir in $PATH 7282do 7283 IFS=$as_save_IFS 7284 test -z "$as_dir" && as_dir=. 7285 for ac_prog in dd; do 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7288 as_fn_executable_p "$ac_path_lt_DD" || continue 7289if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7290 cmp -s conftest.i conftest.out \ 7291 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7292fi 7293 $ac_path_lt_DD_found && break 3 7294 done 7295 done 7296 done 7297IFS=$as_save_IFS 7298 if test -z "$ac_cv_path_lt_DD"; then 7299 : 7300 fi 7301else 7302 ac_cv_path_lt_DD=$lt_DD 7303fi 7304 7305rm -f conftest.i conftest2.i conftest.out 7306fi 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7308$as_echo "$ac_cv_path_lt_DD" >&6; } 7309 7310 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7312$as_echo_n "checking how to truncate binary pipes... " >&6; } 7313if ${lt_cv_truncate_bin+:} false; then : 7314 $as_echo_n "(cached) " >&6 7315else 7316 printf 0123456789abcdef0123456789abcdef >conftest.i 7317cat conftest.i conftest.i >conftest2.i 7318lt_cv_truncate_bin= 7319if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7320 cmp -s conftest.i conftest.out \ 7321 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7322fi 7323rm -f conftest.i conftest2.i conftest.out 7324test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7327$as_echo "$lt_cv_truncate_bin" >&6; } 7328 7329 7330 7331 7332 7333 7334 7335# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7336func_cc_basename () 7337{ 7338 for cc_temp in $*""; do 7339 case $cc_temp in 7340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7342 \-*) ;; 7343 *) break;; 7344 esac 7345 done 7346 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7347} 7348 7349# Check whether --enable-libtool-lock was given. 7350if test "${enable_libtool_lock+set}" = set; then : 7351 enableval=$enable_libtool_lock; 7352fi 7353 7354test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7355 7356# Some flags need to be propagated to the compiler or linker for good 7357# libtool support. 7358case $host in 7359ia64-*-hpux*) 7360 # Find out what ABI is being produced by ac_compile, and set mode 7361 # options accordingly. 7362 echo 'int i;' > conftest.$ac_ext 7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7364 (eval $ac_compile) 2>&5 7365 ac_status=$? 7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7367 test $ac_status = 0; }; then 7368 case `/usr/bin/file conftest.$ac_objext` in 7369 *ELF-32*) 7370 HPUX_IA64_MODE=32 7371 ;; 7372 *ELF-64*) 7373 HPUX_IA64_MODE=64 7374 ;; 7375 esac 7376 fi 7377 rm -rf conftest* 7378 ;; 7379*-*-irix6*) 7380 # Find out what ABI is being produced by ac_compile, and set linker 7381 # options accordingly. 7382 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7384 (eval $ac_compile) 2>&5 7385 ac_status=$? 7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7387 test $ac_status = 0; }; then 7388 if test yes = "$lt_cv_prog_gnu_ld"; then 7389 case `/usr/bin/file conftest.$ac_objext` in 7390 *32-bit*) 7391 LD="${LD-ld} -melf32bsmip" 7392 ;; 7393 *N32*) 7394 LD="${LD-ld} -melf32bmipn32" 7395 ;; 7396 *64-bit*) 7397 LD="${LD-ld} -melf64bmip" 7398 ;; 7399 esac 7400 else 7401 case `/usr/bin/file conftest.$ac_objext` in 7402 *32-bit*) 7403 LD="${LD-ld} -32" 7404 ;; 7405 *N32*) 7406 LD="${LD-ld} -n32" 7407 ;; 7408 *64-bit*) 7409 LD="${LD-ld} -64" 7410 ;; 7411 esac 7412 fi 7413 fi 7414 rm -rf conftest* 7415 ;; 7416 7417mips64*-*linux*) 7418 # Find out what ABI is being produced by ac_compile, and set linker 7419 # options accordingly. 7420 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7422 (eval $ac_compile) 2>&5 7423 ac_status=$? 7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7425 test $ac_status = 0; }; then 7426 emul=elf 7427 case `/usr/bin/file conftest.$ac_objext` in 7428 *32-bit*) 7429 emul="${emul}32" 7430 ;; 7431 *64-bit*) 7432 emul="${emul}64" 7433 ;; 7434 esac 7435 case `/usr/bin/file conftest.$ac_objext` in 7436 *MSB*) 7437 emul="${emul}btsmip" 7438 ;; 7439 *LSB*) 7440 emul="${emul}ltsmip" 7441 ;; 7442 esac 7443 case `/usr/bin/file conftest.$ac_objext` in 7444 *N32*) 7445 emul="${emul}n32" 7446 ;; 7447 esac 7448 LD="${LD-ld} -m $emul" 7449 fi 7450 rm -rf conftest* 7451 ;; 7452 7453x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7454s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7455 # Find out what ABI is being produced by ac_compile, and set linker 7456 # options accordingly. Note that the listed cases only cover the 7457 # situations where additional linker options are needed (such as when 7458 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7459 # vice versa); the common cases where no linker options are needed do 7460 # not appear in the list. 7461 echo 'int i;' > conftest.$ac_ext 7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7463 (eval $ac_compile) 2>&5 7464 ac_status=$? 7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7466 test $ac_status = 0; }; then 7467 case `/usr/bin/file conftest.o` in 7468 *32-bit*) 7469 case $host in 7470 x86_64-*kfreebsd*-gnu) 7471 LD="${LD-ld} -m elf_i386_fbsd" 7472 ;; 7473 x86_64-*linux*) 7474 case `/usr/bin/file conftest.o` in 7475 *x86-64*) 7476 LD="${LD-ld} -m elf32_x86_64" 7477 ;; 7478 *) 7479 LD="${LD-ld} -m elf_i386" 7480 ;; 7481 esac 7482 ;; 7483 powerpc64le-*linux*) 7484 LD="${LD-ld} -m elf32lppclinux" 7485 ;; 7486 powerpc64-*linux*) 7487 LD="${LD-ld} -m elf32ppclinux" 7488 ;; 7489 s390x-*linux*) 7490 LD="${LD-ld} -m elf_s390" 7491 ;; 7492 sparc64-*linux*) 7493 LD="${LD-ld} -m elf32_sparc" 7494 ;; 7495 esac 7496 ;; 7497 *64-bit*) 7498 case $host in 7499 x86_64-*kfreebsd*-gnu) 7500 LD="${LD-ld} -m elf_x86_64_fbsd" 7501 ;; 7502 x86_64-*linux*) 7503 LD="${LD-ld} -m elf_x86_64" 7504 ;; 7505 powerpcle-*linux*) 7506 LD="${LD-ld} -m elf64lppc" 7507 ;; 7508 powerpc-*linux*) 7509 LD="${LD-ld} -m elf64ppc" 7510 ;; 7511 s390*-*linux*|s390*-*tpf*) 7512 LD="${LD-ld} -m elf64_s390" 7513 ;; 7514 sparc*-*linux*) 7515 LD="${LD-ld} -m elf64_sparc" 7516 ;; 7517 esac 7518 ;; 7519 esac 7520 fi 7521 rm -rf conftest* 7522 ;; 7523 7524*-*-sco3.2v5*) 7525 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7526 SAVE_CFLAGS=$CFLAGS 7527 CFLAGS="$CFLAGS -belf" 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7529$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7530if ${lt_cv_cc_needs_belf+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 ac_ext=c 7534ac_cpp='$CPP $CPPFLAGS' 7535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7537ac_compiler_gnu=$ac_cv_c_compiler_gnu 7538 7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540/* end confdefs.h. */ 7541 7542int 7543main () 7544{ 7545 7546 ; 7547 return 0; 7548} 7549_ACEOF 7550if ac_fn_c_try_link "$LINENO"; then : 7551 lt_cv_cc_needs_belf=yes 7552else 7553 lt_cv_cc_needs_belf=no 7554fi 7555rm -f core conftest.err conftest.$ac_objext \ 7556 conftest$ac_exeext conftest.$ac_ext 7557 ac_ext=c 7558ac_cpp='$CPP $CPPFLAGS' 7559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7561ac_compiler_gnu=$ac_cv_c_compiler_gnu 7562 7563fi 7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7565$as_echo "$lt_cv_cc_needs_belf" >&6; } 7566 if test yes != "$lt_cv_cc_needs_belf"; then 7567 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7568 CFLAGS=$SAVE_CFLAGS 7569 fi 7570 ;; 7571*-*solaris*) 7572 # Find out what ABI is being produced by ac_compile, and set linker 7573 # options accordingly. 7574 echo 'int i;' > conftest.$ac_ext 7575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7576 (eval $ac_compile) 2>&5 7577 ac_status=$? 7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7579 test $ac_status = 0; }; then 7580 case `/usr/bin/file conftest.o` in 7581 *64-bit*) 7582 case $lt_cv_prog_gnu_ld in 7583 yes*) 7584 case $host in 7585 i?86-*-solaris*|x86_64-*-solaris*) 7586 LD="${LD-ld} -m elf_x86_64" 7587 ;; 7588 sparc*-*-solaris*) 7589 LD="${LD-ld} -m elf64_sparc" 7590 ;; 7591 esac 7592 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7593 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7594 LD=${LD-ld}_sol2 7595 fi 7596 ;; 7597 *) 7598 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7599 LD="${LD-ld} -64" 7600 fi 7601 ;; 7602 esac 7603 ;; 7604 esac 7605 fi 7606 rm -rf conftest* 7607 ;; 7608esac 7609 7610need_locks=$enable_libtool_lock 7611 7612if test -n "$ac_tool_prefix"; then 7613 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7614set dummy ${ac_tool_prefix}mt; ac_word=$2 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7616$as_echo_n "checking for $ac_word... " >&6; } 7617if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7618 $as_echo_n "(cached) " >&6 7619else 7620 if test -n "$MANIFEST_TOOL"; then 7621 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7622else 7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7624for as_dir in $PATH 7625do 7626 IFS=$as_save_IFS 7627 test -z "$as_dir" && as_dir=. 7628 for ac_exec_ext in '' $ac_executable_extensions; do 7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7630 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7632 break 2 7633 fi 7634done 7635 done 7636IFS=$as_save_IFS 7637 7638fi 7639fi 7640MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7641if test -n "$MANIFEST_TOOL"; then 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7643$as_echo "$MANIFEST_TOOL" >&6; } 7644else 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7646$as_echo "no" >&6; } 7647fi 7648 7649 7650fi 7651if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7652 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7653 # Extract the first word of "mt", so it can be a program name with args. 7654set dummy mt; ac_word=$2 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656$as_echo_n "checking for $ac_word... " >&6; } 7657if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 if test -n "$ac_ct_MANIFEST_TOOL"; then 7661 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7662else 7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7664for as_dir in $PATH 7665do 7666 IFS=$as_save_IFS 7667 test -z "$as_dir" && as_dir=. 7668 for ac_exec_ext in '' $ac_executable_extensions; do 7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7670 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7672 break 2 7673 fi 7674done 7675 done 7676IFS=$as_save_IFS 7677 7678fi 7679fi 7680ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7681if test -n "$ac_ct_MANIFEST_TOOL"; then 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7683$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7684else 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7686$as_echo "no" >&6; } 7687fi 7688 7689 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7690 MANIFEST_TOOL=":" 7691 else 7692 case $cross_compiling:$ac_tool_warned in 7693yes:) 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7696ac_tool_warned=yes ;; 7697esac 7698 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7699 fi 7700else 7701 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7702fi 7703 7704test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7706$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7707if ${lt_cv_path_mainfest_tool+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 lt_cv_path_mainfest_tool=no 7711 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7712 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7713 cat conftest.err >&5 7714 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7715 lt_cv_path_mainfest_tool=yes 7716 fi 7717 rm -f conftest* 7718fi 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7720$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7721if test yes != "$lt_cv_path_mainfest_tool"; then 7722 MANIFEST_TOOL=: 7723fi 7724 7725 7726 7727 7728 7729 7730 case $host_os in 7731 rhapsody* | darwin*) 7732 if test -n "$ac_tool_prefix"; then 7733 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7734set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if ${ac_cv_prog_DSYMUTIL+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$DSYMUTIL"; then 7741 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7750 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755 done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760DSYMUTIL=$ac_cv_prog_DSYMUTIL 7761if test -n "$DSYMUTIL"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7763$as_echo "$DSYMUTIL" >&6; } 7764else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 7770fi 7771if test -z "$ac_cv_prog_DSYMUTIL"; then 7772 ac_ct_DSYMUTIL=$DSYMUTIL 7773 # Extract the first word of "dsymutil", so it can be a program name with args. 7774set dummy dsymutil; ac_word=$2 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7776$as_echo_n "checking for $ac_word... " >&6; } 7777if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 if test -n "$ac_ct_DSYMUTIL"; then 7781 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7782else 7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784for as_dir in $PATH 7785do 7786 IFS=$as_save_IFS 7787 test -z "$as_dir" && as_dir=. 7788 for ac_exec_ext in '' $ac_executable_extensions; do 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7790 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7792 break 2 7793 fi 7794done 7795 done 7796IFS=$as_save_IFS 7797 7798fi 7799fi 7800ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7801if test -n "$ac_ct_DSYMUTIL"; then 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7803$as_echo "$ac_ct_DSYMUTIL" >&6; } 7804else 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7806$as_echo "no" >&6; } 7807fi 7808 7809 if test "x$ac_ct_DSYMUTIL" = x; then 7810 DSYMUTIL=":" 7811 else 7812 case $cross_compiling:$ac_tool_warned in 7813yes:) 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7816ac_tool_warned=yes ;; 7817esac 7818 DSYMUTIL=$ac_ct_DSYMUTIL 7819 fi 7820else 7821 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7822fi 7823 7824 if test -n "$ac_tool_prefix"; then 7825 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7826set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if ${ac_cv_prog_NMEDIT+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$NMEDIT"; then 7833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847 done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852NMEDIT=$ac_cv_prog_NMEDIT 7853if test -n "$NMEDIT"; then 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7855$as_echo "$NMEDIT" >&6; } 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 7862fi 7863if test -z "$ac_cv_prog_NMEDIT"; then 7864 ac_ct_NMEDIT=$NMEDIT 7865 # Extract the first word of "nmedit", so it can be a program name with args. 7866set dummy nmedit; ac_word=$2 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7868$as_echo_n "checking for $ac_word... " >&6; } 7869if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 if test -n "$ac_ct_NMEDIT"; then 7873 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7874else 7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876for as_dir in $PATH 7877do 7878 IFS=$as_save_IFS 7879 test -z "$as_dir" && as_dir=. 7880 for ac_exec_ext in '' $ac_executable_extensions; do 7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7882 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7884 break 2 7885 fi 7886done 7887 done 7888IFS=$as_save_IFS 7889 7890fi 7891fi 7892ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7893if test -n "$ac_ct_NMEDIT"; then 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7895$as_echo "$ac_ct_NMEDIT" >&6; } 7896else 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7898$as_echo "no" >&6; } 7899fi 7900 7901 if test "x$ac_ct_NMEDIT" = x; then 7902 NMEDIT=":" 7903 else 7904 case $cross_compiling:$ac_tool_warned in 7905yes:) 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7908ac_tool_warned=yes ;; 7909esac 7910 NMEDIT=$ac_ct_NMEDIT 7911 fi 7912else 7913 NMEDIT="$ac_cv_prog_NMEDIT" 7914fi 7915 7916 if test -n "$ac_tool_prefix"; then 7917 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7918set dummy ${ac_tool_prefix}lipo; ac_word=$2 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7920$as_echo_n "checking for $ac_word... " >&6; } 7921if ${ac_cv_prog_LIPO+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 if test -n "$LIPO"; then 7925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7926else 7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7928for as_dir in $PATH 7929do 7930 IFS=$as_save_IFS 7931 test -z "$as_dir" && as_dir=. 7932 for ac_exec_ext in '' $ac_executable_extensions; do 7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7934 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7936 break 2 7937 fi 7938done 7939 done 7940IFS=$as_save_IFS 7941 7942fi 7943fi 7944LIPO=$ac_cv_prog_LIPO 7945if test -n "$LIPO"; then 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7947$as_echo "$LIPO" >&6; } 7948else 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7950$as_echo "no" >&6; } 7951fi 7952 7953 7954fi 7955if test -z "$ac_cv_prog_LIPO"; then 7956 ac_ct_LIPO=$LIPO 7957 # Extract the first word of "lipo", so it can be a program name with args. 7958set dummy lipo; ac_word=$2 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7960$as_echo_n "checking for $ac_word... " >&6; } 7961if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 if test -n "$ac_ct_LIPO"; then 7965 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7966else 7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7968for as_dir in $PATH 7969do 7970 IFS=$as_save_IFS 7971 test -z "$as_dir" && as_dir=. 7972 for ac_exec_ext in '' $ac_executable_extensions; do 7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7974 ac_cv_prog_ac_ct_LIPO="lipo" 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7976 break 2 7977 fi 7978done 7979 done 7980IFS=$as_save_IFS 7981 7982fi 7983fi 7984ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7985if test -n "$ac_ct_LIPO"; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7987$as_echo "$ac_ct_LIPO" >&6; } 7988else 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7990$as_echo "no" >&6; } 7991fi 7992 7993 if test "x$ac_ct_LIPO" = x; then 7994 LIPO=":" 7995 else 7996 case $cross_compiling:$ac_tool_warned in 7997yes:) 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8000ac_tool_warned=yes ;; 8001esac 8002 LIPO=$ac_ct_LIPO 8003 fi 8004else 8005 LIPO="$ac_cv_prog_LIPO" 8006fi 8007 8008 if test -n "$ac_tool_prefix"; then 8009 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8010set dummy ${ac_tool_prefix}otool; ac_word=$2 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8012$as_echo_n "checking for $ac_word... " >&6; } 8013if ${ac_cv_prog_OTOOL+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 if test -n "$OTOOL"; then 8017 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 test -z "$as_dir" && as_dir=. 8024 for ac_exec_ext in '' $ac_executable_extensions; do 8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8026 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8028 break 2 8029 fi 8030done 8031 done 8032IFS=$as_save_IFS 8033 8034fi 8035fi 8036OTOOL=$ac_cv_prog_OTOOL 8037if test -n "$OTOOL"; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8039$as_echo "$OTOOL" >&6; } 8040else 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8042$as_echo "no" >&6; } 8043fi 8044 8045 8046fi 8047if test -z "$ac_cv_prog_OTOOL"; then 8048 ac_ct_OTOOL=$OTOOL 8049 # Extract the first word of "otool", so it can be a program name with args. 8050set dummy otool; ac_word=$2 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8052$as_echo_n "checking for $ac_word... " >&6; } 8053if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 if test -n "$ac_ct_OTOOL"; then 8057 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8058else 8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8066 ac_cv_prog_ac_ct_OTOOL="otool" 8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070done 8071 done 8072IFS=$as_save_IFS 8073 8074fi 8075fi 8076ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8077if test -n "$ac_ct_OTOOL"; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8079$as_echo "$ac_ct_OTOOL" >&6; } 8080else 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8082$as_echo "no" >&6; } 8083fi 8084 8085 if test "x$ac_ct_OTOOL" = x; then 8086 OTOOL=":" 8087 else 8088 case $cross_compiling:$ac_tool_warned in 8089yes:) 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8092ac_tool_warned=yes ;; 8093esac 8094 OTOOL=$ac_ct_OTOOL 8095 fi 8096else 8097 OTOOL="$ac_cv_prog_OTOOL" 8098fi 8099 8100 if test -n "$ac_tool_prefix"; then 8101 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8102set dummy ${ac_tool_prefix}otool64; ac_word=$2 8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8104$as_echo_n "checking for $ac_word... " >&6; } 8105if ${ac_cv_prog_OTOOL64+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 if test -n "$OTOOL64"; then 8109 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8110else 8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8112for as_dir in $PATH 8113do 8114 IFS=$as_save_IFS 8115 test -z "$as_dir" && as_dir=. 8116 for ac_exec_ext in '' $ac_executable_extensions; do 8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8118 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8120 break 2 8121 fi 8122done 8123 done 8124IFS=$as_save_IFS 8125 8126fi 8127fi 8128OTOOL64=$ac_cv_prog_OTOOL64 8129if test -n "$OTOOL64"; then 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8131$as_echo "$OTOOL64" >&6; } 8132else 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8134$as_echo "no" >&6; } 8135fi 8136 8137 8138fi 8139if test -z "$ac_cv_prog_OTOOL64"; then 8140 ac_ct_OTOOL64=$OTOOL64 8141 # Extract the first word of "otool64", so it can be a program name with args. 8142set dummy otool64; ac_word=$2 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8144$as_echo_n "checking for $ac_word... " >&6; } 8145if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8146 $as_echo_n "(cached) " >&6 8147else 8148 if test -n "$ac_ct_OTOOL64"; then 8149 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8150else 8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8152for as_dir in $PATH 8153do 8154 IFS=$as_save_IFS 8155 test -z "$as_dir" && as_dir=. 8156 for ac_exec_ext in '' $ac_executable_extensions; do 8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8158 ac_cv_prog_ac_ct_OTOOL64="otool64" 8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8160 break 2 8161 fi 8162done 8163 done 8164IFS=$as_save_IFS 8165 8166fi 8167fi 8168ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8169if test -n "$ac_ct_OTOOL64"; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8171$as_echo "$ac_ct_OTOOL64" >&6; } 8172else 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174$as_echo "no" >&6; } 8175fi 8176 8177 if test "x$ac_ct_OTOOL64" = x; then 8178 OTOOL64=":" 8179 else 8180 case $cross_compiling:$ac_tool_warned in 8181yes:) 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8184ac_tool_warned=yes ;; 8185esac 8186 OTOOL64=$ac_ct_OTOOL64 8187 fi 8188else 8189 OTOOL64="$ac_cv_prog_OTOOL64" 8190fi 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8219$as_echo_n "checking for -single_module linker flag... " >&6; } 8220if ${lt_cv_apple_cc_single_mod+:} false; then : 8221 $as_echo_n "(cached) " >&6 8222else 8223 lt_cv_apple_cc_single_mod=no 8224 if test -z "$LT_MULTI_MODULE"; then 8225 # By default we will add the -single_module flag. You can override 8226 # by either setting the environment variable LT_MULTI_MODULE 8227 # non-empty at configure time, or by adding -multi_module to the 8228 # link flags. 8229 rm -rf libconftest.dylib* 8230 echo "int foo(void){return 1;}" > conftest.c 8231 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8232-dynamiclib -Wl,-single_module conftest.c" >&5 8233 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8234 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8235 _lt_result=$? 8236 # If there is a non-empty error log, and "single_module" 8237 # appears in it, assume the flag caused a linker warning 8238 if test -s conftest.err && $GREP single_module conftest.err; then 8239 cat conftest.err >&5 8240 # Otherwise, if the output was created with a 0 exit code from 8241 # the compiler, it worked. 8242 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8243 lt_cv_apple_cc_single_mod=yes 8244 else 8245 cat conftest.err >&5 8246 fi 8247 rm -rf libconftest.dylib* 8248 rm -f conftest.* 8249 fi 8250fi 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8252$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8253 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8255$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8256if ${lt_cv_ld_exported_symbols_list+:} false; then : 8257 $as_echo_n "(cached) " >&6 8258else 8259 lt_cv_ld_exported_symbols_list=no 8260 save_LDFLAGS=$LDFLAGS 8261 echo "_main" > conftest.sym 8262 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8264/* end confdefs.h. */ 8265 8266int 8267main () 8268{ 8269 8270 ; 8271 return 0; 8272} 8273_ACEOF 8274if ac_fn_c_try_link "$LINENO"; then : 8275 lt_cv_ld_exported_symbols_list=yes 8276else 8277 lt_cv_ld_exported_symbols_list=no 8278fi 8279rm -f core conftest.err conftest.$ac_objext \ 8280 conftest$ac_exeext conftest.$ac_ext 8281 LDFLAGS=$save_LDFLAGS 8282 8283fi 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8285$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8286 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8288$as_echo_n "checking for -force_load linker flag... " >&6; } 8289if ${lt_cv_ld_force_load+:} false; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 lt_cv_ld_force_load=no 8293 cat > conftest.c << _LT_EOF 8294int forced_loaded() { return 2;} 8295_LT_EOF 8296 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8297 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8298 echo "$AR cru libconftest.a conftest.o" >&5 8299 $AR cru libconftest.a conftest.o 2>&5 8300 echo "$RANLIB libconftest.a" >&5 8301 $RANLIB libconftest.a 2>&5 8302 cat > conftest.c << _LT_EOF 8303int main() { return 0;} 8304_LT_EOF 8305 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8306 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8307 _lt_result=$? 8308 if test -s conftest.err && $GREP force_load conftest.err; then 8309 cat conftest.err >&5 8310 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8311 lt_cv_ld_force_load=yes 8312 else 8313 cat conftest.err >&5 8314 fi 8315 rm -f conftest.err libconftest.a conftest conftest.c 8316 rm -rf conftest.dSYM 8317 8318fi 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8320$as_echo "$lt_cv_ld_force_load" >&6; } 8321 case $host_os in 8322 rhapsody* | darwin1.[012]) 8323 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8324 darwin1.*) 8325 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8326 darwin*) # darwin 5.x on 8327 # if running on 10.5 or later, the deployment target defaults 8328 # to the OS version, if on x86, and 10.4, the deployment 8329 # target defaults to 10.4. Don't you love it? 8330 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8331 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8332 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8333 10.[012][,.]*) 8334 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8335 10.*) 8336 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8337 esac 8338 ;; 8339 esac 8340 if test yes = "$lt_cv_apple_cc_single_mod"; then 8341 _lt_dar_single_mod='$single_module' 8342 fi 8343 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8344 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8345 else 8346 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8347 fi 8348 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8349 _lt_dsymutil='~$DSYMUTIL $lib || :' 8350 else 8351 _lt_dsymutil= 8352 fi 8353 ;; 8354 esac 8355 8356# func_munge_path_list VARIABLE PATH 8357# ----------------------------------- 8358# VARIABLE is name of variable containing _space_ separated list of 8359# directories to be munged by the contents of PATH, which is string 8360# having a format: 8361# "DIR[:DIR]:" 8362# string "DIR[ DIR]" will be prepended to VARIABLE 8363# ":DIR[:DIR]" 8364# string "DIR[ DIR]" will be appended to VARIABLE 8365# "DIRP[:DIRP]::[DIRA:]DIRA" 8366# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8367# "DIRA[ DIRA]" will be appended to VARIABLE 8368# "DIR[:DIR]" 8369# VARIABLE will be replaced by "DIR[ DIR]" 8370func_munge_path_list () 8371{ 8372 case x$2 in 8373 x) 8374 ;; 8375 *:) 8376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8377 ;; 8378 x:*) 8379 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8380 ;; 8381 *::*) 8382 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8383 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8384 ;; 8385 *) 8386 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8387 ;; 8388 esac 8389} 8390 8391ac_ext=c 8392ac_cpp='$CPP $CPPFLAGS' 8393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8395ac_compiler_gnu=$ac_cv_c_compiler_gnu 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8397$as_echo_n "checking how to run the C preprocessor... " >&6; } 8398# On Suns, sometimes $CPP names a directory. 8399if test -n "$CPP" && test -d "$CPP"; then 8400 CPP= 8401fi 8402if test -z "$CPP"; then 8403 if ${ac_cv_prog_CPP+:} false; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 # Double quotes because CPP needs to be expanded 8407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8408 do 8409 ac_preproc_ok=false 8410for ac_c_preproc_warn_flag in '' yes 8411do 8412 # Use a header file that comes with gcc, so configuring glibc 8413 # with a fresh cross-compiler works. 8414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8415 # <limits.h> exists even on freestanding compilers. 8416 # On the NeXT, cc -E runs the code through the compiler's parser, 8417 # not just through cpp. "Syntax error" is here to catch this case. 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420#ifdef __STDC__ 8421# include <limits.h> 8422#else 8423# include <assert.h> 8424#endif 8425 Syntax error 8426_ACEOF 8427if ac_fn_c_try_cpp "$LINENO"; then : 8428 8429else 8430 # Broken: fails on valid input. 8431continue 8432fi 8433rm -f conftest.err conftest.i conftest.$ac_ext 8434 8435 # OK, works on sane cases. Now check whether nonexistent headers 8436 # can be detected and how. 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439#include <ac_nonexistent.h> 8440_ACEOF 8441if ac_fn_c_try_cpp "$LINENO"; then : 8442 # Broken: success on invalid input. 8443continue 8444else 8445 # Passes both tests. 8446ac_preproc_ok=: 8447break 8448fi 8449rm -f conftest.err conftest.i conftest.$ac_ext 8450 8451done 8452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8453rm -f conftest.i conftest.err conftest.$ac_ext 8454if $ac_preproc_ok; then : 8455 break 8456fi 8457 8458 done 8459 ac_cv_prog_CPP=$CPP 8460 8461fi 8462 CPP=$ac_cv_prog_CPP 8463else 8464 ac_cv_prog_CPP=$CPP 8465fi 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8467$as_echo "$CPP" >&6; } 8468ac_preproc_ok=false 8469for ac_c_preproc_warn_flag in '' yes 8470do 8471 # Use a header file that comes with gcc, so configuring glibc 8472 # with a fresh cross-compiler works. 8473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8474 # <limits.h> exists even on freestanding compilers. 8475 # On the NeXT, cc -E runs the code through the compiler's parser, 8476 # not just through cpp. "Syntax error" is here to catch this case. 8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8478/* end confdefs.h. */ 8479#ifdef __STDC__ 8480# include <limits.h> 8481#else 8482# include <assert.h> 8483#endif 8484 Syntax error 8485_ACEOF 8486if ac_fn_c_try_cpp "$LINENO"; then : 8487 8488else 8489 # Broken: fails on valid input. 8490continue 8491fi 8492rm -f conftest.err conftest.i conftest.$ac_ext 8493 8494 # OK, works on sane cases. Now check whether nonexistent headers 8495 # can be detected and how. 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497/* end confdefs.h. */ 8498#include <ac_nonexistent.h> 8499_ACEOF 8500if ac_fn_c_try_cpp "$LINENO"; then : 8501 # Broken: success on invalid input. 8502continue 8503else 8504 # Passes both tests. 8505ac_preproc_ok=: 8506break 8507fi 8508rm -f conftest.err conftest.i conftest.$ac_ext 8509 8510done 8511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8512rm -f conftest.i conftest.err conftest.$ac_ext 8513if $ac_preproc_ok; then : 8514 8515else 8516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8518as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8519See \`config.log' for more details" "$LINENO" 5; } 8520fi 8521 8522ac_ext=c 8523ac_cpp='$CPP $CPPFLAGS' 8524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8526ac_compiler_gnu=$ac_cv_c_compiler_gnu 8527 8528 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8530$as_echo_n "checking for ANSI C header files... " >&6; } 8531if ${ac_cv_header_stdc+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536#include <stdlib.h> 8537#include <stdarg.h> 8538#include <string.h> 8539#include <float.h> 8540 8541int 8542main () 8543{ 8544 8545 ; 8546 return 0; 8547} 8548_ACEOF 8549if ac_fn_c_try_compile "$LINENO"; then : 8550 ac_cv_header_stdc=yes 8551else 8552 ac_cv_header_stdc=no 8553fi 8554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8555 8556if test $ac_cv_header_stdc = yes; then 8557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559/* end confdefs.h. */ 8560#include <string.h> 8561 8562_ACEOF 8563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8564 $EGREP "memchr" >/dev/null 2>&1; then : 8565 8566else 8567 ac_cv_header_stdc=no 8568fi 8569rm -f conftest* 8570 8571fi 8572 8573if test $ac_cv_header_stdc = yes; then 8574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577#include <stdlib.h> 8578 8579_ACEOF 8580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8581 $EGREP "free" >/dev/null 2>&1; then : 8582 8583else 8584 ac_cv_header_stdc=no 8585fi 8586rm -f conftest* 8587 8588fi 8589 8590if test $ac_cv_header_stdc = yes; then 8591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8592 if test "$cross_compiling" = yes; then : 8593 : 8594else 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597#include <ctype.h> 8598#include <stdlib.h> 8599#if ((' ' & 0x0FF) == 0x020) 8600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8602#else 8603# define ISLOWER(c) \ 8604 (('a' <= (c) && (c) <= 'i') \ 8605 || ('j' <= (c) && (c) <= 'r') \ 8606 || ('s' <= (c) && (c) <= 'z')) 8607# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8608#endif 8609 8610#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8611int 8612main () 8613{ 8614 int i; 8615 for (i = 0; i < 256; i++) 8616 if (XOR (islower (i), ISLOWER (i)) 8617 || toupper (i) != TOUPPER (i)) 8618 return 2; 8619 return 0; 8620} 8621_ACEOF 8622if ac_fn_c_try_run "$LINENO"; then : 8623 8624else 8625 ac_cv_header_stdc=no 8626fi 8627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8628 conftest.$ac_objext conftest.beam conftest.$ac_ext 8629fi 8630 8631fi 8632fi 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8634$as_echo "$ac_cv_header_stdc" >&6; } 8635if test $ac_cv_header_stdc = yes; then 8636 8637$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8638 8639fi 8640 8641# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8642for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8643 inttypes.h stdint.h unistd.h 8644do : 8645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8646ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8647" 8648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8649 cat >>confdefs.h <<_ACEOF 8650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8651_ACEOF 8652 8653fi 8654 8655done 8656 8657 8658for ac_header in dlfcn.h 8659do : 8660 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8661" 8662if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8663 cat >>confdefs.h <<_ACEOF 8664#define HAVE_DLFCN_H 1 8665_ACEOF 8666 8667fi 8668 8669done 8670 8671 8672 8673 8674 8675# Set options 8676 8677 8678 8679 enable_dlopen=no 8680 8681 8682 8683 # Check whether --enable-shared was given. 8684if test "${enable_shared+set}" = set; then : 8685 enableval=$enable_shared; p=${PACKAGE-default} 8686 case $enableval in 8687 yes) enable_shared=yes ;; 8688 no) enable_shared=no ;; 8689 *) 8690 enable_shared=no 8691 # Look at the argument we got. We use all the common list separators. 8692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8693 for pkg in $enableval; do 8694 IFS=$lt_save_ifs 8695 if test "X$pkg" = "X$p"; then 8696 enable_shared=yes 8697 fi 8698 done 8699 IFS=$lt_save_ifs 8700 ;; 8701 esac 8702else 8703 enable_shared=yes 8704fi 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 # Check whether --enable-static was given. 8715if test "${enable_static+set}" = set; then : 8716 enableval=$enable_static; p=${PACKAGE-default} 8717 case $enableval in 8718 yes) enable_static=yes ;; 8719 no) enable_static=no ;; 8720 *) 8721 enable_static=no 8722 # Look at the argument we got. We use all the common list separators. 8723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8724 for pkg in $enableval; do 8725 IFS=$lt_save_ifs 8726 if test "X$pkg" = "X$p"; then 8727 enable_static=yes 8728 fi 8729 done 8730 IFS=$lt_save_ifs 8731 ;; 8732 esac 8733else 8734 enable_static=yes 8735fi 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746# Check whether --with-pic was given. 8747if test "${with_pic+set}" = set; then : 8748 withval=$with_pic; lt_p=${PACKAGE-default} 8749 case $withval in 8750 yes|no) pic_mode=$withval ;; 8751 *) 8752 pic_mode=default 8753 # Look at the argument we got. We use all the common list separators. 8754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8755 for lt_pkg in $withval; do 8756 IFS=$lt_save_ifs 8757 if test "X$lt_pkg" = "X$lt_p"; then 8758 pic_mode=yes 8759 fi 8760 done 8761 IFS=$lt_save_ifs 8762 ;; 8763 esac 8764else 8765 pic_mode=default 8766fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 # Check whether --enable-fast-install was given. 8776if test "${enable_fast_install+set}" = set; then : 8777 enableval=$enable_fast_install; p=${PACKAGE-default} 8778 case $enableval in 8779 yes) enable_fast_install=yes ;; 8780 no) enable_fast_install=no ;; 8781 *) 8782 enable_fast_install=no 8783 # Look at the argument we got. We use all the common list separators. 8784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8785 for pkg in $enableval; do 8786 IFS=$lt_save_ifs 8787 if test "X$pkg" = "X$p"; then 8788 enable_fast_install=yes 8789 fi 8790 done 8791 IFS=$lt_save_ifs 8792 ;; 8793 esac 8794else 8795 enable_fast_install=yes 8796fi 8797 8798 8799 8800 8801 8802 8803 8804 8805 shared_archive_member_spec= 8806case $host,$enable_shared in 8807power*-*-aix[5-9]*,yes) 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8809$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8810 8811# Check whether --with-aix-soname was given. 8812if test "${with_aix_soname+set}" = set; then : 8813 withval=$with_aix_soname; case $withval in 8814 aix|svr4|both) 8815 ;; 8816 *) 8817 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8818 ;; 8819 esac 8820 lt_cv_with_aix_soname=$with_aix_soname 8821else 8822 if ${lt_cv_with_aix_soname+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 lt_cv_with_aix_soname=aix 8826fi 8827 8828 with_aix_soname=$lt_cv_with_aix_soname 8829fi 8830 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8832$as_echo "$with_aix_soname" >&6; } 8833 if test aix != "$with_aix_soname"; then 8834 # For the AIX way of multilib, we name the shared archive member 8835 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8836 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8837 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8838 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8839 if test 64 = "${OBJECT_MODE-32}"; then 8840 shared_archive_member_spec=shr_64 8841 else 8842 shared_archive_member_spec=shr 8843 fi 8844 fi 8845 ;; 8846*) 8847 with_aix_soname=aix 8848 ;; 8849esac 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860# This can be used to rebuild libtool when needed 8861LIBTOOL_DEPS=$ltmain 8862 8863# Always use our own libtool. 8864LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895test -z "$LN_S" && LN_S="ln -s" 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910if test -n "${ZSH_VERSION+set}"; then 8911 setopt NO_GLOB_SUBST 8912fi 8913 8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8915$as_echo_n "checking for objdir... " >&6; } 8916if ${lt_cv_objdir+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 rm -f .libs 2>/dev/null 8920mkdir .libs 2>/dev/null 8921if test -d .libs; then 8922 lt_cv_objdir=.libs 8923else 8924 # MS-DOS does not allow filenames that begin with a dot. 8925 lt_cv_objdir=_libs 8926fi 8927rmdir .libs 2>/dev/null 8928fi 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8930$as_echo "$lt_cv_objdir" >&6; } 8931objdir=$lt_cv_objdir 8932 8933 8934 8935 8936 8937cat >>confdefs.h <<_ACEOF 8938#define LT_OBJDIR "$lt_cv_objdir/" 8939_ACEOF 8940 8941 8942 8943 8944case $host_os in 8945aix3*) 8946 # AIX sometimes has problems with the GCC collect2 program. For some 8947 # reason, if we set the COLLECT_NAMES environment variable, the problems 8948 # vanish in a puff of smoke. 8949 if test set != "${COLLECT_NAMES+set}"; then 8950 COLLECT_NAMES= 8951 export COLLECT_NAMES 8952 fi 8953 ;; 8954esac 8955 8956# Global variables: 8957ofile=libtool 8958can_build_shared=yes 8959 8960# All known linkers require a '.a' archive for static linking (except MSVC, 8961# which needs '.lib'). 8962libext=a 8963 8964with_gnu_ld=$lt_cv_prog_gnu_ld 8965 8966old_CC=$CC 8967old_CFLAGS=$CFLAGS 8968 8969# Set sane defaults for various variables 8970test -z "$CC" && CC=cc 8971test -z "$LTCC" && LTCC=$CC 8972test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8973test -z "$LD" && LD=ld 8974test -z "$ac_objext" && ac_objext=o 8975 8976func_cc_basename $compiler 8977cc_basename=$func_cc_basename_result 8978 8979 8980# Only perform the check for file, if the check method requires it 8981test -z "$MAGIC_CMD" && MAGIC_CMD=file 8982case $deplibs_check_method in 8983file_magic*) 8984 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8986$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8987if ${lt_cv_path_MAGIC_CMD+:} false; then : 8988 $as_echo_n "(cached) " >&6 8989else 8990 case $MAGIC_CMD in 8991[\\/*] | ?:[\\/]*) 8992 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8993 ;; 8994*) 8995 lt_save_MAGIC_CMD=$MAGIC_CMD 8996 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8998 for ac_dir in $ac_dummy; do 8999 IFS=$lt_save_ifs 9000 test -z "$ac_dir" && ac_dir=. 9001 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9002 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9003 if test -n "$file_magic_test_file"; then 9004 case $deplibs_check_method in 9005 "file_magic "*) 9006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9007 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9009 $EGREP "$file_magic_regex" > /dev/null; then 9010 : 9011 else 9012 cat <<_LT_EOF 1>&2 9013 9014*** Warning: the command libtool uses to detect shared libraries, 9015*** $file_magic_cmd, produces output that libtool cannot recognize. 9016*** The result is that libtool may fail to recognize shared libraries 9017*** as such. This will affect the creation of libtool libraries that 9018*** depend on shared libraries, but programs linked with such libtool 9019*** libraries will work regardless of this problem. Nevertheless, you 9020*** may want to report the problem to your system manager and/or to 9021*** bug-libtool@gnu.org 9022 9023_LT_EOF 9024 fi ;; 9025 esac 9026 fi 9027 break 9028 fi 9029 done 9030 IFS=$lt_save_ifs 9031 MAGIC_CMD=$lt_save_MAGIC_CMD 9032 ;; 9033esac 9034fi 9035 9036MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9037if test -n "$MAGIC_CMD"; then 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9039$as_echo "$MAGIC_CMD" >&6; } 9040else 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9042$as_echo "no" >&6; } 9043fi 9044 9045 9046 9047 9048 9049if test -z "$lt_cv_path_MAGIC_CMD"; then 9050 if test -n "$ac_tool_prefix"; then 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9052$as_echo_n "checking for file... " >&6; } 9053if ${lt_cv_path_MAGIC_CMD+:} false; then : 9054 $as_echo_n "(cached) " >&6 9055else 9056 case $MAGIC_CMD in 9057[\\/*] | ?:[\\/]*) 9058 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9059 ;; 9060*) 9061 lt_save_MAGIC_CMD=$MAGIC_CMD 9062 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9064 for ac_dir in $ac_dummy; do 9065 IFS=$lt_save_ifs 9066 test -z "$ac_dir" && ac_dir=. 9067 if test -f "$ac_dir/file"; then 9068 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9069 if test -n "$file_magic_test_file"; then 9070 case $deplibs_check_method in 9071 "file_magic "*) 9072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9073 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9075 $EGREP "$file_magic_regex" > /dev/null; then 9076 : 9077 else 9078 cat <<_LT_EOF 1>&2 9079 9080*** Warning: the command libtool uses to detect shared libraries, 9081*** $file_magic_cmd, produces output that libtool cannot recognize. 9082*** The result is that libtool may fail to recognize shared libraries 9083*** as such. This will affect the creation of libtool libraries that 9084*** depend on shared libraries, but programs linked with such libtool 9085*** libraries will work regardless of this problem. Nevertheless, you 9086*** may want to report the problem to your system manager and/or to 9087*** bug-libtool@gnu.org 9088 9089_LT_EOF 9090 fi ;; 9091 esac 9092 fi 9093 break 9094 fi 9095 done 9096 IFS=$lt_save_ifs 9097 MAGIC_CMD=$lt_save_MAGIC_CMD 9098 ;; 9099esac 9100fi 9101 9102MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9103if test -n "$MAGIC_CMD"; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9105$as_echo "$MAGIC_CMD" >&6; } 9106else 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108$as_echo "no" >&6; } 9109fi 9110 9111 9112 else 9113 MAGIC_CMD=: 9114 fi 9115fi 9116 9117 fi 9118 ;; 9119esac 9120 9121# Use C for the default configuration in the libtool script 9122 9123lt_save_CC=$CC 9124ac_ext=c 9125ac_cpp='$CPP $CPPFLAGS' 9126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9128ac_compiler_gnu=$ac_cv_c_compiler_gnu 9129 9130 9131# Source file extension for C test sources. 9132ac_ext=c 9133 9134# Object file extension for compiled C test sources. 9135objext=o 9136objext=$objext 9137 9138# Code to be used in simple compile tests 9139lt_simple_compile_test_code="int some_variable = 0;" 9140 9141# Code to be used in simple link tests 9142lt_simple_link_test_code='int main(){return(0);}' 9143 9144 9145 9146 9147 9148 9149 9150# If no C compiler was specified, use CC. 9151LTCC=${LTCC-"$CC"} 9152 9153# If no C compiler flags were specified, use CFLAGS. 9154LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9155 9156# Allow CC to be a program name with arguments. 9157compiler=$CC 9158 9159# Save the default compiler, since it gets overwritten when the other 9160# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9161compiler_DEFAULT=$CC 9162 9163# save warnings/boilerplate of simple test code 9164ac_outfile=conftest.$ac_objext 9165echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9166eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9167_lt_compiler_boilerplate=`cat conftest.err` 9168$RM conftest* 9169 9170ac_outfile=conftest.$ac_objext 9171echo "$lt_simple_link_test_code" >conftest.$ac_ext 9172eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9173_lt_linker_boilerplate=`cat conftest.err` 9174$RM -r conftest* 9175 9176 9177## CAVEAT EMPTOR: 9178## There is no encapsulation within the following macros, do not change 9179## the running order or otherwise move them around unless you know exactly 9180## what you are doing... 9181if test -n "$compiler"; then 9182 9183lt_prog_compiler_no_builtin_flag= 9184 9185if test yes = "$GCC"; then 9186 case $cc_basename in 9187 nvcc*) 9188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9189 *) 9190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9191 esac 9192 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9194$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9195if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 lt_cv_prog_compiler_rtti_exceptions=no 9199 ac_outfile=conftest.$ac_objext 9200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9201 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9202 # Insert the option either (1) after the last *FLAGS variable, or 9203 # (2) before a word containing "conftest.", or (3) at the end. 9204 # Note that $ac_compile itself does not contain backslashes and begins 9205 # with a dollar sign (not a hyphen), so the echo should work correctly. 9206 # The option is referenced via a variable to avoid confusing sed. 9207 lt_compile=`echo "$ac_compile" | $SED \ 9208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9210 -e 's:$: $lt_compiler_flag:'` 9211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9212 (eval "$lt_compile" 2>conftest.err) 9213 ac_status=$? 9214 cat conftest.err >&5 9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9216 if (exit $ac_status) && test -s "$ac_outfile"; then 9217 # The compiler can only warn and ignore the option if not recognized 9218 # So say no if there are warnings other than the usual output. 9219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9222 lt_cv_prog_compiler_rtti_exceptions=yes 9223 fi 9224 fi 9225 $RM conftest* 9226 9227fi 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9229$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9230 9231if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9233else 9234 : 9235fi 9236 9237fi 9238 9239 9240 9241 9242 9243 9244 lt_prog_compiler_wl= 9245lt_prog_compiler_pic= 9246lt_prog_compiler_static= 9247 9248 9249 if test yes = "$GCC"; then 9250 lt_prog_compiler_wl='-Wl,' 9251 lt_prog_compiler_static='-static' 9252 9253 case $host_os in 9254 aix*) 9255 # All AIX code is PIC. 9256 if test ia64 = "$host_cpu"; then 9257 # AIX 5 now supports IA64 processor 9258 lt_prog_compiler_static='-Bstatic' 9259 fi 9260 lt_prog_compiler_pic='-fPIC' 9261 ;; 9262 9263 amigaos*) 9264 case $host_cpu in 9265 powerpc) 9266 # see comment about AmigaOS4 .so support 9267 lt_prog_compiler_pic='-fPIC' 9268 ;; 9269 m68k) 9270 # FIXME: we need at least 68020 code to build shared libraries, but 9271 # adding the '-m68020' flag to GCC prevents building anything better, 9272 # like '-m68040'. 9273 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9274 ;; 9275 esac 9276 ;; 9277 9278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9279 # PIC is the default for these OSes. 9280 ;; 9281 9282 mingw* | cygwin* | pw32* | os2* | cegcc*) 9283 # This hack is so that the source file can tell whether it is being 9284 # built for inclusion in a dll (and should export symbols for example). 9285 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9286 # (--disable-auto-import) libraries 9287 lt_prog_compiler_pic='-DDLL_EXPORT' 9288 case $host_os in 9289 os2*) 9290 lt_prog_compiler_static='$wl-static' 9291 ;; 9292 esac 9293 ;; 9294 9295 darwin* | rhapsody*) 9296 # PIC is the default on this platform 9297 # Common symbols not allowed in MH_DYLIB files 9298 lt_prog_compiler_pic='-fno-common' 9299 ;; 9300 9301 haiku*) 9302 # PIC is the default for Haiku. 9303 # The "-static" flag exists, but is broken. 9304 lt_prog_compiler_static= 9305 ;; 9306 9307 hpux*) 9308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9310 # sets the default TLS model and affects inlining. 9311 case $host_cpu in 9312 hppa*64*) 9313 # +Z the default 9314 ;; 9315 *) 9316 lt_prog_compiler_pic='-fPIC' 9317 ;; 9318 esac 9319 ;; 9320 9321 interix[3-9]*) 9322 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9323 # Instead, we relocate shared libraries at runtime. 9324 ;; 9325 9326 msdosdjgpp*) 9327 # Just because we use GCC doesn't mean we suddenly get shared libraries 9328 # on systems that don't support them. 9329 lt_prog_compiler_can_build_shared=no 9330 enable_shared=no 9331 ;; 9332 9333 *nto* | *qnx*) 9334 # QNX uses GNU C++, but need to define -shared option too, otherwise 9335 # it will coredump. 9336 lt_prog_compiler_pic='-fPIC -shared' 9337 ;; 9338 9339 sysv4*MP*) 9340 if test -d /usr/nec; then 9341 lt_prog_compiler_pic=-Kconform_pic 9342 fi 9343 ;; 9344 9345 *) 9346 lt_prog_compiler_pic='-fPIC' 9347 ;; 9348 esac 9349 9350 case $cc_basename in 9351 nvcc*) # Cuda Compiler Driver 2.2 9352 lt_prog_compiler_wl='-Xlinker ' 9353 if test -n "$lt_prog_compiler_pic"; then 9354 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9355 fi 9356 ;; 9357 esac 9358 else 9359 # PORTME Check for flag to pass linker flags through the system compiler. 9360 case $host_os in 9361 aix*) 9362 lt_prog_compiler_wl='-Wl,' 9363 if test ia64 = "$host_cpu"; then 9364 # AIX 5 now supports IA64 processor 9365 lt_prog_compiler_static='-Bstatic' 9366 else 9367 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9368 fi 9369 ;; 9370 9371 darwin* | rhapsody*) 9372 # PIC is the default on this platform 9373 # Common symbols not allowed in MH_DYLIB files 9374 lt_prog_compiler_pic='-fno-common' 9375 case $cc_basename in 9376 nagfor*) 9377 # NAG Fortran compiler 9378 lt_prog_compiler_wl='-Wl,-Wl,,' 9379 lt_prog_compiler_pic='-PIC' 9380 lt_prog_compiler_static='-Bstatic' 9381 ;; 9382 esac 9383 ;; 9384 9385 mingw* | cygwin* | pw32* | os2* | cegcc*) 9386 # This hack is so that the source file can tell whether it is being 9387 # built for inclusion in a dll (and should export symbols for example). 9388 lt_prog_compiler_pic='-DDLL_EXPORT' 9389 case $host_os in 9390 os2*) 9391 lt_prog_compiler_static='$wl-static' 9392 ;; 9393 esac 9394 ;; 9395 9396 hpux9* | hpux10* | hpux11*) 9397 lt_prog_compiler_wl='-Wl,' 9398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9399 # not for PA HP-UX. 9400 case $host_cpu in 9401 hppa*64*|ia64*) 9402 # +Z the default 9403 ;; 9404 *) 9405 lt_prog_compiler_pic='+Z' 9406 ;; 9407 esac 9408 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9409 lt_prog_compiler_static='$wl-a ${wl}archive' 9410 ;; 9411 9412 irix5* | irix6* | nonstopux*) 9413 lt_prog_compiler_wl='-Wl,' 9414 # PIC (with -KPIC) is the default. 9415 lt_prog_compiler_static='-non_shared' 9416 ;; 9417 9418 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9419 case $cc_basename in 9420 # old Intel for x86_64, which still supported -KPIC. 9421 ecc*) 9422 lt_prog_compiler_wl='-Wl,' 9423 lt_prog_compiler_pic='-KPIC' 9424 lt_prog_compiler_static='-static' 9425 ;; 9426 # icc used to be incompatible with GCC. 9427 # ICC 10 doesn't accept -KPIC any more. 9428 icc* | ifort*) 9429 lt_prog_compiler_wl='-Wl,' 9430 lt_prog_compiler_pic='-fPIC' 9431 lt_prog_compiler_static='-static' 9432 ;; 9433 # Lahey Fortran 8.1. 9434 lf95*) 9435 lt_prog_compiler_wl='-Wl,' 9436 lt_prog_compiler_pic='--shared' 9437 lt_prog_compiler_static='--static' 9438 ;; 9439 nagfor*) 9440 # NAG Fortran compiler 9441 lt_prog_compiler_wl='-Wl,-Wl,,' 9442 lt_prog_compiler_pic='-PIC' 9443 lt_prog_compiler_static='-Bstatic' 9444 ;; 9445 tcc*) 9446 # Fabrice Bellard et al's Tiny C Compiler 9447 lt_prog_compiler_wl='-Wl,' 9448 lt_prog_compiler_pic='-fPIC' 9449 lt_prog_compiler_static='-static' 9450 ;; 9451 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9452 # Portland Group compilers (*not* the Pentium gcc compiler, 9453 # which looks to be a dead project) 9454 lt_prog_compiler_wl='-Wl,' 9455 lt_prog_compiler_pic='-fpic' 9456 lt_prog_compiler_static='-Bstatic' 9457 ;; 9458 ccc*) 9459 lt_prog_compiler_wl='-Wl,' 9460 # All Alpha code is PIC. 9461 lt_prog_compiler_static='-non_shared' 9462 ;; 9463 xl* | bgxl* | bgf* | mpixl*) 9464 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9465 lt_prog_compiler_wl='-Wl,' 9466 lt_prog_compiler_pic='-qpic' 9467 lt_prog_compiler_static='-qstaticlink' 9468 ;; 9469 *) 9470 case `$CC -V 2>&1 | sed 5q` in 9471 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9472 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9473 lt_prog_compiler_pic='-KPIC' 9474 lt_prog_compiler_static='-Bstatic' 9475 lt_prog_compiler_wl='' 9476 ;; 9477 *Sun\ F* | *Sun*Fortran*) 9478 lt_prog_compiler_pic='-KPIC' 9479 lt_prog_compiler_static='-Bstatic' 9480 lt_prog_compiler_wl='-Qoption ld ' 9481 ;; 9482 *Sun\ C*) 9483 # Sun C 5.9 9484 lt_prog_compiler_pic='-KPIC' 9485 lt_prog_compiler_static='-Bstatic' 9486 lt_prog_compiler_wl='-Wl,' 9487 ;; 9488 *Intel*\ [CF]*Compiler*) 9489 lt_prog_compiler_wl='-Wl,' 9490 lt_prog_compiler_pic='-fPIC' 9491 lt_prog_compiler_static='-static' 9492 ;; 9493 *Portland\ Group*) 9494 lt_prog_compiler_wl='-Wl,' 9495 lt_prog_compiler_pic='-fpic' 9496 lt_prog_compiler_static='-Bstatic' 9497 ;; 9498 esac 9499 ;; 9500 esac 9501 ;; 9502 9503 newsos6) 9504 lt_prog_compiler_pic='-KPIC' 9505 lt_prog_compiler_static='-Bstatic' 9506 ;; 9507 9508 *nto* | *qnx*) 9509 # QNX uses GNU C++, but need to define -shared option too, otherwise 9510 # it will coredump. 9511 lt_prog_compiler_pic='-fPIC -shared' 9512 ;; 9513 9514 osf3* | osf4* | osf5*) 9515 lt_prog_compiler_wl='-Wl,' 9516 # All OSF/1 code is PIC. 9517 lt_prog_compiler_static='-non_shared' 9518 ;; 9519 9520 rdos*) 9521 lt_prog_compiler_static='-non_shared' 9522 ;; 9523 9524 solaris*) 9525 lt_prog_compiler_pic='-KPIC' 9526 lt_prog_compiler_static='-Bstatic' 9527 case $cc_basename in 9528 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9529 lt_prog_compiler_wl='-Qoption ld ';; 9530 *) 9531 lt_prog_compiler_wl='-Wl,';; 9532 esac 9533 ;; 9534 9535 sunos4*) 9536 lt_prog_compiler_wl='-Qoption ld ' 9537 lt_prog_compiler_pic='-PIC' 9538 lt_prog_compiler_static='-Bstatic' 9539 ;; 9540 9541 sysv4 | sysv4.2uw2* | sysv4.3*) 9542 lt_prog_compiler_wl='-Wl,' 9543 lt_prog_compiler_pic='-KPIC' 9544 lt_prog_compiler_static='-Bstatic' 9545 ;; 9546 9547 sysv4*MP*) 9548 if test -d /usr/nec; then 9549 lt_prog_compiler_pic='-Kconform_pic' 9550 lt_prog_compiler_static='-Bstatic' 9551 fi 9552 ;; 9553 9554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9555 lt_prog_compiler_wl='-Wl,' 9556 lt_prog_compiler_pic='-KPIC' 9557 lt_prog_compiler_static='-Bstatic' 9558 ;; 9559 9560 unicos*) 9561 lt_prog_compiler_wl='-Wl,' 9562 lt_prog_compiler_can_build_shared=no 9563 ;; 9564 9565 uts4*) 9566 lt_prog_compiler_pic='-pic' 9567 lt_prog_compiler_static='-Bstatic' 9568 ;; 9569 9570 *) 9571 lt_prog_compiler_can_build_shared=no 9572 ;; 9573 esac 9574 fi 9575 9576case $host_os in 9577 # For platforms that do not support PIC, -DPIC is meaningless: 9578 *djgpp*) 9579 lt_prog_compiler_pic= 9580 ;; 9581 *) 9582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9583 ;; 9584esac 9585 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9587$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9588if ${lt_cv_prog_compiler_pic+:} false; then : 9589 $as_echo_n "(cached) " >&6 9590else 9591 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9592fi 9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9594$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9595lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9596 9597# 9598# Check to make sure the PIC flag actually works. 9599# 9600if test -n "$lt_prog_compiler_pic"; then 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9602$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9603if ${lt_cv_prog_compiler_pic_works+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 lt_cv_prog_compiler_pic_works=no 9607 ac_outfile=conftest.$ac_objext 9608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9610 # Insert the option either (1) after the last *FLAGS variable, or 9611 # (2) before a word containing "conftest.", or (3) at the end. 9612 # Note that $ac_compile itself does not contain backslashes and begins 9613 # with a dollar sign (not a hyphen), so the echo should work correctly. 9614 # The option is referenced via a variable to avoid confusing sed. 9615 lt_compile=`echo "$ac_compile" | $SED \ 9616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9618 -e 's:$: $lt_compiler_flag:'` 9619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9620 (eval "$lt_compile" 2>conftest.err) 9621 ac_status=$? 9622 cat conftest.err >&5 9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 if (exit $ac_status) && test -s "$ac_outfile"; then 9625 # The compiler can only warn and ignore the option if not recognized 9626 # So say no if there are warnings other than the usual output. 9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9630 lt_cv_prog_compiler_pic_works=yes 9631 fi 9632 fi 9633 $RM conftest* 9634 9635fi 9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9637$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9638 9639if test yes = "$lt_cv_prog_compiler_pic_works"; then 9640 case $lt_prog_compiler_pic in 9641 "" | " "*) ;; 9642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9643 esac 9644else 9645 lt_prog_compiler_pic= 9646 lt_prog_compiler_can_build_shared=no 9647fi 9648 9649fi 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661# 9662# Check to make sure the static flag actually works. 9663# 9664wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9666$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9667if ${lt_cv_prog_compiler_static_works+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 lt_cv_prog_compiler_static_works=no 9671 save_LDFLAGS=$LDFLAGS 9672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9673 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9675 # The linker can only warn and ignore the option if not recognized 9676 # So say no if there are warnings 9677 if test -s conftest.err; then 9678 # Append any errors to the config.log. 9679 cat conftest.err 1>&5 9680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9682 if diff conftest.exp conftest.er2 >/dev/null; then 9683 lt_cv_prog_compiler_static_works=yes 9684 fi 9685 else 9686 lt_cv_prog_compiler_static_works=yes 9687 fi 9688 fi 9689 $RM -r conftest* 9690 LDFLAGS=$save_LDFLAGS 9691 9692fi 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9694$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9695 9696if test yes = "$lt_cv_prog_compiler_static_works"; then 9697 : 9698else 9699 lt_prog_compiler_static= 9700fi 9701 9702 9703 9704 9705 9706 9707 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9709$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9710if ${lt_cv_prog_compiler_c_o+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712else 9713 lt_cv_prog_compiler_c_o=no 9714 $RM -r conftest 2>/dev/null 9715 mkdir conftest 9716 cd conftest 9717 mkdir out 9718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9719 9720 lt_compiler_flag="-o out/conftest2.$ac_objext" 9721 # Insert the option either (1) after the last *FLAGS variable, or 9722 # (2) before a word containing "conftest.", or (3) at the end. 9723 # Note that $ac_compile itself does not contain backslashes and begins 9724 # with a dollar sign (not a hyphen), so the echo should work correctly. 9725 lt_compile=`echo "$ac_compile" | $SED \ 9726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9728 -e 's:$: $lt_compiler_flag:'` 9729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9730 (eval "$lt_compile" 2>out/conftest.err) 9731 ac_status=$? 9732 cat out/conftest.err >&5 9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9735 then 9736 # The compiler can only warn and ignore the option if not recognized 9737 # So say no if there are warnings 9738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9741 lt_cv_prog_compiler_c_o=yes 9742 fi 9743 fi 9744 chmod u+w . 2>&5 9745 $RM conftest* 9746 # SGI C++ compiler will create directory out/ii_files/ for 9747 # template instantiation 9748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9749 $RM out/* && rmdir out 9750 cd .. 9751 $RM -r conftest 9752 $RM conftest* 9753 9754fi 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9756$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9757 9758 9759 9760 9761 9762 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9764$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9765if ${lt_cv_prog_compiler_c_o+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 lt_cv_prog_compiler_c_o=no 9769 $RM -r conftest 2>/dev/null 9770 mkdir conftest 9771 cd conftest 9772 mkdir out 9773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9774 9775 lt_compiler_flag="-o out/conftest2.$ac_objext" 9776 # Insert the option either (1) after the last *FLAGS variable, or 9777 # (2) before a word containing "conftest.", or (3) at the end. 9778 # Note that $ac_compile itself does not contain backslashes and begins 9779 # with a dollar sign (not a hyphen), so the echo should work correctly. 9780 lt_compile=`echo "$ac_compile" | $SED \ 9781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9783 -e 's:$: $lt_compiler_flag:'` 9784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9785 (eval "$lt_compile" 2>out/conftest.err) 9786 ac_status=$? 9787 cat out/conftest.err >&5 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9790 then 9791 # The compiler can only warn and ignore the option if not recognized 9792 # So say no if there are warnings 9793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9794 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9795 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9796 lt_cv_prog_compiler_c_o=yes 9797 fi 9798 fi 9799 chmod u+w . 2>&5 9800 $RM conftest* 9801 # SGI C++ compiler will create directory out/ii_files/ for 9802 # template instantiation 9803 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9804 $RM out/* && rmdir out 9805 cd .. 9806 $RM -r conftest 9807 $RM conftest* 9808 9809fi 9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9811$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9812 9813 9814 9815 9816hard_links=nottested 9817if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9818 # do not overwrite the value of need_locks provided by the user 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9820$as_echo_n "checking if we can lock with hard links... " >&6; } 9821 hard_links=yes 9822 $RM conftest* 9823 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9824 touch conftest.a 9825 ln conftest.a conftest.b 2>&5 || hard_links=no 9826 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9828$as_echo "$hard_links" >&6; } 9829 if test no = "$hard_links"; then 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9831$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9832 need_locks=warn 9833 fi 9834else 9835 need_locks=no 9836fi 9837 9838 9839 9840 9841 9842 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9844$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9845 9846 runpath_var= 9847 allow_undefined_flag= 9848 always_export_symbols=no 9849 archive_cmds= 9850 archive_expsym_cmds= 9851 compiler_needs_object=no 9852 enable_shared_with_static_runtimes=no 9853 export_dynamic_flag_spec= 9854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9855 hardcode_automatic=no 9856 hardcode_direct=no 9857 hardcode_direct_absolute=no 9858 hardcode_libdir_flag_spec= 9859 hardcode_libdir_separator= 9860 hardcode_minus_L=no 9861 hardcode_shlibpath_var=unsupported 9862 inherit_rpath=no 9863 link_all_deplibs=unknown 9864 module_cmds= 9865 module_expsym_cmds= 9866 old_archive_from_new_cmds= 9867 old_archive_from_expsyms_cmds= 9868 thread_safe_flag_spec= 9869 whole_archive_flag_spec= 9870 # include_expsyms should be a list of space-separated symbols to be *always* 9871 # included in the symbol list 9872 include_expsyms= 9873 # exclude_expsyms can be an extended regexp of symbols to exclude 9874 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9875 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9876 # as well as any symbol that contains 'd'. 9877 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9879 # platforms (ab)use it in PIC code, but their linkers get confused if 9880 # the symbol is explicitly referenced. Since portable code cannot 9881 # rely on this symbol name, it's probably fine to never include it in 9882 # preloaded symbol tables. 9883 # Exclude shared library initialization/finalization symbols. 9884 extract_expsyms_cmds= 9885 9886 case $host_os in 9887 cygwin* | mingw* | pw32* | cegcc*) 9888 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9889 # When not using gcc, we currently assume that we are using 9890 # Microsoft Visual C++. 9891 if test yes != "$GCC"; then 9892 with_gnu_ld=no 9893 fi 9894 ;; 9895 interix*) 9896 # we just hope/assume this is gcc and not c89 (= MSVC++) 9897 with_gnu_ld=yes 9898 ;; 9899 openbsd* | bitrig*) 9900 with_gnu_ld=no 9901 ;; 9902 esac 9903 9904 ld_shlibs=yes 9905 9906 # On some targets, GNU ld is compatible enough with the native linker 9907 # that we're better off using the native interface for both. 9908 lt_use_gnu_ld_interface=no 9909 if test yes = "$with_gnu_ld"; then 9910 case $host_os in 9911 aix*) 9912 # The AIX port of GNU ld has always aspired to compatibility 9913 # with the native linker. However, as the warning in the GNU ld 9914 # block says, versions before 2.19.5* couldn't really create working 9915 # shared libraries, regardless of the interface used. 9916 case `$LD -v 2>&1` in 9917 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9918 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9919 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9920 *) 9921 lt_use_gnu_ld_interface=yes 9922 ;; 9923 esac 9924 ;; 9925 *) 9926 lt_use_gnu_ld_interface=yes 9927 ;; 9928 esac 9929 fi 9930 9931 if test yes = "$lt_use_gnu_ld_interface"; then 9932 # If archive_cmds runs LD, not CC, wlarc should be empty 9933 wlarc='$wl' 9934 9935 # Set some defaults for GNU ld with shared library support. These 9936 # are reset later if shared libraries are not supported. Putting them 9937 # here allows them to be overridden if necessary. 9938 runpath_var=LD_RUN_PATH 9939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9940 export_dynamic_flag_spec='$wl--export-dynamic' 9941 # ancient GNU ld didn't support --whole-archive et. al. 9942 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9943 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9944 else 9945 whole_archive_flag_spec= 9946 fi 9947 supports_anon_versioning=no 9948 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9949 *GNU\ gold*) supports_anon_versioning=yes ;; 9950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9953 *\ 2.11.*) ;; # other 2.11 versions 9954 *) supports_anon_versioning=yes ;; 9955 esac 9956 9957 # See if GNU ld supports shared libraries. 9958 case $host_os in 9959 aix[3-9]*) 9960 # On AIX/PPC, the GNU linker is very broken 9961 if test ia64 != "$host_cpu"; then 9962 ld_shlibs=no 9963 cat <<_LT_EOF 1>&2 9964 9965*** Warning: the GNU linker, at least up to release 2.19, is reported 9966*** to be unable to reliably create shared libraries on AIX. 9967*** Therefore, libtool is disabling shared libraries support. If you 9968*** really care for shared libraries, you may want to install binutils 9969*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9970*** You will then need to restart the configuration process. 9971 9972_LT_EOF 9973 fi 9974 ;; 9975 9976 amigaos*) 9977 case $host_cpu in 9978 powerpc) 9979 # see comment about AmigaOS4 .so support 9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9981 archive_expsym_cmds='' 9982 ;; 9983 m68k) 9984 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)' 9985 hardcode_libdir_flag_spec='-L$libdir' 9986 hardcode_minus_L=yes 9987 ;; 9988 esac 9989 ;; 9990 9991 beos*) 9992 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9993 allow_undefined_flag=unsupported 9994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9995 # support --undefined. This deserves some investigation. FIXME 9996 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9997 else 9998 ld_shlibs=no 9999 fi 10000 ;; 10001 10002 cygwin* | mingw* | pw32* | cegcc*) 10003 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10004 # as there is no search path for DLLs. 10005 hardcode_libdir_flag_spec='-L$libdir' 10006 export_dynamic_flag_spec='$wl--export-all-symbols' 10007 allow_undefined_flag=unsupported 10008 always_export_symbols=no 10009 enable_shared_with_static_runtimes=yes 10010 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' 10011 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10012 10013 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10015 # If the export-symbols file already is a .def file, use it as 10016 # is; otherwise, prepend EXPORTS... 10017 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10018 cp $export_symbols $output_objdir/$soname.def; 10019 else 10020 echo EXPORTS > $output_objdir/$soname.def; 10021 cat $export_symbols >> $output_objdir/$soname.def; 10022 fi~ 10023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10024 else 10025 ld_shlibs=no 10026 fi 10027 ;; 10028 10029 haiku*) 10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10031 link_all_deplibs=yes 10032 ;; 10033 10034 os2*) 10035 hardcode_libdir_flag_spec='-L$libdir' 10036 hardcode_minus_L=yes 10037 allow_undefined_flag=unsupported 10038 shrext_cmds=.dll 10039 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10040 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10041 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10042 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10043 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10045 emximp -o $lib $output_objdir/$libname.def' 10046 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10049 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10050 prefix_cmds="$SED"~ 10051 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10052 prefix_cmds="$prefix_cmds -e 1d"; 10053 fi~ 10054 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10055 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10057 emximp -o $lib $output_objdir/$libname.def' 10058 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10059 enable_shared_with_static_runtimes=yes 10060 ;; 10061 10062 interix[3-9]*) 10063 hardcode_direct=no 10064 hardcode_shlibpath_var=no 10065 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10066 export_dynamic_flag_spec='$wl-E' 10067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10068 # Instead, shared libraries are loaded at an image base (0x10000000 by 10069 # default) and relocated if they conflict, which is a slow very memory 10070 # consuming and fragmenting process. To avoid this, we pick a random, 10071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10072 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10074 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' 10075 ;; 10076 10077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10078 tmp_diet=no 10079 if test linux-dietlibc = "$host_os"; then 10080 case $cc_basename in 10081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10082 esac 10083 fi 10084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10085 && test no = "$tmp_diet" 10086 then 10087 tmp_addflag=' $pic_flag' 10088 tmp_sharedflag='-shared' 10089 case $cc_basename,$host_cpu in 10090 pgcc*) # Portland Group C compiler 10091 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' 10092 tmp_addflag=' $pic_flag' 10093 ;; 10094 pgf77* | pgf90* | pgf95* | pgfortran*) 10095 # Portland Group f77 and f90 compilers 10096 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' 10097 tmp_addflag=' $pic_flag -Mnomain' ;; 10098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10099 tmp_addflag=' -i_dynamic' ;; 10100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10101 tmp_addflag=' -i_dynamic -nofor_main' ;; 10102 ifc* | ifort*) # Intel Fortran compiler 10103 tmp_addflag=' -nofor_main' ;; 10104 lf95*) # Lahey Fortran 8.1 10105 whole_archive_flag_spec= 10106 tmp_sharedflag='--shared' ;; 10107 nagfor*) # NAGFOR 5.3 10108 tmp_sharedflag='-Wl,-shared' ;; 10109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10110 tmp_sharedflag='-qmkshrobj' 10111 tmp_addflag= ;; 10112 nvcc*) # Cuda Compiler Driver 2.2 10113 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' 10114 compiler_needs_object=yes 10115 ;; 10116 esac 10117 case `$CC -V 2>&1 | sed 5q` in 10118 *Sun\ C*) # Sun C 5.9 10119 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' 10120 compiler_needs_object=yes 10121 tmp_sharedflag='-G' ;; 10122 *Sun\ F*) # Sun Fortran 8.3 10123 tmp_sharedflag='-G' ;; 10124 esac 10125 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10126 10127 if test yes = "$supports_anon_versioning"; then 10128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10130 echo "local: *; };" >> $output_objdir/$libname.ver~ 10131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10132 fi 10133 10134 case $cc_basename in 10135 tcc*) 10136 export_dynamic_flag_spec='-rdynamic' 10137 ;; 10138 xlf* | bgf* | bgxlf* | mpixlf*) 10139 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10140 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10142 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10143 if test yes = "$supports_anon_versioning"; then 10144 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10146 echo "local: *; };" >> $output_objdir/$libname.ver~ 10147 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10148 fi 10149 ;; 10150 esac 10151 else 10152 ld_shlibs=no 10153 fi 10154 ;; 10155 10156 netbsd*) 10157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10159 wlarc= 10160 else 10161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10163 fi 10164 ;; 10165 10166 solaris*) 10167 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10168 ld_shlibs=no 10169 cat <<_LT_EOF 1>&2 10170 10171*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10172*** create shared libraries on Solaris systems. Therefore, libtool 10173*** is disabling shared libraries support. We urge you to upgrade GNU 10174*** binutils to release 2.9.1 or newer. Another option is to modify 10175*** your PATH or compiler configuration so that the native linker is 10176*** used, and then restart. 10177 10178_LT_EOF 10179 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10181 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10182 else 10183 ld_shlibs=no 10184 fi 10185 ;; 10186 10187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10188 case `$LD -v 2>&1` in 10189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10190 ld_shlibs=no 10191 cat <<_LT_EOF 1>&2 10192 10193*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10194*** reliably create shared libraries on SCO systems. Therefore, libtool 10195*** is disabling shared libraries support. We urge you to upgrade GNU 10196*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10197*** your PATH or compiler configuration so that the native linker is 10198*** used, and then restart. 10199 10200_LT_EOF 10201 ;; 10202 *) 10203 # For security reasons, it is highly recommended that you always 10204 # use absolute paths for naming shared libraries, and exclude the 10205 # DT_RUNPATH tag from executables and libraries. But doing so 10206 # requires that you compile everything twice, which is a pain. 10207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10211 else 10212 ld_shlibs=no 10213 fi 10214 ;; 10215 esac 10216 ;; 10217 10218 sunos4*) 10219 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10220 wlarc= 10221 hardcode_direct=yes 10222 hardcode_shlibpath_var=no 10223 ;; 10224 10225 *) 10226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10228 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10229 else 10230 ld_shlibs=no 10231 fi 10232 ;; 10233 esac 10234 10235 if test no = "$ld_shlibs"; then 10236 runpath_var= 10237 hardcode_libdir_flag_spec= 10238 export_dynamic_flag_spec= 10239 whole_archive_flag_spec= 10240 fi 10241 else 10242 # PORTME fill in a description of your system's linker (not GNU ld) 10243 case $host_os in 10244 aix3*) 10245 allow_undefined_flag=unsupported 10246 always_export_symbols=yes 10247 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' 10248 # Note: this linker hardcodes the directories in LIBPATH if there 10249 # are no directories specified by -L. 10250 hardcode_minus_L=yes 10251 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10252 # Neither direct hardcoding nor static linking is supported with a 10253 # broken collect2. 10254 hardcode_direct=unsupported 10255 fi 10256 ;; 10257 10258 aix[4-9]*) 10259 if test ia64 = "$host_cpu"; then 10260 # On IA64, the linker does run time linking by default, so we don't 10261 # have to do anything special. 10262 aix_use_runtimelinking=no 10263 exp_sym_flag='-Bexport' 10264 no_entry_flag= 10265 else 10266 # If we're using GNU nm, then we don't want the "-C" option. 10267 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10268 # Without the "-l" option, or with the "-B" option, AIX nm treats 10269 # weak defined symbols like other global defined symbols, whereas 10270 # GNU nm marks them as "W". 10271 # While the 'weak' keyword is ignored in the Export File, we need 10272 # it in the Import File for the 'aix-soname' feature, so we have 10273 # to replace the "-B" option with "-P" for AIX nm. 10274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10275 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10276 else 10277 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10278 fi 10279 aix_use_runtimelinking=no 10280 10281 # Test if we are trying to use run time linking or normal 10282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10283 # have runtime linking enabled, and use it for executables. 10284 # For shared libraries, we enable/disable runtime linking 10285 # depending on the kind of the shared library created - 10286 # when "with_aix_soname,aix_use_runtimelinking" is: 10287 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10288 # "aix,yes" lib.so shared, rtl:yes, for executables 10289 # lib.a static archive 10290 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10291 # lib.a(lib.so.V) shared, rtl:no, for executables 10292 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10293 # lib.a(lib.so.V) shared, rtl:no 10294 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10295 # lib.a static archive 10296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10297 for ld_flag in $LDFLAGS; do 10298 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10299 aix_use_runtimelinking=yes 10300 break 10301 fi 10302 done 10303 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10304 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10305 # so we don't have lib.a shared libs to link our executables. 10306 # We have to force runtime linking in this case. 10307 aix_use_runtimelinking=yes 10308 LDFLAGS="$LDFLAGS -Wl,-brtl" 10309 fi 10310 ;; 10311 esac 10312 10313 exp_sym_flag='-bexport' 10314 no_entry_flag='-bnoentry' 10315 fi 10316 10317 # When large executables or shared objects are built, AIX ld can 10318 # have problems creating the table of contents. If linking a library 10319 # or program results in "error TOC overflow" add -mminimal-toc to 10320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10322 10323 archive_cmds='' 10324 hardcode_direct=yes 10325 hardcode_direct_absolute=yes 10326 hardcode_libdir_separator=':' 10327 link_all_deplibs=yes 10328 file_list_spec='$wl-f,' 10329 case $with_aix_soname,$aix_use_runtimelinking in 10330 aix,*) ;; # traditional, no import file 10331 svr4,* | *,yes) # use import file 10332 # The Import File defines what to hardcode. 10333 hardcode_direct=no 10334 hardcode_direct_absolute=no 10335 ;; 10336 esac 10337 10338 if test yes = "$GCC"; then 10339 case $host_os in aix4.[012]|aix4.[012].*) 10340 # We only want to do this on AIX 4.2 and lower, the check 10341 # below for broken collect2 doesn't work under 4.3+ 10342 collect2name=`$CC -print-prog-name=collect2` 10343 if test -f "$collect2name" && 10344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10345 then 10346 # We have reworked collect2 10347 : 10348 else 10349 # We have old collect2 10350 hardcode_direct=unsupported 10351 # It fails to find uninstalled libraries when the uninstalled 10352 # path is not listed in the libpath. Setting hardcode_minus_L 10353 # to unsupported forces relinking 10354 hardcode_minus_L=yes 10355 hardcode_libdir_flag_spec='-L$libdir' 10356 hardcode_libdir_separator= 10357 fi 10358 ;; 10359 esac 10360 shared_flag='-shared' 10361 if test yes = "$aix_use_runtimelinking"; then 10362 shared_flag="$shared_flag "'$wl-G' 10363 fi 10364 # Need to ensure runtime linking is disabled for the traditional 10365 # shared library, or the linker may eventually find shared libraries 10366 # /with/ Import File - we do not want to mix them. 10367 shared_flag_aix='-shared' 10368 shared_flag_svr4='-shared $wl-G' 10369 else 10370 # not using gcc 10371 if test ia64 = "$host_cpu"; then 10372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10373 # chokes on -Wl,-G. The following line is correct: 10374 shared_flag='-G' 10375 else 10376 if test yes = "$aix_use_runtimelinking"; then 10377 shared_flag='$wl-G' 10378 else 10379 shared_flag='$wl-bM:SRE' 10380 fi 10381 shared_flag_aix='$wl-bM:SRE' 10382 shared_flag_svr4='$wl-G' 10383 fi 10384 fi 10385 10386 export_dynamic_flag_spec='$wl-bexpall' 10387 # It seems that -bexpall does not export symbols beginning with 10388 # underscore (_), so it is better to generate a list of symbols to export. 10389 always_export_symbols=yes 10390 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10391 # Warning - without using the other runtime loading flags (-brtl), 10392 # -berok will link without error, but may produce a broken library. 10393 allow_undefined_flag='-berok' 10394 # Determine the default libpath from the value encoded in an 10395 # empty executable. 10396 if test set = "${lt_cv_aix_libpath+set}"; then 10397 aix_libpath=$lt_cv_aix_libpath 10398else 10399 if ${lt_cv_aix_libpath_+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401else 10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10403/* end confdefs.h. */ 10404 10405int 10406main () 10407{ 10408 10409 ; 10410 return 0; 10411} 10412_ACEOF 10413if ac_fn_c_try_link "$LINENO"; then : 10414 10415 lt_aix_libpath_sed=' 10416 /Import File Strings/,/^$/ { 10417 /^0/ { 10418 s/^0 *\([^ ]*\) *$/\1/ 10419 p 10420 } 10421 }' 10422 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10423 # Check for a 64-bit object if we didn't find anything. 10424 if test -z "$lt_cv_aix_libpath_"; then 10425 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10426 fi 10427fi 10428rm -f core conftest.err conftest.$ac_objext \ 10429 conftest$ac_exeext conftest.$ac_ext 10430 if test -z "$lt_cv_aix_libpath_"; then 10431 lt_cv_aix_libpath_=/usr/lib:/lib 10432 fi 10433 10434fi 10435 10436 aix_libpath=$lt_cv_aix_libpath_ 10437fi 10438 10439 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10440 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10441 else 10442 if test ia64 = "$host_cpu"; then 10443 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10444 allow_undefined_flag="-z nodefs" 10445 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" 10446 else 10447 # Determine the default libpath from the value encoded in an 10448 # empty executable. 10449 if test set = "${lt_cv_aix_libpath+set}"; then 10450 aix_libpath=$lt_cv_aix_libpath 10451else 10452 if ${lt_cv_aix_libpath_+:} false; then : 10453 $as_echo_n "(cached) " >&6 10454else 10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10456/* end confdefs.h. */ 10457 10458int 10459main () 10460{ 10461 10462 ; 10463 return 0; 10464} 10465_ACEOF 10466if ac_fn_c_try_link "$LINENO"; then : 10467 10468 lt_aix_libpath_sed=' 10469 /Import File Strings/,/^$/ { 10470 /^0/ { 10471 s/^0 *\([^ ]*\) *$/\1/ 10472 p 10473 } 10474 }' 10475 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10476 # Check for a 64-bit object if we didn't find anything. 10477 if test -z "$lt_cv_aix_libpath_"; then 10478 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10479 fi 10480fi 10481rm -f core conftest.err conftest.$ac_objext \ 10482 conftest$ac_exeext conftest.$ac_ext 10483 if test -z "$lt_cv_aix_libpath_"; then 10484 lt_cv_aix_libpath_=/usr/lib:/lib 10485 fi 10486 10487fi 10488 10489 aix_libpath=$lt_cv_aix_libpath_ 10490fi 10491 10492 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10493 # Warning - without using the other run time loading flags, 10494 # -berok will link without error, but may produce a broken library. 10495 no_undefined_flag=' $wl-bernotok' 10496 allow_undefined_flag=' $wl-berok' 10497 if test yes = "$with_gnu_ld"; then 10498 # We only use this code for GNU lds that support --whole-archive. 10499 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10500 else 10501 # Exported symbols can be pulled into shared objects from archives 10502 whole_archive_flag_spec='$convenience' 10503 fi 10504 archive_cmds_need_lc=yes 10505 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10506 # -brtl affects multiple linker settings, -berok does not and is overridden later 10507 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10508 if test svr4 != "$with_aix_soname"; then 10509 # This is similar to how AIX traditionally builds its shared libraries. 10510 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10511 fi 10512 if test aix != "$with_aix_soname"; then 10513 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10514 else 10515 # used by -dlpreopen to get the symbols 10516 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10517 fi 10518 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10519 fi 10520 fi 10521 ;; 10522 10523 amigaos*) 10524 case $host_cpu in 10525 powerpc) 10526 # see comment about AmigaOS4 .so support 10527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10528 archive_expsym_cmds='' 10529 ;; 10530 m68k) 10531 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)' 10532 hardcode_libdir_flag_spec='-L$libdir' 10533 hardcode_minus_L=yes 10534 ;; 10535 esac 10536 ;; 10537 10538 bsdi[45]*) 10539 export_dynamic_flag_spec=-rdynamic 10540 ;; 10541 10542 cygwin* | mingw* | pw32* | cegcc*) 10543 # When not using gcc, we currently assume that we are using 10544 # Microsoft Visual C++. 10545 # hardcode_libdir_flag_spec is actually meaningless, as there is 10546 # no search path for DLLs. 10547 case $cc_basename in 10548 cl*) 10549 # Native MSVC 10550 hardcode_libdir_flag_spec=' ' 10551 allow_undefined_flag=unsupported 10552 always_export_symbols=yes 10553 file_list_spec='@' 10554 # Tell ltmain to make .lib files, not .a files. 10555 libext=lib 10556 # Tell ltmain to make .dll files, not .so files. 10557 shrext_cmds=.dll 10558 # FIXME: Setting linknames here is a bad hack. 10559 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10560 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10561 cp "$export_symbols" "$output_objdir/$soname.def"; 10562 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10563 else 10564 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10565 fi~ 10566 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10567 linknames=' 10568 # The linker will not automatically build a static lib if we build a DLL. 10569 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10570 enable_shared_with_static_runtimes=yes 10571 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10573 # Don't use ranlib 10574 old_postinstall_cmds='chmod 644 $oldlib' 10575 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10576 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10577 case $lt_outputfile in 10578 *.exe|*.EXE) ;; 10579 *) 10580 lt_outputfile=$lt_outputfile.exe 10581 lt_tool_outputfile=$lt_tool_outputfile.exe 10582 ;; 10583 esac~ 10584 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10586 $RM "$lt_outputfile.manifest"; 10587 fi' 10588 ;; 10589 *) 10590 # Assume MSVC wrapper 10591 hardcode_libdir_flag_spec=' ' 10592 allow_undefined_flag=unsupported 10593 # Tell ltmain to make .lib files, not .a files. 10594 libext=lib 10595 # Tell ltmain to make .dll files, not .so files. 10596 shrext_cmds=.dll 10597 # FIXME: Setting linknames here is a bad hack. 10598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10599 # The linker will automatically build a .lib file if we build a DLL. 10600 old_archive_from_new_cmds='true' 10601 # FIXME: Should let the user specify the lib program. 10602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10603 enable_shared_with_static_runtimes=yes 10604 ;; 10605 esac 10606 ;; 10607 10608 darwin* | rhapsody*) 10609 10610 10611 archive_cmds_need_lc=no 10612 hardcode_direct=no 10613 hardcode_automatic=yes 10614 hardcode_shlibpath_var=unsupported 10615 if test yes = "$lt_cv_ld_force_load"; then 10616 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\"`' 10617 10618 else 10619 whole_archive_flag_spec='' 10620 fi 10621 link_all_deplibs=yes 10622 allow_undefined_flag=$_lt_dar_allow_undefined 10623 case $cc_basename in 10624 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10625 *) _lt_dar_can_shared=$GCC ;; 10626 esac 10627 if test yes = "$_lt_dar_can_shared"; then 10628 output_verbose_link_cmd=func_echo_all 10629 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10630 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10631 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" 10632 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" 10633 10634 else 10635 ld_shlibs=no 10636 fi 10637 10638 ;; 10639 10640 dgux*) 10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10642 hardcode_libdir_flag_spec='-L$libdir' 10643 hardcode_shlibpath_var=no 10644 ;; 10645 10646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10647 # support. Future versions do this automatically, but an explicit c++rt0.o 10648 # does not break anything, and helps significantly (at the cost of a little 10649 # extra space). 10650 freebsd2.2*) 10651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10652 hardcode_libdir_flag_spec='-R$libdir' 10653 hardcode_direct=yes 10654 hardcode_shlibpath_var=no 10655 ;; 10656 10657 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10658 freebsd2.*) 10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10660 hardcode_direct=yes 10661 hardcode_minus_L=yes 10662 hardcode_shlibpath_var=no 10663 ;; 10664 10665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10666 freebsd* | dragonfly*) 10667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10668 hardcode_libdir_flag_spec='-R$libdir' 10669 hardcode_direct=yes 10670 hardcode_shlibpath_var=no 10671 ;; 10672 10673 hpux9*) 10674 if test yes = "$GCC"; then 10675 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10676 else 10677 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10678 fi 10679 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10680 hardcode_libdir_separator=: 10681 hardcode_direct=yes 10682 10683 # hardcode_minus_L: Not really in the search PATH, 10684 # but as the default location of the library. 10685 hardcode_minus_L=yes 10686 export_dynamic_flag_spec='$wl-E' 10687 ;; 10688 10689 hpux10*) 10690 if test yes,no = "$GCC,$with_gnu_ld"; then 10691 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10692 else 10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10694 fi 10695 if test no = "$with_gnu_ld"; then 10696 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10697 hardcode_libdir_separator=: 10698 hardcode_direct=yes 10699 hardcode_direct_absolute=yes 10700 export_dynamic_flag_spec='$wl-E' 10701 # hardcode_minus_L: Not really in the search PATH, 10702 # but as the default location of the library. 10703 hardcode_minus_L=yes 10704 fi 10705 ;; 10706 10707 hpux11*) 10708 if test yes,no = "$GCC,$with_gnu_ld"; then 10709 case $host_cpu in 10710 hppa*64*) 10711 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10712 ;; 10713 ia64*) 10714 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10715 ;; 10716 *) 10717 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10718 ;; 10719 esac 10720 else 10721 case $host_cpu in 10722 hppa*64*) 10723 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10724 ;; 10725 ia64*) 10726 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 *) 10729 10730 # Older versions of the 11.00 compiler do not understand -b yet 10731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10733$as_echo_n "checking if $CC understands -b... " >&6; } 10734if ${lt_cv_prog_compiler__b+:} false; then : 10735 $as_echo_n "(cached) " >&6 10736else 10737 lt_cv_prog_compiler__b=no 10738 save_LDFLAGS=$LDFLAGS 10739 LDFLAGS="$LDFLAGS -b" 10740 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10742 # The linker can only warn and ignore the option if not recognized 10743 # So say no if there are warnings 10744 if test -s conftest.err; then 10745 # Append any errors to the config.log. 10746 cat conftest.err 1>&5 10747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10749 if diff conftest.exp conftest.er2 >/dev/null; then 10750 lt_cv_prog_compiler__b=yes 10751 fi 10752 else 10753 lt_cv_prog_compiler__b=yes 10754 fi 10755 fi 10756 $RM -r conftest* 10757 LDFLAGS=$save_LDFLAGS 10758 10759fi 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10761$as_echo "$lt_cv_prog_compiler__b" >&6; } 10762 10763if test yes = "$lt_cv_prog_compiler__b"; then 10764 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10765else 10766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10767fi 10768 10769 ;; 10770 esac 10771 fi 10772 if test no = "$with_gnu_ld"; then 10773 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10774 hardcode_libdir_separator=: 10775 10776 case $host_cpu in 10777 hppa*64*|ia64*) 10778 hardcode_direct=no 10779 hardcode_shlibpath_var=no 10780 ;; 10781 *) 10782 hardcode_direct=yes 10783 hardcode_direct_absolute=yes 10784 export_dynamic_flag_spec='$wl-E' 10785 10786 # hardcode_minus_L: Not really in the search PATH, 10787 # but as the default location of the library. 10788 hardcode_minus_L=yes 10789 ;; 10790 esac 10791 fi 10792 ;; 10793 10794 irix5* | irix6* | nonstopux*) 10795 if test yes = "$GCC"; then 10796 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' 10797 # Try to use the -exported_symbol ld option, if it does not 10798 # work, assume that -exports_file does not work either and 10799 # implicitly export all symbols. 10800 # This should be the same for all languages, so no per-tag cache variable. 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10802$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10803if ${lt_cv_irix_exported_symbol+:} false; then : 10804 $as_echo_n "(cached) " >&6 10805else 10806 save_LDFLAGS=$LDFLAGS 10807 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10809/* end confdefs.h. */ 10810int foo (void) { return 0; } 10811_ACEOF 10812if ac_fn_c_try_link "$LINENO"; then : 10813 lt_cv_irix_exported_symbol=yes 10814else 10815 lt_cv_irix_exported_symbol=no 10816fi 10817rm -f core conftest.err conftest.$ac_objext \ 10818 conftest$ac_exeext conftest.$ac_ext 10819 LDFLAGS=$save_LDFLAGS 10820fi 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10822$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10823 if test yes = "$lt_cv_irix_exported_symbol"; then 10824 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' 10825 fi 10826 else 10827 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' 10828 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' 10829 fi 10830 archive_cmds_need_lc='no' 10831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10832 hardcode_libdir_separator=: 10833 inherit_rpath=yes 10834 link_all_deplibs=yes 10835 ;; 10836 10837 linux*) 10838 case $cc_basename in 10839 tcc*) 10840 # Fabrice Bellard et al's Tiny C Compiler 10841 ld_shlibs=yes 10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10843 ;; 10844 esac 10845 ;; 10846 10847 netbsd*) 10848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10850 else 10851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10852 fi 10853 hardcode_libdir_flag_spec='-R$libdir' 10854 hardcode_direct=yes 10855 hardcode_shlibpath_var=no 10856 ;; 10857 10858 newsos6) 10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10860 hardcode_direct=yes 10861 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10862 hardcode_libdir_separator=: 10863 hardcode_shlibpath_var=no 10864 ;; 10865 10866 *nto* | *qnx*) 10867 ;; 10868 10869 openbsd* | bitrig*) 10870 if test -f /usr/libexec/ld.so; then 10871 hardcode_direct=yes 10872 hardcode_shlibpath_var=no 10873 hardcode_direct_absolute=yes 10874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10877 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10878 export_dynamic_flag_spec='$wl-E' 10879 else 10880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10881 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10882 fi 10883 else 10884 ld_shlibs=no 10885 fi 10886 ;; 10887 10888 os2*) 10889 hardcode_libdir_flag_spec='-L$libdir' 10890 hardcode_minus_L=yes 10891 allow_undefined_flag=unsupported 10892 shrext_cmds=.dll 10893 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10894 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10895 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10896 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10897 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10899 emximp -o $lib $output_objdir/$libname.def' 10900 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10901 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10902 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10903 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10904 prefix_cmds="$SED"~ 10905 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10906 prefix_cmds="$prefix_cmds -e 1d"; 10907 fi~ 10908 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10909 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10911 emximp -o $lib $output_objdir/$libname.def' 10912 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10913 enable_shared_with_static_runtimes=yes 10914 ;; 10915 10916 osf3*) 10917 if test yes = "$GCC"; then 10918 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10919 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' 10920 else 10921 allow_undefined_flag=' -expect_unresolved \*' 10922 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' 10923 fi 10924 archive_cmds_need_lc='no' 10925 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10926 hardcode_libdir_separator=: 10927 ;; 10928 10929 osf4* | osf5*) # as osf3* with the addition of -msym flag 10930 if test yes = "$GCC"; then 10931 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10932 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' 10933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10934 else 10935 allow_undefined_flag=' -expect_unresolved \*' 10936 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' 10937 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~ 10938 $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' 10939 10940 # Both c and cxx compiler support -rpath directly 10941 hardcode_libdir_flag_spec='-rpath $libdir' 10942 fi 10943 archive_cmds_need_lc='no' 10944 hardcode_libdir_separator=: 10945 ;; 10946 10947 solaris*) 10948 no_undefined_flag=' -z defs' 10949 if test yes = "$GCC"; then 10950 wlarc='$wl' 10951 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10953 $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' 10954 else 10955 case `$CC -V 2>&1` in 10956 *"Compilers 5.0"*) 10957 wlarc='' 10958 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10960 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10961 ;; 10962 *) 10963 wlarc='$wl' 10964 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10966 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10967 ;; 10968 esac 10969 fi 10970 hardcode_libdir_flag_spec='-R$libdir' 10971 hardcode_shlibpath_var=no 10972 case $host_os in 10973 solaris2.[0-5] | solaris2.[0-5].*) ;; 10974 *) 10975 # The compiler driver will combine and reorder linker options, 10976 # but understands '-z linker_flag'. GCC discards it without '$wl', 10977 # but is careful enough not to reorder. 10978 # Supported since Solaris 2.6 (maybe 2.5.1?) 10979 if test yes = "$GCC"; then 10980 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10981 else 10982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10983 fi 10984 ;; 10985 esac 10986 link_all_deplibs=yes 10987 ;; 10988 10989 sunos4*) 10990 if test sequent = "$host_vendor"; then 10991 # Use $CC to link under sequent, because it throws in some extra .o 10992 # files that make .init and .fini sections work. 10993 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10994 else 10995 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10996 fi 10997 hardcode_libdir_flag_spec='-L$libdir' 10998 hardcode_direct=yes 10999 hardcode_minus_L=yes 11000 hardcode_shlibpath_var=no 11001 ;; 11002 11003 sysv4) 11004 case $host_vendor in 11005 sni) 11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11007 hardcode_direct=yes # is this really true??? 11008 ;; 11009 siemens) 11010 ## LD is ld it makes a PLAMLIB 11011 ## CC just makes a GrossModule. 11012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11013 reload_cmds='$CC -r -o $output$reload_objs' 11014 hardcode_direct=no 11015 ;; 11016 motorola) 11017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11019 ;; 11020 esac 11021 runpath_var='LD_RUN_PATH' 11022 hardcode_shlibpath_var=no 11023 ;; 11024 11025 sysv4.3*) 11026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11027 hardcode_shlibpath_var=no 11028 export_dynamic_flag_spec='-Bexport' 11029 ;; 11030 11031 sysv4*MP*) 11032 if test -d /usr/nec; then 11033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11034 hardcode_shlibpath_var=no 11035 runpath_var=LD_RUN_PATH 11036 hardcode_runpath_var=yes 11037 ld_shlibs=yes 11038 fi 11039 ;; 11040 11041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11042 no_undefined_flag='$wl-z,text' 11043 archive_cmds_need_lc=no 11044 hardcode_shlibpath_var=no 11045 runpath_var='LD_RUN_PATH' 11046 11047 if test yes = "$GCC"; then 11048 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11049 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11050 else 11051 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11052 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11053 fi 11054 ;; 11055 11056 sysv5* | sco3.2v5* | sco5v6*) 11057 # Note: We CANNOT use -z defs as we might desire, because we do not 11058 # link with -lc, and that would cause any symbols used from libc to 11059 # always be unresolved, which means just about no library would 11060 # ever link correctly. If we're not using GNU ld we use -z text 11061 # though, which does catch some bad symbols but isn't as heavy-handed 11062 # as -z defs. 11063 no_undefined_flag='$wl-z,text' 11064 allow_undefined_flag='$wl-z,nodefs' 11065 archive_cmds_need_lc=no 11066 hardcode_shlibpath_var=no 11067 hardcode_libdir_flag_spec='$wl-R,$libdir' 11068 hardcode_libdir_separator=':' 11069 link_all_deplibs=yes 11070 export_dynamic_flag_spec='$wl-Bexport' 11071 runpath_var='LD_RUN_PATH' 11072 11073 if test yes = "$GCC"; then 11074 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11075 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11076 else 11077 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11078 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11079 fi 11080 ;; 11081 11082 uts4*) 11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11084 hardcode_libdir_flag_spec='-L$libdir' 11085 hardcode_shlibpath_var=no 11086 ;; 11087 11088 *) 11089 ld_shlibs=no 11090 ;; 11091 esac 11092 11093 if test sni = "$host_vendor"; then 11094 case $host in 11095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11096 export_dynamic_flag_spec='$wl-Blargedynsym' 11097 ;; 11098 esac 11099 fi 11100 fi 11101 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11103$as_echo "$ld_shlibs" >&6; } 11104test no = "$ld_shlibs" && can_build_shared=no 11105 11106with_gnu_ld=$with_gnu_ld 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122# 11123# Do we need to explicitly link libc? 11124# 11125case "x$archive_cmds_need_lc" in 11126x|xyes) 11127 # Assume -lc should be added 11128 archive_cmds_need_lc=yes 11129 11130 if test yes,yes = "$GCC,$enable_shared"; then 11131 case $archive_cmds in 11132 *'~'*) 11133 # FIXME: we may have to deal with multi-command sequences. 11134 ;; 11135 '$CC '*) 11136 # Test whether the compiler implicitly links with -lc since on some 11137 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11138 # to ld, don't add -lc before -lgcc. 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11140$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11141if ${lt_cv_archive_cmds_need_lc+:} false; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 $RM conftest* 11145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11146 11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11148 (eval $ac_compile) 2>&5 11149 ac_status=$? 11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11151 test $ac_status = 0; } 2>conftest.err; then 11152 soname=conftest 11153 lib=conftest 11154 libobjs=conftest.$ac_objext 11155 deplibs= 11156 wl=$lt_prog_compiler_wl 11157 pic_flag=$lt_prog_compiler_pic 11158 compiler_flags=-v 11159 linker_flags=-v 11160 verstring= 11161 output_objdir=. 11162 libname=conftest 11163 lt_save_allow_undefined_flag=$allow_undefined_flag 11164 allow_undefined_flag= 11165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11166 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11167 ac_status=$? 11168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11169 test $ac_status = 0; } 11170 then 11171 lt_cv_archive_cmds_need_lc=no 11172 else 11173 lt_cv_archive_cmds_need_lc=yes 11174 fi 11175 allow_undefined_flag=$lt_save_allow_undefined_flag 11176 else 11177 cat conftest.err 1>&5 11178 fi 11179 $RM conftest* 11180 11181fi 11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11183$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11184 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11185 ;; 11186 esac 11187 fi 11188 ;; 11189esac 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11343$as_echo_n "checking dynamic linker characteristics... " >&6; } 11344 11345if test yes = "$GCC"; then 11346 case $host_os in 11347 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11348 *) lt_awk_arg='/^libraries:/' ;; 11349 esac 11350 case $host_os in 11351 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11352 *) lt_sed_strip_eq='s|=/|/|g' ;; 11353 esac 11354 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11355 case $lt_search_path_spec in 11356 *\;*) 11357 # if the path contains ";" then we assume it to be the separator 11358 # otherwise default to the standard path separator (i.e. ":") - it is 11359 # assumed that no part of a normal pathname contains ";" but that should 11360 # okay in the real world where ";" in dirpaths is itself problematic. 11361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11362 ;; 11363 *) 11364 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11365 ;; 11366 esac 11367 # Ok, now we have the path, separated by spaces, we can step through it 11368 # and add multilib dir if necessary... 11369 lt_tmp_lt_search_path_spec= 11370 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11371 # ...but if some path component already ends with the multilib dir we assume 11372 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11373 case "$lt_multi_os_dir; $lt_search_path_spec " in 11374 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11375 lt_multi_os_dir= 11376 ;; 11377 esac 11378 for lt_sys_path in $lt_search_path_spec; do 11379 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11380 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11381 elif test -n "$lt_multi_os_dir"; then 11382 test -d "$lt_sys_path" && \ 11383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11384 fi 11385 done 11386 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11387BEGIN {RS = " "; FS = "/|\n";} { 11388 lt_foo = ""; 11389 lt_count = 0; 11390 for (lt_i = NF; lt_i > 0; lt_i--) { 11391 if ($lt_i != "" && $lt_i != ".") { 11392 if ($lt_i == "..") { 11393 lt_count++; 11394 } else { 11395 if (lt_count == 0) { 11396 lt_foo = "/" $lt_i lt_foo; 11397 } else { 11398 lt_count--; 11399 } 11400 } 11401 } 11402 } 11403 if (lt_foo != "") { lt_freq[lt_foo]++; } 11404 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11405}'` 11406 # AWK program above erroneously prepends '/' to C:/dos/paths 11407 # for these hosts. 11408 case $host_os in 11409 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11410 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11411 esac 11412 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11413else 11414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11415fi 11416library_names_spec= 11417libname_spec='lib$name' 11418soname_spec= 11419shrext_cmds=.so 11420postinstall_cmds= 11421postuninstall_cmds= 11422finish_cmds= 11423finish_eval= 11424shlibpath_var= 11425shlibpath_overrides_runpath=unknown 11426version_type=none 11427dynamic_linker="$host_os ld.so" 11428sys_lib_dlsearch_path_spec="/lib /usr/lib" 11429need_lib_prefix=unknown 11430hardcode_into_libs=no 11431 11432# when you set need_version to no, make sure it does not cause -set_version 11433# flags to be left without arguments 11434need_version=unknown 11435 11436 11437 11438case $host_os in 11439aix3*) 11440 version_type=linux # correct to gnu/linux during the next big refactor 11441 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11442 shlibpath_var=LIBPATH 11443 11444 # AIX 3 has no versioning support, so we append a major version to the name. 11445 soname_spec='$libname$release$shared_ext$major' 11446 ;; 11447 11448aix[4-9]*) 11449 version_type=linux # correct to gnu/linux during the next big refactor 11450 need_lib_prefix=no 11451 need_version=no 11452 hardcode_into_libs=yes 11453 if test ia64 = "$host_cpu"; then 11454 # AIX 5 supports IA64 11455 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11456 shlibpath_var=LD_LIBRARY_PATH 11457 else 11458 # With GCC up to 2.95.x, collect2 would create an import file 11459 # for dependence libraries. The import file would start with 11460 # the line '#! .'. This would cause the generated library to 11461 # depend on '.', always an invalid library. This was fixed in 11462 # development snapshots of GCC prior to 3.0. 11463 case $host_os in 11464 aix4 | aix4.[01] | aix4.[01].*) 11465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11466 echo ' yes ' 11467 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11468 : 11469 else 11470 can_build_shared=no 11471 fi 11472 ;; 11473 esac 11474 # Using Import Files as archive members, it is possible to support 11475 # filename-based versioning of shared library archives on AIX. While 11476 # this would work for both with and without runtime linking, it will 11477 # prevent static linking of such archives. So we do filename-based 11478 # shared library versioning with .so extension only, which is used 11479 # when both runtime linking and shared linking is enabled. 11480 # Unfortunately, runtime linking may impact performance, so we do 11481 # not want this to be the default eventually. Also, we use the 11482 # versioned .so libs for executables only if there is the -brtl 11483 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11484 # To allow for filename-based versioning support, we need to create 11485 # libNAME.so.V as an archive file, containing: 11486 # *) an Import File, referring to the versioned filename of the 11487 # archive as well as the shared archive member, telling the 11488 # bitwidth (32 or 64) of that shared object, and providing the 11489 # list of exported symbols of that shared object, eventually 11490 # decorated with the 'weak' keyword 11491 # *) the shared object with the F_LOADONLY flag set, to really avoid 11492 # it being seen by the linker. 11493 # At run time we better use the real file rather than another symlink, 11494 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11495 11496 case $with_aix_soname,$aix_use_runtimelinking in 11497 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11498 # soname into executable. Probably we can add versioning support to 11499 # collect2, so additional links can be useful in future. 11500 aix,yes) # traditional libtool 11501 dynamic_linker='AIX unversionable lib.so' 11502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11503 # instead of lib<name>.a to let people know that these are not 11504 # typical AIX shared libraries. 11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11506 ;; 11507 aix,no) # traditional AIX only 11508 dynamic_linker='AIX lib.a(lib.so.V)' 11509 # We preserve .a as extension for shared libraries through AIX4.2 11510 # and later when we are not doing run time linking. 11511 library_names_spec='$libname$release.a $libname.a' 11512 soname_spec='$libname$release$shared_ext$major' 11513 ;; 11514 svr4,*) # full svr4 only 11515 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11516 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11517 # We do not specify a path in Import Files, so LIBPATH fires. 11518 shlibpath_overrides_runpath=yes 11519 ;; 11520 *,yes) # both, prefer svr4 11521 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11522 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11523 # unpreferred sharedlib libNAME.a needs extra handling 11524 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11525 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11526 # We do not specify a path in Import Files, so LIBPATH fires. 11527 shlibpath_overrides_runpath=yes 11528 ;; 11529 *,no) # both, prefer aix 11530 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11531 library_names_spec='$libname$release.a $libname.a' 11532 soname_spec='$libname$release$shared_ext$major' 11533 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11534 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11535 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11536 ;; 11537 esac 11538 shlibpath_var=LIBPATH 11539 fi 11540 ;; 11541 11542amigaos*) 11543 case $host_cpu in 11544 powerpc) 11545 # Since July 2007 AmigaOS4 officially supports .so libraries. 11546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11548 ;; 11549 m68k) 11550 library_names_spec='$libname.ixlibrary $libname.a' 11551 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11552 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11553 ;; 11554 esac 11555 ;; 11556 11557beos*) 11558 library_names_spec='$libname$shared_ext' 11559 dynamic_linker="$host_os ld.so" 11560 shlibpath_var=LIBRARY_PATH 11561 ;; 11562 11563bsdi[45]*) 11564 version_type=linux # correct to gnu/linux during the next big refactor 11565 need_version=no 11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11567 soname_spec='$libname$release$shared_ext$major' 11568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11569 shlibpath_var=LD_LIBRARY_PATH 11570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11572 # the default ld.so.conf also contains /usr/contrib/lib and 11573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11574 # libtool to hard-code these into programs 11575 ;; 11576 11577cygwin* | mingw* | pw32* | cegcc*) 11578 version_type=windows 11579 shrext_cmds=.dll 11580 need_version=no 11581 need_lib_prefix=no 11582 11583 case $GCC,$cc_basename in 11584 yes,*) 11585 # gcc 11586 library_names_spec='$libname.dll.a' 11587 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11588 postinstall_cmds='base_file=`basename \$file`~ 11589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11590 dldir=$destdir/`dirname \$dlpath`~ 11591 test -d \$dldir || mkdir -p \$dldir~ 11592 $install_prog $dir/$dlname \$dldir/$dlname~ 11593 chmod a+x \$dldir/$dlname~ 11594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11596 fi' 11597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11598 dlpath=$dir/\$dldll~ 11599 $RM \$dlpath' 11600 shlibpath_overrides_runpath=yes 11601 11602 case $host_os in 11603 cygwin*) 11604 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11605 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11606 11607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11608 ;; 11609 mingw* | cegcc*) 11610 # MinGW DLLs use traditional 'lib' prefix 11611 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11612 ;; 11613 pw32*) 11614 # pw32 DLLs use 'pw' prefix rather than 'lib' 11615 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11616 ;; 11617 esac 11618 dynamic_linker='Win32 ld.exe' 11619 ;; 11620 11621 *,cl*) 11622 # Native MSVC 11623 libname_spec='$name' 11624 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11625 library_names_spec='$libname.dll.lib' 11626 11627 case $build_os in 11628 mingw*) 11629 sys_lib_search_path_spec= 11630 lt_save_ifs=$IFS 11631 IFS=';' 11632 for lt_path in $LIB 11633 do 11634 IFS=$lt_save_ifs 11635 # Let DOS variable expansion print the short 8.3 style file name. 11636 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11637 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11638 done 11639 IFS=$lt_save_ifs 11640 # Convert to MSYS style. 11641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11642 ;; 11643 cygwin*) 11644 # Convert to unix form, then to dos form, then back to unix form 11645 # but this time dos style (no spaces!) so that the unix form looks 11646 # like /cygdrive/c/PROGRA~1:/cygdr... 11647 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11648 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11649 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11650 ;; 11651 *) 11652 sys_lib_search_path_spec=$LIB 11653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11654 # It is most probably a Windows format PATH. 11655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11656 else 11657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11658 fi 11659 # FIXME: find the short name or the path components, as spaces are 11660 # common. (e.g. "Program Files" -> "PROGRA~1") 11661 ;; 11662 esac 11663 11664 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11665 postinstall_cmds='base_file=`basename \$file`~ 11666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11667 dldir=$destdir/`dirname \$dlpath`~ 11668 test -d \$dldir || mkdir -p \$dldir~ 11669 $install_prog $dir/$dlname \$dldir/$dlname' 11670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11671 dlpath=$dir/\$dldll~ 11672 $RM \$dlpath' 11673 shlibpath_overrides_runpath=yes 11674 dynamic_linker='Win32 link.exe' 11675 ;; 11676 11677 *) 11678 # Assume MSVC wrapper 11679 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11680 dynamic_linker='Win32 ld.exe' 11681 ;; 11682 esac 11683 # FIXME: first we should search . and the directory the executable is in 11684 shlibpath_var=PATH 11685 ;; 11686 11687darwin* | rhapsody*) 11688 dynamic_linker="$host_os dyld" 11689 version_type=darwin 11690 need_lib_prefix=no 11691 need_version=no 11692 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11693 soname_spec='$libname$release$major$shared_ext' 11694 shlibpath_overrides_runpath=yes 11695 shlibpath_var=DYLD_LIBRARY_PATH 11696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11697 11698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11700 ;; 11701 11702dgux*) 11703 version_type=linux # correct to gnu/linux during the next big refactor 11704 need_lib_prefix=no 11705 need_version=no 11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11707 soname_spec='$libname$release$shared_ext$major' 11708 shlibpath_var=LD_LIBRARY_PATH 11709 ;; 11710 11711freebsd* | dragonfly*) 11712 # DragonFly does not have aout. When/if they implement a new 11713 # versioning mechanism, adjust this. 11714 if test -x /usr/bin/objformat; then 11715 objformat=`/usr/bin/objformat` 11716 else 11717 case $host_os in 11718 freebsd[23].*) objformat=aout ;; 11719 *) objformat=elf ;; 11720 esac 11721 fi 11722 version_type=freebsd-$objformat 11723 case $version_type in 11724 freebsd-elf*) 11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11726 soname_spec='$libname$release$shared_ext$major' 11727 need_version=no 11728 need_lib_prefix=no 11729 ;; 11730 freebsd-*) 11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11732 need_version=yes 11733 ;; 11734 esac 11735 shlibpath_var=LD_LIBRARY_PATH 11736 case $host_os in 11737 freebsd2.*) 11738 shlibpath_overrides_runpath=yes 11739 ;; 11740 freebsd3.[01]* | freebsdelf3.[01]*) 11741 shlibpath_overrides_runpath=yes 11742 hardcode_into_libs=yes 11743 ;; 11744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11746 shlibpath_overrides_runpath=no 11747 hardcode_into_libs=yes 11748 ;; 11749 *) # from 4.6 on, and DragonFly 11750 shlibpath_overrides_runpath=yes 11751 hardcode_into_libs=yes 11752 ;; 11753 esac 11754 ;; 11755 11756haiku*) 11757 version_type=linux # correct to gnu/linux during the next big refactor 11758 need_lib_prefix=no 11759 need_version=no 11760 dynamic_linker="$host_os runtime_loader" 11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11762 soname_spec='$libname$release$shared_ext$major' 11763 shlibpath_var=LIBRARY_PATH 11764 shlibpath_overrides_runpath=no 11765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11766 hardcode_into_libs=yes 11767 ;; 11768 11769hpux9* | hpux10* | hpux11*) 11770 # Give a soname corresponding to the major version so that dld.sl refuses to 11771 # link against other versions. 11772 version_type=sunos 11773 need_lib_prefix=no 11774 need_version=no 11775 case $host_cpu in 11776 ia64*) 11777 shrext_cmds='.so' 11778 hardcode_into_libs=yes 11779 dynamic_linker="$host_os dld.so" 11780 shlibpath_var=LD_LIBRARY_PATH 11781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11783 soname_spec='$libname$release$shared_ext$major' 11784 if test 32 = "$HPUX_IA64_MODE"; then 11785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11786 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11787 else 11788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11789 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11790 fi 11791 ;; 11792 hppa*64*) 11793 shrext_cmds='.sl' 11794 hardcode_into_libs=yes 11795 dynamic_linker="$host_os dld.sl" 11796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11799 soname_spec='$libname$release$shared_ext$major' 11800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11802 ;; 11803 *) 11804 shrext_cmds='.sl' 11805 dynamic_linker="$host_os dld.sl" 11806 shlibpath_var=SHLIB_PATH 11807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 ;; 11811 esac 11812 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11813 postinstall_cmds='chmod 555 $lib' 11814 # or fails outright, so override atomically: 11815 install_override_mode=555 11816 ;; 11817 11818interix[3-9]*) 11819 version_type=linux # correct to gnu/linux during the next big refactor 11820 need_lib_prefix=no 11821 need_version=no 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11823 soname_spec='$libname$release$shared_ext$major' 11824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11825 shlibpath_var=LD_LIBRARY_PATH 11826 shlibpath_overrides_runpath=no 11827 hardcode_into_libs=yes 11828 ;; 11829 11830irix5* | irix6* | nonstopux*) 11831 case $host_os in 11832 nonstopux*) version_type=nonstopux ;; 11833 *) 11834 if test yes = "$lt_cv_prog_gnu_ld"; then 11835 version_type=linux # correct to gnu/linux during the next big refactor 11836 else 11837 version_type=irix 11838 fi ;; 11839 esac 11840 need_lib_prefix=no 11841 need_version=no 11842 soname_spec='$libname$release$shared_ext$major' 11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11844 case $host_os in 11845 irix5* | nonstopux*) 11846 libsuff= shlibsuff= 11847 ;; 11848 *) 11849 case $LD in # libtool.m4 will add one of these switches to LD 11850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11851 libsuff= shlibsuff= libmagic=32-bit;; 11852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11853 libsuff=32 shlibsuff=N32 libmagic=N32;; 11854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11855 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11856 *) libsuff= shlibsuff= libmagic=never-match;; 11857 esac 11858 ;; 11859 esac 11860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11861 shlibpath_overrides_runpath=no 11862 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11863 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11864 hardcode_into_libs=yes 11865 ;; 11866 11867# No shared lib support for Linux oldld, aout, or coff. 11868linux*oldld* | linux*aout* | linux*coff*) 11869 dynamic_linker=no 11870 ;; 11871 11872linux*android*) 11873 version_type=none # Android doesn't support versioned libraries. 11874 need_lib_prefix=no 11875 need_version=no 11876 library_names_spec='$libname$release$shared_ext' 11877 soname_spec='$libname$release$shared_ext' 11878 finish_cmds= 11879 shlibpath_var=LD_LIBRARY_PATH 11880 shlibpath_overrides_runpath=yes 11881 11882 # This implies no fast_install, which is unacceptable. 11883 # Some rework will be needed to allow for fast_install 11884 # before this can be enabled. 11885 hardcode_into_libs=yes 11886 11887 dynamic_linker='Android linker' 11888 # Don't embed -rpath directories since the linker doesn't support them. 11889 hardcode_libdir_flag_spec='-L$libdir' 11890 ;; 11891 11892# This must be glibc/ELF. 11893linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11894 version_type=linux # correct to gnu/linux during the next big refactor 11895 need_lib_prefix=no 11896 need_version=no 11897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11898 soname_spec='$libname$release$shared_ext$major' 11899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11900 shlibpath_var=LD_LIBRARY_PATH 11901 shlibpath_overrides_runpath=no 11902 11903 # Some binutils ld are patched to set DT_RUNPATH 11904 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11905 $as_echo_n "(cached) " >&6 11906else 11907 lt_cv_shlibpath_overrides_runpath=no 11908 save_LDFLAGS=$LDFLAGS 11909 save_libdir=$libdir 11910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11913/* end confdefs.h. */ 11914 11915int 11916main () 11917{ 11918 11919 ; 11920 return 0; 11921} 11922_ACEOF 11923if ac_fn_c_try_link "$LINENO"; then : 11924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11925 lt_cv_shlibpath_overrides_runpath=yes 11926fi 11927fi 11928rm -f core conftest.err conftest.$ac_objext \ 11929 conftest$ac_exeext conftest.$ac_ext 11930 LDFLAGS=$save_LDFLAGS 11931 libdir=$save_libdir 11932 11933fi 11934 11935 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11936 11937 # This implies no fast_install, which is unacceptable. 11938 # Some rework will be needed to allow for fast_install 11939 # before this can be enabled. 11940 hardcode_into_libs=yes 11941 11942 # Ideally, we could use ldconfig to report *all* directores which are 11943 # searched for libraries, however this is still not possible. Aside from not 11944 # being certain /sbin/ldconfig is available, command 11945 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11946 # even though it is searched at run-time. Try to do the best guess by 11947 # appending ld.so.conf contents (and includes) to the search path. 11948 if test -f /etc/ld.so.conf; then 11949 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' ' '` 11950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11951 fi 11952 11953 # We used to test for /lib/ld.so.1 and disable shared libraries on 11954 # powerpc, because MkLinux only supported shared libraries with the 11955 # GNU dynamic linker. Since this was broken with cross compilers, 11956 # most powerpc-linux boxes support dynamic linking these days and 11957 # people can always --disable-shared, the test was removed, and we 11958 # assume the GNU/Linux dynamic linker is in use. 11959 dynamic_linker='GNU/Linux ld.so' 11960 ;; 11961 11962netbsd*) 11963 version_type=sunos 11964 need_lib_prefix=no 11965 need_version=no 11966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11969 dynamic_linker='NetBSD (a.out) ld.so' 11970 else 11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11972 soname_spec='$libname$release$shared_ext$major' 11973 dynamic_linker='NetBSD ld.elf_so' 11974 fi 11975 shlibpath_var=LD_LIBRARY_PATH 11976 shlibpath_overrides_runpath=yes 11977 hardcode_into_libs=yes 11978 ;; 11979 11980newsos6) 11981 version_type=linux # correct to gnu/linux during the next big refactor 11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11983 shlibpath_var=LD_LIBRARY_PATH 11984 shlibpath_overrides_runpath=yes 11985 ;; 11986 11987*nto* | *qnx*) 11988 version_type=qnx 11989 need_lib_prefix=no 11990 need_version=no 11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11992 soname_spec='$libname$release$shared_ext$major' 11993 shlibpath_var=LD_LIBRARY_PATH 11994 shlibpath_overrides_runpath=no 11995 hardcode_into_libs=yes 11996 dynamic_linker='ldqnx.so' 11997 ;; 11998 11999openbsd* | bitrig*) 12000 version_type=sunos 12001 sys_lib_dlsearch_path_spec=/usr/lib 12002 need_lib_prefix=no 12003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12004 need_version=no 12005 else 12006 need_version=yes 12007 fi 12008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12010 shlibpath_var=LD_LIBRARY_PATH 12011 shlibpath_overrides_runpath=yes 12012 ;; 12013 12014os2*) 12015 libname_spec='$name' 12016 version_type=windows 12017 shrext_cmds=.dll 12018 need_version=no 12019 need_lib_prefix=no 12020 # OS/2 can only load a DLL with a base name of 8 characters or less. 12021 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12022 v=$($ECHO $release$versuffix | tr -d .-); 12023 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12024 $ECHO $n$v`$shared_ext' 12025 library_names_spec='${libname}_dll.$libext' 12026 dynamic_linker='OS/2 ld.exe' 12027 shlibpath_var=BEGINLIBPATH 12028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12030 postinstall_cmds='base_file=`basename \$file`~ 12031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12032 dldir=$destdir/`dirname \$dlpath`~ 12033 test -d \$dldir || mkdir -p \$dldir~ 12034 $install_prog $dir/$dlname \$dldir/$dlname~ 12035 chmod a+x \$dldir/$dlname~ 12036 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12037 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12038 fi' 12039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12040 dlpath=$dir/\$dldll~ 12041 $RM \$dlpath' 12042 ;; 12043 12044osf3* | osf4* | osf5*) 12045 version_type=osf 12046 need_lib_prefix=no 12047 need_version=no 12048 soname_spec='$libname$release$shared_ext$major' 12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12050 shlibpath_var=LD_LIBRARY_PATH 12051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12053 ;; 12054 12055rdos*) 12056 dynamic_linker=no 12057 ;; 12058 12059solaris*) 12060 version_type=linux # correct to gnu/linux during the next big refactor 12061 need_lib_prefix=no 12062 need_version=no 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12064 soname_spec='$libname$release$shared_ext$major' 12065 shlibpath_var=LD_LIBRARY_PATH 12066 shlibpath_overrides_runpath=yes 12067 hardcode_into_libs=yes 12068 # ldd complains unless libraries are executable 12069 postinstall_cmds='chmod +x $lib' 12070 ;; 12071 12072sunos4*) 12073 version_type=sunos 12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12076 shlibpath_var=LD_LIBRARY_PATH 12077 shlibpath_overrides_runpath=yes 12078 if test yes = "$with_gnu_ld"; then 12079 need_lib_prefix=no 12080 fi 12081 need_version=yes 12082 ;; 12083 12084sysv4 | sysv4.3*) 12085 version_type=linux # correct to gnu/linux during the next big refactor 12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12087 soname_spec='$libname$release$shared_ext$major' 12088 shlibpath_var=LD_LIBRARY_PATH 12089 case $host_vendor in 12090 sni) 12091 shlibpath_overrides_runpath=no 12092 need_lib_prefix=no 12093 runpath_var=LD_RUN_PATH 12094 ;; 12095 siemens) 12096 need_lib_prefix=no 12097 ;; 12098 motorola) 12099 need_lib_prefix=no 12100 need_version=no 12101 shlibpath_overrides_runpath=no 12102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12103 ;; 12104 esac 12105 ;; 12106 12107sysv4*MP*) 12108 if test -d /usr/nec; then 12109 version_type=linux # correct to gnu/linux during the next big refactor 12110 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12111 soname_spec='$libname$shared_ext.$major' 12112 shlibpath_var=LD_LIBRARY_PATH 12113 fi 12114 ;; 12115 12116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12117 version_type=sco 12118 need_lib_prefix=no 12119 need_version=no 12120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12121 soname_spec='$libname$release$shared_ext$major' 12122 shlibpath_var=LD_LIBRARY_PATH 12123 shlibpath_overrides_runpath=yes 12124 hardcode_into_libs=yes 12125 if test yes = "$with_gnu_ld"; then 12126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12127 else 12128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12129 case $host_os in 12130 sco3.2v5*) 12131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12132 ;; 12133 esac 12134 fi 12135 sys_lib_dlsearch_path_spec='/usr/lib' 12136 ;; 12137 12138tpf*) 12139 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12140 version_type=linux # correct to gnu/linux during the next big refactor 12141 need_lib_prefix=no 12142 need_version=no 12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12144 shlibpath_var=LD_LIBRARY_PATH 12145 shlibpath_overrides_runpath=no 12146 hardcode_into_libs=yes 12147 ;; 12148 12149uts4*) 12150 version_type=linux # correct to gnu/linux during the next big refactor 12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12152 soname_spec='$libname$release$shared_ext$major' 12153 shlibpath_var=LD_LIBRARY_PATH 12154 ;; 12155 12156*) 12157 dynamic_linker=no 12158 ;; 12159esac 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12161$as_echo "$dynamic_linker" >&6; } 12162test no = "$dynamic_linker" && can_build_shared=no 12163 12164variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12165if test yes = "$GCC"; then 12166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12167fi 12168 12169if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12170 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12171fi 12172 12173if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12174 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12175fi 12176 12177# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12178configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12179 12180# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12181func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12182 12183# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12184configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12283$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12284hardcode_action= 12285if test -n "$hardcode_libdir_flag_spec" || 12286 test -n "$runpath_var" || 12287 test yes = "$hardcode_automatic"; then 12288 12289 # We can hardcode non-existent directories. 12290 if test no != "$hardcode_direct" && 12291 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12292 # have to relink, otherwise we might link with an installed library 12293 # when we should be linking with a yet-to-be-installed one 12294 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12295 test no != "$hardcode_minus_L"; then 12296 # Linking always hardcodes the temporary library directory. 12297 hardcode_action=relink 12298 else 12299 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12300 hardcode_action=immediate 12301 fi 12302else 12303 # We cannot hardcode anything, or else we can only hardcode existing 12304 # directories. 12305 hardcode_action=unsupported 12306fi 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12308$as_echo "$hardcode_action" >&6; } 12309 12310if test relink = "$hardcode_action" || 12311 test yes = "$inherit_rpath"; then 12312 # Fast installation is not supported 12313 enable_fast_install=no 12314elif test yes = "$shlibpath_overrides_runpath" || 12315 test no = "$enable_shared"; then 12316 # Fast installation is not necessary 12317 enable_fast_install=needless 12318fi 12319 12320 12321 12322 12323 12324 12325 if test yes != "$enable_dlopen"; then 12326 enable_dlopen=unknown 12327 enable_dlopen_self=unknown 12328 enable_dlopen_self_static=unknown 12329else 12330 lt_cv_dlopen=no 12331 lt_cv_dlopen_libs= 12332 12333 case $host_os in 12334 beos*) 12335 lt_cv_dlopen=load_add_on 12336 lt_cv_dlopen_libs= 12337 lt_cv_dlopen_self=yes 12338 ;; 12339 12340 mingw* | pw32* | cegcc*) 12341 lt_cv_dlopen=LoadLibrary 12342 lt_cv_dlopen_libs= 12343 ;; 12344 12345 cygwin*) 12346 lt_cv_dlopen=dlopen 12347 lt_cv_dlopen_libs= 12348 ;; 12349 12350 darwin*) 12351 # if libdl is installed we need to link against it 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12353$as_echo_n "checking for dlopen in -ldl... " >&6; } 12354if ${ac_cv_lib_dl_dlopen+:} false; then : 12355 $as_echo_n "(cached) " >&6 12356else 12357 ac_check_lib_save_LIBS=$LIBS 12358LIBS="-ldl $LIBS" 12359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361 12362/* Override any GCC internal prototype to avoid an error. 12363 Use char because int might match the return type of a GCC 12364 builtin and then its argument prototype would still apply. */ 12365#ifdef __cplusplus 12366extern "C" 12367#endif 12368char dlopen (); 12369int 12370main () 12371{ 12372return dlopen (); 12373 ; 12374 return 0; 12375} 12376_ACEOF 12377if ac_fn_c_try_link "$LINENO"; then : 12378 ac_cv_lib_dl_dlopen=yes 12379else 12380 ac_cv_lib_dl_dlopen=no 12381fi 12382rm -f core conftest.err conftest.$ac_objext \ 12383 conftest$ac_exeext conftest.$ac_ext 12384LIBS=$ac_check_lib_save_LIBS 12385fi 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12387$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12388if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12389 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12390else 12391 12392 lt_cv_dlopen=dyld 12393 lt_cv_dlopen_libs= 12394 lt_cv_dlopen_self=yes 12395 12396fi 12397 12398 ;; 12399 12400 tpf*) 12401 # Don't try to run any link tests for TPF. We know it's impossible 12402 # because TPF is a cross-compiler, and we know how we open DSOs. 12403 lt_cv_dlopen=dlopen 12404 lt_cv_dlopen_libs= 12405 lt_cv_dlopen_self=no 12406 ;; 12407 12408 *) 12409 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12410if test "x$ac_cv_func_shl_load" = xyes; then : 12411 lt_cv_dlopen=shl_load 12412else 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12414$as_echo_n "checking for shl_load in -ldld... " >&6; } 12415if ${ac_cv_lib_dld_shl_load+:} false; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 ac_check_lib_save_LIBS=$LIBS 12419LIBS="-ldld $LIBS" 12420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12421/* end confdefs.h. */ 12422 12423/* Override any GCC internal prototype to avoid an error. 12424 Use char because int might match the return type of a GCC 12425 builtin and then its argument prototype would still apply. */ 12426#ifdef __cplusplus 12427extern "C" 12428#endif 12429char shl_load (); 12430int 12431main () 12432{ 12433return shl_load (); 12434 ; 12435 return 0; 12436} 12437_ACEOF 12438if ac_fn_c_try_link "$LINENO"; then : 12439 ac_cv_lib_dld_shl_load=yes 12440else 12441 ac_cv_lib_dld_shl_load=no 12442fi 12443rm -f core conftest.err conftest.$ac_objext \ 12444 conftest$ac_exeext conftest.$ac_ext 12445LIBS=$ac_check_lib_save_LIBS 12446fi 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12448$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12449if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12450 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12451else 12452 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12453if test "x$ac_cv_func_dlopen" = xyes; then : 12454 lt_cv_dlopen=dlopen 12455else 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12457$as_echo_n "checking for dlopen in -ldl... " >&6; } 12458if ${ac_cv_lib_dl_dlopen+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460else 12461 ac_check_lib_save_LIBS=$LIBS 12462LIBS="-ldl $LIBS" 12463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12464/* end confdefs.h. */ 12465 12466/* Override any GCC internal prototype to avoid an error. 12467 Use char because int might match the return type of a GCC 12468 builtin and then its argument prototype would still apply. */ 12469#ifdef __cplusplus 12470extern "C" 12471#endif 12472char dlopen (); 12473int 12474main () 12475{ 12476return dlopen (); 12477 ; 12478 return 0; 12479} 12480_ACEOF 12481if ac_fn_c_try_link "$LINENO"; then : 12482 ac_cv_lib_dl_dlopen=yes 12483else 12484 ac_cv_lib_dl_dlopen=no 12485fi 12486rm -f core conftest.err conftest.$ac_objext \ 12487 conftest$ac_exeext conftest.$ac_ext 12488LIBS=$ac_check_lib_save_LIBS 12489fi 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12491$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12492if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12493 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12494else 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12496$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12497if ${ac_cv_lib_svld_dlopen+:} false; then : 12498 $as_echo_n "(cached) " >&6 12499else 12500 ac_check_lib_save_LIBS=$LIBS 12501LIBS="-lsvld $LIBS" 12502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12503/* end confdefs.h. */ 12504 12505/* Override any GCC internal prototype to avoid an error. 12506 Use char because int might match the return type of a GCC 12507 builtin and then its argument prototype would still apply. */ 12508#ifdef __cplusplus 12509extern "C" 12510#endif 12511char dlopen (); 12512int 12513main () 12514{ 12515return dlopen (); 12516 ; 12517 return 0; 12518} 12519_ACEOF 12520if ac_fn_c_try_link "$LINENO"; then : 12521 ac_cv_lib_svld_dlopen=yes 12522else 12523 ac_cv_lib_svld_dlopen=no 12524fi 12525rm -f core conftest.err conftest.$ac_objext \ 12526 conftest$ac_exeext conftest.$ac_ext 12527LIBS=$ac_check_lib_save_LIBS 12528fi 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12530$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12531if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12532 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12533else 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12535$as_echo_n "checking for dld_link in -ldld... " >&6; } 12536if ${ac_cv_lib_dld_dld_link+:} false; then : 12537 $as_echo_n "(cached) " >&6 12538else 12539 ac_check_lib_save_LIBS=$LIBS 12540LIBS="-ldld $LIBS" 12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543 12544/* Override any GCC internal prototype to avoid an error. 12545 Use char because int might match the return type of a GCC 12546 builtin and then its argument prototype would still apply. */ 12547#ifdef __cplusplus 12548extern "C" 12549#endif 12550char dld_link (); 12551int 12552main () 12553{ 12554return dld_link (); 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559if ac_fn_c_try_link "$LINENO"; then : 12560 ac_cv_lib_dld_dld_link=yes 12561else 12562 ac_cv_lib_dld_dld_link=no 12563fi 12564rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566LIBS=$ac_check_lib_save_LIBS 12567fi 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12569$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12570if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12571 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12572fi 12573 12574 12575fi 12576 12577 12578fi 12579 12580 12581fi 12582 12583 12584fi 12585 12586 12587fi 12588 12589 ;; 12590 esac 12591 12592 if test no = "$lt_cv_dlopen"; then 12593 enable_dlopen=no 12594 else 12595 enable_dlopen=yes 12596 fi 12597 12598 case $lt_cv_dlopen in 12599 dlopen) 12600 save_CPPFLAGS=$CPPFLAGS 12601 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12602 12603 save_LDFLAGS=$LDFLAGS 12604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12605 12606 save_LIBS=$LIBS 12607 LIBS="$lt_cv_dlopen_libs $LIBS" 12608 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12610$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12611if ${lt_cv_dlopen_self+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 if test yes = "$cross_compiling"; then : 12615 lt_cv_dlopen_self=cross 12616else 12617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12618 lt_status=$lt_dlunknown 12619 cat > conftest.$ac_ext <<_LT_EOF 12620#line $LINENO "configure" 12621#include "confdefs.h" 12622 12623#if HAVE_DLFCN_H 12624#include <dlfcn.h> 12625#endif 12626 12627#include <stdio.h> 12628 12629#ifdef RTLD_GLOBAL 12630# define LT_DLGLOBAL RTLD_GLOBAL 12631#else 12632# ifdef DL_GLOBAL 12633# define LT_DLGLOBAL DL_GLOBAL 12634# else 12635# define LT_DLGLOBAL 0 12636# endif 12637#endif 12638 12639/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12640 find out it does not work in some platform. */ 12641#ifndef LT_DLLAZY_OR_NOW 12642# ifdef RTLD_LAZY 12643# define LT_DLLAZY_OR_NOW RTLD_LAZY 12644# else 12645# ifdef DL_LAZY 12646# define LT_DLLAZY_OR_NOW DL_LAZY 12647# else 12648# ifdef RTLD_NOW 12649# define LT_DLLAZY_OR_NOW RTLD_NOW 12650# else 12651# ifdef DL_NOW 12652# define LT_DLLAZY_OR_NOW DL_NOW 12653# else 12654# define LT_DLLAZY_OR_NOW 0 12655# endif 12656# endif 12657# endif 12658# endif 12659#endif 12660 12661/* When -fvisibility=hidden is used, assume the code has been annotated 12662 correspondingly for the symbols needed. */ 12663#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12664int fnord () __attribute__((visibility("default"))); 12665#endif 12666 12667int fnord () { return 42; } 12668int main () 12669{ 12670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12671 int status = $lt_dlunknown; 12672 12673 if (self) 12674 { 12675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12676 else 12677 { 12678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12679 else puts (dlerror ()); 12680 } 12681 /* dlclose (self); */ 12682 } 12683 else 12684 puts (dlerror ()); 12685 12686 return status; 12687} 12688_LT_EOF 12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12690 (eval $ac_link) 2>&5 12691 ac_status=$? 12692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12693 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12694 (./conftest; exit; ) >&5 2>/dev/null 12695 lt_status=$? 12696 case x$lt_status in 12697 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12698 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12699 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12700 esac 12701 else : 12702 # compilation failed 12703 lt_cv_dlopen_self=no 12704 fi 12705fi 12706rm -fr conftest* 12707 12708 12709fi 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12711$as_echo "$lt_cv_dlopen_self" >&6; } 12712 12713 if test yes = "$lt_cv_dlopen_self"; then 12714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12716$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12717if ${lt_cv_dlopen_self_static+:} false; then : 12718 $as_echo_n "(cached) " >&6 12719else 12720 if test yes = "$cross_compiling"; then : 12721 lt_cv_dlopen_self_static=cross 12722else 12723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12724 lt_status=$lt_dlunknown 12725 cat > conftest.$ac_ext <<_LT_EOF 12726#line $LINENO "configure" 12727#include "confdefs.h" 12728 12729#if HAVE_DLFCN_H 12730#include <dlfcn.h> 12731#endif 12732 12733#include <stdio.h> 12734 12735#ifdef RTLD_GLOBAL 12736# define LT_DLGLOBAL RTLD_GLOBAL 12737#else 12738# ifdef DL_GLOBAL 12739# define LT_DLGLOBAL DL_GLOBAL 12740# else 12741# define LT_DLGLOBAL 0 12742# endif 12743#endif 12744 12745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12746 find out it does not work in some platform. */ 12747#ifndef LT_DLLAZY_OR_NOW 12748# ifdef RTLD_LAZY 12749# define LT_DLLAZY_OR_NOW RTLD_LAZY 12750# else 12751# ifdef DL_LAZY 12752# define LT_DLLAZY_OR_NOW DL_LAZY 12753# else 12754# ifdef RTLD_NOW 12755# define LT_DLLAZY_OR_NOW RTLD_NOW 12756# else 12757# ifdef DL_NOW 12758# define LT_DLLAZY_OR_NOW DL_NOW 12759# else 12760# define LT_DLLAZY_OR_NOW 0 12761# endif 12762# endif 12763# endif 12764# endif 12765#endif 12766 12767/* When -fvisibility=hidden is used, assume the code has been annotated 12768 correspondingly for the symbols needed. */ 12769#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12770int fnord () __attribute__((visibility("default"))); 12771#endif 12772 12773int fnord () { return 42; } 12774int main () 12775{ 12776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12777 int status = $lt_dlunknown; 12778 12779 if (self) 12780 { 12781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12782 else 12783 { 12784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12785 else puts (dlerror ()); 12786 } 12787 /* dlclose (self); */ 12788 } 12789 else 12790 puts (dlerror ()); 12791 12792 return status; 12793} 12794_LT_EOF 12795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12796 (eval $ac_link) 2>&5 12797 ac_status=$? 12798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12799 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12800 (./conftest; exit; ) >&5 2>/dev/null 12801 lt_status=$? 12802 case x$lt_status in 12803 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12804 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12805 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12806 esac 12807 else : 12808 # compilation failed 12809 lt_cv_dlopen_self_static=no 12810 fi 12811fi 12812rm -fr conftest* 12813 12814 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12817$as_echo "$lt_cv_dlopen_self_static" >&6; } 12818 fi 12819 12820 CPPFLAGS=$save_CPPFLAGS 12821 LDFLAGS=$save_LDFLAGS 12822 LIBS=$save_LIBS 12823 ;; 12824 esac 12825 12826 case $lt_cv_dlopen_self in 12827 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12828 *) enable_dlopen_self=unknown ;; 12829 esac 12830 12831 case $lt_cv_dlopen_self_static in 12832 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12833 *) enable_dlopen_self_static=unknown ;; 12834 esac 12835fi 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853striplib= 12854old_striplib= 12855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12856$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12857if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12859 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12861$as_echo "yes" >&6; } 12862else 12863# FIXME - insert some real tests, host_os isn't really good enough 12864 case $host_os in 12865 darwin*) 12866 if test -n "$STRIP"; then 12867 striplib="$STRIP -x" 12868 old_striplib="$STRIP -S" 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12870$as_echo "yes" >&6; } 12871 else 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12873$as_echo "no" >&6; } 12874 fi 12875 ;; 12876 *) 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12878$as_echo "no" >&6; } 12879 ;; 12880 esac 12881fi 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 # Report what library types will actually be built 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12896$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12898$as_echo "$can_build_shared" >&6; } 12899 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12901$as_echo_n "checking whether to build shared libraries... " >&6; } 12902 test no = "$can_build_shared" && enable_shared=no 12903 12904 # On AIX, shared libraries and static libraries use the same namespace, and 12905 # are all built from PIC. 12906 case $host_os in 12907 aix3*) 12908 test yes = "$enable_shared" && enable_static=no 12909 if test -n "$RANLIB"; then 12910 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12911 postinstall_cmds='$RANLIB $lib' 12912 fi 12913 ;; 12914 12915 aix[4-9]*) 12916 if test ia64 != "$host_cpu"; then 12917 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12918 yes,aix,yes) ;; # shared object as lib.so file only 12919 yes,svr4,*) ;; # shared object as lib.so archive member only 12920 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12921 esac 12922 fi 12923 ;; 12924 esac 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12926$as_echo "$enable_shared" >&6; } 12927 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12929$as_echo_n "checking whether to build static libraries... " >&6; } 12930 # Make sure either enable_shared or enable_static is yes. 12931 test yes = "$enable_shared" || enable_static=yes 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12933$as_echo "$enable_static" >&6; } 12934 12935 12936 12937 12938fi 12939ac_ext=c 12940ac_cpp='$CPP $CPPFLAGS' 12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12943ac_compiler_gnu=$ac_cv_c_compiler_gnu 12944 12945CC=$lt_save_CC 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 ac_config_commands="$ac_config_commands libtool" 12962 12963 12964 12965 12966# Only expand once: 12967 12968 12969test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION="$VERSION" 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking out linker version info $PACKAGE_VERSION " >&5 12971$as_echo_n "checking out linker version info $PACKAGE_VERSION ... " >&6; } 12972 MINOR_VERSION=`echo $PACKAGE_VERSION` 12973 MAJOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[.].*//'` 12974 MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e "s/^$MAJOR_VERSION//" -e 's/^.//'` 12975 MICRO_VERSION="$MINOR_VERSION" 12976 MINOR_VERSION=`echo "$MICRO_VERSION" | sed -e 's/[.].*//'` 12977 MICRO_VERSION=`echo "$MICRO_VERSION" | sed -e "s/^$MINOR_VERSION//" -e 's/^.//'` 12978 PATCH_VERSION="$MICRO_VERSION" 12979 MICRO_VERSION=`echo "$PATCH_VERSION" | sed -e 's/[^0-9].*//'` 12980 PATCH_VERSION=`echo "$PATCH_VERSION" | sed -e "s/^$MICRO_VERSION//" -e 's/[-.]//'` 12981 if test "_$MICRO_VERSION" = "_" ; then MICRO_VERSION="0" ; fi 12982 if test "_$MINOR_VERSION" = "_" ; then MINOR_VERSION="$MAJOR_VERSION" ; MAJOR_VERSION="0" ; fi 12983 MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[^0-9].*//'` 12984 RELEASE_INFO="-release $MAJOR_VERSION" 12985 VERSION_INFO="-version-info $MINOR_VERSION:$MICRO_VERSION" 12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: /$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&5 12987$as_echo "/$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&6; } 12988 12989 12990 12991 12992# ----------------------------------------------------------------------- 12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5 12994$as_echo "creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&6; } 12995test -d zzip || mkdir zzip 12996sed -f $srcdir/zzip/_msvc.sed $srcdir/config.h.in >zzip/_msvc.in 12997ac_config_headers="$ac_config_headers config.h" 12998 12999 ac_config_commands="$ac_config_commands zzip/_config.h" 13000 13001 ac_config_commands="$ac_config_commands zzip/_msvc.h" 13002 13003 13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 13005$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 13006 # Check whether --enable-maintainer-mode was given. 13007if test "${enable_maintainer_mode+set}" = set; then : 13008 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 13009else 13010 USE_MAINTAINER_MODE=no 13011fi 13012 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 13014$as_echo "$USE_MAINTAINER_MODE" >&6; } 13015 if test $USE_MAINTAINER_MODE = yes; then 13016 MAINTAINER_MODE_TRUE= 13017 MAINTAINER_MODE_FALSE='#' 13018else 13019 MAINTAINER_MODE_TRUE='#' 13020 MAINTAINER_MODE_FALSE= 13021fi 13022 13023 MAINT=$MAINTAINER_MODE_TRUE 13024 13025 13026 13027 13028# we need the expanded forms... 13029test "x$prefix" = xNONE && prefix=$ac_default_prefix 13030test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13031 13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5 13033$as_echo_n "checking our pkgconfig libname... " >&6; } 13034test ".$ax_create_pkgconfig_libname" != "." || \ 13035ax_create_pkgconfig_libname="`basename zzip/zziplib.pc .pc`" 13036test ".$ax_create_pkgconfig_libname" != "." || \ 13037ax_create_pkgconfig_libname="$PACKAGE" 13038ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 13039ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5 13041$as_echo "$ax_create_pkgconfig_libname" >&6; } 13042 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5 13044$as_echo_n "checking our pkgconfig version... " >&6; } 13045test ".$ax_create_pkgconfig_version" != "." || \ 13046ax_create_pkgconfig_version="${PACKAGE_VERSION}" 13047test ".$ax_create_pkgconfig_version" != "." || \ 13048ax_create_pkgconfig_version="$VERSION" 13049ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 13050ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5 13052$as_echo "$ax_create_pkgconfig_version" >&6; } 13053 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5 13055$as_echo_n "checking our pkgconfig_libdir... " >&6; } 13056test ".$pkgconfig_libdir" = "." && \ 13057pkgconfig_libdir='${libdir}/pkgconfig' 13058ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"` 13059ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 13060ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5 13062$as_echo "$pkgconfig_libdir" >&6; } 13063test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && ( 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5 13065$as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; }) 13066 13067 13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5 13069$as_echo_n "checking our pkgconfig_libfile... " >&6; } 13070test ".$pkgconfig_libfile" != "." || \ 13071pkgconfig_libfile="`basename zzip/zziplib.pc`" 13072ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"` 13073ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"` 13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5 13075$as_echo "$pkgconfig_libfile" >&6; } 13076test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && ( 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5 13078$as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; }) 13079 13080 13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5 13082$as_echo_n "checking our package / suffix... " >&6; } 13083ax_create_pkgconfig_suffix="$program_suffix" 13084test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix="" 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5 13086$as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; } 13087 13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5 13089$as_echo_n "checking our pkgconfig description... " >&6; } 13090ax_create_pkgconfig_description="$PACKAGE_SUMMARY" 13091test ".$ax_create_pkgconfig_description" != "." || \ 13092ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library" 13093ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 13094ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 13095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5 13096$as_echo "$ax_create_pkgconfig_description" >&6; } 13097 13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5 13099$as_echo_n "checking our pkgconfig requires... " >&6; } 13100ax_create_pkgconfig_requires="zzip-zlib-config" 13101ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 13102ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5 13104$as_echo "$ax_create_pkgconfig_requires" >&6; } 13105 13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5 13107$as_echo_n "checking our pkgconfig ext libs... " >&6; } 13108ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS" 13109test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname" 13110ax_create_pkgconfig_libs="-lzzip" 13111ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 13112ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 13113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5 13114$as_echo "$ax_create_pkgconfig_libs" >&6; } 13115 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5 13117$as_echo_n "checking our pkgconfig cppflags... " >&6; } 13118ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS" 13119ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 13120ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5 13122$as_echo "$ax_create_pkgconfig_cppflags" >&6; } 13123 13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5 13125$as_echo_n "checking our pkgconfig ldflags... " >&6; } 13126ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS" 13127ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 13128ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5 13130$as_echo "$ax_create_pkgconfig_ldflags" >&6; } 13131 13132test ".$ax_create_pkgconfig_generate" != "." || \ 13133ax_create_pkgconfig_generate="zzip/zziplib.pc" 13134ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 13135ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 13136test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && ( 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5 13138$as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; }) 13139 13140if test ".$ax_create_pkgconfig_src_libdir" = "." ; then 13141ax_create_pkgconfig_src_libdir=`pwd` 13142ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" || 13143$as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13144 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \ 13145 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \ 13146 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null || 13147$as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" | 13148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13149 s//\1/ 13150 q 13151 } 13152 /^X\(\/\/\)[^/].*/{ 13153 s//\1/ 13154 q 13155 } 13156 /^X\(\/\/\)$/{ 13157 s//\1/ 13158 q 13159 } 13160 /^X\(\/\).*/{ 13161 s//\1/ 13162 q 13163 } 13164 s/.*/./; q'` 13165test ! -d $ax_create_pkgconfig_src_libdir/src || \ 13166ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src" 13167case ".$objdir" in 13168*libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5 13170$as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; } 13171fi 13172 13173if test ".$ax_create_pkgconfig_src_headers" = "." ; then 13174ax_create_pkgconfig_src_headers=`pwd` 13175v="$ac_top_srcdir" ; 13176test ".$v" != "." || v="$ax_spec_dir" 13177test ".$v" != "." || v="$srcdir" 13178case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac 13179ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" || 13180$as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13181 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \ 13182 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \ 13183 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null || 13184$as_echo X"$ax_create_pkgconfig_src_headers/$v/x" | 13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13186 s//\1/ 13187 q 13188 } 13189 /^X\(\/\/\)[^/].*/{ 13190 s//\1/ 13191 q 13192 } 13193 /^X\(\/\/\)$/{ 13194 s//\1/ 13195 q 13196 } 13197 /^X\(\/\).*/{ 13198 s//\1/ 13199 q 13200 } 13201 s/.*/./; q'` 13202test ! -d $ax_create_pkgconfig_src_headers/include || \ 13203ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include" 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5 13205$as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; } 13206fi 13207 13208 13209ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate" 13210 13211# ----------------------------------------------------------------------- 13212 13213 13214if test -z "$ac_cv_pax_tar_tool"; then 13215 # Extract the first word of "pax", so it can be a program name with args. 13216set dummy pax; ac_word=$2 13217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13218$as_echo_n "checking for $ac_word... " >&6; } 13219if ${ac_cv_path_PAX+:} false; then : 13220 $as_echo_n "(cached) " >&6 13221else 13222 case $PAX in 13223 [\\/]* | ?:[\\/]*) 13224 ac_cv_path_PAX="$PAX" # Let the user override the test with a path. 13225 ;; 13226 *) 13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13228for as_dir in $PATH 13229do 13230 IFS=$as_save_IFS 13231 test -z "$as_dir" && as_dir=. 13232 for ac_exec_ext in '' $ac_executable_extensions; do 13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13234 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext" 13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13236 break 2 13237 fi 13238done 13239 done 13240IFS=$as_save_IFS 13241 13242 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":" 13243 ;; 13244esac 13245fi 13246PAX=$ac_cv_path_PAX 13247if test -n "$PAX"; then 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5 13249$as_echo "$PAX" >&6; } 13250else 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13252$as_echo "no" >&6; } 13253fi 13254 13255 13256 if test "$ac_cv_path_PAX" != ":"; then 13257 ac_cv_pax_tar_tool="pax" 13258 else #3 13259 # Extract the first word of "gnutar", so it can be a program name with args. 13260set dummy gnutar; ac_word=$2 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13262$as_echo_n "checking for $ac_word... " >&6; } 13263if ${ac_cv_path_GNUTAR+:} false; then : 13264 $as_echo_n "(cached) " >&6 13265else 13266 case $GNUTAR in 13267 [\\/]* | ?:[\\/]*) 13268 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path. 13269 ;; 13270 *) 13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13272for as_dir in $PATH 13273do 13274 IFS=$as_save_IFS 13275 test -z "$as_dir" && as_dir=. 13276 for ac_exec_ext in '' $ac_executable_extensions; do 13277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13278 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext" 13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13280 break 2 13281 fi 13282done 13283 done 13284IFS=$as_save_IFS 13285 13286 test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":" 13287 ;; 13288esac 13289fi 13290GNUTAR=$ac_cv_path_GNUTAR 13291if test -n "$GNUTAR"; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 13293$as_echo "$GNUTAR" >&6; } 13294else 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13296$as_echo "no" >&6; } 13297fi 13298 13299 13300 if test "$ac_cv_path_GNUTAR" != ":"; then 13301 ac_cv_pax_tar_tool="gnutar" 13302 else #1 13303 # Extract the first word of "gtar", so it can be a program name with args. 13304set dummy gtar; ac_word=$2 13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13306$as_echo_n "checking for $ac_word... " >&6; } 13307if ${ac_cv_path_GTAR+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 case $GTAR in 13311 [\\/]* | ?:[\\/]*) 13312 ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path. 13313 ;; 13314 *) 13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13316for as_dir in $PATH 13317do 13318 IFS=$as_save_IFS 13319 test -z "$as_dir" && as_dir=. 13320 for ac_exec_ext in '' $ac_executable_extensions; do 13321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13322 ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext" 13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13324 break 2 13325 fi 13326done 13327 done 13328IFS=$as_save_IFS 13329 13330 test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":" 13331 ;; 13332esac 13333fi 13334GTAR=$ac_cv_path_GTAR 13335if test -n "$GTAR"; then 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTAR" >&5 13337$as_echo "$GTAR" >&6; } 13338else 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13340$as_echo "no" >&6; } 13341fi 13342 13343 13344 if test "$ac_cv_path_GTAR" != ":"; then 13345 ac_cv_pax_tar_tool="gtar" 13346 else #2 13347 # Extract the first word of "tar", so it can be a program name with args. 13348set dummy tar; ac_word=$2 13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13350$as_echo_n "checking for $ac_word... " >&6; } 13351if ${ac_cv_path_TAR+:} false; then : 13352 $as_echo_n "(cached) " >&6 13353else 13354 case $TAR in 13355 [\\/]* | ?:[\\/]*) 13356 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 13357 ;; 13358 *) 13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13360for as_dir in $PATH 13361do 13362 IFS=$as_save_IFS 13363 test -z "$as_dir" && as_dir=. 13364 for ac_exec_ext in '' $ac_executable_extensions; do 13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13366 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13368 break 2 13369 fi 13370done 13371 done 13372IFS=$as_save_IFS 13373 13374 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":" 13375 ;; 13376esac 13377fi 13378TAR=$ac_cv_path_TAR 13379if test -n "$TAR"; then 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 13381$as_echo "$TAR" >&6; } 13382else 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13384$as_echo "no" >&6; } 13385fi 13386 13387 13388 if test "$ac_cv_path_TAR" != ":"; then 13389 ac_cv_pax_tar_tool="tar" 13390 fi 13391 fi fi fi #3 #2 #1 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portable tar tool" >&5 13393$as_echo_n "checking for portable tar tool... " >&6; } 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pax_tar_tool" >&5 13395$as_echo "$ac_cv_pax_tar_tool" >&6; } 13396fi 13397 13398 13399 if test "$ac_cv_pax_tar_tool$ax_pax_single_archive" = "pax"; then 13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pax single archive option" >&5 13401$as_echo_n "checking for pax single archive option... " >&6; } 13402 echo foo > conftest.txt ; rm -f conftest.tar 13403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\$ac_cv_path_PAX\" -w -O -f conftest.tar conftest.txt"; } >&5 13404 ("$ac_cv_path_PAX" -w -O -f conftest.tar conftest.txt) 2>&5 13405 ac_status=$? 13406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13407 test $ac_status = 0; } 13408 if test -s conftest.tar; then 13409 ax_pax_single_archive="-O" ; ac_hint="(probably a BSD pax)" 13410 else 13411 ax_pax_single_archive=" " ; ac_hint="(the -O option did not work)" 13412 fi 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_single_archive $ac_hint" >&5 13414$as_echo "$ax_pax_single_archive $ac_hint" >&6; } 13415 fi 13416 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to create portable tar archives" >&5 13418$as_echo_n "checking for command to create portable tar archives... " >&6; } 13419 if test "$ac_cv_pax_tar_tool" = "gnutar"; then 13420 ax_pax_tar_create="'$ac_cv_path_GNUTAR' cf" 13421 elif test "$ac_cv_pax_tar_tool" = "gtar"; then 13422 ax_pax_tar_create="'$ac_cv_path_GTAR' cf" 13423 elif test "$ac_cv_pax_tar_tool" = "pax"; then 13424 ax_pax_tar_create="'$ac_cv_path_PAX' -w $ax_pax_single_archive -f" 13425 elif test "$ac_cv_pax_tar_tool" = "tar"; then 13426 ax_pax_tar_create="'$ac_cv_path_TAR' cf" 13427 else 13428 ax_pax_tar_create=": 'unknown pax tar tool $ac_cv_pax_tar_tool'" 13429 fi 13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_tar_create" >&5 13431$as_echo "$ax_pax_tar_create" >&6; } 13432 13433PAX_TAR_CREATE="$ax_pax_tar_create" 13434 13435 13436 13437 13438 13439if test -z "$ac_cv_pax_tar_tool"; then 13440 # Extract the first word of "pax", so it can be a program name with args. 13441set dummy pax; ac_word=$2 13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13443$as_echo_n "checking for $ac_word... " >&6; } 13444if ${ac_cv_path_PAX+:} false; then : 13445 $as_echo_n "(cached) " >&6 13446else 13447 case $PAX in 13448 [\\/]* | ?:[\\/]*) 13449 ac_cv_path_PAX="$PAX" # Let the user override the test with a path. 13450 ;; 13451 *) 13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13453for as_dir in $PATH 13454do 13455 IFS=$as_save_IFS 13456 test -z "$as_dir" && as_dir=. 13457 for ac_exec_ext in '' $ac_executable_extensions; do 13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13459 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext" 13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13461 break 2 13462 fi 13463done 13464 done 13465IFS=$as_save_IFS 13466 13467 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":" 13468 ;; 13469esac 13470fi 13471PAX=$ac_cv_path_PAX 13472if test -n "$PAX"; then 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5 13474$as_echo "$PAX" >&6; } 13475else 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13477$as_echo "no" >&6; } 13478fi 13479 13480 13481 if test "$ac_cv_path_PAX" != ":"; then 13482 ac_cv_pax_tar_tool="pax" 13483 else #3 13484 # Extract the first word of "gnutar", so it can be a program name with args. 13485set dummy gnutar; ac_word=$2 13486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13487$as_echo_n "checking for $ac_word... " >&6; } 13488if ${ac_cv_path_GNUTAR+:} false; then : 13489 $as_echo_n "(cached) " >&6 13490else 13491 case $GNUTAR in 13492 [\\/]* | ?:[\\/]*) 13493 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path. 13494 ;; 13495 *) 13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13497for as_dir in $PATH 13498do 13499 IFS=$as_save_IFS 13500 test -z "$as_dir" && as_dir=. 13501 for ac_exec_ext in '' $ac_executable_extensions; do 13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13503 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext" 13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13505 break 2 13506 fi 13507done 13508 done 13509IFS=$as_save_IFS 13510 13511 test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":" 13512 ;; 13513esac 13514fi 13515GNUTAR=$ac_cv_path_GNUTAR 13516if test -n "$GNUTAR"; then 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 13518$as_echo "$GNUTAR" >&6; } 13519else 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13521$as_echo "no" >&6; } 13522fi 13523 13524 13525 if test "$ac_cv_path_GNUTAR" != ":"; then 13526 ac_cv_pax_tar_tool="gnutar" 13527 else #1 13528 # Extract the first word of "gtar", so it can be a program name with args. 13529set dummy gtar; ac_word=$2 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13531$as_echo_n "checking for $ac_word... " >&6; } 13532if ${ac_cv_path_GTAR+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 case $GTAR in 13536 [\\/]* | ?:[\\/]*) 13537 ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path. 13538 ;; 13539 *) 13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13541for as_dir in $PATH 13542do 13543 IFS=$as_save_IFS 13544 test -z "$as_dir" && as_dir=. 13545 for ac_exec_ext in '' $ac_executable_extensions; do 13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13547 ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext" 13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13549 break 2 13550 fi 13551done 13552 done 13553IFS=$as_save_IFS 13554 13555 test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":" 13556 ;; 13557esac 13558fi 13559GTAR=$ac_cv_path_GTAR 13560if test -n "$GTAR"; then 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTAR" >&5 13562$as_echo "$GTAR" >&6; } 13563else 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13565$as_echo "no" >&6; } 13566fi 13567 13568 13569 if test "$ac_cv_path_GTAR" != ":"; then 13570 ac_cv_pax_tar_tool="gtar" 13571 else #2 13572 # Extract the first word of "tar", so it can be a program name with args. 13573set dummy tar; ac_word=$2 13574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13575$as_echo_n "checking for $ac_word... " >&6; } 13576if ${ac_cv_path_TAR+:} false; then : 13577 $as_echo_n "(cached) " >&6 13578else 13579 case $TAR in 13580 [\\/]* | ?:[\\/]*) 13581 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 13582 ;; 13583 *) 13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13585for as_dir in $PATH 13586do 13587 IFS=$as_save_IFS 13588 test -z "$as_dir" && as_dir=. 13589 for ac_exec_ext in '' $ac_executable_extensions; do 13590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13591 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13593 break 2 13594 fi 13595done 13596 done 13597IFS=$as_save_IFS 13598 13599 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":" 13600 ;; 13601esac 13602fi 13603TAR=$ac_cv_path_TAR 13604if test -n "$TAR"; then 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 13606$as_echo "$TAR" >&6; } 13607else 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13609$as_echo "no" >&6; } 13610fi 13611 13612 13613 if test "$ac_cv_path_TAR" != ":"; then 13614 ac_cv_pax_tar_tool="tar" 13615 fi 13616 fi fi fi #3 #2 #1 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portable tar tool" >&5 13618$as_echo_n "checking for portable tar tool... " >&6; } 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pax_tar_tool" >&5 13620$as_echo "$ac_cv_pax_tar_tool" >&6; } 13621fi 13622 13623 13624 if test "$ac_cv_pax_tar_tool$ax_pax_single_archive" = "pax"; then 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pax single archive option" >&5 13626$as_echo_n "checking for pax single archive option... " >&6; } 13627 echo foo > conftest.txt ; rm -f conftest.tar 13628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \"\$ac_cv_path_PAX\" -w -O -f conftest.tar conftest.txt"; } >&5 13629 ("$ac_cv_path_PAX" -w -O -f conftest.tar conftest.txt) 2>&5 13630 ac_status=$? 13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13632 test $ac_status = 0; } 13633 if test -s conftest.tar; then 13634 ax_pax_single_archive="-O" ; ac_hint="(probably a BSD pax)" 13635 else 13636 ax_pax_single_archive=" " ; ac_hint="(the -O option did not work)" 13637 fi 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_single_archive $ac_hint" >&5 13639$as_echo "$ax_pax_single_archive $ac_hint" >&6; } 13640 fi 13641 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to extract portable tar archives" >&5 13643$as_echo_n "checking for command to extract portable tar archives... " >&6; } 13644 if test "$ac_cv_pax_tar_tool" = "gnutar"; then 13645 ax_pax_tar_extract="'$ac_cv_path_GNUTAR' xf" 13646 elif test "$ac_cv_pax_tar_tool" = "gtar"; then 13647 ax_pax_tar_extract="'$ac_cv_path_GTAR' xf" 13648 elif test "$ac_cv_pax_tar_tool" = "pax"; then 13649 ax_pax_tar_extract="'$ac_cv_path_PAX' -r $ax_pax_single_archive -f" 13650 elif test "$ac_cv_pax_tar_tool" = "tar"; then 13651 ax_pax_tar_extract="'$ac_cv_path_TAR' xf" 13652 else 13653 ax_pax_tar_extract=": 'unknown pax tar tool $ac_cv_pax_tar_tool'" 13654 fi 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pax_tar_extract" >&5 13656$as_echo "$ax_pax_tar_extract" >&6; } 13657 13658PAX_TAR_EXTRACT="$ax_pax_tar_extract" 13659 13660 13661 13662for ac_prog in perl5 perl 13663do 13664 # Extract the first word of "$ac_prog", so it can be a program name with args. 13665set dummy $ac_prog; ac_word=$2 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13667$as_echo_n "checking for $ac_word... " >&6; } 13668if ${ac_cv_path_PERL+:} false; then : 13669 $as_echo_n "(cached) " >&6 13670else 13671 case $PERL in 13672 [\\/]* | ?:[\\/]*) 13673 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 13674 ;; 13675 *) 13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13677for as_dir in $PATH 13678do 13679 IFS=$as_save_IFS 13680 test -z "$as_dir" && as_dir=. 13681 for ac_exec_ext in '' $ac_executable_extensions; do 13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13683 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13685 break 2 13686 fi 13687done 13688 done 13689IFS=$as_save_IFS 13690 13691 ;; 13692esac 13693fi 13694PERL=$ac_cv_path_PERL 13695if test -n "$PERL"; then 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 13697$as_echo "$PERL" >&6; } 13698else 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13700$as_echo "no" >&6; } 13701fi 13702 13703 13704 test -n "$PERL" && break 13705done 13706test -n "$PERL" || PERL="echo no perl found for" 13707 13708for ac_prog in python3 13709do 13710 # Extract the first word of "$ac_prog", so it can be a program name with args. 13711set dummy $ac_prog; ac_word=$2 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13713$as_echo_n "checking for $ac_word... " >&6; } 13714if ${ac_cv_path_PYTHON+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 case $PYTHON in 13718 [\\/]* | ?:[\\/]*) 13719 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 13720 ;; 13721 *) 13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13723for as_dir in $PATH 13724do 13725 IFS=$as_save_IFS 13726 test -z "$as_dir" && as_dir=. 13727 for ac_exec_ext in '' $ac_executable_extensions; do 13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13729 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13731 break 2 13732 fi 13733done 13734 done 13735IFS=$as_save_IFS 13736 13737 ;; 13738esac 13739fi 13740PYTHON=$ac_cv_path_PYTHON 13741if test -n "$PYTHON"; then 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13743$as_echo "$PYTHON" >&6; } 13744else 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13746$as_echo "no" >&6; } 13747fi 13748 13749 13750 test -n "$PYTHON" && break 13751done 13752test -n "$PYTHON" || PYTHON="echo no python found for" 13753 13754for ac_prog in zip pkzip 13755do 13756 # Extract the first word of "$ac_prog", so it can be a program name with args. 13757set dummy $ac_prog; ac_word=$2 13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13759$as_echo_n "checking for $ac_word... " >&6; } 13760if ${ac_cv_path_MKZIP+:} false; then : 13761 $as_echo_n "(cached) " >&6 13762else 13763 case $MKZIP in 13764 [\\/]* | ?:[\\/]*) 13765 ac_cv_path_MKZIP="$MKZIP" # Let the user override the test with a path. 13766 ;; 13767 *) 13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13769for as_dir in $PATH 13770do 13771 IFS=$as_save_IFS 13772 test -z "$as_dir" && as_dir=. 13773 for ac_exec_ext in '' $ac_executable_extensions; do 13774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13775 ac_cv_path_MKZIP="$as_dir/$ac_word$ac_exec_ext" 13776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13777 break 2 13778 fi 13779done 13780 done 13781IFS=$as_save_IFS 13782 13783 ;; 13784esac 13785fi 13786MKZIP=$ac_cv_path_MKZIP 13787if test -n "$MKZIP"; then 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKZIP" >&5 13789$as_echo "$MKZIP" >&6; } 13790else 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13792$as_echo "no" >&6; } 13793fi 13794 13795 13796 test -n "$MKZIP" && break 13797done 13798test -n "$MKZIP" || MKZIP=":" 13799 13800for ac_prog in xmlto 13801do 13802 # Extract the first word of "$ac_prog", so it can be a program name with args. 13803set dummy $ac_prog; ac_word=$2 13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13805$as_echo_n "checking for $ac_word... " >&6; } 13806if ${ac_cv_path_XMLTO+:} false; then : 13807 $as_echo_n "(cached) " >&6 13808else 13809 case $XMLTO in 13810 [\\/]* | ?:[\\/]*) 13811 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13812 ;; 13813 *) 13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13815for as_dir in $PATH 13816do 13817 IFS=$as_save_IFS 13818 test -z "$as_dir" && as_dir=. 13819 for ac_exec_ext in '' $ac_executable_extensions; do 13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13821 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13823 break 2 13824 fi 13825done 13826 done 13827IFS=$as_save_IFS 13828 13829 ;; 13830esac 13831fi 13832XMLTO=$ac_cv_path_XMLTO 13833if test -n "$XMLTO"; then 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13835$as_echo "$XMLTO" >&6; } 13836else 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13838$as_echo "no" >&6; } 13839fi 13840 13841 13842 test -n "$XMLTO" && break 13843done 13844test -n "$XMLTO" || XMLTO=":" 13845 13846 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13848$as_echo_n "checking for inline... " >&6; } 13849if ${ac_cv_c_inline+:} false; then : 13850 $as_echo_n "(cached) " >&6 13851else 13852 ac_cv_c_inline=no 13853for ac_kw in inline __inline__ __inline; do 13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13855/* end confdefs.h. */ 13856#ifndef __cplusplus 13857typedef int foo_t; 13858static $ac_kw foo_t static_foo () {return 0; } 13859$ac_kw foo_t foo () {return 0; } 13860#endif 13861 13862_ACEOF 13863if ac_fn_c_try_compile "$LINENO"; then : 13864 ac_cv_c_inline=$ac_kw 13865fi 13866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13867 test "$ac_cv_c_inline" != no && break 13868done 13869 13870fi 13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13872$as_echo "$ac_cv_c_inline" >&6; } 13873 13874case $ac_cv_c_inline in 13875 inline | yes) ;; 13876 *) 13877 case $ac_cv_c_inline in 13878 no) ac_val=;; 13879 *) ac_val=$ac_cv_c_inline;; 13880 esac 13881 cat >>confdefs.h <<_ACEOF 13882#ifndef __cplusplus 13883#define inline $ac_val 13884#endif 13885_ACEOF 13886 ;; 13887esac 13888 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13890$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13891if ${ac_cv_c_const+:} false; then : 13892 $as_echo_n "(cached) " >&6 13893else 13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13895/* end confdefs.h. */ 13896 13897int 13898main () 13899{ 13900 13901#ifndef __cplusplus 13902 /* Ultrix mips cc rejects this sort of thing. */ 13903 typedef int charset[2]; 13904 const charset cs = { 0, 0 }; 13905 /* SunOS 4.1.1 cc rejects this. */ 13906 char const *const *pcpcc; 13907 char **ppc; 13908 /* NEC SVR4.0.2 mips cc rejects this. */ 13909 struct point {int x, y;}; 13910 static struct point const zero = {0,0}; 13911 /* AIX XL C 1.02.0.0 rejects this. 13912 It does not let you subtract one const X* pointer from another in 13913 an arm of an if-expression whose if-part is not a constant 13914 expression */ 13915 const char *g = "string"; 13916 pcpcc = &g + (g ? g-g : 0); 13917 /* HPUX 7.0 cc rejects these. */ 13918 ++pcpcc; 13919 ppc = (char**) pcpcc; 13920 pcpcc = (char const *const *) ppc; 13921 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13922 char tx; 13923 char *t = &tx; 13924 char const *s = 0 ? (char *) 0 : (char const *) 0; 13925 13926 *t++ = 0; 13927 if (s) return 0; 13928 } 13929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13930 int x[] = {25, 17}; 13931 const int *foo = &x[0]; 13932 ++foo; 13933 } 13934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13935 typedef const int *iptr; 13936 iptr p = 0; 13937 ++p; 13938 } 13939 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13941 struct s { int j; const int *ap[3]; } bx; 13942 struct s *b = &bx; b->j = 5; 13943 } 13944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13945 const int foo = 10; 13946 if (!foo) return 0; 13947 } 13948 return !cs[0] && !zero.x; 13949#endif 13950 13951 ; 13952 return 0; 13953} 13954_ACEOF 13955if ac_fn_c_try_compile "$LINENO"; then : 13956 ac_cv_c_const=yes 13957else 13958 ac_cv_c_const=no 13959fi 13960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13961fi 13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13963$as_echo "$ac_cv_c_const" >&6; } 13964if test $ac_cv_c_const = no; then 13965 13966$as_echo "#define const /**/" >>confdefs.h 13967 13968fi 13969 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 13971$as_echo_n "checking for C restrict keyword... " >&6; } 13972if ${acx_cv_c_restrict+:} false; then : 13973 $as_echo_n "(cached) " >&6 13974else 13975 acx_cv_c_restrict=unsupported 13976 13977 ac_ext=c 13978ac_cpp='$CPP $CPPFLAGS' 13979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13981ac_compiler_gnu=$ac_cv_c_compiler_gnu 13982 13983 # Try the official restrict keyword, then gcc's __restrict__, then 13984 # SGI's __restrict. __restrict has slightly different semantics than 13985 # restrict (it's a bit stronger, in that __restrict pointers can't 13986 # overlap even with non __restrict pointers), but I think it should be 13987 # okay under the circumstances where restrict is normally used. 13988 for acx_kw in restrict __restrict__ __restrict; do 13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13990/* end confdefs.h. */ 13991 13992int 13993main () 13994{ 13995float * $acx_kw x; 13996 ; 13997 return 0; 13998} 13999_ACEOF 14000if ac_fn_c_try_compile "$LINENO"; then : 14001 acx_cv_c_restrict=$acx_kw; break 14002fi 14003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14004 done 14005 ac_ext=c 14006ac_cpp='$CPP $CPPFLAGS' 14007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14009ac_compiler_gnu=$ac_cv_c_compiler_gnu 14010 14011 14012fi 14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_c_restrict" >&5 14014$as_echo "$acx_cv_c_restrict" >&6; } 14015 if test "$acx_cv_c_restrict" != "restrict"; then 14016 acx_kw="$acx_cv_c_restrict" 14017 if test "$acx_kw" = unsupported; then acx_kw=""; fi 14018 14019cat >>confdefs.h <<_ACEOF 14020#define restrict $acx_kw 14021_ACEOF 14022 14023 fi 14024 14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14026$as_echo_n "checking for ANSI C header files... " >&6; } 14027if ${ac_cv_header_stdc+:} false; then : 14028 $as_echo_n "(cached) " >&6 14029else 14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14031/* end confdefs.h. */ 14032#include <stdlib.h> 14033#include <stdarg.h> 14034#include <string.h> 14035#include <float.h> 14036 14037int 14038main () 14039{ 14040 14041 ; 14042 return 0; 14043} 14044_ACEOF 14045if ac_fn_c_try_compile "$LINENO"; then : 14046 ac_cv_header_stdc=yes 14047else 14048 ac_cv_header_stdc=no 14049fi 14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14051 14052if test $ac_cv_header_stdc = yes; then 14053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14055/* end confdefs.h. */ 14056#include <string.h> 14057 14058_ACEOF 14059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14060 $EGREP "memchr" >/dev/null 2>&1; then : 14061 14062else 14063 ac_cv_header_stdc=no 14064fi 14065rm -f conftest* 14066 14067fi 14068 14069if test $ac_cv_header_stdc = yes; then 14070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073#include <stdlib.h> 14074 14075_ACEOF 14076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14077 $EGREP "free" >/dev/null 2>&1; then : 14078 14079else 14080 ac_cv_header_stdc=no 14081fi 14082rm -f conftest* 14083 14084fi 14085 14086if test $ac_cv_header_stdc = yes; then 14087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14088 if test "$cross_compiling" = yes; then : 14089 : 14090else 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093#include <ctype.h> 14094#include <stdlib.h> 14095#if ((' ' & 0x0FF) == 0x020) 14096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14098#else 14099# define ISLOWER(c) \ 14100 (('a' <= (c) && (c) <= 'i') \ 14101 || ('j' <= (c) && (c) <= 'r') \ 14102 || ('s' <= (c) && (c) <= 'z')) 14103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14104#endif 14105 14106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14107int 14108main () 14109{ 14110 int i; 14111 for (i = 0; i < 256; i++) 14112 if (XOR (islower (i), ISLOWER (i)) 14113 || toupper (i) != TOUPPER (i)) 14114 return 2; 14115 return 0; 14116} 14117_ACEOF 14118if ac_fn_c_try_run "$LINENO"; then : 14119 14120else 14121 ac_cv_header_stdc=no 14122fi 14123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14124 conftest.$ac_objext conftest.beam conftest.$ac_ext 14125fi 14126 14127fi 14128fi 14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14130$as_echo "$ac_cv_header_stdc" >&6; } 14131if test $ac_cv_header_stdc = yes; then 14132 14133$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14134 14135fi 14136 14137ac_header_dirent=no 14138for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14139 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 14141$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 14142if eval \${$as_ac_Header+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146/* end confdefs.h. */ 14147#include <sys/types.h> 14148#include <$ac_hdr> 14149 14150int 14151main () 14152{ 14153if ((DIR *) 0) 14154return 0; 14155 ; 14156 return 0; 14157} 14158_ACEOF 14159if ac_fn_c_try_compile "$LINENO"; then : 14160 eval "$as_ac_Header=yes" 14161else 14162 eval "$as_ac_Header=no" 14163fi 14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14165fi 14166eval ac_res=\$$as_ac_Header 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14168$as_echo "$ac_res" >&6; } 14169if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14170 cat >>confdefs.h <<_ACEOF 14171#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14172_ACEOF 14173 14174ac_header_dirent=$ac_hdr; break 14175fi 14176 14177done 14178# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14179if test $ac_header_dirent = dirent.h; then 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14181$as_echo_n "checking for library containing opendir... " >&6; } 14182if ${ac_cv_search_opendir+:} false; then : 14183 $as_echo_n "(cached) " >&6 14184else 14185 ac_func_search_save_LIBS=$LIBS 14186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188 14189/* Override any GCC internal prototype to avoid an error. 14190 Use char because int might match the return type of a GCC 14191 builtin and then its argument prototype would still apply. */ 14192#ifdef __cplusplus 14193extern "C" 14194#endif 14195char opendir (); 14196int 14197main () 14198{ 14199return opendir (); 14200 ; 14201 return 0; 14202} 14203_ACEOF 14204for ac_lib in '' dir; do 14205 if test -z "$ac_lib"; then 14206 ac_res="none required" 14207 else 14208 ac_res=-l$ac_lib 14209 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14210 fi 14211 if ac_fn_c_try_link "$LINENO"; then : 14212 ac_cv_search_opendir=$ac_res 14213fi 14214rm -f core conftest.err conftest.$ac_objext \ 14215 conftest$ac_exeext 14216 if ${ac_cv_search_opendir+:} false; then : 14217 break 14218fi 14219done 14220if ${ac_cv_search_opendir+:} false; then : 14221 14222else 14223 ac_cv_search_opendir=no 14224fi 14225rm conftest.$ac_ext 14226LIBS=$ac_func_search_save_LIBS 14227fi 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14229$as_echo "$ac_cv_search_opendir" >&6; } 14230ac_res=$ac_cv_search_opendir 14231if test "$ac_res" != no; then : 14232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14233 14234fi 14235 14236else 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14238$as_echo_n "checking for library containing opendir... " >&6; } 14239if ${ac_cv_search_opendir+:} false; then : 14240 $as_echo_n "(cached) " >&6 14241else 14242 ac_func_search_save_LIBS=$LIBS 14243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245 14246/* Override any GCC internal prototype to avoid an error. 14247 Use char because int might match the return type of a GCC 14248 builtin and then its argument prototype would still apply. */ 14249#ifdef __cplusplus 14250extern "C" 14251#endif 14252char opendir (); 14253int 14254main () 14255{ 14256return opendir (); 14257 ; 14258 return 0; 14259} 14260_ACEOF 14261for ac_lib in '' x; do 14262 if test -z "$ac_lib"; then 14263 ac_res="none required" 14264 else 14265 ac_res=-l$ac_lib 14266 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14267 fi 14268 if ac_fn_c_try_link "$LINENO"; then : 14269 ac_cv_search_opendir=$ac_res 14270fi 14271rm -f core conftest.err conftest.$ac_objext \ 14272 conftest$ac_exeext 14273 if ${ac_cv_search_opendir+:} false; then : 14274 break 14275fi 14276done 14277if ${ac_cv_search_opendir+:} false; then : 14278 14279else 14280 ac_cv_search_opendir=no 14281fi 14282rm conftest.$ac_ext 14283LIBS=$ac_func_search_save_LIBS 14284fi 14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14286$as_echo "$ac_cv_search_opendir" >&6; } 14287ac_res=$ac_cv_search_opendir 14288if test "$ac_res" != no; then : 14289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14290 14291fi 14292 14293fi 14294 14295for ac_header in stdint.h unistd.h windows.h winnt.h winbase.h sys/int_types.h 14296do : 14297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14298ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14299if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14300 cat >>confdefs.h <<_ACEOF 14301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14302_ACEOF 14303 14304fi 14305 14306done 14307 14308for ac_header in sys/types.h sys/mman.h sys/stat.h sys/param.h 14309do : 14310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14311ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14312if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14313 cat >>confdefs.h <<_ACEOF 14314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14315_ACEOF 14316 14317fi 14318 14319done 14320 for ac_header in io.h direct.h zlib.h byteswap.h 14321do : 14322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14323ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14325 cat >>confdefs.h <<_ACEOF 14326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14327_ACEOF 14328 14329fi 14330 14331done 14332 14333for ac_header in fnmatch.h 14334do : 14335 ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 14336if test "x$ac_cv_header_fnmatch_h" = xyes; then : 14337 cat >>confdefs.h <<_ACEOF 14338#define HAVE_FNMATCH_H 1 14339_ACEOF 14340 14341fi 14342 14343done 14344 14345for ac_func in strcasecmp strnlen strndup 14346do : 14347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14348ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14349if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14350 cat >>confdefs.h <<_ACEOF 14351#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14352_ACEOF 14353 14354fi 14355done 14356 14357 14358ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14359if test "x$ac_cv_type_off_t" = xyes; then : 14360 14361else 14362 14363cat >>confdefs.h <<_ACEOF 14364#define off_t long int 14365_ACEOF 14366 14367fi 14368 14369ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14370if test "x$ac_cv_type_size_t" = xyes; then : 14371 14372else 14373 14374cat >>confdefs.h <<_ACEOF 14375#define size_t unsigned int 14376_ACEOF 14377 14378fi 14379 14380ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14381if test "x$ac_cv_type_ssize_t" = xyes; then : 14382 14383else 14384 14385cat >>confdefs.h <<_ACEOF 14386#define ssize_t int 14387_ACEOF 14388 14389fi 14390 14391ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" 14392if test "x$ac_cv_type_off64_t" = xyes; then : 14393 14394else 14395 14396cat >>confdefs.h <<_ACEOF 14397#define off64_t _zzip_off_t 14398_ACEOF 14399 14400fi 14401 14402ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default" 14403if test "x$ac_cv_type___int64" = xyes; then : 14404 14405else 14406 14407cat >>confdefs.h <<_ACEOF 14408#define __int64 long long 14409_ACEOF 14410 14411fi 14412 14413if test "xno" = "x$ac_cv_header_stdint_h" ; then 14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14415$as_echo_n "checking size of short... " >&6; } 14416if ${ac_cv_sizeof_short+:} false; then : 14417 $as_echo_n "(cached) " >&6 14418else 14419 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14421/* end confdefs.h. */ 14422#include "confdefs.h" 14423#include <sys/types.h> 14424 14425 14426int 14427main () 14428{ 14429switch (0) case 0: case (sizeof (short) == $ac_size):; 14430 ; 14431 return 0; 14432} 14433_ACEOF 14434if ac_fn_c_try_compile "$LINENO"; then : 14435 ac_cv_sizeof_short=$ac_size 14436fi 14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14438 if test x$ac_cv_sizeof_short != x ; then break; fi 14439done 14440 14441fi 14442 14443if test x$ac_cv_sizeof_short = x ; then 14444 as_fn_error $? "cannot determine a size for short" "$LINENO" 5 14445fi 14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14447$as_echo "$ac_cv_sizeof_short" >&6; } 14448 14449cat >>confdefs.h <<_ACEOF 14450#define SIZEOF_SHORT $ac_cv_sizeof_short 14451_ACEOF 14452 14453 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14455$as_echo_n "checking size of int... " >&6; } 14456if ${ac_cv_sizeof_int+:} false; then : 14457 $as_echo_n "(cached) " >&6 14458else 14459 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461/* end confdefs.h. */ 14462#include "confdefs.h" 14463#include <sys/types.h> 14464 14465 14466int 14467main () 14468{ 14469switch (0) case 0: case (sizeof (int) == $ac_size):; 14470 ; 14471 return 0; 14472} 14473_ACEOF 14474if ac_fn_c_try_compile "$LINENO"; then : 14475 ac_cv_sizeof_int=$ac_size 14476fi 14477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14478 if test x$ac_cv_sizeof_int != x ; then break; fi 14479done 14480 14481fi 14482 14483if test x$ac_cv_sizeof_int = x ; then 14484 as_fn_error $? "cannot determine a size for int" "$LINENO" 5 14485fi 14486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14487$as_echo "$ac_cv_sizeof_int" >&6; } 14488 14489cat >>confdefs.h <<_ACEOF 14490#define SIZEOF_INT $ac_cv_sizeof_int 14491_ACEOF 14492 14493 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14495$as_echo_n "checking size of long... " >&6; } 14496if ${ac_cv_sizeof_long+:} false; then : 14497 $as_echo_n "(cached) " >&6 14498else 14499 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14501/* end confdefs.h. */ 14502#include "confdefs.h" 14503#include <sys/types.h> 14504 14505 14506int 14507main () 14508{ 14509switch (0) case 0: case (sizeof (long) == $ac_size):; 14510 ; 14511 return 0; 14512} 14513_ACEOF 14514if ac_fn_c_try_compile "$LINENO"; then : 14515 ac_cv_sizeof_long=$ac_size 14516fi 14517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14518 if test x$ac_cv_sizeof_long != x ; then break; fi 14519done 14520 14521fi 14522 14523if test x$ac_cv_sizeof_long = x ; then 14524 as_fn_error $? "cannot determine a size for long" "$LINENO" 5 14525fi 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14527$as_echo "$ac_cv_sizeof_long" >&6; } 14528 14529cat >>confdefs.h <<_ACEOF 14530#define SIZEOF_LONG $ac_cv_sizeof_long 14531_ACEOF 14532 14533 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 14535$as_echo_n "checking size of int *... " >&6; } 14536if ${ac_cv_sizeof_int_p+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542#include "confdefs.h" 14543#include <sys/types.h> 14544 14545 14546int 14547main () 14548{ 14549switch (0) case 0: case (sizeof (int *) == $ac_size):; 14550 ; 14551 return 0; 14552} 14553_ACEOF 14554if ac_fn_c_try_compile "$LINENO"; then : 14555 ac_cv_sizeof_int_p=$ac_size 14556fi 14557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14558 if test x$ac_cv_sizeof_int_p != x ; then break; fi 14559done 14560 14561fi 14562 14563if test x$ac_cv_sizeof_int_p = x ; then 14564 as_fn_error $? "cannot determine a size for int *" "$LINENO" 5 14565fi 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 14567$as_echo "$ac_cv_sizeof_int_p" >&6; } 14568 14569cat >>confdefs.h <<_ACEOF 14570#define SIZEOF_INT_P $ac_cv_sizeof_int_p 14571_ACEOF 14572 14573 14574fi 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14576$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14577if ${ac_cv_c_bigendian+:} false; then : 14578 $as_echo_n "(cached) " >&6 14579else 14580 ac_cv_c_bigendian=unknown 14581 # See if we're dealing with a universal compiler. 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584#ifndef __APPLE_CC__ 14585 not a universal capable compiler 14586 #endif 14587 typedef int dummy; 14588 14589_ACEOF 14590if ac_fn_c_try_compile "$LINENO"; then : 14591 14592 # Check for potential -arch flags. It is not universal unless 14593 # there are at least two -arch flags with different values. 14594 ac_arch= 14595 ac_prev= 14596 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14597 if test -n "$ac_prev"; then 14598 case $ac_word in 14599 i?86 | x86_64 | ppc | ppc64) 14600 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14601 ac_arch=$ac_word 14602 else 14603 ac_cv_c_bigendian=universal 14604 break 14605 fi 14606 ;; 14607 esac 14608 ac_prev= 14609 elif test "x$ac_word" = "x-arch"; then 14610 ac_prev=arch 14611 fi 14612 done 14613fi 14614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14615 if test $ac_cv_c_bigendian = unknown; then 14616 # See if sys/param.h defines the BYTE_ORDER macro. 14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14618/* end confdefs.h. */ 14619#include <sys/types.h> 14620 #include <sys/param.h> 14621 14622int 14623main () 14624{ 14625#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14626 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14627 && LITTLE_ENDIAN) 14628 bogus endian macros 14629 #endif 14630 14631 ; 14632 return 0; 14633} 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 # It does; now see whether it defined to BIG_ENDIAN or not. 14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14638/* end confdefs.h. */ 14639#include <sys/types.h> 14640 #include <sys/param.h> 14641 14642int 14643main () 14644{ 14645#if BYTE_ORDER != BIG_ENDIAN 14646 not big endian 14647 #endif 14648 14649 ; 14650 return 0; 14651} 14652_ACEOF 14653if ac_fn_c_try_compile "$LINENO"; then : 14654 ac_cv_c_bigendian=yes 14655else 14656 ac_cv_c_bigendian=no 14657fi 14658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14659fi 14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14661 fi 14662 if test $ac_cv_c_bigendian = unknown; then 14663 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14665/* end confdefs.h. */ 14666#include <limits.h> 14667 14668int 14669main () 14670{ 14671#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14672 bogus endian macros 14673 #endif 14674 14675 ; 14676 return 0; 14677} 14678_ACEOF 14679if ac_fn_c_try_compile "$LINENO"; then : 14680 # It does; now see whether it defined to _BIG_ENDIAN or not. 14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682/* end confdefs.h. */ 14683#include <limits.h> 14684 14685int 14686main () 14687{ 14688#ifndef _BIG_ENDIAN 14689 not big endian 14690 #endif 14691 14692 ; 14693 return 0; 14694} 14695_ACEOF 14696if ac_fn_c_try_compile "$LINENO"; then : 14697 ac_cv_c_bigendian=yes 14698else 14699 ac_cv_c_bigendian=no 14700fi 14701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14702fi 14703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14704 fi 14705 if test $ac_cv_c_bigendian = unknown; then 14706 # Compile a test program. 14707 if test "$cross_compiling" = yes; then : 14708 # Try to guess by grepping values from an object file. 14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14710/* end confdefs.h. */ 14711short int ascii_mm[] = 14712 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14713 short int ascii_ii[] = 14714 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14715 int use_ascii (int i) { 14716 return ascii_mm[i] + ascii_ii[i]; 14717 } 14718 short int ebcdic_ii[] = 14719 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14720 short int ebcdic_mm[] = 14721 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14722 int use_ebcdic (int i) { 14723 return ebcdic_mm[i] + ebcdic_ii[i]; 14724 } 14725 extern int foo; 14726 14727int 14728main () 14729{ 14730return use_ascii (foo) == use_ebcdic (foo); 14731 ; 14732 return 0; 14733} 14734_ACEOF 14735if ac_fn_c_try_compile "$LINENO"; then : 14736 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14737 ac_cv_c_bigendian=yes 14738 fi 14739 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14740 if test "$ac_cv_c_bigendian" = unknown; then 14741 ac_cv_c_bigendian=no 14742 else 14743 # finding both strings is unlikely to happen, but who knows? 14744 ac_cv_c_bigendian=unknown 14745 fi 14746 fi 14747fi 14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14749else 14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751/* end confdefs.h. */ 14752$ac_includes_default 14753int 14754main () 14755{ 14756 14757 /* Are we little or big endian? From Harbison&Steele. */ 14758 union 14759 { 14760 long int l; 14761 char c[sizeof (long int)]; 14762 } u; 14763 u.l = 1; 14764 return u.c[sizeof (long int) - 1] == 1; 14765 14766 ; 14767 return 0; 14768} 14769_ACEOF 14770if ac_fn_c_try_run "$LINENO"; then : 14771 ac_cv_c_bigendian=no 14772else 14773 ac_cv_c_bigendian=yes 14774fi 14775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14776 conftest.$ac_objext conftest.beam conftest.$ac_ext 14777fi 14778 14779 fi 14780fi 14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14782$as_echo "$ac_cv_c_bigendian" >&6; } 14783 case $ac_cv_c_bigendian in #( 14784 yes) 14785 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14786;; #( 14787 no) 14788 ;; #( 14789 universal) 14790 14791$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14792 14793 ;; #( 14794 *) 14795 as_fn_error $? "unknown endianness 14796 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14797 esac 14798 14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointers to integers require aligned access" >&5 14800$as_echo_n "checking if pointers to integers require aligned access... " >&6; } 14801if ${ax_cv_have_aligned_access_required+:} false; then : 14802 $as_echo_n "(cached) " >&6 14803else 14804 if test "$cross_compiling" = "yes"; then 14805 case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) 14806 ax_cv_have_aligned_access_required="yes" 14807 ;; esac 14808else 14809 if test "$cross_compiling" = yes; then : 14810 ax_cv_have_aligned_access_required=no 14811else 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814 14815#include <stdio.h> 14816#include <stdlib.h> 14817 14818int main() 14819{ 14820 char* string = malloc(40); 14821 int i; 14822 for (i=0; i < 40; i++) string[[i]] = i; 14823 { 14824 void* s = string; 14825 int* p = s+1; 14826 int* q = s+2; 14827 14828 if (*p == *q) { return 1; } 14829 } 14830 return 0; 14831} 14832 14833_ACEOF 14834if ac_fn_c_try_run "$LINENO"; then : 14835 ax_cv_have_aligned_access_required=yes 14836else 14837 ax_cv_have_aligned_access_required=no 14838fi 14839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14840 conftest.$ac_objext conftest.beam conftest.$ac_ext 14841fi 14842 14843 14844fi 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_aligned_access_required" >&5 14846$as_echo "$ax_cv_have_aligned_access_required" >&6; } 14847fi 14848if test "$ax_cv_have_aligned_access_required" = yes ; then 14849 14850$as_echo "#define HAVE_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h 14851 14852fi 14853 14854# the default is _disabled_!! anyway, result is prefixed in zzip/_config.h!! 14855# Check whether --enable-largefile was given. 14856if test "${enable_largefile+set}" = set; then : 14857 enableval=$enable_largefile; 14858fi 14859 14860if test "$enable_largefile" != no; then 14861 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14863$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14864if ${ac_cv_sys_largefile_CC+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 ac_cv_sys_largefile_CC=no 14868 if test "$GCC" != yes; then 14869 ac_save_CC=$CC 14870 while :; do 14871 # IRIX 6.2 and later do not support large files by default, 14872 # so use the C compiler's -n32 option if that helps. 14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14874/* end confdefs.h. */ 14875#include <sys/types.h> 14876 /* Check that off_t can represent 2**63 - 1 correctly. 14877 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14878 since some C++ compilers masquerading as C compilers 14879 incorrectly reject 9223372036854775807. */ 14880#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14882 && LARGE_OFF_T % 2147483647 == 1) 14883 ? 1 : -1]; 14884int 14885main () 14886{ 14887 14888 ; 14889 return 0; 14890} 14891_ACEOF 14892 if ac_fn_c_try_compile "$LINENO"; then : 14893 break 14894fi 14895rm -f core conftest.err conftest.$ac_objext 14896 CC="$CC -n32" 14897 if ac_fn_c_try_compile "$LINENO"; then : 14898 ac_cv_sys_largefile_CC=' -n32'; break 14899fi 14900rm -f core conftest.err conftest.$ac_objext 14901 break 14902 done 14903 CC=$ac_save_CC 14904 rm -f conftest.$ac_ext 14905 fi 14906fi 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14908$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14909 if test "$ac_cv_sys_largefile_CC" != no; then 14910 CC=$CC$ac_cv_sys_largefile_CC 14911 fi 14912 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14914$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14915if ${ac_cv_sys_file_offset_bits+:} false; then : 14916 $as_echo_n "(cached) " >&6 14917else 14918 while :; do 14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921#include <sys/types.h> 14922 /* Check that off_t can represent 2**63 - 1 correctly. 14923 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14924 since some C++ compilers masquerading as C compilers 14925 incorrectly reject 9223372036854775807. */ 14926#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14928 && LARGE_OFF_T % 2147483647 == 1) 14929 ? 1 : -1]; 14930int 14931main () 14932{ 14933 14934 ; 14935 return 0; 14936} 14937_ACEOF 14938if ac_fn_c_try_compile "$LINENO"; then : 14939 ac_cv_sys_file_offset_bits=no; break 14940fi 14941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944#define _FILE_OFFSET_BITS 64 14945#include <sys/types.h> 14946 /* Check that off_t can represent 2**63 - 1 correctly. 14947 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14948 since some C++ compilers masquerading as C compilers 14949 incorrectly reject 9223372036854775807. */ 14950#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14952 && LARGE_OFF_T % 2147483647 == 1) 14953 ? 1 : -1]; 14954int 14955main () 14956{ 14957 14958 ; 14959 return 0; 14960} 14961_ACEOF 14962if ac_fn_c_try_compile "$LINENO"; then : 14963 ac_cv_sys_file_offset_bits=64; break 14964fi 14965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14966 ac_cv_sys_file_offset_bits=unknown 14967 break 14968done 14969fi 14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14971$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14972case $ac_cv_sys_file_offset_bits in #( 14973 no | unknown) ;; 14974 *) 14975cat >>confdefs.h <<_ACEOF 14976#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14977_ACEOF 14978;; 14979esac 14980rm -rf conftest* 14981 if test $ac_cv_sys_file_offset_bits = unknown; then 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14983$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14984if ${ac_cv_sys_large_files+:} false; then : 14985 $as_echo_n "(cached) " >&6 14986else 14987 while :; do 14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14989/* end confdefs.h. */ 14990#include <sys/types.h> 14991 /* Check that off_t can represent 2**63 - 1 correctly. 14992 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14993 since some C++ compilers masquerading as C compilers 14994 incorrectly reject 9223372036854775807. */ 14995#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14997 && LARGE_OFF_T % 2147483647 == 1) 14998 ? 1 : -1]; 14999int 15000main () 15001{ 15002 15003 ; 15004 return 0; 15005} 15006_ACEOF 15007if ac_fn_c_try_compile "$LINENO"; then : 15008 ac_cv_sys_large_files=no; break 15009fi 15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012/* end confdefs.h. */ 15013#define _LARGE_FILES 1 15014#include <sys/types.h> 15015 /* Check that off_t can represent 2**63 - 1 correctly. 15016 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15017 since some C++ compilers masquerading as C compilers 15018 incorrectly reject 9223372036854775807. */ 15019#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15021 && LARGE_OFF_T % 2147483647 == 1) 15022 ? 1 : -1]; 15023int 15024main () 15025{ 15026 15027 ; 15028 return 0; 15029} 15030_ACEOF 15031if ac_fn_c_try_compile "$LINENO"; then : 15032 ac_cv_sys_large_files=1; break 15033fi 15034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15035 ac_cv_sys_large_files=unknown 15036 break 15037done 15038fi 15039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15040$as_echo "$ac_cv_sys_large_files" >&6; } 15041case $ac_cv_sys_large_files in #( 15042 no | unknown) ;; 15043 *) 15044cat >>confdefs.h <<_ACEOF 15045#define _LARGE_FILES $ac_cv_sys_large_files 15046_ACEOF 15047;; 15048esac 15049rm -rf conftest* 15050 fi 15051 15052 15053fi 15054 15055# we know about some internals of ac_sys_largefile here... 15056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system differentiates 64bit off_t by defines" >&5 15057$as_echo_n "checking whether system differentiates 64bit off_t by defines... " >&6; } 15058ac_cv_sys_largefile_sensitive="no" 15059if test ".${ac_cv_sys_file_offset_bits-no}${ac_cv_sys_large_files-no}" != ".nono" 15060then ac_cv_sys_largefile_sensitive="yes" 15061 15062$as_echo "#define LARGEFILE_SENSITIVE 1" >>confdefs.h 15063 15064fi 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_sensitive" >&5 15066$as_echo "$ac_cv_sys_largefile_sensitive" >&6; } 15067 15068test ".$LARGEFILE_CFLAGS" = "." && LARGEFILE_CFLAGS="" 15069 15070# Check whether --with-largefile was given. 15071if test "${with_largefile+set}" = set; then : 15072 withval=$with_largefile; 15073else 15074 with_largefile="no" 15075fi 15076 15077if test ".$ac_cv_sys_largefile_sensitive" = ".no" ; then 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library with the only off_t seen" >&5 15079$as_echo "compiles library with the only off_t seen" >&6; } 15080elif test ".$with_largefile" != ".no" ; then 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library as 64bit off_t variant - and renaming some function names" >&5 15082$as_echo "compiles library as 64bit off_t variant - and renaming some function names" >&6; } 15083 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGEFILE_SOURCE" 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS $LARGEFILE_CFLAGS" >&5 15085$as_echo "..adding CFLAGS $LARGEFILE_CFLAGS" >&6; } 15086 CFLAGS="$CFLAGS $LARGEFILE_CFLAGS" 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding 64 into RELEASE_INFO for the libraries" >&5 15088$as_echo "..adding 64 into RELEASE_INFO for the libraries" >&6; } 15089 RELEASE_INFO="$RELEASE_INFO-64" 15090else 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles library as 32bit off_t variant - largefile is not the default here" >&5 15092$as_echo "compiles library as 32bit off_t variant - largefile is not the default here" >&6; } 15093fi 15094 15095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib being found" >&5 15096$as_echo_n "checking for zlib being found... " >&6; } 15097if test "_$ac_cv_header_zlib_h" != "_yes" ; then 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&5 15099$as_echo "...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&6; } 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: and when linkage fails you might also need to set some LDFLAGS" >&5 15101$as_echo "...note: and when linkage fails you might also need to set some LDFLAGS" >&6; } 15102 case "$prefix" in 15103 NONE|/usr) 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: both can be set by specifying the install prefix of the zlib library" >&5 15105$as_echo "...note: both can be set by specifying the install prefix of the zlib library" >&6; } 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&5 15107$as_echo "...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&6; } 15108 ;; 15109 *) if test -d $prefix/include ; then 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&5 15111$as_echo "...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&6; } 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&5 15113$as_echo "...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&6; } 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...note: --with-zlib to configure call" >&5 15115$as_echo "...note: --with-zlib to configure call" >&6; } 15116 fi 15117 ;; 15118 esac 15119 as_fn_error $? "zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" "$LINENO" 5 15120 exit 1 15121fi 15122cat >conftest.c <<EOF 15123#include <zlib.h> 15124const char* zlib_VeRsIoN = ZLIB_VERSION "dEtEcT"; 15125EOF 15126ZLIB_VERSION=`(eval "$ac_cpp conftest.c") 2>/dev/null \ 15127| grep zlib_VeRsIoN | sed -e 's,.*= *.,,' -e 's,. *.dEtEcT.*,,'` 15128rm conftest.c 15129 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - $ZLIB_VERSION" >&5 15131$as_echo "yes - $ZLIB_VERSION" >&6; } 15132# ---------------------------------------------------------------- 15133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir default" >&5 15134$as_echo_n "checking docdir default... " >&6; } 15135 15136# Check whether --with-docdir was given. 15137if test "${with_docdir+set}" = set; then : 15138 withval=$with_docdir; 15139else 15140 with_docdir="no" 15141fi 15142 15143case "${with_docdir}" in 15144 prefix/*) docdir=` echo "$withval" | sed 's/^prefix/${prefix}'` ;; 15145 datadir/*) docdir=` echo "$withval" | sed 's/^datadir/${datadir}'` ;; 15146 yes) docdir='${prefix}/doc' ;; 15147 no) docdir='${datadir}/doc' ;; 15148 /*|\\*|a-zA-Z:*) docdir="$with_docdir" ;; 15149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5 15150$as_echo "oops" >&6; } 15151 as_fn_error $? "bad value ${withval} for --with-docdir" "$LINENO" 5 15152 ;; 15153esac 15154 15155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5 15156$as_echo "$docdir" >&6; } 15157# ---------------------------------------------------------------- 15158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using debugging messages in libraries" >&5 15159$as_echo_n "checking whether using debugging messages in libraries... " >&6; } 15160 15161# Check whether --with-debug was given. 15162if test "${with_debug+set}" = set; then : 15163 withval=$with_debug; case "${withval}" in 15164 yes|no) with_debug="$withval" ;; 15165 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5 15166$as_echo "oops" >&6; } 15167 as_fn_error $? "bad value ${withval} for --with-debug" "$LINENO" 5 ;; 15168 esac 15169else 15170 with_debug="no" 15171fi 15172 15173test "$with_debug" != "yes" && with_debug="no" # yes or no 15174test "$with_debug" = "yes" && export CFLAGS="$CFLAGS -DDEBUG" 15175result="$with_debug" ; test "$result" = "yes" && result="yes, added -DDEBUG" 15176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15177$as_echo "$result" >&6; } 15178if test "$with_debug" = "yes" ; then if test -n "$RELEASE_INFO" ; then 15179 RELEASE_INFO="$RELEASE_INFO-dbg" 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: modified release" >&5 15181$as_echo "modified release" >&6; } 15182fi fi 15183# ---------------------------------------------------------------- 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread stack is too small for bufsiz buffers" >&5 15185$as_echo_n "checking whether thread stack is too small for bufsiz buffers... " >&6; } 15186 # many embedded platforms, superthreaded systems and kernel usage 15187 # will severely limit the stackspace for its threads. Use _LOWSTK 15188 # compile-define on those platforms. 15189 15190# Check whether --with-lowstk was given. 15191if test "${with_lowstk+set}" = set; then : 15192 withval=$with_lowstk; case "${withval}" in 15193 yes|no|auto) with_lowstk="$withval" ;; 15194 *) as_fn_error $? "bad value ${withval} for --with-lowstk" "$LINENO" 5 ;; 15195 esac 15196else 15197 with_lowstk="auto" 15198fi 15199 15200if test "$with_lowstk" = "auto"; then 15201 case $target in 15202 *-palmos-*) $with_lowstk="yes" ;; 15203 esac 15204fi 15205test "$with_lowstk" != "yes" && with_lowstk="no" # yes or no 15206test "$with_lowstk" = "yes" && CFLAGS="$CFLAGS -D_LOWSTK" 15207result="$with_lowstk" ; test "$result" = "yes" && result="yes, added -D_LOWSTK" 15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lowstk" >&5 15209$as_echo "$with_lowstk" >&6; } 15210# --------------------------------------------------------------- 15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether can use mmap for file scanning" >&5 15212$as_echo_n "checking whether can use mmap for file scanning... " >&6; } 15213 # system with mmap are probably better performing an searching 15214 # and parsing - atleast memory consumption is far better 15215# Check whether --enable-mmap was given. 15216if test "${enable_mmap+set}" = set; then : 15217 enableval=$enable_mmap; case "${enableval}" in 15218 yes|no|auto) enable_mmap="${enableval}" ;; 15219 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5 15220$as_echo "oops" >&6; } 15221 as_fn_error $? "bad value ${enableval} for --disable-mmap" "$LINENO" 5 ;; 15222 esac 15223else 15224 enable_mmap="auto" 15225fi 15226 15227if test "$enable_mmap" = "auto" 15228then 15229 test "$ac_cv_header_winbase_h" && enable_mmap="yes, winbase.h" 15230 test "$ac_cv_header_sys_mman_h" && enable_mmap="yes, sys/mman.h" 15231fi 15232case "$enable_mmap" in 15233 yes|yes,*) CFLAGS="$CFLAGS -D_USE_MMAP" 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mmap" >&5 15235$as_echo "$enable_mmap" >&6; } ;; 15236 *) enable_mmap="no" 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (just a bit slower)" >&5 15238$as_echo "no (just a bit slower)" >&6; } ;; 15239esac 15240# --------------------------------------------------------------- 15241 15242 15243 15244 15245 15246 15247 15248if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15249 if test -n "$ac_tool_prefix"; then 15250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15251set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15253$as_echo_n "checking for $ac_word... " >&6; } 15254if ${ac_cv_path_PKG_CONFIG+:} false; then : 15255 $as_echo_n "(cached) " >&6 15256else 15257 case $PKG_CONFIG in 15258 [\\/]* | ?:[\\/]*) 15259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15260 ;; 15261 *) 15262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15263for as_dir in $PATH 15264do 15265 IFS=$as_save_IFS 15266 test -z "$as_dir" && as_dir=. 15267 for ac_exec_ext in '' $ac_executable_extensions; do 15268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15271 break 2 15272 fi 15273done 15274 done 15275IFS=$as_save_IFS 15276 15277 ;; 15278esac 15279fi 15280PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15281if test -n "$PKG_CONFIG"; then 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15283$as_echo "$PKG_CONFIG" >&6; } 15284else 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15286$as_echo "no" >&6; } 15287fi 15288 15289 15290fi 15291if test -z "$ac_cv_path_PKG_CONFIG"; then 15292 ac_pt_PKG_CONFIG=$PKG_CONFIG 15293 # Extract the first word of "pkg-config", so it can be a program name with args. 15294set dummy pkg-config; ac_word=$2 15295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15296$as_echo_n "checking for $ac_word... " >&6; } 15297if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15298 $as_echo_n "(cached) " >&6 15299else 15300 case $ac_pt_PKG_CONFIG in 15301 [\\/]* | ?:[\\/]*) 15302 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15303 ;; 15304 *) 15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15306for as_dir in $PATH 15307do 15308 IFS=$as_save_IFS 15309 test -z "$as_dir" && as_dir=. 15310 for ac_exec_ext in '' $ac_executable_extensions; do 15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15312 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15314 break 2 15315 fi 15316done 15317 done 15318IFS=$as_save_IFS 15319 15320 ;; 15321esac 15322fi 15323ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15324if test -n "$ac_pt_PKG_CONFIG"; then 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15326$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15327else 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15329$as_echo "no" >&6; } 15330fi 15331 15332 if test "x$ac_pt_PKG_CONFIG" = x; then 15333 PKG_CONFIG="" 15334 else 15335 case $cross_compiling:$ac_tool_warned in 15336yes:) 15337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15339ac_tool_warned=yes ;; 15340esac 15341 PKG_CONFIG=$ac_pt_PKG_CONFIG 15342 fi 15343else 15344 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15345fi 15346 15347fi 15348if test -n "$PKG_CONFIG"; then 15349 _pkg_min_version=0.9.0 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15351$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15352 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15354$as_echo "yes" >&6; } 15355 else 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15357$as_echo "no" >&6; } 15358 PKG_CONFIG="" 15359 fi 15360fi 15361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether making SDL parts" >&5 15362$as_echo_n "checking whether making SDL parts... " >&6; } 15363SDL="" 15364SDL_GENERATE="" 15365# Check whether --enable-sdl was given. 15366if test "${enable_sdl+set}" = set; then : 15367 enableval=$enable_sdl; 15368else 15369 enable_sdl="no" 15370fi 15371 15372if test "$enable_sdl" = "no" ; then 15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 15374$as_echo "no, disabled" >&6; } 15375else 15376 enable_sdl1=`$PKG_CONFIG --modversion sdl 2>/dev/null` 15377 if test -z "$enable_sdl1"; then 15378 enable_sdl2=`$PKG_CONFIG --modversion sdl2 2>/dev/null` 15379 if test -z "$enable_sdl2"; then 15380 enable_sdl3=`sdl-config --version 2>/dev/null` 15381 SDL_GENERATE="sdl-uninstalled.pc" 15382 enable_sdl="$enable_sdl3 (sdl-config)" 15383 else 15384 enable_sdl="$enable_sdl2 (pkgconfig sdl2)" 15385 fi 15386 else 15387 enable_sdl="$enable_sdl1 (pkgconfig sdl)" 15388 fi 15389 enable_sdl="$enable_sdl." 15390 case ".$enable_sdl" in 15391 .1.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using SDL $enable_sdl" >&5 15392$as_echo "yes, using SDL $enable_sdl" >&6; } 15393 SDL="SDL" ;; 15394 .2.*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, untested $enable_sdl" >&5 15395$as_echo "yes, untested $enable_sdl" >&6; } 15396 SDL="SDL" ;; 15397 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $enable_sdl" >&5 15398$as_echo "no, $enable_sdl" >&6; } ;; 15399 esac 15400 if test -n "$SDL_GENERATE"; then 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled SDL generation of... $SDL_GENERATE" >&5 15402$as_echo "enabled SDL generation of... $SDL_GENERATE" >&6; } 15403 fi 15404fi 15405 15406 15407 15408# ---------------------------------------------------------------- 15409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using address sanitizer" >&5 15410$as_echo_n "checking whether using address sanitizer... " >&6; } 15411 15412# Check whether --with-asan was given. 15413if test "${with_asan+set}" = set; then : 15414 withval=$with_asan; case "${withval}" in 15415 yes|no) with_asan="$withval" ;; 15416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: oops" >&5 15417$as_echo "oops" >&6; } 15418 as_fn_error $? "bad value ${withval} for --with-asan" "$LINENO" 5 ;; 15419 esac 15420else 15421 with_asan="no" 15422fi 15423 15424ASAN_LIBS="" 15425ASAN_CFLAGS="" 15426if test ".$with_asan" = ".yes" ; then 15427 ASAN_LIBS="-lasan" 15428 ASAN_CFLAGS="-fsanitize=address" 15429fi 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_asan, $ASAN_CFLAGS" >&5 15431$as_echo "$with_asan, $ASAN_CFLAGS" >&6; } 15432 15433 15434# --------------------------------------------------------------- 15435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking running extra tests on make check" >&5 15436$as_echo_n "checking running extra tests on make check... " >&6; } 15437if test "MKZIP" != ":" ; then 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15439$as_echo "yes" >&6; } 15440 ZIPTESTS="" 15441else 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15443$as_echo "no" >&6; } 15444 ZIPTESTS="#" 15445fi 15446 15447# --------------------------------------------------------------- 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking link options" >&5 15449$as_echo_n "checking link options... " >&6; } 15450ZZIPLIB_LDFLAGS="" 15451case "$host_os" in mingw*) 15452 # we may assume that the backend is gnu-ld but DLLs need full resolution 15453 ZZIPLIB_LDFLAGS="${wl}-no-undefined ${wl}-export-all-symbols -mconsole" 15454 RESOLVES=' ' 15455;; darwin*) 15456 # darwin never uses gnu-ld but the linker can do it anyway 15457 ZZIPLIB_LDFLAGS="-export-dynamic" 15458 RESOLVES=" # " 15459;; *) 15460 if test ".$can_build_shared" != ".no" ; then 15461 ZZIPLIB_LDFLAGS="-export-dynamic" 15462 if test ".$lt_cv_prog_gnu_ld" == ".yes" ; then 15463 ZZIPLIB_LDFLAGS="${wl}--export-dynamic" 15464 # TODO: that is for backward compatibility only 15465 fi 15466 fi 15467 RESOLVES=" # " 15468;; esac 15469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5 15470$as_echo "$ZZIPLIB_LDFLAGS $RESOLVES" >&6; } 15471 15472 15473 15474# Check whether --with-defines was given. 15475if test "${with_defines+set}" = set; then : 15476 withval=$with_defines; 15477else 15478 with_defines="normal" 15479fi 15480 15481 15482# 15483case ",$with_defines," in *,easy,*) 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_EASY" >&5 15485$as_echo "..adding CFLAGS -DZZIP_EASY" >&6; } 15486 CFLAGS="$CFLAGS -DZZIP_EASY" 15487;; esac 15488case ",$with_defines," in *,harden,*) 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_HARDEN" >&5 15490$as_echo "..adding CFLAGS -DZZIP_HARDEN" >&6; } 15491 CFLAGS="$CFLAGS -DZZIP_HARDEN" 15492;; esac 15493case ",$with_defines," in *,allow_modulo_entries,*) 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" >&5 15495$as_echo "..adding CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" >&6; } 15496 CFLAGS="$CFLAGS -DZZIP_ALLOW_MODULO_ENTRIES" 15497;; esac 15498 15499# --------------------------------------------------------------- 15500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking auto silent in maintainer mode" >&5 15501$as_echo_n "checking auto silent in maintainer mode... " >&6; } 15502if test "$USE_MAINTAINER_MODE" = "no" ; then 15503 test ".$TIMEOUT" = "." && TIMEOUT="9" 15504 AUTOHEADER="sleep $TIMEOUT ; true || autoheader || skipped" 15505 AUTOMAKE="sleep $TIMEOUT ; true || automake || skipped" 15506 AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped" 15507 if test ".$LIBTOOL" != "." ; then 15508 LIBTOOL="$LIBTOOL --silent" 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool-silent, auto-sleep-9" >&5 15510$as_echo "libtool-silent, auto-sleep-9" >&6; } 15511 else 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto-sleep-9" >&5 15513$as_echo "auto-sleep-9" >&6; } 15514 fi 15515else 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15517$as_echo "no" >&6; } 15518fi 15519 15520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS frame-pointer" >&5 15521$as_echo_n "checking CFLAGS frame-pointer... " >&6; } 15522# Check whether --enable-frame-pointer was given. 15523if test "${enable_frame_pointer+set}" = set; then : 15524 enableval=$enable_frame_pointer; 15525fi 15526 15527if test ".$enable_frame_pointer" = "."; then 15528 case ".$enable_debug" in .|.no|.no,*) : ;; *) enable_frame_pointer="$enable_debug" ;; esac 15529 case ".$with_debug" in .|.no|.no,*) : ;; *) enable_frame_pointer="$with_debug" ;; esac 15530fi 15531case ".$enable_frame_pointer" in 15532 .|.no|.no,*) test ".$enable_frame_pointer" = "." && enable_frame_pointer="no" 15533 CFLAGS=`echo " $CFLAGS " | sed -e 's/ -g / /'` 15534 if test ".$GCC" = ".yes" ; then 15535 CFLAGS="$CFLAGS -fomit-frame-pointer" 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, -fomit-frame-pointer added" >&5 15537$as_echo "$enable_frame_pointer, -fomit-frame-pointer added" >&6; } 15538 else 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, -g removed" >&5 15540$as_echo "$enable_frame_pointer, -g removed" >&6; } 15541 fi ;; 15542 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_frame_pointer, kept" >&5 15543$as_echo "$enable_frame_pointer, kept" >&6; } ;; 15544esac 15545 15546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 15547$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 15548if ${ac_cv_cflags_warn_all+:} false; then : 15549 $as_echo_n "(cached) " >&6 15550else 15551 ac_cv_cflags_warn_all="no, unknown" 15552 15553 ac_ext=c 15554ac_cpp='$CPP $CPPFLAGS' 15555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15557ac_compiler_gnu=$ac_cv_c_compiler_gnu 15558 15559 ac_save_CFLAGS="$CFLAGS" 15560for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 15561do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15563/* end confdefs.h. */ 15564 15565int 15566main () 15567{ 15568return 0; 15569 ; 15570 return 0; 15571} 15572_ACEOF 15573if ac_fn_c_try_compile "$LINENO"; then : 15574 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15575fi 15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577done 15578 CFLAGS="$ac_save_CFLAGS" 15579 ac_ext=c 15580ac_cpp='$CPP $CPPFLAGS' 15581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15583ac_compiler_gnu=$ac_cv_c_compiler_gnu 15584 15585 15586fi 15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 15588$as_echo "$ac_cv_cflags_warn_all" >&6; } 15589case ".$ac_cv_cflags_warn_all" in 15590 .ok|.ok,*) ;; 15591 .|.no|.no,*) 15592 ;; 15593 *) 15594 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null 15595 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 15596 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 15597 ac_status=$? 15598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15599 test $ac_status = 0; } 15600 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 15601 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 15602 ac_status=$? 15603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15604 test $ac_status = 0; } 15605 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" 15606 fi 15607 ;; 15608esac 15609 15610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wpointer-arith" >&5 15611$as_echo_n "checking CFLAGS for gcc -Wpointer-arith... " >&6; } 15612if ${ac_cv_cflags_gcc_option__Wpointer_arith+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 ac_cv_cflags_gcc_option__Wpointer_arith="no, unknown" 15616 15617 ac_ext=c 15618ac_cpp='$CPP $CPPFLAGS' 15619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15621ac_compiler_gnu=$ac_cv_c_compiler_gnu 15622 15623 ac_save_CFLAGS="$CFLAGS" 15624for ac_arg in "-pedantic -Werror % -Wpointer-arith" "-pedantic % -Wpointer-arith %% no, obsolete" # 15625do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628 15629int 15630main () 15631{ 15632return 0; 15633 ; 15634 return 0; 15635} 15636_ACEOF 15637if ac_fn_c_try_compile "$LINENO"; then : 15638 ac_cv_cflags_gcc_option__Wpointer_arith=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15639fi 15640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15641done 15642 CFLAGS="$ac_save_CFLAGS" 15643 ac_ext=c 15644ac_cpp='$CPP $CPPFLAGS' 15645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15647ac_compiler_gnu=$ac_cv_c_compiler_gnu 15648 15649 15650fi 15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wpointer_arith" >&5 15652$as_echo "$ac_cv_cflags_gcc_option__Wpointer_arith" >&6; } 15653case ".$ac_cv_cflags_gcc_option__Wpointer_arith" in 15654 .ok|.ok,*) ;; 15655 .|.no|.no,*) ;; 15656 *) 15657 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wpointer_arith " 2>&1 >/dev/null 15658 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wpointer_arith"; } >&5 15659 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wpointer_arith) 2>&5 15660 ac_status=$? 15661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15662 test $ac_status = 0; } 15663 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wpointer_arith\""; } >&5 15664 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith") 2>&5 15665 ac_status=$? 15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15667 test $ac_status = 0; } 15668 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith" 15669 fi 15670 ;; 15671esac 15672 15673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wsign-compare" >&5 15674$as_echo_n "checking CFLAGS for gcc -Wsign-compare... " >&6; } 15675if ${ac_cv_cflags_gcc_option__Wsign_compare+:} false; then : 15676 $as_echo_n "(cached) " >&6 15677else 15678 ac_cv_cflags_gcc_option__Wsign_compare="no, unknown" 15679 15680 ac_ext=c 15681ac_cpp='$CPP $CPPFLAGS' 15682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15684ac_compiler_gnu=$ac_cv_c_compiler_gnu 15685 15686 ac_save_CFLAGS="$CFLAGS" 15687for ac_arg in "-pedantic -Werror % -Wsign-compare" "-pedantic % -Wsign-compare %% no, obsolete" # 15688do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690/* end confdefs.h. */ 15691 15692int 15693main () 15694{ 15695return 0; 15696 ; 15697 return 0; 15698} 15699_ACEOF 15700if ac_fn_c_try_compile "$LINENO"; then : 15701 ac_cv_cflags_gcc_option__Wsign_compare=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15702fi 15703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15704done 15705 CFLAGS="$ac_save_CFLAGS" 15706 ac_ext=c 15707ac_cpp='$CPP $CPPFLAGS' 15708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15710ac_compiler_gnu=$ac_cv_c_compiler_gnu 15711 15712 15713fi 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5 15715$as_echo "$ac_cv_cflags_gcc_option__Wsign_compare" >&6; } 15716case ".$ac_cv_cflags_gcc_option__Wsign_compare" in 15717 .ok|.ok,*) ;; 15718 .|.no|.no,*) ;; 15719 *) 15720 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsign_compare " 2>&1 >/dev/null 15721 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare"; } >&5 15722 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsign_compare) 2>&5 15723 ac_status=$? 15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15725 test $ac_status = 0; } 15726 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\""; } >&5 15727 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare") 2>&5 15728 ac_status=$? 15729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15730 test $ac_status = 0; } 15731 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare" 15732 fi 15733 ;; 15734esac 15735 15736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wmissing-declarations" >&5 15737$as_echo_n "checking CFLAGS for gcc -Wmissing-declarations... " >&6; } 15738if ${ac_cv_cflags_gcc_option__Wmissing_declarations+:} false; then : 15739 $as_echo_n "(cached) " >&6 15740else 15741 ac_cv_cflags_gcc_option__Wmissing_declarations="no, unknown" 15742 15743 ac_ext=c 15744ac_cpp='$CPP $CPPFLAGS' 15745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15747ac_compiler_gnu=$ac_cv_c_compiler_gnu 15748 15749 ac_save_CFLAGS="$CFLAGS" 15750for ac_arg in "-pedantic -Werror % -Wmissing-declarations" "-pedantic % -Wmissing-declarations %% no, obsolete" # 15751do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15753/* end confdefs.h. */ 15754 15755int 15756main () 15757{ 15758return 0; 15759 ; 15760 return 0; 15761} 15762_ACEOF 15763if ac_fn_c_try_compile "$LINENO"; then : 15764 ac_cv_cflags_gcc_option__Wmissing_declarations=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15765fi 15766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15767done 15768 CFLAGS="$ac_save_CFLAGS" 15769 ac_ext=c 15770ac_cpp='$CPP $CPPFLAGS' 15771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15773ac_compiler_gnu=$ac_cv_c_compiler_gnu 15774 15775 15776fi 15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wmissing_declarations" >&5 15778$as_echo "$ac_cv_cflags_gcc_option__Wmissing_declarations" >&6; } 15779case ".$ac_cv_cflags_gcc_option__Wmissing_declarations" in 15780 .ok|.ok,*) ;; 15781 .|.no|.no,*) ;; 15782 *) 15783 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_declarations " 2>&1 >/dev/null 15784 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_declarations"; } >&5 15785 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_declarations) 2>&5 15786 ac_status=$? 15787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15788 test $ac_status = 0; } 15789 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_declarations\""; } >&5 15790 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations") 2>&5 15791 ac_status=$? 15792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15793 test $ac_status = 0; } 15794 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations" 15795 fi 15796 ;; 15797esac 15798 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wdeclaration-after-statement" >&5 15800$as_echo_n "checking CFLAGS for gcc -Wdeclaration-after-statement... " >&6; } 15801if ${ac_cv_cflags_gcc_option__Wdeclaration_after_statement+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 ac_cv_cflags_gcc_option__Wdeclaration_after_statement="no, unknown" 15805 15806 ac_ext=c 15807ac_cpp='$CPP $CPPFLAGS' 15808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15810ac_compiler_gnu=$ac_cv_c_compiler_gnu 15811 15812 ac_save_CFLAGS="$CFLAGS" 15813for ac_arg in "-pedantic -Werror % -Wdeclaration-after-statement" "-pedantic % -Wdeclaration-after-statement %% no, obsolete" # 15814do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15816/* end confdefs.h. */ 15817 15818int 15819main () 15820{ 15821return 0; 15822 ; 15823 return 0; 15824} 15825_ACEOF 15826if ac_fn_c_try_compile "$LINENO"; then : 15827 ac_cv_cflags_gcc_option__Wdeclaration_after_statement=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15828fi 15829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15830done 15831 CFLAGS="$ac_save_CFLAGS" 15832 ac_ext=c 15833ac_cpp='$CPP $CPPFLAGS' 15834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15836ac_compiler_gnu=$ac_cv_c_compiler_gnu 15837 15838 15839fi 15840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&5 15841$as_echo "$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&6; } 15842case ".$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" in 15843 .ok|.ok,*) ;; 15844 .|.no|.no,*) ;; 15845 *) 15846 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wdeclaration_after_statement " 2>&1 >/dev/null 15847 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement"; } >&5 15848 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wdeclaration_after_statement) 2>&5 15849 ac_status=$? 15850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15851 test $ac_status = 0; } 15852 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement\""; } >&5 15853 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement") 2>&5 15854 ac_status=$? 15855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15856 test $ac_status = 0; } 15857 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement" 15858 fi 15859 ;; 15860esac 15861 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Werror-implicit-function-declaration" >&5 15863$as_echo_n "checking CFLAGS for gcc -Werror-implicit-function-declaration... " >&6; } 15864if ${ac_cv_cflags_gcc_option__Werror_implicit_function_declaration+:} false; then : 15865 $as_echo_n "(cached) " >&6 15866else 15867 ac_cv_cflags_gcc_option__Werror_implicit_function_declaration="no, unknown" 15868 15869 ac_ext=c 15870ac_cpp='$CPP $CPPFLAGS' 15871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15873ac_compiler_gnu=$ac_cv_c_compiler_gnu 15874 15875 ac_save_CFLAGS="$CFLAGS" 15876for ac_arg in "-pedantic -Werror % -Werror-implicit-function-declaration" "-pedantic % -Werror-implicit-function-declaration %% no, obsolete" # 15877do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15879/* end confdefs.h. */ 15880 15881int 15882main () 15883{ 15884return 0; 15885 ; 15886 return 0; 15887} 15888_ACEOF 15889if ac_fn_c_try_compile "$LINENO"; then : 15890 ac_cv_cflags_gcc_option__Werror_implicit_function_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15891fi 15892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15893done 15894 CFLAGS="$ac_save_CFLAGS" 15895 ac_ext=c 15896ac_cpp='$CPP $CPPFLAGS' 15897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15899ac_compiler_gnu=$ac_cv_c_compiler_gnu 15900 15901 15902fi 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&5 15904$as_echo "$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&6; } 15905case ".$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" in 15906 .ok|.ok,*) ;; 15907 .|.no|.no,*) ;; 15908 *) 15909 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration " 2>&1 >/dev/null 15910 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"; } >&5 15911 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration) 2>&5 15912 ac_status=$? 15913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15914 test $ac_status = 0; } 15915 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration\""; } >&5 15916 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration") 2>&5 15917 ac_status=$? 15918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15919 test $ac_status = 0; } 15920 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" 15921 fi 15922 ;; 15923esac 15924 15925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Wstrict-aliasing" >&5 15926$as_echo_n "checking CFLAGS for gcc -Wstrict-aliasing... " >&6; } 15927if ${ac_cv_cflags_gcc_option__Wstrict_aliasing+:} false; then : 15928 $as_echo_n "(cached) " >&6 15929else 15930 ac_cv_cflags_gcc_option__Wstrict_aliasing="no, unknown" 15931 15932 ac_ext=c 15933ac_cpp='$CPP $CPPFLAGS' 15934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15936ac_compiler_gnu=$ac_cv_c_compiler_gnu 15937 15938 ac_save_CFLAGS="$CFLAGS" 15939for ac_arg in "-pedantic -Werror % -Wstrict-aliasing" "-pedantic % -Wstrict-aliasing %% no, obsolete" # 15940do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15942/* end confdefs.h. */ 15943 15944int 15945main () 15946{ 15947return 0; 15948 ; 15949 return 0; 15950} 15951_ACEOF 15952if ac_fn_c_try_compile "$LINENO"; then : 15953 ac_cv_cflags_gcc_option__Wstrict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 15954fi 15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15956done 15957 CFLAGS="$ac_save_CFLAGS" 15958 ac_ext=c 15959ac_cpp='$CPP $CPPFLAGS' 15960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15962ac_compiler_gnu=$ac_cv_c_compiler_gnu 15963 15964 15965fi 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Wstrict_aliasing" >&5 15967$as_echo "$ac_cv_cflags_gcc_option__Wstrict_aliasing" >&6; } 15968case ".$ac_cv_cflags_gcc_option__Wstrict_aliasing" in 15969 .ok|.ok,*) ;; 15970 .|.no|.no,*) ;; 15971 *) 15972 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wstrict_aliasing " 2>&1 >/dev/null 15973 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wstrict_aliasing"; } >&5 15974 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wstrict_aliasing) 2>&5 15975 ac_status=$? 15976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15977 test $ac_status = 0; } 15978 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wstrict_aliasing\""; } >&5 15979 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wstrict_aliasing") 2>&5 15980 ac_status=$? 15981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15982 test $ac_status = 0; } 15983 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wstrict_aliasing" 15984 fi 15985 ;; 15986esac 15987 15988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for gcc -Warray-bounds" >&5 15989$as_echo_n "checking CFLAGS for gcc -Warray-bounds... " >&6; } 15990if ${ac_cv_cflags_gcc_option__Warray_bounds+:} false; then : 15991 $as_echo_n "(cached) " >&6 15992else 15993 ac_cv_cflags_gcc_option__Warray_bounds="no, unknown" 15994 15995 ac_ext=c 15996ac_cpp='$CPP $CPPFLAGS' 15997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15999ac_compiler_gnu=$ac_cv_c_compiler_gnu 16000 16001 ac_save_CFLAGS="$CFLAGS" 16002for ac_arg in "-pedantic -Werror % -Warray-bounds" "-pedantic % -Warray-bounds %% no, obsolete" # 16003do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005/* end confdefs.h. */ 16006 16007int 16008main () 16009{ 16010return 0; 16011 ; 16012 return 0; 16013} 16014_ACEOF 16015if ac_fn_c_try_compile "$LINENO"; then : 16016 ac_cv_cflags_gcc_option__Warray_bounds=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 16017fi 16018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16019done 16020 CFLAGS="$ac_save_CFLAGS" 16021 ac_ext=c 16022ac_cpp='$CPP $CPPFLAGS' 16023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16025ac_compiler_gnu=$ac_cv_c_compiler_gnu 16026 16027 16028fi 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Warray_bounds" >&5 16030$as_echo "$ac_cv_cflags_gcc_option__Warray_bounds" >&6; } 16031case ".$ac_cv_cflags_gcc_option__Warray_bounds" in 16032 .ok|.ok,*) ;; 16033 .|.no|.no,*) ;; 16034 *) 16035 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Warray_bounds " 2>&1 >/dev/null 16036 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Warray_bounds"; } >&5 16037 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Warray_bounds) 2>&5 16038 ac_status=$? 16039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16040 test $ac_status = 0; } 16041 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Warray_bounds\""; } >&5 16042 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Warray_bounds") 2>&5 16043 ac_status=$? 16044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16045 test $ac_status = 0; } 16046 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Warray_bounds" 16047 fi 16048 ;; 16049esac 16050 16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS making strings readonly" >&5 16052$as_echo_n "checking CFLAGS making strings readonly... " >&6; } 16053if ${ac_cv_cflags_no_writable_strings+:} false; then : 16054 $as_echo_n "(cached) " >&6 16055else 16056 ac_cv_cflags_no_writable_strings="no, unknown" 16057 16058 ac_ext=c 16059ac_cpp='$CPP $CPPFLAGS' 16060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16062ac_compiler_gnu=$ac_cv_c_compiler_gnu 16063 16064 ac_save_CFLAGS="$CFLAGS" 16065# IRIX C compiler: 16066# -use_readonly_const is the default for IRIX C, 16067# puts them into .rodata, but they are copied later. 16068# need to be "-G0 -rdatashared" for strictmode but 16069# I am not sure what effect that has really. - guidod 16070for ac_arg in "-pedantic % -fno-writable-strings -Wwrite-strings" "-pedantic % -fconst-strings -Wwrite-strings" "-v -Xc % -xstrconst" "+w1 -Aa % +ESlit" "-w0 -std1 % -readonly_strings" "-fullwarn -use_readonly_const %% ok, its the default" # 16071do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074 16075int 16076main () 16077{ 16078return 0; 16079 ; 16080 return 0; 16081} 16082_ACEOF 16083if ac_fn_c_try_compile "$LINENO"; then : 16084 ac_cv_cflags_no_writable_strings=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 16085fi 16086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16087done 16088case ".$ac_cv_cflags_no_writable_strings" in 16089 .|.no|.no,*) ;; 16090 *) # sanity check - testing strcpy() from string.h 16091 cp config.log config.tmp 16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16093/* end confdefs.h. */ 16094#include <string.h> 16095int 16096main () 16097{ 16098 16099 char test[16]; 16100 if (strcpy (test, "test")) return 1; 16101 ; 16102 return 0; 16103} 16104_ACEOF 16105if ac_fn_c_try_compile "$LINENO"; then : 16106 if test `diff config.log config.tmp | grep -i warning | wc -l` != 0 16107 then ac_cv_cflags_no_writable_strings="no, suppressed, string.h," ; fi 16108else 16109 ac_cv_cflags_no_writable_strings="no, suppressed, string.h" 16110fi 16111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16112 rm config.tmp 16113 ;; 16114esac 16115 CFLAGS="$ac_save_CFLAGS" 16116 ac_ext=c 16117ac_cpp='$CPP $CPPFLAGS' 16118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16120ac_compiler_gnu=$ac_cv_c_compiler_gnu 16121 16122 16123fi 16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_no_writable_strings" >&5 16125$as_echo "$ac_cv_cflags_no_writable_strings" >&6; } 16126case ".$ac_cv_cflags_no_writable_strings" in 16127 .ok|.ok,*) ;; 16128 .|.no|.no,*) 16129 ;; 16130 *) 16131 if echo " $CFLAGS " | grep " $ac_cv_cflags_no_writable_strings " 2>&1 >/dev/null 16132 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_no_writable_strings"; } >&5 16133 (: CFLAGS does contain $ac_cv_cflags_no_writable_strings) 2>&5 16134 ac_status=$? 16135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16136 test $ac_status = 0; } 16137 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_no_writable_strings\""; } >&5 16138 (: CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings") 2>&5 16139 ac_status=$? 16140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16141 test $ac_status = 0; } 16142 CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings" 16143 fi 16144 ;; 16145esac 16146 16147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for strict prototypes" >&5 16148$as_echo_n "checking CFLAGS for strict prototypes... " >&6; } 16149if ${ac_cv_cflags_strict_prototypes+:} false; then : 16150 $as_echo_n "(cached) " >&6 16151else 16152 ac_cv_cflags_strict_prototypes="no, unknown" 16153 16154 ac_ext=c 16155ac_cpp='$CPP $CPPFLAGS' 16156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16158ac_compiler_gnu=$ac_cv_c_compiler_gnu 16159 16160 ac_save_CFLAGS="$CFLAGS" 16161for ac_arg in "-pedantic % -fstrict-prototypes -Wstrict-prototypes" "-pedantic % -Wstrict-prototypes" "-pedantic % -Wmissing-prototypes" "-pedantic % -Werror-implicit-function-declaration" "-pedantic % -Wimplicit-function-declaration" # 16162do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16164/* end confdefs.h. */ 16165 16166int 16167main () 16168{ 16169return 0; 16170 ; 16171 return 0; 16172} 16173_ACEOF 16174if ac_fn_c_try_compile "$LINENO"; then : 16175 ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 16176fi 16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16178done 16179case ".$ac_cv_cflags_strict_prototypes" in 16180 .|.no|.no,*) ;; 16181 *) # sanity check with signal() from sys/signal.h 16182 cp config.log config.tmp 16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16184/* end confdefs.h. */ 16185#include <signal.h> 16186int 16187main () 16188{ 16189 16190 if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1; 16191 if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2; 16192 ; 16193 return 0; 16194} 16195_ACEOF 16196if ac_fn_c_try_compile "$LINENO"; then : 16197 if test `diff config.log config.tmp | grep -i warning | wc -l` != 0 16198then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1 16199then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi 16200else 16201 ac_cv_cflags_strict_prototypes="no, suppressed, signal.h" 16202fi 16203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16204 rm config.tmp 16205 ;; 16206esac 16207 CFLAGS="$ac_save_CFLAGS" 16208 ac_ext=c 16209ac_cpp='$CPP $CPPFLAGS' 16210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16212ac_compiler_gnu=$ac_cv_c_compiler_gnu 16213 16214 16215fi 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_strict_prototypes" >&5 16217$as_echo "$ac_cv_cflags_strict_prototypes" >&6; } 16218case ".$ac_cv_cflags_strict_prototypes" in 16219 .ok|.ok,*) ;; 16220 .|.no|.no,*) 16221 ;; 16222 *) 16223 if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null 16224 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes"; } >&5 16225 (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5 16226 ac_status=$? 16227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16228 test $ac_status = 0; } 16229 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\""; } >&5 16230 (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5 16231 ac_status=$? 16232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16233 test $ac_status = 0; } 16234 CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes" 16235 fi 16236 ;; 16237esac 16238 16239# --------------------------------------------------------------- 16240 # The prefix default can be set in configure.ac (otherwise it is /usr/local) 16241 test "x$prefix" = xNONE && prefix=$ac_default_prefix 16242 # Let make expand exec_prefix. Allows to override the makevar 'prefix' later 16243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16244 16245# Check whether --enable-enable-default-pkgconfigdir was given. 16246if test "${enable_enable_default_pkgconfigdir+set}" = set; then : 16247 enableval=$enable_enable_default_pkgconfigdir; 16248fi 16249 16250test ".$enable_default_pkgconfigdir" = "." && enable_default_pkgconfigdir="no" 16251case ".$enable_default_pkgconfigdir" in 16252 .no) ax_warning_default_pkgconfig_def='${libdir}/pkgconfig' ;; 16253 .yes) # autodetect 16254 if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4 16255 # Extract the first word of "pkg-config", so it can be a program name with args. 16256set dummy pkg-config; ac_word=$2 16257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16258$as_echo_n "checking for $ac_word... " >&6; } 16259if ${ac_cv_path_PKG_CONFIG+:} false; then : 16260 $as_echo_n "(cached) " >&6 16261else 16262 case $PKG_CONFIG in 16263 [\\/]* | ?:[\\/]*) 16264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16265 ;; 16266 *) 16267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16268for as_dir in $PATH 16269do 16270 IFS=$as_save_IFS 16271 test -z "$as_dir" && as_dir=. 16272 for ac_exec_ext in '' $ac_executable_extensions; do 16273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16276 break 2 16277 fi 16278done 16279 done 16280IFS=$as_save_IFS 16281 16282 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 16283 ;; 16284esac 16285fi 16286PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16287if test -n "$PKG_CONFIG"; then 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16289$as_echo "$PKG_CONFIG" >&6; } 16290else 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16292$as_echo "no" >&6; } 16293fi 16294 16295 16296 fi 16297 if test "$PKG_CONFIG" = "no" 16298 then ax_warning_default_pkgconfig_def="/tmp" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig" 16299 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" || 16300$as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16301 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \ 16302 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \ 16303 X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null || 16304$as_echo X"$ax_warning_default_pkgconfig_def" | 16305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16306 s//\1/ 16307 q 16308 } 16309 /^X\(\/\/\)[^/].*/{ 16310 s//\1/ 16311 q 16312 } 16313 /^X\(\/\/\)$/{ 16314 s//\1/ 16315 q 16316 } 16317 /^X\(\/\).*/{ 16318 s//\1/ 16319 q 16320 } 16321 s/.*/./; q'` ; 16322 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then 16323 ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig" 16324 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" || 16325$as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16326 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \ 16327 X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \ 16328 X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null || 16329$as_echo X"$ax_warning_default_pkgconfig_def" | 16330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16331 s//\1/ 16332 q 16333 } 16334 /^X\(\/\/\)[^/].*/{ 16335 s//\1/ 16336 q 16337 } 16338 /^X\(\/\/\)$/{ 16339 s//\1/ 16340 q 16341 } 16342 /^X\(\/\).*/{ 16343 s//\1/ 16344 q 16345 } 16346 s/.*/./; q'` 16347 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then 16348 ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig" 16349 else 16350 if test -d "/usr/lib/pkgconfig" ; then 16351 ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig" 16352 else 16353 ax_warning_default_pkgconfig_def="/tmp" 16354 fi fi fi 16355 fi ;; 16356 *) ax_warning_default_pkgconfig_def="$enable_default_pkgconfigdir" ;; 16357esac 16358ax_warning_default_pkgconfig_loc='$ax_warning_default_pkgconfig_def' 16359 16360 if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4 16361 # Extract the first word of "pkg-config", so it can be a program name with args. 16362set dummy pkg-config; ac_word=$2 16363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16364$as_echo_n "checking for $ac_word... " >&6; } 16365if ${ac_cv_path_PKG_CONFIG+:} false; then : 16366 $as_echo_n "(cached) " >&6 16367else 16368 case $PKG_CONFIG in 16369 [\\/]* | ?:[\\/]*) 16370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16371 ;; 16372 *) 16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16374for as_dir in $PATH 16375do 16376 IFS=$as_save_IFS 16377 test -z "$as_dir" && as_dir=. 16378 for ac_exec_ext in '' $ac_executable_extensions; do 16379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16382 break 2 16383 fi 16384done 16385 done 16386IFS=$as_save_IFS 16387 16388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 16389 ;; 16390esac 16391fi 16392PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16393if test -n "$PKG_CONFIG"; then 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16395$as_echo "$PKG_CONFIG" >&6; } 16396else 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16398$as_echo "no" >&6; } 16399fi 16400 16401 16402 fi 16403 if test "$PKG_CONFIG" = "no" 16404 then ax_warning_default_pkgconfig_dir="/" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig" 16405 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" || 16406$as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16407 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \ 16408 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \ 16409 X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null || 16410$as_echo X"$ax_warning_default_pkgconfig_dir" | 16411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16412 s//\1/ 16413 q 16414 } 16415 /^X\(\/\/\)[^/].*/{ 16416 s//\1/ 16417 q 16418 } 16419 /^X\(\/\/\)$/{ 16420 s//\1/ 16421 q 16422 } 16423 /^X\(\/\).*/{ 16424 s//\1/ 16425 q 16426 } 16427 s/.*/./; q'` ; 16428 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then 16429 ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig" 16430 else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" || 16431$as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16432 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \ 16433 X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \ 16434 X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null || 16435$as_echo X"$ax_warning_default_pkgconfig_dir" | 16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16437 s//\1/ 16438 q 16439 } 16440 /^X\(\/\/\)[^/].*/{ 16441 s//\1/ 16442 q 16443 } 16444 /^X\(\/\/\)$/{ 16445 s//\1/ 16446 q 16447 } 16448 /^X\(\/\).*/{ 16449 s//\1/ 16450 q 16451 } 16452 s/.*/./; q'` 16453 if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then 16454 ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig" 16455 else 16456 if test -d "/usr/lib/pkgconfig" ; then 16457 ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig" 16458 else 16459 ax_warning_default_pkgconfig_dir="/" 16460 fi fi fi 16461 fi 16462{ { $as_echo "$as_me:${as_lineno-$LINENO}: : last pkgconfig dir is assumed as \"\$ax_warning_default_pkgconfig_dir\""; } >&5 16463 (: last pkgconfig dir is assumed as "$ax_warning_default_pkgconfig_dir") 2>&5 16464 ac_status=$? 16465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16466 test $ac_status = 0; } 16467ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"` 16468ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"` 16469ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"` 16470ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"` 16471ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"` 16472ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"` 16473for ax_warning_default_pkgconfig_dir in `echo "$PKG_CONFIG_PATH:$ax_warning_default_pkgconfig_dir" | sed -e 's,:, ,g'` ; do 16474 { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \".\$ax_warning_default_pkgconfig_loc\" = \".\$ax_warning_default_pkgconfig_dir\""; } >&5 16475 (: test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir") 2>&5 16476 ac_status=$? 16477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16478 test $ac_status = 0; } 16479 test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir" && break 16480done 16481if test "$ax_warning_default_pkgconfig_loc" != "$ax_warning_default_pkgconfig_dir" ; then 16482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&5 16483$as_echo "$as_me: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&6;} 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&5 16485$as_echo "$as_me: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&6;} 16486 cat >&5 <<EOF 16487 pkgconfigdir: the default pkgconfigdir of $ax_warning_default_pkgconfig_loc 16488 pkgconfigdir: is not listed in the dirlist where pkg-config will look for 16489 pkgconfigdir: package-configs - you can override the install-path using 16490 pkgconfigdir: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir 16491 pkgconfigdir: or set/append the directory to the environment variable 16492 pkgconfigdir: PKG_CONFIG_PATH="$ax_warning_default_pkgconfig_loc" 16493EOF 16494 fi 16495 16496pkgconfigdir="$ax_warning_default_pkgconfig_dir" 16497 16498 16499# Check whether --enable-enable-default-aclocaldir was given. 16500if test "${enable_enable_default_aclocaldir+set}" = set; then : 16501 enableval=$enable_enable_default_aclocaldir; 16502fi 16503 16504test ".$enable_default_aclocaldir" = "." && enable_default_aclocaldir="no" 16505case ".$enable_default_aclocaldir" in 16506 .no) ax_warning_default_aclocal_def='${datadir}/aclocal' ;; 16507 .yes) # autodetect 16508 if test ".$ACLOCAL" = "." ; then 16509 # Extract the first word of "aclocal", so it can be a program name with args. 16510set dummy aclocal; ac_word=$2 16511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16512$as_echo_n "checking for $ac_word... " >&6; } 16513if ${ac_cv_path_ACLOCAL+:} false; then : 16514 $as_echo_n "(cached) " >&6 16515else 16516 case $ACLOCAL in 16517 [\\/]* | ?:[\\/]*) 16518 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. 16519 ;; 16520 *) 16521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16522for as_dir in $PATH 16523do 16524 IFS=$as_save_IFS 16525 test -z "$as_dir" && as_dir=. 16526 for ac_exec_ext in '' $ac_executable_extensions; do 16527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16528 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" 16529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16530 break 2 16531 fi 16532done 16533 done 16534IFS=$as_save_IFS 16535 16536 test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":" 16537 ;; 16538esac 16539fi 16540ACLOCAL=$ac_cv_path_ACLOCAL 16541if test -n "$ACLOCAL"; then 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 16543$as_echo "$ACLOCAL" >&6; } 16544else 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16546$as_echo "no" >&6; } 16547fi 16548 16549 16550 fi 16551 ax_warning_default_aclocal_bin="$ACLOCAL" 16552 test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal" 16553 ax_warning_default_aclocal_def=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"` 16554 test ".$ax_warning_default_aclocal_def" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_def="/usr/share/aclocal" 16555 test ".$ax_warning_default_aclocal_def" = "." && ax_warning_default_aclocal_def="/tmp" ;; 16556 *) ax_warning_default_aclocal_def="$enable_default_aclocaldir" ;; 16557esac 16558ax_warning_default_aclocal_loc='$ax_warning_default_aclocal_def' 16559 16560 if test ".$ACLOCAL" = "." ; then 16561 # Extract the first word of "aclocal", so it can be a program name with args. 16562set dummy aclocal; ac_word=$2 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16564$as_echo_n "checking for $ac_word... " >&6; } 16565if ${ac_cv_path_ACLOCAL+:} false; then : 16566 $as_echo_n "(cached) " >&6 16567else 16568 case $ACLOCAL in 16569 [\\/]* | ?:[\\/]*) 16570 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. 16571 ;; 16572 *) 16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16574for as_dir in $PATH 16575do 16576 IFS=$as_save_IFS 16577 test -z "$as_dir" && as_dir=. 16578 for ac_exec_ext in '' $ac_executable_extensions; do 16579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16580 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" 16581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16582 break 2 16583 fi 16584done 16585 done 16586IFS=$as_save_IFS 16587 16588 test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":" 16589 ;; 16590esac 16591fi 16592ACLOCAL=$ac_cv_path_ACLOCAL 16593if test -n "$ACLOCAL"; then 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 16595$as_echo "$ACLOCAL" >&6; } 16596else 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16598$as_echo "no" >&6; } 16599fi 16600 16601 16602 fi 16603 ax_warning_default_aclocal_bin="$ACLOCAL" 16604 test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal" 16605 ax_warning_default_aclocal_dir=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"` 16606 test ".$ax_warning_default_aclocal_dir" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_dir="/usr/share/aclocal" 16607 test ".$ax_warning_default_aclocal_dir" = "." && ax_warning_default_aclocal_dir="/tmp" 16608ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"` # we need to expand 16609ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"` 16610ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"` 16611ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"` 16612ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"` 16613ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"` 16614{ { $as_echo "$as_me:${as_lineno-$LINENO}: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\""; } >&5 16615 (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5 16616 ac_status=$? 16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16618 test $ac_status = 0; } 16619if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then 16620 if test -f "$ax_warning_default_aclocal_dir/dirlist" ; then 16621 for ax_warning_default_aclocal_dir in `cat $ax_warning_default_aclocal_dir/dirlist` $ax_warning_default_aclocal_dir ; do 16622 { { $as_echo "$as_me:${as_lineno-$LINENO}: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\""; } >&5 16623 (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5 16624 ac_status=$? 16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16626 test $ac_status = 0; } 16627 test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir" && break 16628 done 16629 fi 16630 if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&5 16632$as_echo "$as_me: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&6;} 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&5 16634$as_echo "$as_me: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&6;} 16635 cat >&5 <<EOF 16636 aclocaldir: the default aclocaldir of $ax_warning_default_aclocal_loc 16637 aclocaldir: is not listed in the dirlist where aclocal will look 16638 aclocaldir: for macros - you can override the install-path using 16639 aclocaldir: make install aclocaldir=$ax_warning_default_aclocal_dir 16640 aclocaldir: or append the directory to aclocal reconfigures later as 16641 aclocaldir: aclocal -I $ax_warning_default_aclocal_loc 16642 aclocaldir: when an autoconf macro is needed from that directory 16643EOF 16644 fi 16645fi 16646 16647aclocaldir="$ax_warning_default_aclocal_dir" 16648 16649 16650 16651ac_config_files="$ac_config_files Makefile zzip/Makefile zzipwrap/Makefile SDL/Makefile docs/Makefile test/Makefile bins/Makefile" 16652 16653cat >confcache <<\_ACEOF 16654# This file is a shell script that caches the results of configure 16655# tests run on this system so they can be shared between configure 16656# scripts and configure runs, see configure's option --config-cache. 16657# It is not useful on other systems. If it contains results you don't 16658# want to keep, you may remove or edit it. 16659# 16660# config.status only pays attention to the cache file if you give it 16661# the --recheck option to rerun configure. 16662# 16663# `ac_cv_env_foo' variables (set or unset) will be overridden when 16664# loading this file, other *unset* `ac_cv_foo' will be assigned the 16665# following values. 16666 16667_ACEOF 16668 16669# The following way of writing the cache mishandles newlines in values, 16670# but we know of no workaround that is simple, portable, and efficient. 16671# So, we kill variables containing newlines. 16672# Ultrix sh set writes to stderr and can't be redirected directly, 16673# and sets the high bit in the cache file unless we assign to the vars. 16674( 16675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16676 eval ac_val=\$$ac_var 16677 case $ac_val in #( 16678 *${as_nl}*) 16679 case $ac_var in #( 16680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16681$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16682 esac 16683 case $ac_var in #( 16684 _ | IFS | as_nl) ;; #( 16685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16686 *) { eval $ac_var=; unset $ac_var;} ;; 16687 esac ;; 16688 esac 16689 done 16690 16691 (set) 2>&1 | 16692 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16693 *${as_nl}ac_space=\ *) 16694 # `set' does not quote correctly, so add quotes: double-quote 16695 # substitution turns \\\\ into \\, and sed turns \\ into \. 16696 sed -n \ 16697 "s/'/'\\\\''/g; 16698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16699 ;; #( 16700 *) 16701 # `set' quotes correctly as required by POSIX, so do not add quotes. 16702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16703 ;; 16704 esac | 16705 sort 16706) | 16707 sed ' 16708 /^ac_cv_env_/b end 16709 t clear 16710 :clear 16711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16712 t end 16713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16714 :end' >>confcache 16715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16716 if test -w "$cache_file"; then 16717 if test "x$cache_file" != "x/dev/null"; then 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16719$as_echo "$as_me: updating cache $cache_file" >&6;} 16720 if test ! -f "$cache_file" || test -h "$cache_file"; then 16721 cat confcache >"$cache_file" 16722 else 16723 case $cache_file in #( 16724 */* | ?:*) 16725 mv -f confcache "$cache_file"$$ && 16726 mv -f "$cache_file"$$ "$cache_file" ;; #( 16727 *) 16728 mv -f confcache "$cache_file" ;; 16729 esac 16730 fi 16731 fi 16732 else 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16735 fi 16736fi 16737rm -f confcache 16738 16739test "x$prefix" = xNONE && prefix=$ac_default_prefix 16740# Let make expand exec_prefix. 16741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16742 16743DEFS=-DHAVE_CONFIG_H 16744 16745ac_libobjs= 16746ac_ltlibobjs= 16747U= 16748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16749 # 1. Remove the extension, and $U if already installed. 16750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16753 # will be set to the directory where LIBOBJS objects are built. 16754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16756done 16757LIBOBJS=$ac_libobjs 16758 16759LTLIBOBJS=$ac_ltlibobjs 16760 16761 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16763$as_echo_n "checking that generated files are newer than configure... " >&6; } 16764 if test -n "$am_sleep_pid"; then 16765 # Hide warnings about reused PIDs. 16766 wait $am_sleep_pid 2>/dev/null 16767 fi 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16769$as_echo "done" >&6; } 16770 if test -n "$EXEEXT"; then 16771 am__EXEEXT_TRUE= 16772 am__EXEEXT_FALSE='#' 16773else 16774 am__EXEEXT_TRUE='#' 16775 am__EXEEXT_FALSE= 16776fi 16777 16778if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16779 as_fn_error $? "conditional \"AMDEP\" was never defined. 16780Usually this means the macro was only invoked conditionally." "$LINENO" 5 16781fi 16782if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16783 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16784Usually this means the macro was only invoked conditionally." "$LINENO" 5 16785fi 16786if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16787 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16788Usually this means the macro was only invoked conditionally." "$LINENO" 5 16789fi 16790 16791 16792: "${CONFIG_STATUS=./config.status}" 16793ac_write_fail=0 16794ac_clean_files_save=$ac_clean_files 16795ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16797$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16798as_write_fail=0 16799cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16800#! $SHELL 16801# Generated by $as_me. 16802# Run this file to recreate the current configuration. 16803# Compiler output produced by configure, useful for debugging 16804# configure, is in config.log if it exists. 16805 16806debug=false 16807ac_cs_recheck=false 16808ac_cs_silent=false 16809 16810SHELL=\${CONFIG_SHELL-$SHELL} 16811export SHELL 16812_ASEOF 16813cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16814## -------------------- ## 16815## M4sh Initialization. ## 16816## -------------------- ## 16817 16818# Be more Bourne compatible 16819DUALCASE=1; export DUALCASE # for MKS sh 16820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16821 emulate sh 16822 NULLCMD=: 16823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16824 # is contrary to our usage. Disable this feature. 16825 alias -g '${1+"$@"}'='"$@"' 16826 setopt NO_GLOB_SUBST 16827else 16828 case `(set -o) 2>/dev/null` in #( 16829 *posix*) : 16830 set -o posix ;; #( 16831 *) : 16832 ;; 16833esac 16834fi 16835 16836 16837as_nl=' 16838' 16839export as_nl 16840# Printing a long string crashes Solaris 7 /usr/bin/printf. 16841as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16844# Prefer a ksh shell builtin over an external printf program on Solaris, 16845# but without wasting forks for bash or zsh. 16846if test -z "$BASH_VERSION$ZSH_VERSION" \ 16847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16848 as_echo='print -r --' 16849 as_echo_n='print -rn --' 16850elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16851 as_echo='printf %s\n' 16852 as_echo_n='printf %s' 16853else 16854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16856 as_echo_n='/usr/ucb/echo -n' 16857 else 16858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16859 as_echo_n_body='eval 16860 arg=$1; 16861 case $arg in #( 16862 *"$as_nl"*) 16863 expr "X$arg" : "X\\(.*\\)$as_nl"; 16864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16865 esac; 16866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16867 ' 16868 export as_echo_n_body 16869 as_echo_n='sh -c $as_echo_n_body as_echo' 16870 fi 16871 export as_echo_body 16872 as_echo='sh -c $as_echo_body as_echo' 16873fi 16874 16875# The user is always right. 16876if test "${PATH_SEPARATOR+set}" != set; then 16877 PATH_SEPARATOR=: 16878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16880 PATH_SEPARATOR=';' 16881 } 16882fi 16883 16884 16885# IFS 16886# We need space, tab and new line, in precisely that order. Quoting is 16887# there to prevent editors from complaining about space-tab. 16888# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16889# splitting by setting IFS to empty value.) 16890IFS=" "" $as_nl" 16891 16892# Find who we are. Look in the path if we contain no directory separator. 16893as_myself= 16894case $0 in #(( 16895 *[\\/]* ) as_myself=$0 ;; 16896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16897for as_dir in $PATH 16898do 16899 IFS=$as_save_IFS 16900 test -z "$as_dir" && as_dir=. 16901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16902 done 16903IFS=$as_save_IFS 16904 16905 ;; 16906esac 16907# We did not find ourselves, most probably we were run as `sh COMMAND' 16908# in which case we are not to be found in the path. 16909if test "x$as_myself" = x; then 16910 as_myself=$0 16911fi 16912if test ! -f "$as_myself"; then 16913 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16914 exit 1 16915fi 16916 16917# Unset variables that we do not need and which cause bugs (e.g. in 16918# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16919# suppresses any "Segmentation fault" message there. '((' could 16920# trigger a bug in pdksh 5.2.14. 16921for as_var in BASH_ENV ENV MAIL MAILPATH 16922do eval test x\${$as_var+set} = xset \ 16923 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16924done 16925PS1='$ ' 16926PS2='> ' 16927PS4='+ ' 16928 16929# NLS nuisances. 16930LC_ALL=C 16931export LC_ALL 16932LANGUAGE=C 16933export LANGUAGE 16934 16935# CDPATH. 16936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16937 16938 16939# as_fn_error STATUS ERROR [LINENO LOG_FD] 16940# ---------------------------------------- 16941# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16942# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16943# script with STATUS, using 1 if that was 0. 16944as_fn_error () 16945{ 16946 as_status=$1; test $as_status -eq 0 && as_status=1 16947 if test "$4"; then 16948 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16949 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16950 fi 16951 $as_echo "$as_me: error: $2" >&2 16952 as_fn_exit $as_status 16953} # as_fn_error 16954 16955 16956# as_fn_set_status STATUS 16957# ----------------------- 16958# Set $? to STATUS, without forking. 16959as_fn_set_status () 16960{ 16961 return $1 16962} # as_fn_set_status 16963 16964# as_fn_exit STATUS 16965# ----------------- 16966# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16967as_fn_exit () 16968{ 16969 set +e 16970 as_fn_set_status $1 16971 exit $1 16972} # as_fn_exit 16973 16974# as_fn_unset VAR 16975# --------------- 16976# Portably unset VAR. 16977as_fn_unset () 16978{ 16979 { eval $1=; unset $1;} 16980} 16981as_unset=as_fn_unset 16982# as_fn_append VAR VALUE 16983# ---------------------- 16984# Append the text in VALUE to the end of the definition contained in VAR. Take 16985# advantage of any shell optimizations that allow amortized linear growth over 16986# repeated appends, instead of the typical quadratic growth present in naive 16987# implementations. 16988if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16989 eval 'as_fn_append () 16990 { 16991 eval $1+=\$2 16992 }' 16993else 16994 as_fn_append () 16995 { 16996 eval $1=\$$1\$2 16997 } 16998fi # as_fn_append 16999 17000# as_fn_arith ARG... 17001# ------------------ 17002# Perform arithmetic evaluation on the ARGs, and store the result in the 17003# global $as_val. Take advantage of shells that can avoid forks. The arguments 17004# must be portable across $(()) and expr. 17005if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17006 eval 'as_fn_arith () 17007 { 17008 as_val=$(( $* )) 17009 }' 17010else 17011 as_fn_arith () 17012 { 17013 as_val=`expr "$@" || test $? -eq 1` 17014 } 17015fi # as_fn_arith 17016 17017 17018if expr a : '\(a\)' >/dev/null 2>&1 && 17019 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17020 as_expr=expr 17021else 17022 as_expr=false 17023fi 17024 17025if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17026 as_basename=basename 17027else 17028 as_basename=false 17029fi 17030 17031if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17032 as_dirname=dirname 17033else 17034 as_dirname=false 17035fi 17036 17037as_me=`$as_basename -- "$0" || 17038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17039 X"$0" : 'X\(//\)$' \| \ 17040 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17041$as_echo X/"$0" | 17042 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17043 s//\1/ 17044 q 17045 } 17046 /^X\/\(\/\/\)$/{ 17047 s//\1/ 17048 q 17049 } 17050 /^X\/\(\/\).*/{ 17051 s//\1/ 17052 q 17053 } 17054 s/.*/./; q'` 17055 17056# Avoid depending upon Character Ranges. 17057as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17059as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17060as_cr_digits='0123456789' 17061as_cr_alnum=$as_cr_Letters$as_cr_digits 17062 17063ECHO_C= ECHO_N= ECHO_T= 17064case `echo -n x` in #((((( 17065-n*) 17066 case `echo 'xy\c'` in 17067 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17068 xy) ECHO_C='\c';; 17069 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17070 ECHO_T=' ';; 17071 esac;; 17072*) 17073 ECHO_N='-n';; 17074esac 17075 17076rm -f conf$$ conf$$.exe conf$$.file 17077if test -d conf$$.dir; then 17078 rm -f conf$$.dir/conf$$.file 17079else 17080 rm -f conf$$.dir 17081 mkdir conf$$.dir 2>/dev/null 17082fi 17083if (echo >conf$$.file) 2>/dev/null; then 17084 if ln -s conf$$.file conf$$ 2>/dev/null; then 17085 as_ln_s='ln -s' 17086 # ... but there are two gotchas: 17087 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17088 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17089 # In both cases, we have to default to `cp -pR'. 17090 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17091 as_ln_s='cp -pR' 17092 elif ln conf$$.file conf$$ 2>/dev/null; then 17093 as_ln_s=ln 17094 else 17095 as_ln_s='cp -pR' 17096 fi 17097else 17098 as_ln_s='cp -pR' 17099fi 17100rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17101rmdir conf$$.dir 2>/dev/null 17102 17103 17104# as_fn_mkdir_p 17105# ------------- 17106# Create "$as_dir" as a directory, including parents if necessary. 17107as_fn_mkdir_p () 17108{ 17109 17110 case $as_dir in #( 17111 -*) as_dir=./$as_dir;; 17112 esac 17113 test -d "$as_dir" || eval $as_mkdir_p || { 17114 as_dirs= 17115 while :; do 17116 case $as_dir in #( 17117 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17118 *) as_qdir=$as_dir;; 17119 esac 17120 as_dirs="'$as_qdir' $as_dirs" 17121 as_dir=`$as_dirname -- "$as_dir" || 17122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17123 X"$as_dir" : 'X\(//\)[^/]' \| \ 17124 X"$as_dir" : 'X\(//\)$' \| \ 17125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17126$as_echo X"$as_dir" | 17127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17128 s//\1/ 17129 q 17130 } 17131 /^X\(\/\/\)[^/].*/{ 17132 s//\1/ 17133 q 17134 } 17135 /^X\(\/\/\)$/{ 17136 s//\1/ 17137 q 17138 } 17139 /^X\(\/\).*/{ 17140 s//\1/ 17141 q 17142 } 17143 s/.*/./; q'` 17144 test -d "$as_dir" && break 17145 done 17146 test -z "$as_dirs" || eval "mkdir $as_dirs" 17147 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17148 17149 17150} # as_fn_mkdir_p 17151if mkdir -p . 2>/dev/null; then 17152 as_mkdir_p='mkdir -p "$as_dir"' 17153else 17154 test -d ./-p && rmdir ./-p 17155 as_mkdir_p=false 17156fi 17157 17158 17159# as_fn_executable_p FILE 17160# ----------------------- 17161# Test if FILE is an executable regular file. 17162as_fn_executable_p () 17163{ 17164 test -f "$1" && test -x "$1" 17165} # as_fn_executable_p 17166as_test_x='test -x' 17167as_executable_p=as_fn_executable_p 17168 17169# Sed expression to map a string onto a valid CPP name. 17170as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17171 17172# Sed expression to map a string onto a valid variable name. 17173as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17174 17175 17176exec 6>&1 17177## ----------------------------------- ## 17178## Main body of $CONFIG_STATUS script. ## 17179## ----------------------------------- ## 17180_ASEOF 17181test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17182 17183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17184# Save the log message, to keep $0 and so on meaningful, and to 17185# report actual input values of CONFIG_FILES etc. instead of their 17186# values after options handling. 17187ac_log=" 17188This file was extended by $as_me, which was 17189generated by GNU Autoconf 2.69. Invocation command line was 17190 17191 CONFIG_FILES = $CONFIG_FILES 17192 CONFIG_HEADERS = $CONFIG_HEADERS 17193 CONFIG_LINKS = $CONFIG_LINKS 17194 CONFIG_COMMANDS = $CONFIG_COMMANDS 17195 $ $0 $@ 17196 17197on `(hostname || uname -n) 2>/dev/null | sed 1q` 17198" 17199 17200_ACEOF 17201 17202case $ac_config_files in *" 17203"*) set x $ac_config_files; shift; ac_config_files=$*;; 17204esac 17205 17206case $ac_config_headers in *" 17207"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17208esac 17209 17210 17211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17212# Files that config.status was made for. 17213config_files="$ac_config_files" 17214config_headers="$ac_config_headers" 17215config_commands="$ac_config_commands" 17216 17217_ACEOF 17218 17219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17220ac_cs_usage="\ 17221\`$as_me' instantiates files and other configuration actions 17222from templates according to the current configuration. Unless the files 17223and actions are specified as TAGs, all are instantiated by default. 17224 17225Usage: $0 [OPTION]... [TAG]... 17226 17227 -h, --help print this help, then exit 17228 -V, --version print version number and configuration settings, then exit 17229 --config print configuration, then exit 17230 -q, --quiet, --silent 17231 do not print progress messages 17232 -d, --debug don't remove temporary files 17233 --recheck update $as_me by reconfiguring in the same conditions 17234 --file=FILE[:TEMPLATE] 17235 instantiate the configuration file FILE 17236 --header=FILE[:TEMPLATE] 17237 instantiate the configuration header FILE 17238 17239Configuration files: 17240$config_files 17241 17242Configuration headers: 17243$config_headers 17244 17245Configuration commands: 17246$config_commands 17247 17248Report bugs to the package provider." 17249 17250_ACEOF 17251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17252ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17253ac_cs_version="\\ 17254config.status 17255configured by $0, generated by GNU Autoconf 2.69, 17256 with options \\"\$ac_cs_config\\" 17257 17258Copyright (C) 2012 Free Software Foundation, Inc. 17259This config.status script is free software; the Free Software Foundation 17260gives unlimited permission to copy, distribute and modify it." 17261 17262ac_pwd='$ac_pwd' 17263srcdir='$srcdir' 17264INSTALL='$INSTALL' 17265MKDIR_P='$MKDIR_P' 17266AWK='$AWK' 17267test -n "\$AWK" || AWK=awk 17268_ACEOF 17269 17270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17271# The default lists apply if the user does not specify any file. 17272ac_need_defaults=: 17273while test $# != 0 17274do 17275 case $1 in 17276 --*=?*) 17277 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17279 ac_shift=: 17280 ;; 17281 --*=) 17282 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17283 ac_optarg= 17284 ac_shift=: 17285 ;; 17286 *) 17287 ac_option=$1 17288 ac_optarg=$2 17289 ac_shift=shift 17290 ;; 17291 esac 17292 17293 case $ac_option in 17294 # Handling of the options. 17295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17296 ac_cs_recheck=: ;; 17297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17298 $as_echo "$ac_cs_version"; exit ;; 17299 --config | --confi | --conf | --con | --co | --c ) 17300 $as_echo "$ac_cs_config"; exit ;; 17301 --debug | --debu | --deb | --de | --d | -d ) 17302 debug=: ;; 17303 --file | --fil | --fi | --f ) 17304 $ac_shift 17305 case $ac_optarg in 17306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17307 '') as_fn_error $? "missing file argument" ;; 17308 esac 17309 as_fn_append CONFIG_FILES " '$ac_optarg'" 17310 ac_need_defaults=false;; 17311 --header | --heade | --head | --hea ) 17312 $ac_shift 17313 case $ac_optarg in 17314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17315 esac 17316 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17317 ac_need_defaults=false;; 17318 --he | --h) 17319 # Conflict between --help and --header 17320 as_fn_error $? "ambiguous option: \`$1' 17321Try \`$0 --help' for more information.";; 17322 --help | --hel | -h ) 17323 $as_echo "$ac_cs_usage"; exit ;; 17324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17325 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17326 ac_cs_silent=: ;; 17327 17328 # This is an error. 17329 -*) as_fn_error $? "unrecognized option: \`$1' 17330Try \`$0 --help' for more information." ;; 17331 17332 *) as_fn_append ac_config_targets " $1" 17333 ac_need_defaults=false ;; 17334 17335 esac 17336 shift 17337done 17338 17339ac_configure_extra_args= 17340 17341if $ac_cs_silent; then 17342 exec 6>/dev/null 17343 ac_configure_extra_args="$ac_configure_extra_args --silent" 17344fi 17345 17346_ACEOF 17347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17348if \$ac_cs_recheck; then 17349 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17350 shift 17351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17352 CONFIG_SHELL='$SHELL' 17353 export CONFIG_SHELL 17354 exec "\$@" 17355fi 17356 17357_ACEOF 17358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17359exec 5>>config.log 17360{ 17361 echo 17362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17363## Running $as_me. ## 17364_ASBOX 17365 $as_echo "$ac_log" 17366} >&5 17367 17368_ACEOF 17369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17370# 17371# INIT-COMMANDS 17372# 17373AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17374 17375 17376# The HP-UX ksh and POSIX shell print the target directory to stdout 17377# if CDPATH is set. 17378(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17379 17380sed_quote_subst='$sed_quote_subst' 17381double_quote_subst='$double_quote_subst' 17382delay_variable_subst='$delay_variable_subst' 17383AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17384DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17385OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17386macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17387macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17388enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17389enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17390pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17391enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17392shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17393SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17394ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17395PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17396host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17397host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17398host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17399build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17400build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17401build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17402SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17403Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17404GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17405EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17406FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17407LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17408NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17409LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17410max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17411ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17412exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17413lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17414lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17415lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17416lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17417lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17418reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17419reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17420deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17421file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17422file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17423want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17424sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17425AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17426AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17427archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17428STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17429RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17430old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17431old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17432old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17433lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17434CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17435CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17436compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17437GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17438lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17439lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17440lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17441lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17442lt_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"`' 17443lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17444nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17445lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17446lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17447objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17448MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17449lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17450lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17451lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17452lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17453lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17454need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17455MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17456DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17457NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17458LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17459OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17460OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17461libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17462shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17463extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17464archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17465enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17466export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17467whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17468compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17469old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17470old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17471archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17472archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17473module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17474module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17475with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17476allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17477no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17478hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17479hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17480hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17481hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17482hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17483hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17484hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17485inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17486link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17487always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17488export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17489exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17490include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17491prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17492postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17493file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17494variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17495need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17496need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17497version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17498runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17499shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17500shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17501libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17502library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17503soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17504install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17505postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17506postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17507finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17508finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17509hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17510sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17511configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17512configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17513hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17514enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17515enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17516enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17517old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17518striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17519 17520LTCC='$LTCC' 17521LTCFLAGS='$LTCFLAGS' 17522compiler='$compiler_DEFAULT' 17523 17524# A function that is used when there is no print builtin or printf. 17525func_fallback_echo () 17526{ 17527 eval 'cat <<_LTECHO_EOF 17528\$1 17529_LTECHO_EOF' 17530} 17531 17532# Quote evaled strings. 17533for var in AS \ 17534DLLTOOL \ 17535OBJDUMP \ 17536SHELL \ 17537ECHO \ 17538PATH_SEPARATOR \ 17539SED \ 17540GREP \ 17541EGREP \ 17542FGREP \ 17543LD \ 17544NM \ 17545LN_S \ 17546lt_SP2NL \ 17547lt_NL2SP \ 17548reload_flag \ 17549deplibs_check_method \ 17550file_magic_cmd \ 17551file_magic_glob \ 17552want_nocaseglob \ 17553sharedlib_from_linklib_cmd \ 17554AR \ 17555AR_FLAGS \ 17556archiver_list_spec \ 17557STRIP \ 17558RANLIB \ 17559CC \ 17560CFLAGS \ 17561compiler \ 17562lt_cv_sys_global_symbol_pipe \ 17563lt_cv_sys_global_symbol_to_cdecl \ 17564lt_cv_sys_global_symbol_to_import \ 17565lt_cv_sys_global_symbol_to_c_name_address \ 17566lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17567lt_cv_nm_interface \ 17568nm_file_list_spec \ 17569lt_cv_truncate_bin \ 17570lt_prog_compiler_no_builtin_flag \ 17571lt_prog_compiler_pic \ 17572lt_prog_compiler_wl \ 17573lt_prog_compiler_static \ 17574lt_cv_prog_compiler_c_o \ 17575need_locks \ 17576MANIFEST_TOOL \ 17577DSYMUTIL \ 17578NMEDIT \ 17579LIPO \ 17580OTOOL \ 17581OTOOL64 \ 17582shrext_cmds \ 17583export_dynamic_flag_spec \ 17584whole_archive_flag_spec \ 17585compiler_needs_object \ 17586with_gnu_ld \ 17587allow_undefined_flag \ 17588no_undefined_flag \ 17589hardcode_libdir_flag_spec \ 17590hardcode_libdir_separator \ 17591exclude_expsyms \ 17592include_expsyms \ 17593file_list_spec \ 17594variables_saved_for_relink \ 17595libname_spec \ 17596library_names_spec \ 17597soname_spec \ 17598install_override_mode \ 17599finish_eval \ 17600old_striplib \ 17601striplib; do 17602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17603 *[\\\\\\\`\\"\\\$]*) 17604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17605 ;; 17606 *) 17607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17608 ;; 17609 esac 17610done 17611 17612# Double-quote double-evaled strings. 17613for var in reload_cmds \ 17614old_postinstall_cmds \ 17615old_postuninstall_cmds \ 17616old_archive_cmds \ 17617extract_expsyms_cmds \ 17618old_archive_from_new_cmds \ 17619old_archive_from_expsyms_cmds \ 17620archive_cmds \ 17621archive_expsym_cmds \ 17622module_cmds \ 17623module_expsym_cmds \ 17624export_symbols_cmds \ 17625prelink_cmds \ 17626postlink_cmds \ 17627postinstall_cmds \ 17628postuninstall_cmds \ 17629finish_cmds \ 17630sys_lib_search_path_spec \ 17631configure_time_dlsearch_path \ 17632configure_time_lt_sys_library_path; do 17633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17634 *[\\\\\\\`\\"\\\$]*) 17635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17636 ;; 17637 *) 17638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17639 ;; 17640 esac 17641done 17642 17643ac_aux_dir='$ac_aux_dir' 17644 17645# See if we are running on zsh, and set the options that allow our 17646# commands through without removal of \ escapes INIT. 17647if test -n "\${ZSH_VERSION+set}"; then 17648 setopt NO_GLOB_SUBST 17649fi 17650 17651 17652 PACKAGE='$PACKAGE' 17653 VERSION='$VERSION' 17654 RM='$RM' 17655 ofile='$ofile' 17656 17657 17658 17659PACKAGE="$PACKAGE" 17660PACKAGE="$PACKAGE" 17661 17662ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate" 17663pkgconfig_prefix='$prefix' 17664pkgconfig_execprefix='$exec_prefix' 17665pkgconfig_bindir='$bindir' 17666pkgconfig_libdir='$libdir' 17667pkgconfig_includedir='$includedir' 17668pkgconfig_datarootdir='$datarootdir' 17669pkgconfig_datadir='$datadir' 17670pkgconfig_sysconfdir='$sysconfdir' 17671pkgconfig_suffix='$ax_create_pkgconfig_suffix' 17672pkgconfig_package='$PACKAGE_NAME' 17673pkgconfig_libname='$ax_create_pkgconfig_libname' 17674pkgconfig_description='$ax_create_pkgconfig_description' 17675pkgconfig_version='$ax_create_pkgconfig_version' 17676pkgconfig_requires='$ax_create_pkgconfig_requires' 17677pkgconfig_libs='$ax_create_pkgconfig_libs' 17678pkgconfig_ldflags='$ax_create_pkgconfig_ldflags' 17679pkgconfig_cppflags='$ax_create_pkgconfig_cppflags' 17680pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir' 17681pkgconfig_src_headers='$ax_create_pkgconfig_src_headers' 17682 17683 17684_ACEOF 17685 17686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17687 17688# Handling of arguments. 17689for ac_config_target in $ac_config_targets 17690do 17691 case $ac_config_target in 17692 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17693 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17694 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17695 "zzip/_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_config.h" ;; 17696 "zzip/_msvc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_msvc.h" ;; 17697 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;; 17698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17699 "zzip/Makefile") CONFIG_FILES="$CONFIG_FILES zzip/Makefile" ;; 17700 "zzipwrap/Makefile") CONFIG_FILES="$CONFIG_FILES zzipwrap/Makefile" ;; 17701 "SDL/Makefile") CONFIG_FILES="$CONFIG_FILES SDL/Makefile" ;; 17702 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 17703 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 17704 "bins/Makefile") CONFIG_FILES="$CONFIG_FILES bins/Makefile" ;; 17705 17706 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17707 esac 17708done 17709 17710 17711# If the user did not use the arguments to specify the items to instantiate, 17712# then the envvar interface is used. Set only those that are not. 17713# We use the long form for the default assignment because of an extremely 17714# bizarre bug on SunOS 4.1.3. 17715if $ac_need_defaults; then 17716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17717 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17718 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17719fi 17720 17721# Have a temporary directory for convenience. Make it in the build tree 17722# simply because there is no reason against having it here, and in addition, 17723# creating and moving files from /tmp can sometimes cause problems. 17724# Hook for its removal unless debugging. 17725# Note that there is a small window in which the directory will not be cleaned: 17726# after its creation but before its name has been assigned to `$tmp'. 17727$debug || 17728{ 17729 tmp= ac_tmp= 17730 trap 'exit_status=$? 17731 : "${ac_tmp:=$tmp}" 17732 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17733' 0 17734 trap 'as_fn_exit 1' 1 2 13 15 17735} 17736# Create a (secure) tmp directory for tmp files. 17737 17738{ 17739 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17740 test -d "$tmp" 17741} || 17742{ 17743 tmp=./conf$$-$RANDOM 17744 (umask 077 && mkdir "$tmp") 17745} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17746ac_tmp=$tmp 17747 17748# Set up the scripts for CONFIG_FILES section. 17749# No need to generate them if there are no CONFIG_FILES. 17750# This happens for instance with `./config.status config.h'. 17751if test -n "$CONFIG_FILES"; then 17752 17753 17754ac_cr=`echo X | tr X '\015'` 17755# On cygwin, bash can eat \r inside `` if the user requested igncr. 17756# But we know of no other shell where ac_cr would be empty at this 17757# point, so we can use a bashism as a fallback. 17758if test "x$ac_cr" = x; then 17759 eval ac_cr=\$\'\\r\' 17760fi 17761ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17762if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17763 ac_cs_awk_cr='\\r' 17764else 17765 ac_cs_awk_cr=$ac_cr 17766fi 17767 17768echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17769_ACEOF 17770 17771 17772{ 17773 echo "cat >conf$$subs.awk <<_ACEOF" && 17774 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17775 echo "_ACEOF" 17776} >conf$$subs.sh || 17777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17778ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17779ac_delim='%!_!# ' 17780for ac_last_try in false false false false false :; do 17781 . ./conf$$subs.sh || 17782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17783 17784 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17785 if test $ac_delim_n = $ac_delim_num; then 17786 break 17787 elif $ac_last_try; then 17788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17789 else 17790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17791 fi 17792done 17793rm -f conf$$subs.sh 17794 17795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17796cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17797_ACEOF 17798sed -n ' 17799h 17800s/^/S["/; s/!.*/"]=/ 17801p 17802g 17803s/^[^!]*!// 17804:repl 17805t repl 17806s/'"$ac_delim"'$// 17807t delim 17808:nl 17809h 17810s/\(.\{148\}\)..*/\1/ 17811t more1 17812s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17813p 17814n 17815b repl 17816:more1 17817s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17818p 17819g 17820s/.\{148\}// 17821t nl 17822:delim 17823h 17824s/\(.\{148\}\)..*/\1/ 17825t more2 17826s/["\\]/\\&/g; s/^/"/; s/$/"/ 17827p 17828b 17829:more2 17830s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17831p 17832g 17833s/.\{148\}// 17834t delim 17835' <conf$$subs.awk | sed ' 17836/^[^""]/{ 17837 N 17838 s/\n// 17839} 17840' >>$CONFIG_STATUS || ac_write_fail=1 17841rm -f conf$$subs.awk 17842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17843_ACAWK 17844cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17845 for (key in S) S_is_set[key] = 1 17846 FS = "" 17847 17848} 17849{ 17850 line = $ 0 17851 nfields = split(line, field, "@") 17852 substed = 0 17853 len = length(field[1]) 17854 for (i = 2; i < nfields; i++) { 17855 key = field[i] 17856 keylen = length(key) 17857 if (S_is_set[key]) { 17858 value = S[key] 17859 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17860 len += length(value) + length(field[++i]) 17861 substed = 1 17862 } else 17863 len += 1 + keylen 17864 } 17865 17866 print line 17867} 17868 17869_ACAWK 17870_ACEOF 17871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17872if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17873 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17874else 17875 cat 17876fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17877 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17878_ACEOF 17879 17880# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17881# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17882# trailing colons and then remove the whole line if VPATH becomes empty 17883# (actually we leave an empty line to preserve line numbers). 17884if test "x$srcdir" = x.; then 17885 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17886h 17887s/// 17888s/^/:/ 17889s/[ ]*$/:/ 17890s/:\$(srcdir):/:/g 17891s/:\${srcdir}:/:/g 17892s/:@srcdir@:/:/g 17893s/^:*// 17894s/:*$// 17895x 17896s/\(=[ ]*\).*/\1/ 17897G 17898s/\n// 17899s/^[^=]*=[ ]*$// 17900}' 17901fi 17902 17903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17904fi # test -n "$CONFIG_FILES" 17905 17906# Set up the scripts for CONFIG_HEADERS section. 17907# No need to generate them if there are no CONFIG_HEADERS. 17908# This happens for instance with `./config.status Makefile'. 17909if test -n "$CONFIG_HEADERS"; then 17910cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17911BEGIN { 17912_ACEOF 17913 17914# Transform confdefs.h into an awk script `defines.awk', embedded as 17915# here-document in config.status, that substitutes the proper values into 17916# config.h.in to produce config.h. 17917 17918# Create a delimiter string that does not exist in confdefs.h, to ease 17919# handling of long lines. 17920ac_delim='%!_!# ' 17921for ac_last_try in false false :; do 17922 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17923 if test -z "$ac_tt"; then 17924 break 17925 elif $ac_last_try; then 17926 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17927 else 17928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17929 fi 17930done 17931 17932# For the awk script, D is an array of macro values keyed by name, 17933# likewise P contains macro parameters if any. Preserve backslash 17934# newline sequences. 17935 17936ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17937sed -n ' 17938s/.\{148\}/&'"$ac_delim"'/g 17939t rset 17940:rset 17941s/^[ ]*#[ ]*define[ ][ ]*/ / 17942t def 17943d 17944:def 17945s/\\$// 17946t bsnl 17947s/["\\]/\\&/g 17948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17949D["\1"]=" \3"/p 17950s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17951d 17952:bsnl 17953s/["\\]/\\&/g 17954s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17955D["\1"]=" \3\\\\\\n"\\/p 17956t cont 17957s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17958t cont 17959d 17960:cont 17961n 17962s/.\{148\}/&'"$ac_delim"'/g 17963t clear 17964:clear 17965s/\\$// 17966t bsnlc 17967s/["\\]/\\&/g; s/^/"/; s/$/"/p 17968d 17969:bsnlc 17970s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17971b cont 17972' <confdefs.h | sed ' 17973s/'"$ac_delim"'/"\\\ 17974"/g' >>$CONFIG_STATUS || ac_write_fail=1 17975 17976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17977 for (key in D) D_is_set[key] = 1 17978 FS = "" 17979} 17980/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17981 line = \$ 0 17982 split(line, arg, " ") 17983 if (arg[1] == "#") { 17984 defundef = arg[2] 17985 mac1 = arg[3] 17986 } else { 17987 defundef = substr(arg[1], 2) 17988 mac1 = arg[2] 17989 } 17990 split(mac1, mac2, "(") #) 17991 macro = mac2[1] 17992 prefix = substr(line, 1, index(line, defundef) - 1) 17993 if (D_is_set[macro]) { 17994 # Preserve the white space surrounding the "#". 17995 print prefix "define", macro P[macro] D[macro] 17996 next 17997 } else { 17998 # Replace #undef with comments. This is necessary, for example, 17999 # in the case of _POSIX_SOURCE, which is predefined and required 18000 # on some systems where configure will not decide to define it. 18001 if (defundef == "undef") { 18002 print "/*", prefix defundef, macro, "*/" 18003 next 18004 } 18005 } 18006} 18007{ print } 18008_ACAWK 18009_ACEOF 18010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18011 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18012fi # test -n "$CONFIG_HEADERS" 18013 18014 18015eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18016shift 18017for ac_tag 18018do 18019 case $ac_tag in 18020 :[FHLC]) ac_mode=$ac_tag; continue;; 18021 esac 18022 case $ac_mode$ac_tag in 18023 :[FHL]*:*);; 18024 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18025 :[FH]-) ac_tag=-:-;; 18026 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18027 esac 18028 ac_save_IFS=$IFS 18029 IFS=: 18030 set x $ac_tag 18031 IFS=$ac_save_IFS 18032 shift 18033 ac_file=$1 18034 shift 18035 18036 case $ac_mode in 18037 :L) ac_source=$1;; 18038 :[FH]) 18039 ac_file_inputs= 18040 for ac_f 18041 do 18042 case $ac_f in 18043 -) ac_f="$ac_tmp/stdin";; 18044 *) # Look for the file first in the build tree, then in the source tree 18045 # (if the path is not absolute). The absolute path cannot be DOS-style, 18046 # because $ac_f cannot contain `:'. 18047 test -f "$ac_f" || 18048 case $ac_f in 18049 [\\/$]*) false;; 18050 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18051 esac || 18052 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18053 esac 18054 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18055 as_fn_append ac_file_inputs " '$ac_f'" 18056 done 18057 18058 # Let's still pretend it is `configure' which instantiates (i.e., don't 18059 # use $as_me), people would be surprised to read: 18060 # /* config.h. Generated by config.status. */ 18061 configure_input='Generated from '` 18062 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18063 `' by configure.' 18064 if test x"$ac_file" != x-; then 18065 configure_input="$ac_file. $configure_input" 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18067$as_echo "$as_me: creating $ac_file" >&6;} 18068 fi 18069 # Neutralize special characters interpreted by sed in replacement strings. 18070 case $configure_input in #( 18071 *\&* | *\|* | *\\* ) 18072 ac_sed_conf_input=`$as_echo "$configure_input" | 18073 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18074 *) ac_sed_conf_input=$configure_input;; 18075 esac 18076 18077 case $ac_tag in 18078 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18080 esac 18081 ;; 18082 esac 18083 18084 ac_dir=`$as_dirname -- "$ac_file" || 18085$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18086 X"$ac_file" : 'X\(//\)[^/]' \| \ 18087 X"$ac_file" : 'X\(//\)$' \| \ 18088 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18089$as_echo X"$ac_file" | 18090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18091 s//\1/ 18092 q 18093 } 18094 /^X\(\/\/\)[^/].*/{ 18095 s//\1/ 18096 q 18097 } 18098 /^X\(\/\/\)$/{ 18099 s//\1/ 18100 q 18101 } 18102 /^X\(\/\).*/{ 18103 s//\1/ 18104 q 18105 } 18106 s/.*/./; q'` 18107 as_dir="$ac_dir"; as_fn_mkdir_p 18108 ac_builddir=. 18109 18110case "$ac_dir" in 18111.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18112*) 18113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18114 # A ".." for each directory in $ac_dir_suffix. 18115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18116 case $ac_top_builddir_sub in 18117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18119 esac ;; 18120esac 18121ac_abs_top_builddir=$ac_pwd 18122ac_abs_builddir=$ac_pwd$ac_dir_suffix 18123# for backward compatibility: 18124ac_top_builddir=$ac_top_build_prefix 18125 18126case $srcdir in 18127 .) # We are building in place. 18128 ac_srcdir=. 18129 ac_top_srcdir=$ac_top_builddir_sub 18130 ac_abs_top_srcdir=$ac_pwd ;; 18131 [\\/]* | ?:[\\/]* ) # Absolute name. 18132 ac_srcdir=$srcdir$ac_dir_suffix; 18133 ac_top_srcdir=$srcdir 18134 ac_abs_top_srcdir=$srcdir ;; 18135 *) # Relative name. 18136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18137 ac_top_srcdir=$ac_top_build_prefix$srcdir 18138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18139esac 18140ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18141 18142 18143 case $ac_mode in 18144 :F) 18145 # 18146 # CONFIG_FILE 18147 # 18148 18149 case $INSTALL in 18150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18151 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18152 esac 18153 ac_MKDIR_P=$MKDIR_P 18154 case $MKDIR_P in 18155 [\\/$]* | ?:[\\/]* ) ;; 18156 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18157 esac 18158_ACEOF 18159 18160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18161# If the template does not know about datarootdir, expand it. 18162# FIXME: This hack should be removed a few years after 2.60. 18163ac_datarootdir_hack=; ac_datarootdir_seen= 18164ac_sed_dataroot=' 18165/datarootdir/ { 18166 p 18167 q 18168} 18169/@datadir@/p 18170/@docdir@/p 18171/@infodir@/p 18172/@localedir@/p 18173/@mandir@/p' 18174case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18175*datarootdir*) ac_datarootdir_seen=yes;; 18176*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18178$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18179_ACEOF 18180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18181 ac_datarootdir_hack=' 18182 s&@datadir@&$datadir&g 18183 s&@docdir@&$docdir&g 18184 s&@infodir@&$infodir&g 18185 s&@localedir@&$localedir&g 18186 s&@mandir@&$mandir&g 18187 s&\\\${datarootdir}&$datarootdir&g' ;; 18188esac 18189_ACEOF 18190 18191# Neutralize VPATH when `$srcdir' = `.'. 18192# Shell code in configure.ac might set extrasub. 18193# FIXME: do we really want to maintain this feature? 18194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18195ac_sed_extra="$ac_vpsub 18196$extrasub 18197_ACEOF 18198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18199:t 18200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18201s|@configure_input@|$ac_sed_conf_input|;t t 18202s&@top_builddir@&$ac_top_builddir_sub&;t t 18203s&@top_build_prefix@&$ac_top_build_prefix&;t t 18204s&@srcdir@&$ac_srcdir&;t t 18205s&@abs_srcdir@&$ac_abs_srcdir&;t t 18206s&@top_srcdir@&$ac_top_srcdir&;t t 18207s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18208s&@builddir@&$ac_builddir&;t t 18209s&@abs_builddir@&$ac_abs_builddir&;t t 18210s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18211s&@INSTALL@&$ac_INSTALL&;t t 18212s&@MKDIR_P@&$ac_MKDIR_P&;t t 18213$ac_datarootdir_hack 18214" 18215eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18216 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18217 18218test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18219 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18220 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18221 "$ac_tmp/out"`; test -z "$ac_out"; } && 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18223which seems to be undefined. Please make sure it is defined" >&5 18224$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18225which seems to be undefined. Please make sure it is defined" >&2;} 18226 18227 rm -f "$ac_tmp/stdin" 18228 case $ac_file in 18229 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18230 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18231 esac \ 18232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18233 ;; 18234 :H) 18235 # 18236 # CONFIG_HEADER 18237 # 18238 if test x"$ac_file" != x-; then 18239 { 18240 $as_echo "/* $configure_input */" \ 18241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18242 } >"$ac_tmp/config.h" \ 18243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18244 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18246$as_echo "$as_me: $ac_file is unchanged" >&6;} 18247 else 18248 rm -f "$ac_file" 18249 mv "$ac_tmp/config.h" "$ac_file" \ 18250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18251 fi 18252 else 18253 $as_echo "/* $configure_input */" \ 18254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18255 || as_fn_error $? "could not create -" "$LINENO" 5 18256 fi 18257# Compute "$ac_file"'s index in $config_headers. 18258_am_arg="$ac_file" 18259_am_stamp_count=1 18260for _am_header in $config_headers :; do 18261 case $_am_header in 18262 $_am_arg | $_am_arg:* ) 18263 break ;; 18264 * ) 18265 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18266 esac 18267done 18268echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18269$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18270 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18271 X"$_am_arg" : 'X\(//\)$' \| \ 18272 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18273$as_echo X"$_am_arg" | 18274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18275 s//\1/ 18276 q 18277 } 18278 /^X\(\/\/\)[^/].*/{ 18279 s//\1/ 18280 q 18281 } 18282 /^X\(\/\/\)$/{ 18283 s//\1/ 18284 q 18285 } 18286 /^X\(\/\).*/{ 18287 s//\1/ 18288 q 18289 } 18290 s/.*/./; q'`/stamp-h$_am_stamp_count 18291 ;; 18292 18293 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18294$as_echo "$as_me: executing $ac_file commands" >&6;} 18295 ;; 18296 esac 18297 18298 18299 case $ac_file$ac_mode in 18300 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18301 # Older Autoconf quotes --file arguments for eval, but not when files 18302 # are listed without --file. Let's play safe and only enable the eval 18303 # if we detect the quoting. 18304 case $CONFIG_FILES in 18305 *\'*) eval set x "$CONFIG_FILES" ;; 18306 *) set x $CONFIG_FILES ;; 18307 esac 18308 shift 18309 for mf 18310 do 18311 # Strip MF so we end up with the name of the file. 18312 mf=`echo "$mf" | sed -e 's/:.*$//'` 18313 # Check whether this is an Automake generated Makefile or not. 18314 # We used to match only the files named 'Makefile.in', but 18315 # some people rename them; so instead we look at the file content. 18316 # Grep'ing the first line is not enough: some people post-process 18317 # each Makefile.in and add a new line on top of each file to say so. 18318 # Grep'ing the whole file is not good either: AIX grep has a line 18319 # limit of 2048, but all sed's we know have understand at least 4000. 18320 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18321 dirpart=`$as_dirname -- "$mf" || 18322$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18323 X"$mf" : 'X\(//\)[^/]' \| \ 18324 X"$mf" : 'X\(//\)$' \| \ 18325 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18326$as_echo X"$mf" | 18327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18328 s//\1/ 18329 q 18330 } 18331 /^X\(\/\/\)[^/].*/{ 18332 s//\1/ 18333 q 18334 } 18335 /^X\(\/\/\)$/{ 18336 s//\1/ 18337 q 18338 } 18339 /^X\(\/\).*/{ 18340 s//\1/ 18341 q 18342 } 18343 s/.*/./; q'` 18344 else 18345 continue 18346 fi 18347 # Extract the definition of DEPDIR, am__include, and am__quote 18348 # from the Makefile without running 'make'. 18349 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18350 test -z "$DEPDIR" && continue 18351 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18352 test -z "$am__include" && continue 18353 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18354 # Find all dependency output files, they are included files with 18355 # $(DEPDIR) in their names. We invoke sed twice because it is the 18356 # simplest approach to changing $(DEPDIR) to its actual value in the 18357 # expansion. 18358 for file in `sed -n " 18359 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18360 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18361 # Make sure the directory exists. 18362 test -f "$dirpart/$file" && continue 18363 fdir=`$as_dirname -- "$file" || 18364$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18365 X"$file" : 'X\(//\)[^/]' \| \ 18366 X"$file" : 'X\(//\)$' \| \ 18367 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18368$as_echo X"$file" | 18369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18370 s//\1/ 18371 q 18372 } 18373 /^X\(\/\/\)[^/].*/{ 18374 s//\1/ 18375 q 18376 } 18377 /^X\(\/\/\)$/{ 18378 s//\1/ 18379 q 18380 } 18381 /^X\(\/\).*/{ 18382 s//\1/ 18383 q 18384 } 18385 s/.*/./; q'` 18386 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18387 # echo "creating $dirpart/$file" 18388 echo '# dummy' > "$dirpart/$file" 18389 done 18390 done 18391} 18392 ;; 18393 "libtool":C) 18394 18395 # See if we are running on zsh, and set the options that allow our 18396 # commands through without removal of \ escapes. 18397 if test -n "${ZSH_VERSION+set}"; then 18398 setopt NO_GLOB_SUBST 18399 fi 18400 18401 cfgfile=${ofile}T 18402 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18403 $RM "$cfgfile" 18404 18405 cat <<_LT_EOF >> "$cfgfile" 18406#! $SHELL 18407# Generated automatically by $as_me ($PACKAGE) $VERSION 18408# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18409 18410# Provide generalized library-building support services. 18411# Written by Gordon Matzigkeit, 1996 18412 18413# Copyright (C) 2014 Free Software Foundation, Inc. 18414# This is free software; see the source for copying conditions. There is NO 18415# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18416 18417# GNU Libtool is free software; you can redistribute it and/or modify 18418# it under the terms of the GNU General Public License as published by 18419# the Free Software Foundation; either version 2 of of the License, or 18420# (at your option) any later version. 18421# 18422# As a special exception to the GNU General Public License, if you 18423# distribute this file as part of a program or library that is built 18424# using GNU Libtool, you may include this file under the same 18425# distribution terms that you use for the rest of that program. 18426# 18427# GNU Libtool is distributed in the hope that it will be useful, but 18428# WITHOUT ANY WARRANTY; without even the implied warranty of 18429# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18430# GNU General Public License for more details. 18431# 18432# You should have received a copy of the GNU General Public License 18433# along with this program. If not, see <http://www.gnu.org/licenses/>. 18434 18435 18436# The names of the tagged configurations supported by this script. 18437available_tags='' 18438 18439# Configured defaults for sys_lib_dlsearch_path munging. 18440: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18441 18442# ### BEGIN LIBTOOL CONFIG 18443 18444# Assembler program. 18445AS=$lt_AS 18446 18447# DLL creation program. 18448DLLTOOL=$lt_DLLTOOL 18449 18450# Object dumper program. 18451OBJDUMP=$lt_OBJDUMP 18452 18453# Which release of libtool.m4 was used? 18454macro_version=$macro_version 18455macro_revision=$macro_revision 18456 18457# Whether or not to build shared libraries. 18458build_libtool_libs=$enable_shared 18459 18460# Whether or not to build static libraries. 18461build_old_libs=$enable_static 18462 18463# What type of objects to build. 18464pic_mode=$pic_mode 18465 18466# Whether or not to optimize for fast installation. 18467fast_install=$enable_fast_install 18468 18469# Shared archive member basename,for filename based shared library versioning on AIX. 18470shared_archive_member_spec=$shared_archive_member_spec 18471 18472# Shell to use when invoking shell scripts. 18473SHELL=$lt_SHELL 18474 18475# An echo program that protects backslashes. 18476ECHO=$lt_ECHO 18477 18478# The PATH separator for the build system. 18479PATH_SEPARATOR=$lt_PATH_SEPARATOR 18480 18481# The host system. 18482host_alias=$host_alias 18483host=$host 18484host_os=$host_os 18485 18486# The build system. 18487build_alias=$build_alias 18488build=$build 18489build_os=$build_os 18490 18491# A sed program that does not truncate output. 18492SED=$lt_SED 18493 18494# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18495Xsed="\$SED -e 1s/^X//" 18496 18497# A grep program that handles long lines. 18498GREP=$lt_GREP 18499 18500# An ERE matcher. 18501EGREP=$lt_EGREP 18502 18503# A literal string matcher. 18504FGREP=$lt_FGREP 18505 18506# A BSD- or MS-compatible name lister. 18507NM=$lt_NM 18508 18509# Whether we need soft or hard links. 18510LN_S=$lt_LN_S 18511 18512# What is the maximum length of a command? 18513max_cmd_len=$max_cmd_len 18514 18515# Object file suffix (normally "o"). 18516objext=$ac_objext 18517 18518# Executable file suffix (normally ""). 18519exeext=$exeext 18520 18521# whether the shell understands "unset". 18522lt_unset=$lt_unset 18523 18524# turn spaces into newlines. 18525SP2NL=$lt_lt_SP2NL 18526 18527# turn newlines into spaces. 18528NL2SP=$lt_lt_NL2SP 18529 18530# convert \$build file names to \$host format. 18531to_host_file_cmd=$lt_cv_to_host_file_cmd 18532 18533# convert \$build files to toolchain format. 18534to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18535 18536# Method to check whether dependent libraries are shared objects. 18537deplibs_check_method=$lt_deplibs_check_method 18538 18539# Command to use when deplibs_check_method = "file_magic". 18540file_magic_cmd=$lt_file_magic_cmd 18541 18542# How to find potential files when deplibs_check_method = "file_magic". 18543file_magic_glob=$lt_file_magic_glob 18544 18545# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18546want_nocaseglob=$lt_want_nocaseglob 18547 18548# Command to associate shared and link libraries. 18549sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18550 18551# The archiver. 18552AR=$lt_AR 18553 18554# Flags to create an archive. 18555AR_FLAGS=$lt_AR_FLAGS 18556 18557# How to feed a file listing to the archiver. 18558archiver_list_spec=$lt_archiver_list_spec 18559 18560# A symbol stripping program. 18561STRIP=$lt_STRIP 18562 18563# Commands used to install an old-style archive. 18564RANLIB=$lt_RANLIB 18565old_postinstall_cmds=$lt_old_postinstall_cmds 18566old_postuninstall_cmds=$lt_old_postuninstall_cmds 18567 18568# Whether to use a lock for old archive extraction. 18569lock_old_archive_extraction=$lock_old_archive_extraction 18570 18571# A C compiler. 18572LTCC=$lt_CC 18573 18574# LTCC compiler flags. 18575LTCFLAGS=$lt_CFLAGS 18576 18577# Take the output of nm and produce a listing of raw symbols and C names. 18578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18579 18580# Transform the output of nm in a proper C declaration. 18581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18582 18583# Transform the output of nm into a list of symbols to manually relocate. 18584global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18585 18586# Transform the output of nm in a C name address pair. 18587global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18588 18589# Transform the output of nm in a C name address pair when lib prefix is needed. 18590global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18591 18592# The name lister interface. 18593nm_interface=$lt_lt_cv_nm_interface 18594 18595# Specify filename containing input files for \$NM. 18596nm_file_list_spec=$lt_nm_file_list_spec 18597 18598# The root where to search for dependent libraries,and where our libraries should be installed. 18599lt_sysroot=$lt_sysroot 18600 18601# Command to truncate a binary pipe. 18602lt_truncate_bin=$lt_lt_cv_truncate_bin 18603 18604# The name of the directory that contains temporary libtool files. 18605objdir=$objdir 18606 18607# Used to examine libraries when file_magic_cmd begins with "file". 18608MAGIC_CMD=$MAGIC_CMD 18609 18610# Must we lock files when doing compilation? 18611need_locks=$lt_need_locks 18612 18613# Manifest tool. 18614MANIFEST_TOOL=$lt_MANIFEST_TOOL 18615 18616# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18617DSYMUTIL=$lt_DSYMUTIL 18618 18619# Tool to change global to local symbols on Mac OS X. 18620NMEDIT=$lt_NMEDIT 18621 18622# Tool to manipulate fat objects and archives on Mac OS X. 18623LIPO=$lt_LIPO 18624 18625# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18626OTOOL=$lt_OTOOL 18627 18628# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18629OTOOL64=$lt_OTOOL64 18630 18631# Old archive suffix (normally "a"). 18632libext=$libext 18633 18634# Shared library suffix (normally ".so"). 18635shrext_cmds=$lt_shrext_cmds 18636 18637# The commands to extract the exported symbol list from a shared archive. 18638extract_expsyms_cmds=$lt_extract_expsyms_cmds 18639 18640# Variables whose values should be saved in libtool wrapper scripts and 18641# restored at link time. 18642variables_saved_for_relink=$lt_variables_saved_for_relink 18643 18644# Do we need the "lib" prefix for modules? 18645need_lib_prefix=$need_lib_prefix 18646 18647# Do we need a version for libraries? 18648need_version=$need_version 18649 18650# Library versioning type. 18651version_type=$version_type 18652 18653# Shared library runtime path variable. 18654runpath_var=$runpath_var 18655 18656# Shared library path variable. 18657shlibpath_var=$shlibpath_var 18658 18659# Is shlibpath searched before the hard-coded library search path? 18660shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18661 18662# Format of library name prefix. 18663libname_spec=$lt_libname_spec 18664 18665# List of archive names. First name is the real one, the rest are links. 18666# The last name is the one that the linker finds with -lNAME 18667library_names_spec=$lt_library_names_spec 18668 18669# The coded name of the library, if different from the real name. 18670soname_spec=$lt_soname_spec 18671 18672# Permission mode override for installation of shared libraries. 18673install_override_mode=$lt_install_override_mode 18674 18675# Command to use after installation of a shared archive. 18676postinstall_cmds=$lt_postinstall_cmds 18677 18678# Command to use after uninstallation of a shared archive. 18679postuninstall_cmds=$lt_postuninstall_cmds 18680 18681# Commands used to finish a libtool library installation in a directory. 18682finish_cmds=$lt_finish_cmds 18683 18684# As "finish_cmds", except a single script fragment to be evaled but 18685# not shown. 18686finish_eval=$lt_finish_eval 18687 18688# Whether we should hardcode library paths into libraries. 18689hardcode_into_libs=$hardcode_into_libs 18690 18691# Compile-time system search path for libraries. 18692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18693 18694# Detected run-time system search path for libraries. 18695sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18696 18697# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18698configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18699 18700# Whether dlopen is supported. 18701dlopen_support=$enable_dlopen 18702 18703# Whether dlopen of programs is supported. 18704dlopen_self=$enable_dlopen_self 18705 18706# Whether dlopen of statically linked programs is supported. 18707dlopen_self_static=$enable_dlopen_self_static 18708 18709# Commands to strip libraries. 18710old_striplib=$lt_old_striplib 18711striplib=$lt_striplib 18712 18713 18714# The linker used to build libraries. 18715LD=$lt_LD 18716 18717# How to create reloadable object files. 18718reload_flag=$lt_reload_flag 18719reload_cmds=$lt_reload_cmds 18720 18721# Commands used to build an old-style archive. 18722old_archive_cmds=$lt_old_archive_cmds 18723 18724# A language specific compiler. 18725CC=$lt_compiler 18726 18727# Is the compiler the GNU compiler? 18728with_gcc=$GCC 18729 18730# Compiler flag to turn off builtin functions. 18731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18732 18733# Additional compiler flags for building library objects. 18734pic_flag=$lt_lt_prog_compiler_pic 18735 18736# How to pass a linker flag through the compiler. 18737wl=$lt_lt_prog_compiler_wl 18738 18739# Compiler flag to prevent dynamic linking. 18740link_static_flag=$lt_lt_prog_compiler_static 18741 18742# Does compiler simultaneously support -c and -o options? 18743compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18744 18745# Whether or not to add -lc for building shared libraries. 18746build_libtool_need_lc=$archive_cmds_need_lc 18747 18748# Whether or not to disallow shared libs when runtime libs are static. 18749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18750 18751# Compiler flag to allow reflexive dlopens. 18752export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18753 18754# Compiler flag to generate shared objects directly from archives. 18755whole_archive_flag_spec=$lt_whole_archive_flag_spec 18756 18757# Whether the compiler copes with passing no objects directly. 18758compiler_needs_object=$lt_compiler_needs_object 18759 18760# Create an old-style archive from a shared archive. 18761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18762 18763# Create a temporary old-style archive to link instead of a shared archive. 18764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18765 18766# Commands used to build a shared archive. 18767archive_cmds=$lt_archive_cmds 18768archive_expsym_cmds=$lt_archive_expsym_cmds 18769 18770# Commands used to build a loadable module if different from building 18771# a shared archive. 18772module_cmds=$lt_module_cmds 18773module_expsym_cmds=$lt_module_expsym_cmds 18774 18775# Whether we are building with GNU ld or not. 18776with_gnu_ld=$lt_with_gnu_ld 18777 18778# Flag that allows shared libraries with undefined symbols to be built. 18779allow_undefined_flag=$lt_allow_undefined_flag 18780 18781# Flag that enforces no undefined symbols. 18782no_undefined_flag=$lt_no_undefined_flag 18783 18784# Flag to hardcode \$libdir into a binary during linking. 18785# This must work even if \$libdir does not exist 18786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18787 18788# Whether we need a single "-rpath" flag with a separated argument. 18789hardcode_libdir_separator=$lt_hardcode_libdir_separator 18790 18791# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18792# DIR into the resulting binary. 18793hardcode_direct=$hardcode_direct 18794 18795# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18796# DIR into the resulting binary and the resulting library dependency is 18797# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18798# library is relocated. 18799hardcode_direct_absolute=$hardcode_direct_absolute 18800 18801# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18802# into the resulting binary. 18803hardcode_minus_L=$hardcode_minus_L 18804 18805# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18806# into the resulting binary. 18807hardcode_shlibpath_var=$hardcode_shlibpath_var 18808 18809# Set to "yes" if building a shared library automatically hardcodes DIR 18810# into the library and all subsequent libraries and executables linked 18811# against it. 18812hardcode_automatic=$hardcode_automatic 18813 18814# Set to yes if linker adds runtime paths of dependent libraries 18815# to runtime path list. 18816inherit_rpath=$inherit_rpath 18817 18818# Whether libtool must link a program against all its dependency libraries. 18819link_all_deplibs=$link_all_deplibs 18820 18821# Set to "yes" if exported symbols are required. 18822always_export_symbols=$always_export_symbols 18823 18824# The commands to list exported symbols. 18825export_symbols_cmds=$lt_export_symbols_cmds 18826 18827# Symbols that should not be listed in the preloaded symbols. 18828exclude_expsyms=$lt_exclude_expsyms 18829 18830# Symbols that must always be exported. 18831include_expsyms=$lt_include_expsyms 18832 18833# Commands necessary for linking programs (against libraries) with templates. 18834prelink_cmds=$lt_prelink_cmds 18835 18836# Commands necessary for finishing linking programs. 18837postlink_cmds=$lt_postlink_cmds 18838 18839# Specify filename containing input files. 18840file_list_spec=$lt_file_list_spec 18841 18842# How to hardcode a shared library path into an executable. 18843hardcode_action=$hardcode_action 18844 18845# ### END LIBTOOL CONFIG 18846 18847_LT_EOF 18848 18849 cat <<'_LT_EOF' >> "$cfgfile" 18850 18851# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18852 18853# func_munge_path_list VARIABLE PATH 18854# ----------------------------------- 18855# VARIABLE is name of variable containing _space_ separated list of 18856# directories to be munged by the contents of PATH, which is string 18857# having a format: 18858# "DIR[:DIR]:" 18859# string "DIR[ DIR]" will be prepended to VARIABLE 18860# ":DIR[:DIR]" 18861# string "DIR[ DIR]" will be appended to VARIABLE 18862# "DIRP[:DIRP]::[DIRA:]DIRA" 18863# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18864# "DIRA[ DIRA]" will be appended to VARIABLE 18865# "DIR[:DIR]" 18866# VARIABLE will be replaced by "DIR[ DIR]" 18867func_munge_path_list () 18868{ 18869 case x$2 in 18870 x) 18871 ;; 18872 *:) 18873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18874 ;; 18875 x:*) 18876 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18877 ;; 18878 *::*) 18879 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18880 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18881 ;; 18882 *) 18883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18884 ;; 18885 esac 18886} 18887 18888 18889# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18890func_cc_basename () 18891{ 18892 for cc_temp in $*""; do 18893 case $cc_temp in 18894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18896 \-*) ;; 18897 *) break;; 18898 esac 18899 done 18900 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18901} 18902 18903 18904# ### END FUNCTIONS SHARED WITH CONFIGURE 18905 18906_LT_EOF 18907 18908 case $host_os in 18909 aix3*) 18910 cat <<\_LT_EOF >> "$cfgfile" 18911# AIX sometimes has problems with the GCC collect2 program. For some 18912# reason, if we set the COLLECT_NAMES environment variable, the problems 18913# vanish in a puff of smoke. 18914if test set != "${COLLECT_NAMES+set}"; then 18915 COLLECT_NAMES= 18916 export COLLECT_NAMES 18917fi 18918_LT_EOF 18919 ;; 18920 esac 18921 18922 18923ltmain=$ac_aux_dir/ltmain.sh 18924 18925 18926 # We use sed instead of cat because bash on DJGPP gets confused if 18927 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18928 # text mode, it properly converts lines to CR/LF. This bash problem 18929 # is reportedly fixed, but why not run on old versions too? 18930 sed '$q' "$ltmain" >> "$cfgfile" \ 18931 || (rm -f "$cfgfile"; exit 1) 18932 18933 mv -f "$cfgfile" "$ofile" || 18934 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18935 chmod +x "$ofile" 18936 18937 ;; 18938 "zzip/_config.h":C) ac_prefix_conf_OUT=`echo zzip/_config.h` 18939ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 18940ac_prefix_conf_PKG=`echo zzip` 18941ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 18942ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 18943ac_prefix_conf_INP=`echo "config.h" | sed -e 's/ *//'` 18944if test ".$ac_prefix_conf_INP" = "."; then 18945 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 18946 case "$ac_file" in 18947 *.h) ac_prefix_conf_INP=$ac_file ;; 18948 *) 18949 esac 18950 test ".$ac_prefix_conf_INP" != "." && break 18951 done 18952fi 18953if test ".$ac_prefix_conf_INP" = "."; then 18954 case "$ac_prefix_conf_OUT" in 18955 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 18956 ;; 18957 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 18958 ;; 18959 *) ac_prefix_conf_INP=config.h 18960 ;; 18961 esac 18962fi 18963if test -z "$ac_prefix_conf_PKG" ; then 18964 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 18965else 18966 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 18967 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 18968 fi fi 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 18970$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 18971 if test -f $ac_prefix_conf_INP ; then 18972 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 18973 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 18974 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix 18975 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix 18976 echo "#endif/" >>conftest.prefix 18977 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix 18978 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix 18979 echo "#endif/" >> conftest.prefix 18980 # now executing _script on _DEF input to create _OUT output file 18981 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 18982 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 18983 echo ' ' >>$tmp/pconfig.h 18984 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 18985 18986 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 18987 echo ' ' >>$tmp/pconfig.h 18988 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 18989 echo "#endif" >>$tmp/pconfig.h 18990 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 18992$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 18993 else 18994 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 18995$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18996 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 18997 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 18998 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 18999$as_echo X"$ac_prefix_conf_OUT" | 19000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19001 s//\1/ 19002 q 19003 } 19004 /^X\(\/\/\)[^/].*/{ 19005 s//\1/ 19006 q 19007 } 19008 /^X\(\/\/\)$/{ 19009 s//\1/ 19010 q 19011 } 19012 /^X\(\/\).*/{ 19013 s//\1/ 19014 q 19015 } 19016 s/.*/./; q'` 19017 as_dir="$ac_dir"; as_fn_mkdir_p 19018 rm -f "$ac_prefix_conf_OUT" 19019 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 19020 fi 19021 cp conftest.prefix _configs.sed 19022 else 19023 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 19024 fi 19025 rm -f conftest.* 19026fi 19027 ;; 19028 "zzip/_msvc.h":C) ac_prefix_conf_OUT=`echo zzip/_msvc.h` 19029ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 19030ac_prefix_conf_PKG=`echo zzip` 19031ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 19032ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 19033ac_prefix_conf_INP=`echo "zzip/_msvc.in" | sed -e 's/ *//'` 19034if test ".$ac_prefix_conf_INP" = "."; then 19035 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 19036 case "$ac_file" in 19037 *.h) ac_prefix_conf_INP=$ac_file ;; 19038 *) 19039 esac 19040 test ".$ac_prefix_conf_INP" != "." && break 19041 done 19042fi 19043if test ".$ac_prefix_conf_INP" = "."; then 19044 case "$ac_prefix_conf_OUT" in 19045 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 19046 ;; 19047 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 19048 ;; 19049 *) ac_prefix_conf_INP=config.h 19050 ;; 19051 esac 19052fi 19053if test -z "$ac_prefix_conf_PKG" ; then 19054 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 19055else 19056 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 19057 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 19058 fi fi 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 19060$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 19061 if test -f $ac_prefix_conf_INP ; then 19062 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 19063 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 19064 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix 19065 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix 19066 echo "#endif/" >>conftest.prefix 19067 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix 19068 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix 19069 echo "#endif/" >> conftest.prefix 19070 # now executing _script on _DEF input to create _OUT output file 19071 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 19072 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 19073 echo ' ' >>$tmp/pconfig.h 19074 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 19075 19076 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 19077 echo ' ' >>$tmp/pconfig.h 19078 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 19079 echo "#endif" >>$tmp/pconfig.h 19080 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 19081 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 19082$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 19083 else 19084 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 19085$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19086 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 19087 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 19088 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 19089$as_echo X"$ac_prefix_conf_OUT" | 19090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19091 s//\1/ 19092 q 19093 } 19094 /^X\(\/\/\)[^/].*/{ 19095 s//\1/ 19096 q 19097 } 19098 /^X\(\/\/\)$/{ 19099 s//\1/ 19100 q 19101 } 19102 /^X\(\/\).*/{ 19103 s//\1/ 19104 q 19105 } 19106 s/.*/./; q'` 19107 as_dir="$ac_dir"; as_fn_mkdir_p 19108 rm -f "$ac_prefix_conf_OUT" 19109 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 19110 fi 19111 cp conftest.prefix _configs.sed 19112 else 19113 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 19114 fi 19115 rm -f conftest.* 19116fi 19117 ;; 19118 "$ax_create_pkgconfig_generate":C) 19119pkgconfig_generate="$ax_create_pkgconfig_generate" 19120if test ! -f "$pkgconfig_generate.in" 19121then generate="true" 19122elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null 19123then generate="true" 19124else generate="false"; 19125fi 19126if $generate ; then 19127{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5 19128$as_echo "$as_me: creating $pkgconfig_generate.in" >&6;} 19129cat > $pkgconfig_generate.in <<AXEOF 19130# generated by configure / remove this line to disable regeneration 19131prefix=@prefix@ 19132exec_prefix=@exec_prefix@ 19133bindir=@bindir@ 19134libdir=@libdir@ 19135datarootdir=@datarootdir@ 19136datadir=@datadir@ 19137sysconfdir=@sysconfdir@ 19138includedir=@includedir@ 19139package=@PACKAGE@ 19140suffix=@suffix@ 19141 19142Name: @PACKAGE_NAME@ 19143Description: @PACKAGE_DESCRIPTION@ 19144Version: @PACKAGE_VERSION@ 19145Requires: @PACKAGE_REQUIRES@ 19146Libs: -L\${libdir} @LDFLAGS@ @LIBS@ 19147Cflags: -I\${includedir} @CPPFLAGS@ 19148AXEOF 19149fi # DONE generate $pkgconfig_generate.in 19150{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5 19151$as_echo "$as_me: creating $pkgconfig_generate" >&6;} 19152cat >conftest.sed <<AXEOF 19153s|@prefix@|${pkgconfig_prefix}| 19154s|@exec_prefix@|${pkgconfig_execprefix}| 19155s|@bindir@|${pkgconfig_bindir}| 19156s|@libdir@|${pkgconfig_libdir}| 19157s|@datarootdir@|${pkgconfig_datarootdir}| 19158s|@datadir@|${pkgconfig_datadir}| 19159s|@sysconfdir@|${pkgconfig_sysconfdir}| 19160s|@includedir@|${pkgconfig_includedir}| 19161s|@suffix@|${pkgconfig_suffix}| 19162s|@PACKAGE@|${pkgconfig_package}| 19163s|@PACKAGE_NAME@|${pkgconfig_libname}| 19164s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 19165s|@PACKAGE_VERSION@|${pkgconfig_version}| 19166s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 19167s|@LIBS@|${pkgconfig_libs}| 19168s|@LDFLAGS@|${pkgconfig_ldflags}| 19169s|@CPPFLAGS@|${pkgconfig_cppflags}| 19170AXEOF 19171sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate 19172if test ! -s $pkgconfig_generate ; then 19173 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5 19174fi ; rm conftest.sed # DONE generate $pkgconfig_generate 19175pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'` 19176{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 19177$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 19178cat >conftest.sed <<AXEOF 19179s|@prefix@|${pkgconfig_prefix}| 19180s|@exec_prefix@|${pkgconfig_execprefix}| 19181s|@bindir@|${pkgconfig_bindir}| 19182s|@libdir@|${pkgconfig_src_libdir}| 19183s|@datarootdir@|${pkgconfig_datarootdir}| 19184s|@datadir@|${pkgconfig_datadir}| 19185s|@sysconfdir@|${pkgconfig_sysconfdir}| 19186s|@includedir@|${pkgconfig_src_headers}| 19187s|@suffix@|${pkgconfig_suffix}| 19188s|@PACKAGE@|${pkgconfig_package}| 19189s|@PACKAGE_NAME@|${pkgconfig_libname}| 19190s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 19191s|@PACKAGE_VERSION@|${pkgconfig_version}| 19192s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 19193s|@LIBS@|${pkgconfig_libs}| 19194s|@LDFLAGS@|${pkgconfig_ldflags}| 19195s|@CPPFLAGS@|${pkgconfig_cppflags}| 19196AXEOF 19197sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 19198if test ! -s $pkgconfig_uninstalled ; then 19199 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 19200fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 19201 pkgconfig_requires_add=`echo ${pkgconfig_requires}` 19202if test ".$pkgconfig_requires_add" != "." ; then 19203 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add" 19204 else pkgconfig_requires_add=":" ; fi 19205pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'` 19206{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 19207$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 19208cat >conftest.sed <<AXEOF 19209s|@prefix@|\"${pkgconfig_prefix}\"| 19210s|@exec_prefix@|\"${pkgconfig_execprefix}\"| 19211s|@bindir@|\"${pkgconfig_bindir}\"| 19212s|@libdir@|\"${pkgconfig_src_libdir}\"| 19213s|@datarootdir@|\"${pkgconfig_datarootdir}\"| 19214s|@datadir@|\"${pkgconfig_datadir}\"| 19215s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"| 19216s|@includedir@|\"${pkgconfig_src_headers}\"| 19217s|@suffix@|\"${pkgconfig_suffix}\"| 19218s|@PACKAGE@|\"${pkgconfig_package}\"| 19219s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"| 19220s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"| 19221s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"| 19222s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"| 19223s|@LIBS@|\"${pkgconfig_libs}\"| 19224s|@LDFLAGS@|\"${pkgconfig_ldflags}\"| 19225s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"| 19226s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo > 19227s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of > 19228s>Version: *>\\;\\; --modversion|--version) echo > 19229s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add> 19230s>Libs: *>\\;\\; --libs) echo > 19231s>Cflags: *>\\;\\; --cflags) echo > 19232/--libs)/a\\ 19233 $pkgconfig_requires_add 19234/--cflags)/a\\ 19235 $pkgconfig_requires_add\\ 19236;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\ 19237;; --uninstalled) exit 0 \\ 19238;; *) ;; esac done 19239AXEOF 19240sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 19241if test ! -s $pkgconfig_uninstalled ; then 19242 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 19243fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 19244 ;; 19245 19246 esac 19247done # for ac_tag 19248 19249 19250as_fn_exit 0 19251_ACEOF 19252ac_clean_files=$ac_clean_files_save 19253 19254test $ac_write_fail = 0 || 19255 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19256 19257 19258# configure is writing to config.log, and then calls config.status. 19259# config.status does its own redirection, appending to config.log. 19260# Unfortunately, on DOS this fails, as config.log is still kept open 19261# by configure, so config.status won't be able to write to it; its 19262# output is simply discarded. So we exec the FD to /dev/null, 19263# effectively closing config.log, so it can be properly (re)opened and 19264# appended to by config.status. When coming back to configure, we 19265# need to make the FD available again. 19266if test "$no_create" != yes; then 19267 ac_cs_success=: 19268 ac_config_status_args= 19269 test "$silent" = yes && 19270 ac_config_status_args="$ac_config_status_args --quiet" 19271 exec 5>/dev/null 19272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19273 exec 5>>config.log 19274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19275 # would make configure fail if this is the last instruction. 19276 $ac_cs_success || as_fn_exit 1 19277fi 19278if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19280$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19281fi 19282 19283# libtool-1.4 specific, on zsh target the final requoting does one too much 19284case "$host_os" in 19285 darwin*) 19286 if grep "1.92" libtool >/dev/null ; then 19287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool on .so-sharedlib creation (zsh overquoting)" >&5 19288$as_echo "patching libtool on .so-sharedlib creation (zsh overquoting)" >&6; } 19289 test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool) 19290 sed -e '/archive_cmds=/s:[\\][\\][\\]*":\\":g' libtool >libtool.new 19291 (test -s libtool.new || rm libtool.new) 2>/dev/null 19292 test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !! 19293 test -f libtool || mv libtool.old libtool 19294 fi 19295 ;; 19296esac 19297 19298# patch libtool to fix sys_lib_search_path (e.g. crosscompiling a win32 dll) 19299if test "_$PATH_SEPARATOR" = "_:" ; then 19300 if grep "^sys_lib_search_path_spec.*:" libtool >/dev/null ; then 19301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool to fix sys_lib_search_path_spec" >&5 19302$as_echo "patching libtool to fix sys_lib_search_path_spec" >&6; } 19303 test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool) 19304 sed -e "/^sys_lib_search_path_spec/s/:/ /g" libtool >libtool.new 19305 (test -s libtool.new || rm libtool.new) 2>/dev/null 19306 test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !! 19307 test -f libtool || mv libtool.old libtool 19308 fi 19309fi 19310 19311# patch libtool to add HOST_CC sometimes needed in crosscompiling a win32 dll 19312if grep "HOST_CC" libtool >/dev/null; then 19313 if test "$build" != "$host" ; then 19314 if test "_$HOST_CC" = "_" ; then 19315 HOST_CC="false" 19316 for i in `echo $PATH | sed 's,:, ,g'` ; do 19317 test -x $i/cc && HOST_CC=$i/cc 19318 done 19319 fi 19320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: patching libtool to add HOST_CC=$HOST_CC" >&5 19321$as_echo "patching libtool to add HOST_CC=$HOST_CC" >&6; } 19322 test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool) 19323 sed -e "/BEGIN.*LIBTOOL.*CONFIG/a\\ 19324HOST_CC=$HOST_CC" libtool >libtool.new 19325 (test -s libtool.new || rm libtool.new) 2>/dev/null 19326 test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !! 19327 test -f libtool || mv libtool.old libtool 19328 fi 19329fi 19330 19331# --------------------------------------------------------------- 19332echo '-----' $PACKAGE $VERSION $prefix 19333$SHELL libtool --features || true 19334echo "CPPFLAGS=$CPPFLAGS" 19335echo "CFLAGS=$CFLAGS" 19336test "$enable_mmap" != "no" && echo "enable mmap ($enable_mmap)" 19337test "$enable_mmap" = "no" && echo "disable mmap ($enable_mmap)" 19338test "$with_lowstk" != "no" && echo "with lowstk ($with_lowstk)" 19339test "$with_lowstk" = "no" && echo "without lowstk ($with_lowstk)" 19340test "$with_debug" != "no" && echo "with debug ($with_debug)" 19341test "$with_debug" = "no" && echo "without debug ($with_debug)" 19342# test -f ./zziplib.spec && echo warning - do not build in the source dirs 19343echo '# make && make check && make install' 19344