1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for EXIF library 0.6.23. 4# 5# Report bugs to <libexif-devel@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: libexif-devel@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='EXIF library' 592PACKAGE_TARNAME='libexif' 593PACKAGE_VERSION='0.6.23' 594PACKAGE_STRING='EXIF library 0.6.23' 595PACKAGE_BUGREPORT='libexif-devel@lists.sourceforge.net' 596PACKAGE_URL='https://libexif.github.io/' 597 598ac_unique_file="libexif/exif-data.h" 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 635gt_needs= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640AM_LDFLAGS 641AM_CPPFLAGS 642POSUB 643LTLIBINTL 644LIBINTL 645INTLLIBS 646LTLIBICONV 647LIBICONV 648INTL_MACOSX_LIBS 649GETTEXT_PACKAGE 650XGETTEXT_EXTRA_OPTIONS 651MSGMERGE 652XGETTEXT_015 653XGETTEXT 654GMSGFMT_015 655MSGFMT_015 656GMSGFMT 657MSGFMT 658GETTEXT_MACRO_VERSION 659USE_NLS 660ENABLE_INTERNAL_DOCS_FALSE 661ENABLE_INTERNAL_DOCS_TRUE 662HTML_APIDOC_INTERNALS_DIR 663DOXYGEN_OUTPUT_DIR 664HTML_APIDOC_DIR 665HAVE_DOT 666HAVE_DOT_FALSE 667HAVE_DOT_TRUE 668HAVE_DOXYGEN_FALSE 669HAVE_DOXYGEN_TRUE 670DOXYGEN 671DOT 672BUILD_DOCS_FALSE 673BUILD_DOCS_TRUE 674USE_FAILMALLOC_FALSE 675USE_FAILMALLOC_TRUE 676FAILMALLOC_PATH 677SHIP_BINARIES_FALSE 678SHIP_BINARIES_TRUE 679HAVE_DIFF_U_FALSE 680HAVE_DIFF_U_TRUE 681DIFF_U 682HAVE_DIFF_FALSE 683HAVE_DIFF_TRUE 684DIFF 685CPP 686LT_SYS_LIBRARY_PATH 687OTOOL64 688OTOOL 689LIPO 690NMEDIT 691DSYMUTIL 692MANIFEST_TOOL 693RANLIB 694LN_S 695NM 696ac_ct_DUMPBIN 697DUMPBIN 698LD 699FGREP 700EGREP 701GREP 702SED 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711LIBTOOL 712OBJDUMP 713DLLTOOL 714AS 715ac_ct_AR 716AR 717am__fastdepCC_FALSE 718am__fastdepCC_TRUE 719CCDEPMODE 720am__nodep 721AMDEPBACKSLASH 722AMDEP_FALSE 723AMDEP_TRUE 724am__include 725DEPDIR 726OBJEXT 727EXEEXT 728ac_ct_CC 729CPPFLAGS 730LDFLAGS 731CFLAGS 732CC 733LIBEXIF_VERSION_INFO 734LIBEXIF_CURRENT_MIN 735LIBEXIF_CURRENT 736LIBEXIF_REVISION 737LIBEXIF_AGE 738MAINT 739MAINTAINER_MODE_FALSE 740MAINTAINER_MODE_TRUE 741AM_BACKSLASH 742AM_DEFAULT_VERBOSITY 743AM_DEFAULT_V 744AM_V 745am__untar 746am__tar 747AMTAR 748am__leading_dot 749SET_MAKE 750AWK 751mkdir_p 752MKDIR_P 753INSTALL_STRIP_PROGRAM 754STRIP 755install_sh 756MAKEINFO 757AUTOHEADER 758AUTOMAKE 759AUTOCONF 760ACLOCAL 761VERSION 762PACKAGE 763CYGPATH_W 764am__isrc 765INSTALL_DATA 766INSTALL_SCRIPT 767INSTALL_PROGRAM 768target_alias 769host_alias 770build_alias 771LIBS 772ECHO_T 773ECHO_N 774ECHO_C 775DEFS 776mandir 777localedir 778libdir 779psdir 780pdfdir 781dvidir 782htmldir 783infodir 784docdir 785oldincludedir 786includedir 787localstatedir 788sharedstatedir 789sysconfdir 790datadir 791datarootdir 792libexecdir 793sbindir 794bindir 795program_transform_name 796prefix 797exec_prefix 798PACKAGE_URL 799PACKAGE_BUGREPORT 800PACKAGE_STRING 801PACKAGE_VERSION 802PACKAGE_TARNAME 803PACKAGE_NAME 804PATH_SEPARATOR 805SHELL 806am__quote' 807ac_subst_files='' 808ac_user_opts=' 809enable_option_checking 810enable_silent_rules 811enable_maintainer_mode 812enable_dependency_tracking 813enable_shared 814enable_static 815with_pic 816enable_fast_install 817with_aix_soname 818with_gnu_ld 819with_sysroot 820enable_libtool_lock 821enable_largefile 822enable_ship_binaries 823with_failmalloc 824enable_docs 825with_doc_dir 826enable_internal_docs 827enable_nls 828enable_rpath 829with_libiconv_prefix 830with_libintl_prefix 831' 832 ac_precious_vars='build_alias 833host_alias 834target_alias 835CC 836CFLAGS 837LDFLAGS 838LIBS 839CPPFLAGS 840LT_SYS_LIBRARY_PATH 841CPP 842DIFF' 843 844 845# Initialize some variables set by options. 846ac_init_help= 847ac_init_version=false 848ac_unrecognized_opts= 849ac_unrecognized_sep= 850# The variables have the same names as the options, with 851# dashes changed to underlines. 852cache_file=/dev/null 853exec_prefix=NONE 854no_create= 855no_recursion= 856prefix=NONE 857program_prefix=NONE 858program_suffix=NONE 859program_transform_name=s,x,x, 860silent= 861site= 862srcdir= 863verbose= 864x_includes=NONE 865x_libraries=NONE 866 867# Installation directory options. 868# These are left unexpanded so users can "make install exec_prefix=/foo" 869# and all the variables that are supposed to be based on exec_prefix 870# by default will actually change. 871# Use braces instead of parens because sh, perl, etc. also accept them. 872# (The list follows the same order as the GNU Coding Standards.) 873bindir='${exec_prefix}/bin' 874sbindir='${exec_prefix}/sbin' 875libexecdir='${exec_prefix}/libexec' 876datarootdir='${prefix}/share' 877datadir='${datarootdir}' 878sysconfdir='${prefix}/etc' 879sharedstatedir='${prefix}/com' 880localstatedir='${prefix}/var' 881includedir='${prefix}/include' 882oldincludedir='/usr/include' 883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 884infodir='${datarootdir}/info' 885htmldir='${docdir}' 886dvidir='${docdir}' 887pdfdir='${docdir}' 888psdir='${docdir}' 889libdir='${exec_prefix}/lib' 890localedir='${datarootdir}/locale' 891mandir='${datarootdir}/man' 892 893ac_prev= 894ac_dashdash= 895for ac_option 896do 897 # If the previous option needs an argument, assign it. 898 if test -n "$ac_prev"; then 899 eval $ac_prev=\$ac_option 900 ac_prev= 901 continue 902 fi 903 904 case $ac_option in 905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 906 *=) ac_optarg= ;; 907 *) ac_optarg=yes ;; 908 esac 909 910 # Accept the important Cygnus configure options, so we can diagnose typos. 911 912 case $ac_dashdash$ac_option in 913 --) 914 ac_dashdash=yes ;; 915 916 -bindir | --bindir | --bindi | --bind | --bin | --bi) 917 ac_prev=bindir ;; 918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 919 bindir=$ac_optarg ;; 920 921 -build | --build | --buil | --bui | --bu) 922 ac_prev=build_alias ;; 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 924 build_alias=$ac_optarg ;; 925 926 -cache-file | --cache-file | --cache-fil | --cache-fi \ 927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 928 ac_prev=cache_file ;; 929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 931 cache_file=$ac_optarg ;; 932 933 --config-cache | -C) 934 cache_file=config.cache ;; 935 936 -datadir | --datadir | --datadi | --datad) 937 ac_prev=datadir ;; 938 -datadir=* | --datadir=* | --datadi=* | --datad=*) 939 datadir=$ac_optarg ;; 940 941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 942 | --dataroo | --dataro | --datar) 943 ac_prev=datarootdir ;; 944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 946 datarootdir=$ac_optarg ;; 947 948 -disable-* | --disable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error $? "invalid feature name: $ac_useropt" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957"enable_$ac_useropt" 958"*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=no ;; 963 964 -docdir | --docdir | --docdi | --doc | --do) 965 ac_prev=docdir ;; 966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 967 docdir=$ac_optarg ;; 968 969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 970 ac_prev=dvidir ;; 971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 972 dvidir=$ac_optarg ;; 973 974 -enable-* | --enable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error $? "invalid feature name: $ac_useropt" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983"enable_$ac_useropt" 984"*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=\$ac_optarg ;; 989 990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 992 | --exec | --exe | --ex) 993 ac_prev=exec_prefix ;; 994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 996 | --exec=* | --exe=* | --ex=*) 997 exec_prefix=$ac_optarg ;; 998 999 -gas | --gas | --ga | --g) 1000 # Obsolete; use --with-gas. 1001 with_gas=yes ;; 1002 1003 -help | --help | --hel | --he | -h) 1004 ac_init_help=long ;; 1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1006 ac_init_help=recursive ;; 1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1008 ac_init_help=short ;; 1009 1010 -host | --host | --hos | --ho) 1011 ac_prev=host_alias ;; 1012 -host=* | --host=* | --hos=* | --ho=*) 1013 host_alias=$ac_optarg ;; 1014 1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1016 ac_prev=htmldir ;; 1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1018 | --ht=*) 1019 htmldir=$ac_optarg ;; 1020 1021 -includedir | --includedir | --includedi | --included | --include \ 1022 | --includ | --inclu | --incl | --inc) 1023 ac_prev=includedir ;; 1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1025 | --includ=* | --inclu=* | --incl=* | --inc=*) 1026 includedir=$ac_optarg ;; 1027 1028 -infodir | --infodir | --infodi | --infod | --info | --inf) 1029 ac_prev=infodir ;; 1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1031 infodir=$ac_optarg ;; 1032 1033 -libdir | --libdir | --libdi | --libd) 1034 ac_prev=libdir ;; 1035 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1036 libdir=$ac_optarg ;; 1037 1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1039 | --libexe | --libex | --libe) 1040 ac_prev=libexecdir ;; 1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1042 | --libexe=* | --libex=* | --libe=*) 1043 libexecdir=$ac_optarg ;; 1044 1045 -localedir | --localedir | --localedi | --localed | --locale) 1046 ac_prev=localedir ;; 1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1048 localedir=$ac_optarg ;; 1049 1050 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1051 | --localstate | --localstat | --localsta | --localst | --locals) 1052 ac_prev=localstatedir ;; 1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1055 localstatedir=$ac_optarg ;; 1056 1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1058 ac_prev=mandir ;; 1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1060 mandir=$ac_optarg ;; 1061 1062 -nfp | --nfp | --nf) 1063 # Obsolete; use --without-fp. 1064 with_fp=no ;; 1065 1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1067 | --no-cr | --no-c | -n) 1068 no_create=yes ;; 1069 1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1072 no_recursion=yes ;; 1073 1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1076 | --oldin | --oldi | --old | --ol | --o) 1077 ac_prev=oldincludedir ;; 1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1081 oldincludedir=$ac_optarg ;; 1082 1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1084 ac_prev=prefix ;; 1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1086 prefix=$ac_optarg ;; 1087 1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1089 | --program-pre | --program-pr | --program-p) 1090 ac_prev=program_prefix ;; 1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1093 program_prefix=$ac_optarg ;; 1094 1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1096 | --program-suf | --program-su | --program-s) 1097 ac_prev=program_suffix ;; 1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1100 program_suffix=$ac_optarg ;; 1101 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 ac_prev=program_transform_name ;; 1110 -program-transform-name=* | --program-transform-name=* \ 1111 | --program-transform-nam=* | --program-transform-na=* \ 1112 | --program-transform-n=* | --program-transform-=* \ 1113 | --program-transform=* | --program-transfor=* \ 1114 | --program-transfo=* | --program-transf=* \ 1115 | --program-trans=* | --program-tran=* \ 1116 | --progr-tra=* | --program-tr=* | --program-t=*) 1117 program_transform_name=$ac_optarg ;; 1118 1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1120 ac_prev=pdfdir ;; 1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1122 pdfdir=$ac_optarg ;; 1123 1124 -psdir | --psdir | --psdi | --psd | --ps) 1125 ac_prev=psdir ;; 1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1127 psdir=$ac_optarg ;; 1128 1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1130 | -silent | --silent | --silen | --sile | --sil) 1131 silent=yes ;; 1132 1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1134 ac_prev=sbindir ;; 1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1136 | --sbi=* | --sb=*) 1137 sbindir=$ac_optarg ;; 1138 1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1141 | --sharedst | --shareds | --shared | --share | --shar \ 1142 | --sha | --sh) 1143 ac_prev=sharedstatedir ;; 1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1147 | --sha=* | --sh=*) 1148 sharedstatedir=$ac_optarg ;; 1149 1150 -site | --site | --sit) 1151 ac_prev=site ;; 1152 -site=* | --site=* | --sit=*) 1153 site=$ac_optarg ;; 1154 1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1156 ac_prev=srcdir ;; 1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1158 srcdir=$ac_optarg ;; 1159 1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1161 | --syscon | --sysco | --sysc | --sys | --sy) 1162 ac_prev=sysconfdir ;; 1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1165 sysconfdir=$ac_optarg ;; 1166 1167 -target | --target | --targe | --targ | --tar | --ta | --t) 1168 ac_prev=target_alias ;; 1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1170 target_alias=$ac_optarg ;; 1171 1172 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1173 verbose=yes ;; 1174 1175 -version | --version | --versio | --versi | --vers | -V) 1176 ac_init_version=: ;; 1177 1178 -with-* | --with-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error $? "invalid package name: $ac_useropt" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187"with_$ac_useropt" 1188"*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=\$ac_optarg ;; 1193 1194 -without-* | --without-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid package name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=no ;; 1209 1210 --x) 1211 # Obsolete; use --with-x. 1212 with_x=yes ;; 1213 1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1215 | --x-incl | --x-inc | --x-in | --x-i) 1216 ac_prev=x_includes ;; 1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1219 x_includes=$ac_optarg ;; 1220 1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1223 ac_prev=x_libraries ;; 1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1226 x_libraries=$ac_optarg ;; 1227 1228 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1229Try \`$0 --help' for more information" 1230 ;; 1231 1232 *=*) 1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1234 # Reject names that are not valid shell variable names. 1235 case $ac_envvar in #( 1236 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1238 esac 1239 eval $ac_envvar=\$ac_optarg 1240 export $ac_envvar ;; 1241 1242 *) 1243 # FIXME: should be removed in autoconf 3.0. 1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1248 ;; 1249 1250 esac 1251done 1252 1253if test -n "$ac_prev"; then 1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1255 as_fn_error $? "missing argument to $ac_option" 1256fi 1257 1258if test -n "$ac_unrecognized_opts"; then 1259 case $enable_option_checking in 1260 no) ;; 1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1263 esac 1264fi 1265 1266# Check all directory arguments for consistency. 1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1268 datadir sysconfdir sharedstatedir localstatedir includedir \ 1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1270 libdir localedir mandir 1271do 1272 eval ac_val=\$$ac_var 1273 # Remove trailing slashes. 1274 case $ac_val in 1275 */ ) 1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1277 eval $ac_var=\$ac_val;; 1278 esac 1279 # Be sure to have absolute directory names. 1280 case $ac_val in 1281 [\\/$]* | ?:[\\/]* ) continue;; 1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1283 esac 1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1285done 1286 1287# There might be people who depend on the old broken behavior: `$host' 1288# used to hold the argument of --host etc. 1289# FIXME: To remove some day. 1290build=$build_alias 1291host=$host_alias 1292target=$target_alias 1293 1294# FIXME: To remove some day. 1295if test "x$host_alias" != x; then 1296 if test "x$build_alias" = x; then 1297 cross_compiling=maybe 1298 elif test "x$build_alias" != "x$host_alias"; then 1299 cross_compiling=yes 1300 fi 1301fi 1302 1303ac_tool_prefix= 1304test -n "$host_alias" && ac_tool_prefix=$host_alias- 1305 1306test "$silent" = yes && exec 6>/dev/null 1307 1308 1309ac_pwd=`pwd` && test -n "$ac_pwd" && 1310ac_ls_di=`ls -di .` && 1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1312 as_fn_error $? "working directory cannot be determined" 1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1314 as_fn_error $? "pwd does not report name of working directory" 1315 1316 1317# Find the source files, if location was not specified. 1318if test -z "$srcdir"; then 1319 ac_srcdir_defaulted=yes 1320 # Try the directory containing this script, then the parent directory. 1321 ac_confdir=`$as_dirname -- "$as_myself" || 1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1323 X"$as_myself" : 'X\(//\)[^/]' \| \ 1324 X"$as_myself" : 'X\(//\)$' \| \ 1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1326$as_echo X"$as_myself" | 1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\/\)[^/].*/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)$/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\).*/{ 1340 s//\1/ 1341 q 1342 } 1343 s/.*/./; q'` 1344 srcdir=$ac_confdir 1345 if test ! -r "$srcdir/$ac_unique_file"; then 1346 srcdir=.. 1347 fi 1348else 1349 ac_srcdir_defaulted=no 1350fi 1351if test ! -r "$srcdir/$ac_unique_file"; then 1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1354fi 1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1356ac_abs_confdir=`( 1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1358 pwd)` 1359# When building in place, set srcdir=. 1360if test "$ac_abs_confdir" = "$ac_pwd"; then 1361 srcdir=. 1362fi 1363# Remove unnecessary trailing slashes from srcdir. 1364# Double slashes in file names in object file debugging info 1365# mess up M-x gdb in Emacs. 1366case $srcdir in 1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1368esac 1369for ac_var in $ac_precious_vars; do 1370 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_env_${ac_var}_value=\$${ac_var} 1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1373 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1374done 1375 1376# 1377# Report the --help message. 1378# 1379if test "$ac_init_help" = "long"; then 1380 # Omit some internal or obsolete options to make the list less imposing. 1381 # This message is too long to be a string in the A/UX 3.1 sh. 1382 cat <<_ACEOF 1383\`configure' configures EXIF library 0.6.23 to adapt to many kinds of systems. 1384 1385Usage: $0 [OPTION]... [VAR=VALUE]... 1386 1387To assign environment variables (e.g., CC, CFLAGS...), specify them as 1388VAR=VALUE. See below for descriptions of some of the useful variables. 1389 1390Defaults for the options are specified in brackets. 1391 1392Configuration: 1393 -h, --help display this help and exit 1394 --help=short display options specific to this package 1395 --help=recursive display the short help of all the included packages 1396 -V, --version display version information and exit 1397 -q, --quiet, --silent do not print \`checking ...' messages 1398 --cache-file=FILE cache test results in FILE [disabled] 1399 -C, --config-cache alias for \`--cache-file=config.cache' 1400 -n, --no-create do not create output files 1401 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1402 1403Installation directories: 1404 --prefix=PREFIX install architecture-independent files in PREFIX 1405 [$ac_default_prefix] 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1407 [PREFIX] 1408 1409By default, \`make install' will install all the files in 1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1411an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1412for instance \`--prefix=\$HOME'. 1413 1414For better control, use the options below. 1415 1416Fine tuning of the installation directories: 1417 --bindir=DIR user executables [EPREFIX/bin] 1418 --sbindir=DIR system admin executables [EPREFIX/sbin] 1419 --libexecdir=DIR program executables [EPREFIX/libexec] 1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1423 --libdir=DIR object code libraries [EPREFIX/lib] 1424 --includedir=DIR C header files [PREFIX/include] 1425 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1428 --infodir=DIR info documentation [DATAROOTDIR/info] 1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1430 --mandir=DIR man documentation [DATAROOTDIR/man] 1431 --docdir=DIR documentation root [DATAROOTDIR/doc/libexif] 1432 --htmldir=DIR html documentation [DOCDIR] 1433 --dvidir=DIR dvi documentation [DOCDIR] 1434 --pdfdir=DIR pdf documentation [DOCDIR] 1435 --psdir=DIR ps documentation [DOCDIR] 1436_ACEOF 1437 1438 cat <<\_ACEOF 1439 1440Program names: 1441 --program-prefix=PREFIX prepend PREFIX to installed program names 1442 --program-suffix=SUFFIX append SUFFIX to installed program names 1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1444 1445System types: 1446 --build=BUILD configure for building on BUILD [guessed] 1447 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1448_ACEOF 1449fi 1450 1451if test -n "$ac_init_help"; then 1452 case $ac_init_help in 1453 short | recursive ) echo "Configuration of EXIF library 0.6.23:";; 1454 esac 1455 cat <<\_ACEOF 1456 1457Optional Features: 1458 --disable-option-checking ignore unrecognized --enable/--with options 1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1461 --enable-silent-rules less verbose build output (undo: "make V=1") 1462 --disable-silent-rules verbose build output (undo: "make V=0") 1463 --enable-maintainer-mode 1464 enable make rules and dependencies not useful (and 1465 sometimes confusing) to the casual installer 1466 --enable-dependency-tracking 1467 do not reject slow dependency extractors 1468 --disable-dependency-tracking 1469 speeds up one-time build 1470 --enable-shared[=PKGS] build shared libraries [default=yes] 1471 --enable-static[=PKGS] build static libraries [default=yes] 1472 --enable-fast-install[=PKGS] 1473 optimize for fast installation [default=yes] 1474 --disable-libtool-lock avoid locking (might break parallel builds) 1475 --disable-largefile omit support for large files 1476 --enable-ship-binaries Whether to ship binaries in the tarball [default=no] 1477 --disable-docs whether to create any documentation 1478 --enable-internal-docs Build internal code docs if doxygen available 1479 --disable-nls do not use Native Language Support 1480 --disable-rpath do not hardcode runtime library paths 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1486 both] 1487 --with-aix-soname=aix|svr4|both 1488 shared library versioning (aka "SONAME") variant to 1489 provide on AIX, [default=aix]. 1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1492 compiler's sysroot if not specified). 1493 --with-failmalloc=PATH use Failmalloc for tests 1494 --with-doc-dir=PATH Where to install docs [default=autodetect] 1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1496 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1497 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1498 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1499 --without-libintl-prefix don't search for libintl in includedir and libdir 1500 1501Some influential environment variables: 1502 CC C compiler command 1503 CFLAGS C compiler flags 1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1505 nonstandard directory <lib dir> 1506 LIBS libraries to pass to the linker, e.g. -l<library> 1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1508 you have headers in a nonstandard directory <include dir> 1509 LT_SYS_LIBRARY_PATH 1510 User-defined run-time library search path. 1511 CPP C preprocessor 1512 DIFF path to diff utility (default: no) 1513 1514Use these variables to override the choices made by `configure' or to help 1515it to find libraries and programs with nonstandard names/locations. 1516 1517Report bugs to <libexif-devel@lists.sourceforge.net>. 1518EXIF library home page: <https://libexif.github.io/>. 1519_ACEOF 1520ac_status=$? 1521fi 1522 1523if test "$ac_init_help" = "recursive"; then 1524 # If there are subdirs, report their specific --help. 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1526 test -d "$ac_dir" || 1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1528 continue 1529 ac_builddir=. 1530 1531case "$ac_dir" in 1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1533*) 1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1535 # A ".." for each directory in $ac_dir_suffix. 1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1537 case $ac_top_builddir_sub in 1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1540 esac ;; 1541esac 1542ac_abs_top_builddir=$ac_pwd 1543ac_abs_builddir=$ac_pwd$ac_dir_suffix 1544# for backward compatibility: 1545ac_top_builddir=$ac_top_build_prefix 1546 1547case $srcdir in 1548 .) # We are building in place. 1549 ac_srcdir=. 1550 ac_top_srcdir=$ac_top_builddir_sub 1551 ac_abs_top_srcdir=$ac_pwd ;; 1552 [\\/]* | ?:[\\/]* ) # Absolute name. 1553 ac_srcdir=$srcdir$ac_dir_suffix; 1554 ac_top_srcdir=$srcdir 1555 ac_abs_top_srcdir=$srcdir ;; 1556 *) # Relative name. 1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1558 ac_top_srcdir=$ac_top_build_prefix$srcdir 1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1560esac 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1562 1563 cd "$ac_dir" || { ac_status=$?; continue; } 1564 # Check for guested configure. 1565 if test -f "$ac_srcdir/configure.gnu"; then 1566 echo && 1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1568 elif test -f "$ac_srcdir/configure"; then 1569 echo && 1570 $SHELL "$ac_srcdir/configure" --help=recursive 1571 else 1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1573 fi || ac_status=$? 1574 cd "$ac_pwd" || { ac_status=$?; break; } 1575 done 1576fi 1577 1578test -n "$ac_init_help" && exit $ac_status 1579if $ac_init_version; then 1580 cat <<\_ACEOF 1581EXIF library configure 0.6.23 1582generated by GNU Autoconf 2.69 1583 1584Copyright (C) 2012 Free Software Foundation, Inc. 1585This configure script is free software; the Free Software Foundation 1586gives unlimited permission to copy, distribute and modify it. 1587_ACEOF 1588 exit 1589fi 1590 1591## ------------------------ ## 1592## Autoconf initialization. ## 1593## ------------------------ ## 1594 1595# ac_fn_c_try_compile LINENO 1596# -------------------------- 1597# Try to compile conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_compile () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext 1602 if { { ac_try="$ac_compile" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_compile") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest.$ac_objext; then : 1621 ac_retval=0 1622else 1623 $as_echo "$as_me: failed program was:" >&5 1624sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 1627fi 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631} # ac_fn_c_try_compile 1632 1633# ac_fn_c_try_link LINENO 1634# ----------------------- 1635# Try to link conftest.$ac_ext, and return whether this succeeded. 1636ac_fn_c_try_link () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 rm -f conftest.$ac_objext conftest$ac_exeext 1640 if { { ac_try="$ac_link" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_link") 2>conftest.err 1648 ac_status=$? 1649 if test -s conftest.err; then 1650 grep -v '^ *+' conftest.err >conftest.er1 1651 cat conftest.er1 >&5 1652 mv -f conftest.er1 conftest.err 1653 fi 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { 1656 test -z "$ac_c_werror_flag" || 1657 test ! -s conftest.err 1658 } && test -s conftest$ac_exeext && { 1659 test "$cross_compiling" = yes || 1660 test -x conftest$ac_exeext 1661 }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1671 # interfere with the next link command; also delete a directory that is 1672 # left behind by Apple's compiler. We do this before executing the actions. 1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_link 1678 1679# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1680# ------------------------------------------------------- 1681# Tests whether HEADER exists and can be compiled using the include files in 1682# INCLUDES, setting the cache variable VAR accordingly. 1683ac_fn_c_check_header_compile () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687$as_echo_n "checking for $2... " >&6; } 1688if eval \${$3+:} false; then : 1689 $as_echo_n "(cached) " >&6 1690else 1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692/* end confdefs.h. */ 1693$4 1694#include <$2> 1695_ACEOF 1696if ac_fn_c_try_compile "$LINENO"; then : 1697 eval "$3=yes" 1698else 1699 eval "$3=no" 1700fi 1701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1702fi 1703eval ac_res=\$$3 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1705$as_echo "$ac_res" >&6; } 1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1707 1708} # ac_fn_c_check_header_compile 1709 1710# ac_fn_c_try_cpp LINENO 1711# ---------------------- 1712# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1713ac_fn_c_try_cpp () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_cpp conftest.$ac_ext" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } > conftest.i && { 1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 }; then : 1735 ac_retval=0 1736else 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 1741fi 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_cpp 1746 1747# ac_fn_c_try_run LINENO 1748# ---------------------- 1749# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1750# that executables *can* be run. 1751ac_fn_c_try_run () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 if { { ac_try="$ac_link" 1755case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_link") 2>&5 1762 ac_status=$? 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1765 { { case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_try") 2>&5 1772 ac_status=$? 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; }; }; then : 1775 ac_retval=0 1776else 1777 $as_echo "$as_me: program exited with status $ac_status" >&5 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=$ac_status 1782fi 1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_run 1788 1789# ac_fn_c_check_func LINENO FUNC VAR 1790# ---------------------------------- 1791# Tests whether FUNC exists, setting the cache variable VAR accordingly 1792ac_fn_c_check_func () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796$as_echo_n "checking for $2... " >&6; } 1797if eval \${$3+:} false; then : 1798 $as_echo_n "(cached) " >&6 1799else 1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1804#define $2 innocuous_$2 1805 1806/* System header to define __stub macros and hopefully few prototypes, 1807 which can conflict with char $2 (); below. 1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1809 <limits.h> exists even on freestanding compilers. */ 1810 1811#ifdef __STDC__ 1812# include <limits.h> 1813#else 1814# include <assert.h> 1815#endif 1816 1817#undef $2 1818 1819/* Override any GCC internal prototype to avoid an error. 1820 Use char because int might match the return type of a GCC 1821 builtin and then its argument prototype would still apply. */ 1822#ifdef __cplusplus 1823extern "C" 1824#endif 1825char $2 (); 1826/* The GNU C library defines this for functions which it implements 1827 to always fail with ENOSYS. Some functions are actually named 1828 something starting with __ and the normal name is an alias. */ 1829#if defined __stub_$2 || defined __stub___$2 1830choke me 1831#endif 1832 1833int 1834main () 1835{ 1836return $2 (); 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841if ac_fn_c_try_link "$LINENO"; then : 1842 eval "$3=yes" 1843else 1844 eval "$3=no" 1845fi 1846rm -f core conftest.err conftest.$ac_objext \ 1847 conftest$ac_exeext conftest.$ac_ext 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 1854} # ac_fn_c_check_func 1855cat >config.log <<_ACEOF 1856This file contains any messages produced by compilers while 1857running configure, to aid debugging if configure makes a mistake. 1858 1859It was created by EXIF library $as_me 0.6.23, which was 1860generated by GNU Autoconf 2.69. Invocation command line was 1861 1862 $ $0 $@ 1863 1864_ACEOF 1865exec 5>>config.log 1866{ 1867cat <<_ASUNAME 1868## --------- ## 1869## Platform. ## 1870## --------- ## 1871 1872hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1873uname -m = `(uname -m) 2>/dev/null || echo unknown` 1874uname -r = `(uname -r) 2>/dev/null || echo unknown` 1875uname -s = `(uname -s) 2>/dev/null || echo unknown` 1876uname -v = `(uname -v) 2>/dev/null || echo unknown` 1877 1878/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1879/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1880 1881/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1882/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1883/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1884/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1885/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1886/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1887/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1888 1889_ASUNAME 1890 1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1892for as_dir in $PATH 1893do 1894 IFS=$as_save_IFS 1895 test -z "$as_dir" && as_dir=. 1896 $as_echo "PATH: $as_dir" 1897 done 1898IFS=$as_save_IFS 1899 1900} >&5 1901 1902cat >&5 <<_ACEOF 1903 1904 1905## ----------- ## 1906## Core tests. ## 1907## ----------- ## 1908 1909_ACEOF 1910 1911 1912# Keep a trace of the command line. 1913# Strip out --no-create and --no-recursion so they do not pile up. 1914# Strip out --silent because we don't want to record it for future runs. 1915# Also quote any args containing shell meta-characters. 1916# Make two passes to allow for proper duplicate-argument suppression. 1917ac_configure_args= 1918ac_configure_args0= 1919ac_configure_args1= 1920ac_must_keep_next=false 1921for ac_pass in 1 2 1922do 1923 for ac_arg 1924 do 1925 case $ac_arg in 1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1928 | -silent | --silent | --silen | --sile | --sil) 1929 continue ;; 1930 *\'*) 1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1932 esac 1933 case $ac_pass in 1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1935 2) 1936 as_fn_append ac_configure_args1 " '$ac_arg'" 1937 if test $ac_must_keep_next = true; then 1938 ac_must_keep_next=false # Got value, back to normal. 1939 else 1940 case $ac_arg in 1941 *=* | --config-cache | -C | -disable-* | --disable-* \ 1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1944 | -with-* | --with-* | -without-* | --without-* | --x) 1945 case "$ac_configure_args0 " in 1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1947 esac 1948 ;; 1949 -* ) ac_must_keep_next=true ;; 1950 esac 1951 fi 1952 as_fn_append ac_configure_args " '$ac_arg'" 1953 ;; 1954 esac 1955 done 1956done 1957{ ac_configure_args0=; unset ac_configure_args0;} 1958{ ac_configure_args1=; unset ac_configure_args1;} 1959 1960# When interrupted or exit'd, cleanup temporary files, and complete 1961# config.log. We remove comments because anyway the quotes in there 1962# would cause problems or look ugly. 1963# WARNING: Use '\'' to represent an apostrophe within the trap. 1964# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1965trap 'exit_status=$? 1966 # Save into config.log some information that might help in debugging. 1967 { 1968 echo 1969 1970 $as_echo "## ---------------- ## 1971## Cache variables. ## 1972## ---------------- ##" 1973 echo 1974 # The following way of writing the cache mishandles newlines in values, 1975( 1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in #( 1979 *${as_nl}*) 1980 case $ac_var in #( 1981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1982$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1983 esac 1984 case $ac_var in #( 1985 _ | IFS | as_nl) ;; #( 1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1987 *) { eval $ac_var=; unset $ac_var;} ;; 1988 esac ;; 1989 esac 1990 done 1991 (set) 2>&1 | 1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1993 *${as_nl}ac_space=\ *) 1994 sed -n \ 1995 "s/'\''/'\''\\\\'\'''\''/g; 1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1997 ;; #( 1998 *) 1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2000 ;; 2001 esac | 2002 sort 2003) 2004 echo 2005 2006 $as_echo "## ----------------- ## 2007## Output variables. ## 2008## ----------------- ##" 2009 echo 2010 for ac_var in $ac_subst_vars 2011 do 2012 eval ac_val=\$$ac_var 2013 case $ac_val in 2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2015 esac 2016 $as_echo "$ac_var='\''$ac_val'\''" 2017 done | sort 2018 echo 2019 2020 if test -n "$ac_subst_files"; then 2021 $as_echo "## ------------------- ## 2022## File substitutions. ## 2023## ------------------- ##" 2024 echo 2025 for ac_var in $ac_subst_files 2026 do 2027 eval ac_val=\$$ac_var 2028 case $ac_val in 2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2030 esac 2031 $as_echo "$ac_var='\''$ac_val'\''" 2032 done | sort 2033 echo 2034 fi 2035 2036 if test -s confdefs.h; then 2037 $as_echo "## ----------- ## 2038## confdefs.h. ## 2039## ----------- ##" 2040 echo 2041 cat confdefs.h 2042 echo 2043 fi 2044 test "$ac_signal" != 0 && 2045 $as_echo "$as_me: caught signal $ac_signal" 2046 $as_echo "$as_me: exit $exit_status" 2047 } >&5 2048 rm -f core *.core core.conftest.* && 2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2050 exit $exit_status 2051' 0 2052for ac_signal in 1 2 13 15; do 2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2054done 2055ac_signal=0 2056 2057# confdefs.h avoids OS command line length limits that DEFS can exceed. 2058rm -f -r conftest* confdefs.h 2059 2060$as_echo "/* confdefs.h */" > confdefs.h 2061 2062# Predefined preprocessor variables. 2063 2064cat >>confdefs.h <<_ACEOF 2065#define PACKAGE_NAME "$PACKAGE_NAME" 2066_ACEOF 2067 2068cat >>confdefs.h <<_ACEOF 2069#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2070_ACEOF 2071 2072cat >>confdefs.h <<_ACEOF 2073#define PACKAGE_VERSION "$PACKAGE_VERSION" 2074_ACEOF 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_STRING "$PACKAGE_STRING" 2078_ACEOF 2079 2080cat >>confdefs.h <<_ACEOF 2081#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2082_ACEOF 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_URL "$PACKAGE_URL" 2086_ACEOF 2087 2088 2089# Let the site file select an alternate cache file if it wants to. 2090# Prefer an explicitly selected file to automatically selected ones. 2091ac_site_file1=NONE 2092ac_site_file2=NONE 2093if test -n "$CONFIG_SITE"; then 2094 # We do not want a PATH search for config.site. 2095 case $CONFIG_SITE in #(( 2096 -*) ac_site_file1=./$CONFIG_SITE;; 2097 */*) ac_site_file1=$CONFIG_SITE;; 2098 *) ac_site_file1=./$CONFIG_SITE;; 2099 esac 2100elif test "x$prefix" != xNONE; then 2101 ac_site_file1=$prefix/share/config.site 2102 ac_site_file2=$prefix/etc/config.site 2103else 2104 ac_site_file1=$ac_default_prefix/share/config.site 2105 ac_site_file2=$ac_default_prefix/etc/config.site 2106fi 2107for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2108do 2109 test "x$ac_site_file" = xNONE && continue 2110 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2112$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2113 sed 's/^/| /' "$ac_site_file" >&5 2114 . "$ac_site_file" \ 2115 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2117as_fn_error $? "failed to load site script $ac_site_file 2118See \`config.log' for more details" "$LINENO" 5; } 2119 fi 2120done 2121 2122if test -r "$cache_file"; then 2123 # Some versions of bash will fail to source /dev/null (special files 2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2127$as_echo "$as_me: loading cache $cache_file" >&6;} 2128 case $cache_file in 2129 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2130 *) . "./$cache_file";; 2131 esac 2132 fi 2133else 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2135$as_echo "$as_me: creating cache $cache_file" >&6;} 2136 >$cache_file 2137fi 2138 2139gt_needs="$gt_needs " 2140# Check that the precious variables saved in the cache have kept the same 2141# value. 2142ac_cache_corrupted=false 2143for ac_var in $ac_precious_vars; do 2144 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2145 eval ac_new_set=\$ac_env_${ac_var}_set 2146 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2147 eval ac_new_val=\$ac_env_${ac_var}_value 2148 case $ac_old_set,$ac_new_set in 2149 set,) 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2151$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2152 ac_cache_corrupted=: ;; 2153 ,set) 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2155$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2156 ac_cache_corrupted=: ;; 2157 ,);; 2158 *) 2159 if test "x$ac_old_val" != "x$ac_new_val"; then 2160 # differences in whitespace do not lead to failure. 2161 ac_old_val_w=`echo x $ac_old_val` 2162 ac_new_val_w=`echo x $ac_new_val` 2163 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2165$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2166 ac_cache_corrupted=: 2167 else 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2169$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2170 eval $ac_var=\$ac_old_val 2171 fi 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2173$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2175$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2176 fi;; 2177 esac 2178 # Pass precious variables to config.status. 2179 if test "$ac_new_set" = set; then 2180 case $ac_new_val in 2181 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2182 *) ac_arg=$ac_var=$ac_new_val ;; 2183 esac 2184 case " $ac_configure_args " in 2185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2186 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2187 esac 2188 fi 2189done 2190if $ac_cache_corrupted; then 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2194$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2195 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2196fi 2197## -------------------- ## 2198## Main body of script. ## 2199## -------------------- ## 2200 2201ac_ext=c 2202ac_cpp='$CPP $CPPFLAGS' 2203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2205ac_compiler_gnu=$ac_cv_c_compiler_gnu 2206 2207 2208 2209ac_config_headers="$ac_config_headers config.h" 2210 2211 2212am__api_version='1.16' 2213 2214ac_aux_dir= 2215for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2216 if test -f "$ac_dir/install-sh"; then 2217 ac_aux_dir=$ac_dir 2218 ac_install_sh="$ac_aux_dir/install-sh -c" 2219 break 2220 elif test -f "$ac_dir/install.sh"; then 2221 ac_aux_dir=$ac_dir 2222 ac_install_sh="$ac_aux_dir/install.sh -c" 2223 break 2224 elif test -f "$ac_dir/shtool"; then 2225 ac_aux_dir=$ac_dir 2226 ac_install_sh="$ac_aux_dir/shtool install -c" 2227 break 2228 fi 2229done 2230if test -z "$ac_aux_dir"; then 2231 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2232fi 2233 2234# These three variables are undocumented and unsupported, 2235# and are intended to be withdrawn in a future Autoconf release. 2236# They can cause serious problems if a builder's source tree is in a directory 2237# whose full name contains unusual characters. 2238ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2239ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2240ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2241 2242 2243# Find a good install program. We prefer a C program (faster), 2244# so one script is as good as another. But avoid the broken or 2245# incompatible versions: 2246# SysV /etc/install, /usr/sbin/install 2247# SunOS /usr/etc/install 2248# IRIX /sbin/install 2249# AIX /bin/install 2250# AmigaOS /C/install, which installs bootblocks on floppy discs 2251# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2252# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2253# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2254# OS/2's system install, which has a completely different semantic 2255# ./install, which can be erroneously created by make from ./install.sh. 2256# Reject install programs that cannot install multiple files. 2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2258$as_echo_n "checking for a BSD-compatible install... " >&6; } 2259if test -z "$INSTALL"; then 2260if ${ac_cv_path_install+:} false; then : 2261 $as_echo_n "(cached) " >&6 2262else 2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2264for as_dir in $PATH 2265do 2266 IFS=$as_save_IFS 2267 test -z "$as_dir" && as_dir=. 2268 # Account for people who put trailing slashes in PATH elements. 2269case $as_dir/ in #(( 2270 ./ | .// | /[cC]/* | \ 2271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2272 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2273 /usr/ucb/* ) ;; 2274 *) 2275 # OSF1 and SCO ODT 3.0 have their own names for install. 2276 # Don't use installbsd from OSF since it installs stuff as root 2277 # by default. 2278 for ac_prog in ginstall scoinst install; do 2279 for ac_exec_ext in '' $ac_executable_extensions; do 2280 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2281 if test $ac_prog = install && 2282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2283 # AIX install. It has an incompatible calling convention. 2284 : 2285 elif test $ac_prog = install && 2286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2287 # program-specific install script used by HP pwplus--don't use. 2288 : 2289 else 2290 rm -rf conftest.one conftest.two conftest.dir 2291 echo one > conftest.one 2292 echo two > conftest.two 2293 mkdir conftest.dir 2294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2295 test -s conftest.one && test -s conftest.two && 2296 test -s conftest.dir/conftest.one && 2297 test -s conftest.dir/conftest.two 2298 then 2299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2300 break 3 2301 fi 2302 fi 2303 fi 2304 done 2305 done 2306 ;; 2307esac 2308 2309 done 2310IFS=$as_save_IFS 2311 2312rm -rf conftest.one conftest.two conftest.dir 2313 2314fi 2315 if test "${ac_cv_path_install+set}" = set; then 2316 INSTALL=$ac_cv_path_install 2317 else 2318 # As a last resort, use the slow shell script. Don't cache a 2319 # value for INSTALL within a source directory, because that will 2320 # break other packages using the cache if that directory is 2321 # removed, or if the value is a relative name. 2322 INSTALL=$ac_install_sh 2323 fi 2324fi 2325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2326$as_echo "$INSTALL" >&6; } 2327 2328# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2329# It thinks the first close brace ends the variable substitution. 2330test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2331 2332test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2333 2334test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2335 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2337$as_echo_n "checking whether build environment is sane... " >&6; } 2338# Reject unsafe characters in $srcdir or the absolute working directory 2339# name. Accept space and tab only in the latter. 2340am_lf=' 2341' 2342case `pwd` in 2343 *[\\\"\#\$\&\'\`$am_lf]*) 2344 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2345esac 2346case $srcdir in 2347 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2348 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2349esac 2350 2351# Do 'set' in a subshell so we don't clobber the current shell's 2352# arguments. Must try -L first in case configure is actually a 2353# symlink; some systems play weird games with the mod time of symlinks 2354# (eg FreeBSD returns the mod time of the symlink's containing 2355# directory). 2356if ( 2357 am_has_slept=no 2358 for am_try in 1 2; do 2359 echo "timestamp, slept: $am_has_slept" > conftest.file 2360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2361 if test "$*" = "X"; then 2362 # -L didn't work. 2363 set X `ls -t "$srcdir/configure" conftest.file` 2364 fi 2365 if test "$*" != "X $srcdir/configure conftest.file" \ 2366 && test "$*" != "X conftest.file $srcdir/configure"; then 2367 2368 # If neither matched, then we have a broken ls. This can happen 2369 # if, for instance, CONFIG_SHELL is bash and it inherits a 2370 # broken ls alias from the environment. This has actually 2371 # happened. Such a system could not be considered "sane". 2372 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2373 alias in your environment" "$LINENO" 5 2374 fi 2375 if test "$2" = conftest.file || test $am_try -eq 2; then 2376 break 2377 fi 2378 # Just in case. 2379 sleep 1 2380 am_has_slept=yes 2381 done 2382 test "$2" = conftest.file 2383 ) 2384then 2385 # Ok. 2386 : 2387else 2388 as_fn_error $? "newly created file is older than distributed files! 2389Check your system clock" "$LINENO" 5 2390fi 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2392$as_echo "yes" >&6; } 2393# If we didn't sleep, we still need to ensure time stamps of config.status and 2394# generated files are strictly newer. 2395am_sleep_pid= 2396if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2397 ( sleep 1 ) & 2398 am_sleep_pid=$! 2399fi 2400 2401rm -f conftest.file 2402 2403test "$program_prefix" != NONE && 2404 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2405# Use a double $ so make ignores it. 2406test "$program_suffix" != NONE && 2407 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2408# Double any \ or $. 2409# By default was `s,x,x', remove it if useless. 2410ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2411program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2412 2413# Expand $ac_aux_dir to an absolute path. 2414am_aux_dir=`cd "$ac_aux_dir" && pwd` 2415 2416if test x"${MISSING+set}" != xset; then 2417 MISSING="\${SHELL} '$am_aux_dir/missing'" 2418fi 2419# Use eval to expand $SHELL 2420if eval "$MISSING --is-lightweight"; then 2421 am_missing_run="$MISSING " 2422else 2423 am_missing_run= 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2425$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2426fi 2427 2428if test x"${install_sh+set}" != xset; then 2429 case $am_aux_dir in 2430 *\ * | *\ *) 2431 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2432 *) 2433 install_sh="\${SHELL} $am_aux_dir/install-sh" 2434 esac 2435fi 2436 2437# Installed binaries are usually stripped using 'strip' when the user 2438# run "make install-strip". However 'strip' might not be the right 2439# tool to use in cross-compilation environments, therefore Automake 2440# will honor the 'STRIP' environment variable to overrule this program. 2441if test "$cross_compiling" != no; then 2442 if test -n "$ac_tool_prefix"; then 2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2444set dummy ${ac_tool_prefix}strip; ac_word=$2 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2446$as_echo_n "checking for $ac_word... " >&6; } 2447if ${ac_cv_prog_STRIP+:} false; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 if test -n "$STRIP"; then 2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2452else 2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2454for as_dir in $PATH 2455do 2456 IFS=$as_save_IFS 2457 test -z "$as_dir" && as_dir=. 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2462 break 2 2463 fi 2464done 2465 done 2466IFS=$as_save_IFS 2467 2468fi 2469fi 2470STRIP=$ac_cv_prog_STRIP 2471if test -n "$STRIP"; then 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2473$as_echo "$STRIP" >&6; } 2474else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2476$as_echo "no" >&6; } 2477fi 2478 2479 2480fi 2481if test -z "$ac_cv_prog_STRIP"; then 2482 ac_ct_STRIP=$STRIP 2483 # Extract the first word of "strip", so it can be a program name with args. 2484set dummy strip; ac_word=$2 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$ac_ct_STRIP"; then 2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 ac_cv_prog_ac_ct_STRIP="strip" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505 done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2511if test -n "$ac_ct_STRIP"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2513$as_echo "$ac_ct_STRIP" >&6; } 2514else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 if test "x$ac_ct_STRIP" = x; then 2520 STRIP=":" 2521 else 2522 case $cross_compiling:$ac_tool_warned in 2523yes:) 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2526ac_tool_warned=yes ;; 2527esac 2528 STRIP=$ac_ct_STRIP 2529 fi 2530else 2531 STRIP="$ac_cv_prog_STRIP" 2532fi 2533 2534fi 2535INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2536 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2538$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2539if test -z "$MKDIR_P"; then 2540 if ${ac_cv_path_mkdir+:} false; then : 2541 $as_echo_n "(cached) " >&6 2542else 2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2544for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2545do 2546 IFS=$as_save_IFS 2547 test -z "$as_dir" && as_dir=. 2548 for ac_prog in mkdir gmkdir; do 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2551 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2552 'mkdir (GNU coreutils) '* | \ 2553 'mkdir (coreutils) '* | \ 2554 'mkdir (fileutils) '4.1*) 2555 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2556 break 3;; 2557 esac 2558 done 2559 done 2560 done 2561IFS=$as_save_IFS 2562 2563fi 2564 2565 test -d ./--version && rmdir ./--version 2566 if test "${ac_cv_path_mkdir+set}" = set; then 2567 MKDIR_P="$ac_cv_path_mkdir -p" 2568 else 2569 # As a last resort, use the slow shell script. Don't cache a 2570 # value for MKDIR_P within a source directory, because that will 2571 # break other packages using the cache if that directory is 2572 # removed, or if the value is a relative name. 2573 MKDIR_P="$ac_install_sh -d" 2574 fi 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2577$as_echo "$MKDIR_P" >&6; } 2578 2579for ac_prog in gawk mawk nawk awk 2580do 2581 # Extract the first word of "$ac_prog", so it can be a program name with args. 2582set dummy $ac_prog; ac_word=$2 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2584$as_echo_n "checking for $ac_word... " >&6; } 2585if ${ac_cv_prog_AWK+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test -n "$AWK"; then 2589 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2598 ac_cv_prog_AWK="$ac_prog" 2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603 done 2604IFS=$as_save_IFS 2605 2606fi 2607fi 2608AWK=$ac_cv_prog_AWK 2609if test -n "$AWK"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2611$as_echo "$AWK" >&6; } 2612else 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2614$as_echo "no" >&6; } 2615fi 2616 2617 2618 test -n "$AWK" && break 2619done 2620 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2622$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2623set x ${MAKE-make} 2624ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2625if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 cat >conftest.make <<\_ACEOF 2629SHELL = /bin/sh 2630all: 2631 @echo '@@@%%%=$(MAKE)=@@@%%%' 2632_ACEOF 2633# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2634case `${MAKE-make} -f conftest.make 2>/dev/null` in 2635 *@@@%%%=?*=@@@%%%*) 2636 eval ac_cv_prog_make_${ac_make}_set=yes;; 2637 *) 2638 eval ac_cv_prog_make_${ac_make}_set=no;; 2639esac 2640rm -f conftest.make 2641fi 2642if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2644$as_echo "yes" >&6; } 2645 SET_MAKE= 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649 SET_MAKE="MAKE=${MAKE-make}" 2650fi 2651 2652rm -rf .tst 2>/dev/null 2653mkdir .tst 2>/dev/null 2654if test -d .tst; then 2655 am__leading_dot=. 2656else 2657 am__leading_dot=_ 2658fi 2659rmdir .tst 2>/dev/null 2660 2661# Check whether --enable-silent-rules was given. 2662if test "${enable_silent_rules+set}" = set; then : 2663 enableval=$enable_silent_rules; 2664fi 2665 2666case $enable_silent_rules in # ((( 2667 yes) AM_DEFAULT_VERBOSITY=0;; 2668 no) AM_DEFAULT_VERBOSITY=1;; 2669 *) AM_DEFAULT_VERBOSITY=1;; 2670esac 2671am_make=${MAKE-make} 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2673$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2674if ${am_cv_make_support_nested_variables+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if $as_echo 'TRUE=$(BAR$(V)) 2678BAR0=false 2679BAR1=true 2680V=1 2681am__doit: 2682 @$(TRUE) 2683.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2684 am_cv_make_support_nested_variables=yes 2685else 2686 am_cv_make_support_nested_variables=no 2687fi 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2690$as_echo "$am_cv_make_support_nested_variables" >&6; } 2691if test $am_cv_make_support_nested_variables = yes; then 2692 AM_V='$(V)' 2693 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2694else 2695 AM_V=$AM_DEFAULT_VERBOSITY 2696 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2697fi 2698AM_BACKSLASH='\' 2699 2700if test "`cd $srcdir && pwd`" != "`pwd`"; then 2701 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2702 # is not polluted with repeated "-I." 2703 am__isrc=' -I$(srcdir)' 2704 # test to see if srcdir already configured 2705 if test -f $srcdir/config.status; then 2706 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2707 fi 2708fi 2709 2710# test whether we have cygpath 2711if test -z "$CYGPATH_W"; then 2712 if (cygpath --version) >/dev/null 2>/dev/null; then 2713 CYGPATH_W='cygpath -w' 2714 else 2715 CYGPATH_W=echo 2716 fi 2717fi 2718 2719 2720# Define the identity of the package. 2721 PACKAGE='libexif' 2722 VERSION='0.6.23' 2723 2724 2725cat >>confdefs.h <<_ACEOF 2726#define PACKAGE "$PACKAGE" 2727_ACEOF 2728 2729 2730cat >>confdefs.h <<_ACEOF 2731#define VERSION "$VERSION" 2732_ACEOF 2733 2734# Some tools Automake needs. 2735 2736ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2737 2738 2739AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2740 2741 2742AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2743 2744 2745AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2746 2747 2748MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2749 2750# For better backward compatibility. To be removed once Automake 1.9.x 2751# dies out for good. For more background, see: 2752# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2753# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2754mkdir_p='$(MKDIR_P)' 2755 2756# We need awk for the "check" target (and possibly the TAP driver). The 2757# system "awk" is bad on some platforms. 2758# Always define AMTAR for backward compatibility. Yes, it's still used 2759# in the wild :-( We should find a proper way to deprecate it ... 2760AMTAR='$${TAR-tar}' 2761 2762 2763# We'll loop over all known methods to create a tar archive until one works. 2764_am_tools='gnutar pax cpio none' 2765 2766am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2767 2768 2769 2770 2771 2772 2773# POSIX will say in a future version that running "rm -f" with no argument 2774# is OK; and we want to be able to make that assumption in our Makefile 2775# recipes. So use an aggressive probe to check that the usage we want is 2776# actually supported "in the wild" to an acceptable degree. 2777# See automake bug#10828. 2778# To make any issue more visible, cause the running configure to be aborted 2779# by default if the 'rm' program in use doesn't match our expectations; the 2780# user can still override this though. 2781if rm -f && rm -fr && rm -rf; then : OK; else 2782 cat >&2 <<'END' 2783Oops! 2784 2785Your 'rm' program seems unable to run without file operands specified 2786on the command line, even when the '-f' option is present. This is contrary 2787to the behaviour of most rm programs out there, and not conforming with 2788the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2789 2790Please tell bug-automake@gnu.org about your system, including the value 2791of your $PATH and any error possibly output before this message. This 2792can help us improve future automake versions. 2793 2794END 2795 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2796 echo 'Configuration will proceed anyway, since you have set the' >&2 2797 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2798 echo >&2 2799 else 2800 cat >&2 <<'END' 2801Aborting the configuration process, to ensure you take notice of the issue. 2802 2803You can download and install GNU coreutils to get an 'rm' implementation 2804that behaves properly: <https://www.gnu.org/software/coreutils/>. 2805 2806If you want to complete the configuration process using your problematic 2807'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2808to "yes", and re-run configure. 2809 2810END 2811 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2812 fi 2813fi 2814 2815 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2817$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2818 # Check whether --enable-maintainer-mode was given. 2819if test "${enable_maintainer_mode+set}" = set; then : 2820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2821else 2822 USE_MAINTAINER_MODE=no 2823fi 2824 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2826$as_echo "$USE_MAINTAINER_MODE" >&6; } 2827 if test $USE_MAINTAINER_MODE = yes; then 2828 MAINTAINER_MODE_TRUE= 2829 MAINTAINER_MODE_FALSE='#' 2830else 2831 MAINTAINER_MODE_TRUE='#' 2832 MAINTAINER_MODE_FALSE= 2833fi 2834 2835 MAINT=$MAINTAINER_MODE_TRUE 2836 2837 2838 2839# Use the silent-rules feature when possible. 2840 2841# Check whether --enable-silent-rules was given. 2842if test "${enable_silent_rules+set}" = set; then : 2843 enableval=$enable_silent_rules; 2844fi 2845 2846case $enable_silent_rules in # ((( 2847 yes) AM_DEFAULT_VERBOSITY=0;; 2848 no) AM_DEFAULT_VERBOSITY=1;; 2849 *) AM_DEFAULT_VERBOSITY=0;; 2850esac 2851am_make=${MAKE-make} 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2853$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2854if ${am_cv_make_support_nested_variables+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856else 2857 if $as_echo 'TRUE=$(BAR$(V)) 2858BAR0=false 2859BAR1=true 2860V=1 2861am__doit: 2862 @$(TRUE) 2863.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2864 am_cv_make_support_nested_variables=yes 2865else 2866 am_cv_make_support_nested_variables=no 2867fi 2868fi 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2870$as_echo "$am_cv_make_support_nested_variables" >&6; } 2871if test $am_cv_make_support_nested_variables = yes; then 2872 AM_V='$(V)' 2873 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2874else 2875 AM_V=$AM_DEFAULT_VERBOSITY 2876 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2877fi 2878AM_BACKSLASH='\' 2879 2880 2881 2882# make sure "cd" doesn't print anything on stdout 2883if test x"${CDPATH+set}" = xset 2884then 2885 CDPATH=: 2886 export CDPATH 2887fi 2888 2889# make sure $() command substitution works 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5 2891$as_echo_n "checking for POSIX sh \$() command substitution... " >&6; } 2892if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # '''' 2893then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2895$as_echo "yes" >&6; } 2896else 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898$as_echo "no" >&6; } 2899 uname=`uname 2>&1` # '' 2900 uname_a=`uname -a 2>&1` # '' 2901 as_fn_error $? " 2902 2903* POSIX sh \$() command substitution does not work with this shell. 2904* 2905* You are running a very rare species of shell. Please report this 2906* sighting to <${PACKAGE_BUGREPORT}>: 2907* SHELL=${SHELL} 2908* uname=${uname} 2909* uname-a=${uname_a} 2910* Please also include your OS and version. 2911* 2912* Run this configure script using a better (i.e. POSIX compliant) shell. 2913" "$LINENO" 5 2914fi 2915 2916 2917 2918gp_config_len="30" 2919gp_config_empty="" 2920gp_config_len3="$(expr "$gp_config_len" - 3)" 2921n="$gp_config_len" 2922while test "$n" -gt 0; do 2923 gp_config_empty="${gp_config_empty} " 2924 n="$(expr "$n" - 1)" 2925done 2926gp_config_msg=" 2927Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}): 2928" 2929 2930 2931gp_config_msg="${gp_config_msg} 2932 Build 2933" 2934 2935 2936gp_config_msg_len="$(expr "Source code location" : '.*')" 2937if test "$gp_config_msg_len" -ge "$gp_config_len"; then 2938 gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:" 2939else 2940 gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" 2941fi 2942gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${srcdir} 2943" 2944 2945 2946LIBEXIF_CURRENT=15 2947LIBEXIF_AGE=3 2948LIBEXIF_REVISION=4 2949 2950 2951 2952LIBEXIF_CURRENT_MIN=`expr $LIBEXIF_CURRENT - $LIBEXIF_AGE` 2953 2954LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE" 2955 2956 2957DEPDIR="${am__leading_dot}deps" 2958 2959ac_config_commands="$ac_config_commands depfiles" 2960 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2962$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2963cat > confinc.mk << 'END' 2964am__doit: 2965 @echo this is the am__doit target >confinc.out 2966.PHONY: am__doit 2967END 2968am__include="#" 2969am__quote= 2970# BSD make does it like this. 2971echo '.include "confinc.mk" # ignored' > confmf.BSD 2972# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2973echo 'include confinc.mk # ignored' > confmf.GNU 2974_am_result=no 2975for s in GNU BSD; do 2976 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2977 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2978 ac_status=$? 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } 2981 case $?:`cat confinc.out 2>/dev/null` in #( 2982 '0:this is the am__doit target') : 2983 case $s in #( 2984 BSD) : 2985 am__include='.include' am__quote='"' ;; #( 2986 *) : 2987 am__include='include' am__quote='' ;; 2988esac ;; #( 2989 *) : 2990 ;; 2991esac 2992 if test "$am__include" != "#"; then 2993 _am_result="yes ($s style)" 2994 break 2995 fi 2996done 2997rm -f confinc.* confmf.* 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2999$as_echo "${_am_result}" >&6; } 3000 3001# Check whether --enable-dependency-tracking was given. 3002if test "${enable_dependency_tracking+set}" = set; then : 3003 enableval=$enable_dependency_tracking; 3004fi 3005 3006if test "x$enable_dependency_tracking" != xno; then 3007 am_depcomp="$ac_aux_dir/depcomp" 3008 AMDEPBACKSLASH='\' 3009 am__nodep='_no' 3010fi 3011 if test "x$enable_dependency_tracking" != xno; then 3012 AMDEP_TRUE= 3013 AMDEP_FALSE='#' 3014else 3015 AMDEP_TRUE='#' 3016 AMDEP_FALSE= 3017fi 3018 3019 3020ac_ext=c 3021ac_cpp='$CPP $CPPFLAGS' 3022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3024ac_compiler_gnu=$ac_cv_c_compiler_gnu 3025if test -n "$ac_tool_prefix"; then 3026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3027set dummy ${ac_tool_prefix}gcc; ac_word=$2 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3029$as_echo_n "checking for $ac_word... " >&6; } 3030if ${ac_cv_prog_CC+:} false; then : 3031 $as_echo_n "(cached) " >&6 3032else 3033 if test -n "$CC"; then 3034 ac_cv_prog_CC="$CC" # Let the user override the test. 3035else 3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3037for as_dir in $PATH 3038do 3039 IFS=$as_save_IFS 3040 test -z "$as_dir" && as_dir=. 3041 for ac_exec_ext in '' $ac_executable_extensions; do 3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3043 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3045 break 2 3046 fi 3047done 3048 done 3049IFS=$as_save_IFS 3050 3051fi 3052fi 3053CC=$ac_cv_prog_CC 3054if test -n "$CC"; then 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3056$as_echo "$CC" >&6; } 3057else 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059$as_echo "no" >&6; } 3060fi 3061 3062 3063fi 3064if test -z "$ac_cv_prog_CC"; then 3065 ac_ct_CC=$CC 3066 # Extract the first word of "gcc", so it can be a program name with args. 3067set dummy gcc; ac_word=$2 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3069$as_echo_n "checking for $ac_word... " >&6; } 3070if ${ac_cv_prog_ac_ct_CC+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 if test -n "$ac_ct_CC"; then 3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3075else 3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH 3078do 3079 IFS=$as_save_IFS 3080 test -z "$as_dir" && as_dir=. 3081 for ac_exec_ext in '' $ac_executable_extensions; do 3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3083 ac_cv_prog_ac_ct_CC="gcc" 3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3085 break 2 3086 fi 3087done 3088 done 3089IFS=$as_save_IFS 3090 3091fi 3092fi 3093ac_ct_CC=$ac_cv_prog_ac_ct_CC 3094if test -n "$ac_ct_CC"; then 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3096$as_echo "$ac_ct_CC" >&6; } 3097else 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099$as_echo "no" >&6; } 3100fi 3101 3102 if test "x$ac_ct_CC" = x; then 3103 CC="" 3104 else 3105 case $cross_compiling:$ac_tool_warned in 3106yes:) 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3109ac_tool_warned=yes ;; 3110esac 3111 CC=$ac_ct_CC 3112 fi 3113else 3114 CC="$ac_cv_prog_CC" 3115fi 3116 3117if test -z "$CC"; then 3118 if test -n "$ac_tool_prefix"; then 3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3120set dummy ${ac_tool_prefix}cc; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if ${ac_cv_prog_CC+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$CC"; then 3127 ac_cv_prog_CC="$CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136 ac_cv_prog_CC="${ac_tool_prefix}cc" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149$as_echo "$CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 fi 3157fi 3158if test -z "$CC"; then 3159 # Extract the first word of "cc", so it can be a program name with args. 3160set dummy cc; ac_word=$2 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3162$as_echo_n "checking for $ac_word... " >&6; } 3163if ${ac_cv_prog_CC+:} false; then : 3164 $as_echo_n "(cached) " >&6 3165else 3166 if test -n "$CC"; then 3167 ac_cv_prog_CC="$CC" # Let the user override the test. 3168else 3169 ac_prog_rejected=no 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3178 ac_prog_rejected=yes 3179 continue 3180 fi 3181 ac_cv_prog_CC="cc" 3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186 done 3187IFS=$as_save_IFS 3188 3189if test $ac_prog_rejected = yes; then 3190 # We found a bogon in the path, so make sure we never use it. 3191 set dummy $ac_cv_prog_CC 3192 shift 3193 if test $# != 0; then 3194 # We chose a different compiler from the bogus one. 3195 # However, it has the same basename, so the bogon will be chosen 3196 # first if we set CC to just the basename; use the full file name. 3197 shift 3198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3199 fi 3200fi 3201fi 3202fi 3203CC=$ac_cv_prog_CC 3204if test -n "$CC"; then 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3206$as_echo "$CC" >&6; } 3207else 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210fi 3211 3212 3213fi 3214if test -z "$CC"; then 3215 if test -n "$ac_tool_prefix"; then 3216 for ac_prog in cl.exe 3217 do 3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3219set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221$as_echo_n "checking for $ac_word... " >&6; } 3222if ${ac_cv_prog_CC+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if test -n "$CC"; then 3226 ac_cv_prog_CC="$CC" # Let the user override the test. 3227else 3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240 done 3241IFS=$as_save_IFS 3242 3243fi 3244fi 3245CC=$ac_cv_prog_CC 3246if test -n "$CC"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3248$as_echo "$CC" >&6; } 3249else 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252fi 3253 3254 3255 test -n "$CC" && break 3256 done 3257fi 3258if test -z "$CC"; then 3259 ac_ct_CC=$CC 3260 for ac_prog in cl.exe 3261do 3262 # Extract the first word of "$ac_prog", so it can be a program name with args. 3263set dummy $ac_prog; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_ac_ct_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$ac_ct_CC"; then 3270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3271else 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3279 ac_cv_prog_ac_ct_CC="$ac_prog" 3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3281 break 2 3282 fi 3283done 3284 done 3285IFS=$as_save_IFS 3286 3287fi 3288fi 3289ac_ct_CC=$ac_cv_prog_ac_ct_CC 3290if test -n "$ac_ct_CC"; then 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3292$as_echo "$ac_ct_CC" >&6; } 3293else 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295$as_echo "no" >&6; } 3296fi 3297 3298 3299 test -n "$ac_ct_CC" && break 3300done 3301 3302 if test "x$ac_ct_CC" = x; then 3303 CC="" 3304 else 3305 case $cross_compiling:$ac_tool_warned in 3306yes:) 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3309ac_tool_warned=yes ;; 3310esac 3311 CC=$ac_ct_CC 3312 fi 3313fi 3314 3315fi 3316 3317 3318test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3320as_fn_error $? "no acceptable C compiler found in \$PATH 3321See \`config.log' for more details" "$LINENO" 5; } 3322 3323# Provide some information about the compiler. 3324$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3325set X $ac_compile 3326ac_compiler=$2 3327for ac_option in --version -v -V -qversion; do 3328 { { ac_try="$ac_compiler $ac_option >&5" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3334$as_echo "$ac_try_echo"; } >&5 3335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3336 ac_status=$? 3337 if test -s conftest.err; then 3338 sed '10a\ 3339... rest of stderr output deleted ... 3340 10q' conftest.err >conftest.er1 3341 cat conftest.er1 >&5 3342 fi 3343 rm -f conftest.er1 conftest.err 3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3345 test $ac_status = 0; } 3346done 3347 3348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3349/* end confdefs.h. */ 3350 3351int 3352main () 3353{ 3354 3355 ; 3356 return 0; 3357} 3358_ACEOF 3359ac_clean_files_save=$ac_clean_files 3360ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3361# Try to create an executable without -o first, disregard a.out. 3362# It will help us diagnose broken compilers, and finding out an intuition 3363# of exeext. 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3365$as_echo_n "checking whether the C compiler works... " >&6; } 3366ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3367 3368# The possible output files: 3369ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3370 3371ac_rmfiles= 3372for ac_file in $ac_files 3373do 3374 case $ac_file in 3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3376 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3377 esac 3378done 3379rm -f $ac_rmfiles 3380 3381if { { ac_try="$ac_link_default" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3387$as_echo "$ac_try_echo"; } >&5 3388 (eval "$ac_link_default") 2>&5 3389 ac_status=$? 3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3391 test $ac_status = 0; }; then : 3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3393# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3394# in a Makefile. We should not override ac_cv_exeext if it was cached, 3395# so that the user can short-circuit this test for compilers unknown to 3396# Autoconf. 3397for ac_file in $ac_files '' 3398do 3399 test -f "$ac_file" || continue 3400 case $ac_file in 3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3402 ;; 3403 [ab].out ) 3404 # We found the default executable, but exeext='' is most 3405 # certainly right. 3406 break;; 3407 *.* ) 3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3409 then :; else 3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3411 fi 3412 # We set ac_cv_exeext here because the later test for it is not 3413 # safe: cross compilers may not add the suffix if given an `-o' 3414 # argument, so we may need to know it at that point already. 3415 # Even if this section looks crufty: it has the advantage of 3416 # actually working. 3417 break;; 3418 * ) 3419 break;; 3420 esac 3421done 3422test "$ac_cv_exeext" = no && ac_cv_exeext= 3423 3424else 3425 ac_file='' 3426fi 3427if test -z "$ac_file"; then : 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429$as_echo "no" >&6; } 3430$as_echo "$as_me: failed program was:" >&5 3431sed 's/^/| /' conftest.$ac_ext >&5 3432 3433{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3435as_fn_error 77 "C compiler cannot create executables 3436See \`config.log' for more details" "$LINENO" 5; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3439$as_echo "yes" >&6; } 3440fi 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3442$as_echo_n "checking for C compiler default output file name... " >&6; } 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3444$as_echo "$ac_file" >&6; } 3445ac_exeext=$ac_cv_exeext 3446 3447rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3448ac_clean_files=$ac_clean_files_save 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3450$as_echo_n "checking for suffix of executables... " >&6; } 3451if { { ac_try="$ac_link" 3452case "(($ac_try" in 3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3454 *) ac_try_echo=$ac_try;; 3455esac 3456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3457$as_echo "$ac_try_echo"; } >&5 3458 (eval "$ac_link") 2>&5 3459 ac_status=$? 3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3461 test $ac_status = 0; }; then : 3462 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3463# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3464# work properly (i.e., refer to `conftest.exe'), while it won't with 3465# `rm'. 3466for ac_file in conftest.exe conftest conftest.*; do 3467 test -f "$ac_file" || continue 3468 case $ac_file in 3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3471 break;; 3472 * ) break;; 3473 esac 3474done 3475else 3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3478as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3479See \`config.log' for more details" "$LINENO" 5; } 3480fi 3481rm -f conftest conftest$ac_cv_exeext 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3483$as_echo "$ac_cv_exeext" >&6; } 3484 3485rm -f conftest.$ac_ext 3486EXEEXT=$ac_cv_exeext 3487ac_exeext=$EXEEXT 3488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489/* end confdefs.h. */ 3490#include <stdio.h> 3491int 3492main () 3493{ 3494FILE *f = fopen ("conftest.out", "w"); 3495 return ferror (f) || fclose (f) != 0; 3496 3497 ; 3498 return 0; 3499} 3500_ACEOF 3501ac_clean_files="$ac_clean_files conftest.out" 3502# Check that the compiler produces executables we can run. If not, either 3503# the compiler is broken, or we cross compile. 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3505$as_echo_n "checking whether we are cross compiling... " >&6; } 3506if test "$cross_compiling" != yes; then 3507 { { ac_try="$ac_link" 3508case "(($ac_try" in 3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3510 *) ac_try_echo=$ac_try;; 3511esac 3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3513$as_echo "$ac_try_echo"; } >&5 3514 (eval "$ac_link") 2>&5 3515 ac_status=$? 3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3517 test $ac_status = 0; } 3518 if { ac_try='./conftest$ac_cv_exeext' 3519 { { case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522esac 3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3524$as_echo "$ac_try_echo"; } >&5 3525 (eval "$ac_try") 2>&5 3526 ac_status=$? 3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3528 test $ac_status = 0; }; }; then 3529 cross_compiling=no 3530 else 3531 if test "$cross_compiling" = maybe; then 3532 cross_compiling=yes 3533 else 3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3536as_fn_error $? "cannot run C compiled programs. 3537If you meant to cross compile, use \`--host'. 3538See \`config.log' for more details" "$LINENO" 5; } 3539 fi 3540 fi 3541fi 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3543$as_echo "$cross_compiling" >&6; } 3544 3545rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3546ac_clean_files=$ac_clean_files_save 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3548$as_echo_n "checking for suffix of object files... " >&6; } 3549if ${ac_cv_objext+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551else 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563rm -f conftest.o conftest.obj 3564if { { ac_try="$ac_compile" 3565case "(($ac_try" in 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3567 *) ac_try_echo=$ac_try;; 3568esac 3569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3570$as_echo "$ac_try_echo"; } >&5 3571 (eval "$ac_compile") 2>&5 3572 ac_status=$? 3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3574 test $ac_status = 0; }; then : 3575 for ac_file in conftest.o conftest.obj conftest.*; do 3576 test -f "$ac_file" || continue; 3577 case $ac_file in 3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3580 break;; 3581 esac 3582done 3583else 3584 $as_echo "$as_me: failed program was:" >&5 3585sed 's/^/| /' conftest.$ac_ext >&5 3586 3587{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3589as_fn_error $? "cannot compute suffix of object files: cannot compile 3590See \`config.log' for more details" "$LINENO" 5; } 3591fi 3592rm -f conftest.$ac_cv_objext conftest.$ac_ext 3593fi 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3595$as_echo "$ac_cv_objext" >&6; } 3596OBJEXT=$ac_cv_objext 3597ac_objext=$OBJEXT 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3599$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3600if ${ac_cv_c_compiler_gnu+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3604/* end confdefs.h. */ 3605 3606int 3607main () 3608{ 3609#ifndef __GNUC__ 3610 choke me 3611#endif 3612 3613 ; 3614 return 0; 3615} 3616_ACEOF 3617if ac_fn_c_try_compile "$LINENO"; then : 3618 ac_compiler_gnu=yes 3619else 3620 ac_compiler_gnu=no 3621fi 3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3623ac_cv_c_compiler_gnu=$ac_compiler_gnu 3624 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3627$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3628if test $ac_compiler_gnu = yes; then 3629 GCC=yes 3630else 3631 GCC= 3632fi 3633ac_test_CFLAGS=${CFLAGS+set} 3634ac_save_CFLAGS=$CFLAGS 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3636$as_echo_n "checking whether $CC accepts -g... " >&6; } 3637if ${ac_cv_prog_cc_g+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 ac_save_c_werror_flag=$ac_c_werror_flag 3641 ac_c_werror_flag=yes 3642 ac_cv_prog_cc_g=no 3643 CFLAGS="-g" 3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3645/* end confdefs.h. */ 3646 3647int 3648main () 3649{ 3650 3651 ; 3652 return 0; 3653} 3654_ACEOF 3655if ac_fn_c_try_compile "$LINENO"; then : 3656 ac_cv_prog_cc_g=yes 3657else 3658 CFLAGS="" 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660/* end confdefs.h. */ 3661 3662int 3663main () 3664{ 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670if ac_fn_c_try_compile "$LINENO"; then : 3671 3672else 3673 ac_c_werror_flag=$ac_save_c_werror_flag 3674 CFLAGS="-g" 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677 3678int 3679main () 3680{ 3681 3682 ; 3683 return 0; 3684} 3685_ACEOF 3686if ac_fn_c_try_compile "$LINENO"; then : 3687 ac_cv_prog_cc_g=yes 3688fi 3689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3690fi 3691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3692fi 3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3694 ac_c_werror_flag=$ac_save_c_werror_flag 3695fi 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3697$as_echo "$ac_cv_prog_cc_g" >&6; } 3698if test "$ac_test_CFLAGS" = set; then 3699 CFLAGS=$ac_save_CFLAGS 3700elif test $ac_cv_prog_cc_g = yes; then 3701 if test "$GCC" = yes; then 3702 CFLAGS="-g -O2" 3703 else 3704 CFLAGS="-g" 3705 fi 3706else 3707 if test "$GCC" = yes; then 3708 CFLAGS="-O2" 3709 else 3710 CFLAGS= 3711 fi 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3714$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3715if ${ac_cv_prog_cc_c89+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 ac_cv_prog_cc_c89=no 3719ac_save_CC=$CC 3720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722#include <stdarg.h> 3723#include <stdio.h> 3724struct stat; 3725/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3726struct buf { int x; }; 3727FILE * (*rcsopen) (struct buf *, struct stat *, int); 3728static char *e (p, i) 3729 char **p; 3730 int i; 3731{ 3732 return p[i]; 3733} 3734static char *f (char * (*g) (char **, int), char **p, ...) 3735{ 3736 char *s; 3737 va_list v; 3738 va_start (v,p); 3739 s = g (p, va_arg (v,int)); 3740 va_end (v); 3741 return s; 3742} 3743 3744/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3745 function prototypes and stuff, but not '\xHH' hex character constants. 3746 These don't provoke an error unfortunately, instead are silently treated 3747 as 'x'. The following induces an error, until -std is added to get 3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3749 array size at least. It's necessary to write '\x00'==0 to get something 3750 that's true only with -std. */ 3751int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3752 3753/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3754 inside strings and character constants. */ 3755#define FOO(x) 'x' 3756int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3757 3758int test (int i, double x); 3759struct s1 {int (*f) (int a);}; 3760struct s2 {int (*f) (double a);}; 3761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3762int argc; 3763char **argv; 3764int 3765main () 3766{ 3767return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3774do 3775 CC="$ac_save_CC $ac_arg" 3776 if ac_fn_c_try_compile "$LINENO"; then : 3777 ac_cv_prog_cc_c89=$ac_arg 3778fi 3779rm -f core conftest.err conftest.$ac_objext 3780 test "x$ac_cv_prog_cc_c89" != "xno" && break 3781done 3782rm -f conftest.$ac_ext 3783CC=$ac_save_CC 3784 3785fi 3786# AC_CACHE_VAL 3787case "x$ac_cv_prog_cc_c89" in 3788 x) 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3790$as_echo "none needed" >&6; } ;; 3791 xno) 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3793$as_echo "unsupported" >&6; } ;; 3794 *) 3795 CC="$CC $ac_cv_prog_cc_c89" 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3797$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3798esac 3799if test "x$ac_cv_prog_cc_c89" != xno; then : 3800 3801fi 3802 3803ac_ext=c 3804ac_cpp='$CPP $CPPFLAGS' 3805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3807ac_compiler_gnu=$ac_cv_c_compiler_gnu 3808 3809ac_ext=c 3810ac_cpp='$CPP $CPPFLAGS' 3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3813ac_compiler_gnu=$ac_cv_c_compiler_gnu 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3815$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3816if ${am_cv_prog_cc_c_o+:} false; then : 3817 $as_echo_n "(cached) " >&6 3818else 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830 # Make sure it works both with $CC and with simple cc. 3831 # Following AC_PROG_CC_C_O, we do the test twice because some 3832 # compilers refuse to overwrite an existing .o file with -o, 3833 # though they will create one. 3834 am_cv_prog_cc_c_o=yes 3835 for am_i in 1 2; do 3836 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3837 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3838 ac_status=$? 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } \ 3841 && test -f conftest2.$ac_objext; then 3842 : OK 3843 else 3844 am_cv_prog_cc_c_o=no 3845 break 3846 fi 3847 done 3848 rm -f core conftest* 3849 unset am_i 3850fi 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3852$as_echo "$am_cv_prog_cc_c_o" >&6; } 3853if test "$am_cv_prog_cc_c_o" != yes; then 3854 # Losing compiler, so override with the script. 3855 # FIXME: It is wrong to rewrite CC. 3856 # But if we don't then we get into trouble of one sort or another. 3857 # A longer-term fix would be to have automake use am__CC in this case, 3858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3859 CC="$am_aux_dir/compile $CC" 3860fi 3861ac_ext=c 3862ac_cpp='$CPP $CPPFLAGS' 3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3865ac_compiler_gnu=$ac_cv_c_compiler_gnu 3866 3867 3868depcc="$CC" am_compiler_list= 3869 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3871$as_echo_n "checking dependency style of $depcc... " >&6; } 3872if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3876 # We make a subdir and do the tests there. Otherwise we can end up 3877 # making bogus files that we don't know about and never remove. For 3878 # instance it was reported that on HP-UX the gcc test will end up 3879 # making a dummy file named 'D' -- because '-MD' means "put the output 3880 # in D". 3881 rm -rf conftest.dir 3882 mkdir conftest.dir 3883 # Copy depcomp to subdir because otherwise we won't find it if we're 3884 # using a relative directory. 3885 cp "$am_depcomp" conftest.dir 3886 cd conftest.dir 3887 # We will build objects and dependencies in a subdirectory because 3888 # it helps to detect inapplicable dependency modes. For instance 3889 # both Tru64's cc and ICC support -MD to output dependencies as a 3890 # side effect of compilation, but ICC will put the dependencies in 3891 # the current directory while Tru64 will put them in the object 3892 # directory. 3893 mkdir sub 3894 3895 am_cv_CC_dependencies_compiler_type=none 3896 if test "$am_compiler_list" = ""; then 3897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3898 fi 3899 am__universal=false 3900 case " $depcc " in #( 3901 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3902 esac 3903 3904 for depmode in $am_compiler_list; do 3905 # Setup a source with many dependencies, because some compilers 3906 # like to wrap large dependency lists on column 80 (with \), and 3907 # we should not choose a depcomp mode which is confused by this. 3908 # 3909 # We need to recreate these files for each test, as the compiler may 3910 # overwrite some of them when testing with obscure command lines. 3911 # This happens at least with the AIX C compiler. 3912 : > sub/conftest.c 3913 for i in 1 2 3 4 5 6; do 3914 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3915 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3916 # Solaris 10 /bin/sh. 3917 echo '/* dummy */' > sub/conftst$i.h 3918 done 3919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3920 3921 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3922 # mode. It turns out that the SunPro C++ compiler does not properly 3923 # handle '-M -o', and we need to detect this. Also, some Intel 3924 # versions had trouble with output in subdirs. 3925 am__obj=sub/conftest.${OBJEXT-o} 3926 am__minus_obj="-o $am__obj" 3927 case $depmode in 3928 gcc) 3929 # This depmode causes a compiler race in universal mode. 3930 test "$am__universal" = false || continue 3931 ;; 3932 nosideeffect) 3933 # After this tag, mechanisms are not by side-effect, so they'll 3934 # only be used when explicitly requested. 3935 if test "x$enable_dependency_tracking" = xyes; then 3936 continue 3937 else 3938 break 3939 fi 3940 ;; 3941 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3942 # This compiler won't grok '-c -o', but also, the minuso test has 3943 # not run yet. These depmodes are late enough in the game, and 3944 # so weak that their functioning should not be impacted. 3945 am__obj=conftest.${OBJEXT-o} 3946 am__minus_obj= 3947 ;; 3948 none) break ;; 3949 esac 3950 if depmode=$depmode \ 3951 source=sub/conftest.c object=$am__obj \ 3952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3954 >/dev/null 2>conftest.err && 3955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3959 # icc doesn't choke on unknown options, it will just issue warnings 3960 # or remarks (even with -Werror). So we grep stderr for any message 3961 # that says an option was ignored or not supported. 3962 # When given -MP, icc 7.0 and 7.1 complain thusly: 3963 # icc: Command line warning: ignoring option '-M'; no argument required 3964 # The diagnosis changed in icc 8.0: 3965 # icc: Command line remark: option '-MP' not supported 3966 if (grep 'ignoring option' conftest.err || 3967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3968 am_cv_CC_dependencies_compiler_type=$depmode 3969 break 3970 fi 3971 fi 3972 done 3973 3974 cd .. 3975 rm -rf conftest.dir 3976else 3977 am_cv_CC_dependencies_compiler_type=none 3978fi 3979 3980fi 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3982$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3983CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3984 3985 if 3986 test "x$enable_dependency_tracking" != xno \ 3987 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3988 am__fastdepCC_TRUE= 3989 am__fastdepCC_FALSE='#' 3990else 3991 am__fastdepCC_TRUE='#' 3992 am__fastdepCC_FALSE= 3993fi 3994 3995 3996 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 3998$as_echo_n "checking for inline... " >&6; } 3999if ${ac_cv_c_inline+:} false; then : 4000 $as_echo_n "(cached) " >&6 4001else 4002 ac_cv_c_inline=no 4003for ac_kw in inline __inline__ __inline; do 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006#ifndef __cplusplus 4007typedef int foo_t; 4008static $ac_kw foo_t static_foo () {return 0; } 4009$ac_kw foo_t foo () {return 0; } 4010#endif 4011 4012_ACEOF 4013if ac_fn_c_try_compile "$LINENO"; then : 4014 ac_cv_c_inline=$ac_kw 4015fi 4016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4017 test "$ac_cv_c_inline" != no && break 4018done 4019 4020fi 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4022$as_echo "$ac_cv_c_inline" >&6; } 4023 4024case $ac_cv_c_inline in 4025 inline | yes) ;; 4026 *) 4027 case $ac_cv_c_inline in 4028 no) ac_val=;; 4029 *) ac_val=$ac_cv_c_inline;; 4030 esac 4031 cat >>confdefs.h <<_ACEOF 4032#ifndef __cplusplus 4033#define inline $ac_val 4034#endif 4035_ACEOF 4036 ;; 4037esac 4038 4039if test -n "$ac_tool_prefix"; then 4040 for ac_prog in ar lib "link -lib" 4041 do 4042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4043set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4045$as_echo_n "checking for $ac_word... " >&6; } 4046if ${ac_cv_prog_AR+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 if test -n "$AR"; then 4050 ac_cv_prog_AR="$AR" # Let the user override the test. 4051else 4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053for as_dir in $PATH 4054do 4055 IFS=$as_save_IFS 4056 test -z "$as_dir" && as_dir=. 4057 for ac_exec_ext in '' $ac_executable_extensions; do 4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4059 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4061 break 2 4062 fi 4063done 4064 done 4065IFS=$as_save_IFS 4066 4067fi 4068fi 4069AR=$ac_cv_prog_AR 4070if test -n "$AR"; then 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4072$as_echo "$AR" >&6; } 4073else 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4075$as_echo "no" >&6; } 4076fi 4077 4078 4079 test -n "$AR" && break 4080 done 4081fi 4082if test -z "$AR"; then 4083 ac_ct_AR=$AR 4084 for ac_prog in ar lib "link -lib" 4085do 4086 # Extract the first word of "$ac_prog", so it can be a program name with args. 4087set dummy $ac_prog; ac_word=$2 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4089$as_echo_n "checking for $ac_word... " >&6; } 4090if ${ac_cv_prog_ac_ct_AR+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 if test -n "$ac_ct_AR"; then 4094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4095else 4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH 4098do 4099 IFS=$as_save_IFS 4100 test -z "$as_dir" && as_dir=. 4101 for ac_exec_ext in '' $ac_executable_extensions; do 4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4103 ac_cv_prog_ac_ct_AR="$ac_prog" 4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4105 break 2 4106 fi 4107done 4108 done 4109IFS=$as_save_IFS 4110 4111fi 4112fi 4113ac_ct_AR=$ac_cv_prog_ac_ct_AR 4114if test -n "$ac_ct_AR"; then 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4116$as_echo "$ac_ct_AR" >&6; } 4117else 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4119$as_echo "no" >&6; } 4120fi 4121 4122 4123 test -n "$ac_ct_AR" && break 4124done 4125 4126 if test "x$ac_ct_AR" = x; then 4127 AR="false" 4128 else 4129 case $cross_compiling:$ac_tool_warned in 4130yes:) 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4133ac_tool_warned=yes ;; 4134esac 4135 AR=$ac_ct_AR 4136 fi 4137fi 4138 4139: ${AR=ar} 4140 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4142$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4143if ${am_cv_ar_interface+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 ac_ext=c 4147ac_cpp='$CPP $CPPFLAGS' 4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4150ac_compiler_gnu=$ac_cv_c_compiler_gnu 4151 4152 am_cv_ar_interface=ar 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155int some_variable = 0; 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4160 (eval $am_ar_try) 2>&5 4161 ac_status=$? 4162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4163 test $ac_status = 0; } 4164 if test "$ac_status" -eq 0; then 4165 am_cv_ar_interface=ar 4166 else 4167 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4169 (eval $am_ar_try) 2>&5 4170 ac_status=$? 4171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4172 test $ac_status = 0; } 4173 if test "$ac_status" -eq 0; then 4174 am_cv_ar_interface=lib 4175 else 4176 am_cv_ar_interface=unknown 4177 fi 4178 fi 4179 rm -f conftest.lib libconftest.a 4180 4181fi 4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4183 ac_ext=c 4184ac_cpp='$CPP $CPPFLAGS' 4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4187ac_compiler_gnu=$ac_cv_c_compiler_gnu 4188 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4191$as_echo "$am_cv_ar_interface" >&6; } 4192 4193case $am_cv_ar_interface in 4194ar) 4195 ;; 4196lib) 4197 # Microsoft lib, so override with the ar-lib wrapper script. 4198 # FIXME: It is wrong to rewrite AR. 4199 # But if we don't then we get into trouble of one sort or another. 4200 # A longer-term fix would be to have automake use am__AR in this case, 4201 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4202 # similar. 4203 AR="$am_aux_dir/ar-lib $AR" 4204 ;; 4205unknown) 4206 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4207 ;; 4208esac 4209 4210case `pwd` in 4211 *\ * | *\ *) 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4213$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4214esac 4215 4216 4217 4218macro_version='2.4.6' 4219macro_revision='2.4.6' 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233ltmain=$ac_aux_dir/ltmain.sh 4234 4235# Make sure we can run config.sub. 4236$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4238 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4240$as_echo_n "checking build system type... " >&6; } 4241if ${ac_cv_build+:} false; then : 4242 $as_echo_n "(cached) " >&6 4243else 4244 ac_build_alias=$build_alias 4245test "x$ac_build_alias" = x && 4246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4247test "x$ac_build_alias" = x && 4248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4249ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4251 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4254$as_echo "$ac_cv_build" >&6; } 4255case $ac_cv_build in 4256*-*-*) ;; 4257*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4258esac 4259build=$ac_cv_build 4260ac_save_IFS=$IFS; IFS='-' 4261set x $ac_cv_build 4262shift 4263build_cpu=$1 4264build_vendor=$2 4265shift; shift 4266# Remember, the first character of IFS is used to create $*, 4267# except with old shells: 4268build_os=$* 4269IFS=$ac_save_IFS 4270case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4271 4272 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4274$as_echo_n "checking host system type... " >&6; } 4275if ${ac_cv_host+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 if test "x$host_alias" = x; then 4279 ac_cv_host=$ac_cv_build 4280else 4281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4283fi 4284 4285fi 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4287$as_echo "$ac_cv_host" >&6; } 4288case $ac_cv_host in 4289*-*-*) ;; 4290*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4291esac 4292host=$ac_cv_host 4293ac_save_IFS=$IFS; IFS='-' 4294set x $ac_cv_host 4295shift 4296host_cpu=$1 4297host_vendor=$2 4298shift; shift 4299# Remember, the first character of IFS is used to create $*, 4300# except with old shells: 4301host_os=$* 4302IFS=$ac_save_IFS 4303case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4304 4305 4306# Backslashify metacharacters that are still active within 4307# double-quoted strings. 4308sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4309 4310# Same as above, but do not quote variable references. 4311double_quote_subst='s/\(["`\\]\)/\\\1/g' 4312 4313# Sed substitution to delay expansion of an escaped shell variable in a 4314# double_quote_subst'ed string. 4315delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4316 4317# Sed substitution to delay expansion of an escaped single quote. 4318delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4319 4320# Sed substitution to avoid accidental globbing in evaled expressions 4321no_glob_subst='s/\*/\\\*/g' 4322 4323ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4324ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4325ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4326 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4328$as_echo_n "checking how to print strings... " >&6; } 4329# Test print first, because it will be a builtin if present. 4330if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4331 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4332 ECHO='print -r --' 4333elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4334 ECHO='printf %s\n' 4335else 4336 # Use this function as a fallback that always works. 4337 func_fallback_echo () 4338 { 4339 eval 'cat <<_LTECHO_EOF 4340$1 4341_LTECHO_EOF' 4342 } 4343 ECHO='func_fallback_echo' 4344fi 4345 4346# func_echo_all arg... 4347# Invoke $ECHO with all args, space-separated. 4348func_echo_all () 4349{ 4350 $ECHO "" 4351} 4352 4353case $ECHO in 4354 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4355$as_echo "printf" >&6; } ;; 4356 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4357$as_echo "print -r" >&6; } ;; 4358 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4359$as_echo "cat" >&6; } ;; 4360esac 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4376$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4377if ${ac_cv_path_SED+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4381 for ac_i in 1 2 3 4 5 6 7; do 4382 ac_script="$ac_script$as_nl$ac_script" 4383 done 4384 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4385 { ac_script=; unset ac_script;} 4386 if test -z "$SED"; then 4387 ac_path_SED_found=false 4388 # Loop through the user's path and test for each of PROGNAME-LIST 4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4390for as_dir in $PATH 4391do 4392 IFS=$as_save_IFS 4393 test -z "$as_dir" && as_dir=. 4394 for ac_prog in sed gsed; do 4395 for ac_exec_ext in '' $ac_executable_extensions; do 4396 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4397 as_fn_executable_p "$ac_path_SED" || continue 4398# Check for GNU ac_path_SED and select it if it is found. 4399 # Check for GNU $ac_path_SED 4400case `"$ac_path_SED" --version 2>&1` in 4401*GNU*) 4402 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4403*) 4404 ac_count=0 4405 $as_echo_n 0123456789 >"conftest.in" 4406 while : 4407 do 4408 cat "conftest.in" "conftest.in" >"conftest.tmp" 4409 mv "conftest.tmp" "conftest.in" 4410 cp "conftest.in" "conftest.nl" 4411 $as_echo '' >> "conftest.nl" 4412 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4414 as_fn_arith $ac_count + 1 && ac_count=$as_val 4415 if test $ac_count -gt ${ac_path_SED_max-0}; then 4416 # Best one so far, save it but keep looking for a better one 4417 ac_cv_path_SED="$ac_path_SED" 4418 ac_path_SED_max=$ac_count 4419 fi 4420 # 10*(2^10) chars as input seems more than enough 4421 test $ac_count -gt 10 && break 4422 done 4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4424esac 4425 4426 $ac_path_SED_found && break 3 4427 done 4428 done 4429 done 4430IFS=$as_save_IFS 4431 if test -z "$ac_cv_path_SED"; then 4432 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4433 fi 4434else 4435 ac_cv_path_SED=$SED 4436fi 4437 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4440$as_echo "$ac_cv_path_SED" >&6; } 4441 SED="$ac_cv_path_SED" 4442 rm -f conftest.sed 4443 4444test -z "$SED" && SED=sed 4445Xsed="$SED -e 1s/^X//" 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4458$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4459if ${ac_cv_path_GREP+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if test -z "$GREP"; then 4463 ac_path_GREP_found=false 4464 # Loop through the user's path and test for each of PROGNAME-LIST 4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4467do 4468 IFS=$as_save_IFS 4469 test -z "$as_dir" && as_dir=. 4470 for ac_prog in grep ggrep; do 4471 for ac_exec_ext in '' $ac_executable_extensions; do 4472 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4473 as_fn_executable_p "$ac_path_GREP" || continue 4474# Check for GNU ac_path_GREP and select it if it is found. 4475 # Check for GNU $ac_path_GREP 4476case `"$ac_path_GREP" --version 2>&1` in 4477*GNU*) 4478 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4479*) 4480 ac_count=0 4481 $as_echo_n 0123456789 >"conftest.in" 4482 while : 4483 do 4484 cat "conftest.in" "conftest.in" >"conftest.tmp" 4485 mv "conftest.tmp" "conftest.in" 4486 cp "conftest.in" "conftest.nl" 4487 $as_echo 'GREP' >> "conftest.nl" 4488 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4490 as_fn_arith $ac_count + 1 && ac_count=$as_val 4491 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4492 # Best one so far, save it but keep looking for a better one 4493 ac_cv_path_GREP="$ac_path_GREP" 4494 ac_path_GREP_max=$ac_count 4495 fi 4496 # 10*(2^10) chars as input seems more than enough 4497 test $ac_count -gt 10 && break 4498 done 4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4500esac 4501 4502 $ac_path_GREP_found && break 3 4503 done 4504 done 4505 done 4506IFS=$as_save_IFS 4507 if test -z "$ac_cv_path_GREP"; then 4508 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4509 fi 4510else 4511 ac_cv_path_GREP=$GREP 4512fi 4513 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4516$as_echo "$ac_cv_path_GREP" >&6; } 4517 GREP="$ac_cv_path_GREP" 4518 4519 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4521$as_echo_n "checking for egrep... " >&6; } 4522if ${ac_cv_path_EGREP+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4526 then ac_cv_path_EGREP="$GREP -E" 4527 else 4528 if test -z "$EGREP"; then 4529 ac_path_EGREP_found=false 4530 # Loop through the user's path and test for each of PROGNAME-LIST 4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4533do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_prog in egrep; do 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4539 as_fn_executable_p "$ac_path_EGREP" || continue 4540# Check for GNU ac_path_EGREP and select it if it is found. 4541 # Check for GNU $ac_path_EGREP 4542case `"$ac_path_EGREP" --version 2>&1` in 4543*GNU*) 4544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4545*) 4546 ac_count=0 4547 $as_echo_n 0123456789 >"conftest.in" 4548 while : 4549 do 4550 cat "conftest.in" "conftest.in" >"conftest.tmp" 4551 mv "conftest.tmp" "conftest.in" 4552 cp "conftest.in" "conftest.nl" 4553 $as_echo 'EGREP' >> "conftest.nl" 4554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4556 as_fn_arith $ac_count + 1 && ac_count=$as_val 4557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4558 # Best one so far, save it but keep looking for a better one 4559 ac_cv_path_EGREP="$ac_path_EGREP" 4560 ac_path_EGREP_max=$ac_count 4561 fi 4562 # 10*(2^10) chars as input seems more than enough 4563 test $ac_count -gt 10 && break 4564 done 4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4566esac 4567 4568 $ac_path_EGREP_found && break 3 4569 done 4570 done 4571 done 4572IFS=$as_save_IFS 4573 if test -z "$ac_cv_path_EGREP"; then 4574 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4575 fi 4576else 4577 ac_cv_path_EGREP=$EGREP 4578fi 4579 4580 fi 4581fi 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4583$as_echo "$ac_cv_path_EGREP" >&6; } 4584 EGREP="$ac_cv_path_EGREP" 4585 4586 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4588$as_echo_n "checking for fgrep... " >&6; } 4589if ${ac_cv_path_FGREP+:} false; then : 4590 $as_echo_n "(cached) " >&6 4591else 4592 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4593 then ac_cv_path_FGREP="$GREP -F" 4594 else 4595 if test -z "$FGREP"; then 4596 ac_path_FGREP_found=false 4597 # Loop through the user's path and test for each of PROGNAME-LIST 4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4600do 4601 IFS=$as_save_IFS 4602 test -z "$as_dir" && as_dir=. 4603 for ac_prog in fgrep; do 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4606 as_fn_executable_p "$ac_path_FGREP" || continue 4607# Check for GNU ac_path_FGREP and select it if it is found. 4608 # Check for GNU $ac_path_FGREP 4609case `"$ac_path_FGREP" --version 2>&1` in 4610*GNU*) 4611 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4612*) 4613 ac_count=0 4614 $as_echo_n 0123456789 >"conftest.in" 4615 while : 4616 do 4617 cat "conftest.in" "conftest.in" >"conftest.tmp" 4618 mv "conftest.tmp" "conftest.in" 4619 cp "conftest.in" "conftest.nl" 4620 $as_echo 'FGREP' >> "conftest.nl" 4621 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4623 as_fn_arith $ac_count + 1 && ac_count=$as_val 4624 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4625 # Best one so far, save it but keep looking for a better one 4626 ac_cv_path_FGREP="$ac_path_FGREP" 4627 ac_path_FGREP_max=$ac_count 4628 fi 4629 # 10*(2^10) chars as input seems more than enough 4630 test $ac_count -gt 10 && break 4631 done 4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4633esac 4634 4635 $ac_path_FGREP_found && break 3 4636 done 4637 done 4638 done 4639IFS=$as_save_IFS 4640 if test -z "$ac_cv_path_FGREP"; then 4641 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4642 fi 4643else 4644 ac_cv_path_FGREP=$FGREP 4645fi 4646 4647 fi 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4650$as_echo "$ac_cv_path_FGREP" >&6; } 4651 FGREP="$ac_cv_path_FGREP" 4652 4653 4654test -z "$GREP" && GREP=grep 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674# Check whether --with-gnu-ld was given. 4675if test "${with_gnu_ld+set}" = set; then : 4676 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4677else 4678 with_gnu_ld=no 4679fi 4680 4681ac_prog=ld 4682if test yes = "$GCC"; then 4683 # Check if gcc -print-prog-name=ld gives a path. 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4685$as_echo_n "checking for ld used by $CC... " >&6; } 4686 case $host in 4687 *-*-mingw*) 4688 # gcc leaves a trailing carriage return, which upsets mingw 4689 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4690 *) 4691 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4692 esac 4693 case $ac_prog in 4694 # Accept absolute paths. 4695 [\\/]* | ?:[\\/]*) 4696 re_direlt='/[^/][^/]*/\.\./' 4697 # Canonicalize the pathname of ld 4698 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4699 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4700 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4701 done 4702 test -z "$LD" && LD=$ac_prog 4703 ;; 4704 "") 4705 # If it fails, then pretend we aren't using GCC. 4706 ac_prog=ld 4707 ;; 4708 *) 4709 # If it is relative, then search for the first ld in PATH. 4710 with_gnu_ld=unknown 4711 ;; 4712 esac 4713elif test yes = "$with_gnu_ld"; then 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4715$as_echo_n "checking for GNU ld... " >&6; } 4716else 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4718$as_echo_n "checking for non-GNU ld... " >&6; } 4719fi 4720if ${lt_cv_path_LD+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 if test -z "$LD"; then 4724 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4725 for ac_dir in $PATH; do 4726 IFS=$lt_save_ifs 4727 test -z "$ac_dir" && ac_dir=. 4728 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4729 lt_cv_path_LD=$ac_dir/$ac_prog 4730 # Check to see if the program is GNU ld. I'd rather use --version, 4731 # but apparently some variants of GNU ld only accept -v. 4732 # Break only if it was the GNU/non-GNU ld that we prefer. 4733 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4734 *GNU* | *'with BFD'*) 4735 test no != "$with_gnu_ld" && break 4736 ;; 4737 *) 4738 test yes != "$with_gnu_ld" && break 4739 ;; 4740 esac 4741 fi 4742 done 4743 IFS=$lt_save_ifs 4744else 4745 lt_cv_path_LD=$LD # Let the user override the test with a path. 4746fi 4747fi 4748 4749LD=$lt_cv_path_LD 4750if test -n "$LD"; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4752$as_echo "$LD" >&6; } 4753else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4755$as_echo "no" >&6; } 4756fi 4757test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4759$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4760if ${lt_cv_prog_gnu_ld+:} false; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4764case `$LD -v 2>&1 </dev/null` in 4765*GNU* | *'with BFD'*) 4766 lt_cv_prog_gnu_ld=yes 4767 ;; 4768*) 4769 lt_cv_prog_gnu_ld=no 4770 ;; 4771esac 4772fi 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4774$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4775with_gnu_ld=$lt_cv_prog_gnu_ld 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4786$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4787if ${lt_cv_path_NM+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 if test -n "$NM"; then 4791 # Let the user override the test. 4792 lt_cv_path_NM=$NM 4793else 4794 lt_nm_to_check=${ac_tool_prefix}nm 4795 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4796 lt_nm_to_check="$lt_nm_to_check nm" 4797 fi 4798 for lt_tmp_nm in $lt_nm_to_check; do 4799 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4800 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4801 IFS=$lt_save_ifs 4802 test -z "$ac_dir" && ac_dir=. 4803 tmp_nm=$ac_dir/$lt_tmp_nm 4804 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4805 # Check to see if the nm accepts a BSD-compat flag. 4806 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4807 # nm: unknown option "B" ignored 4808 # Tru64's nm complains that /dev/null is an invalid object file 4809 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4810 case $build_os in 4811 mingw*) lt_bad_file=conftest.nm/nofile ;; 4812 *) lt_bad_file=/dev/null ;; 4813 esac 4814 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4815 *$lt_bad_file* | *'Invalid file or object type'*) 4816 lt_cv_path_NM="$tmp_nm -B" 4817 break 2 4818 ;; 4819 *) 4820 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4821 */dev/null*) 4822 lt_cv_path_NM="$tmp_nm -p" 4823 break 2 4824 ;; 4825 *) 4826 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4827 continue # so that we can try to find one that supports BSD flags 4828 ;; 4829 esac 4830 ;; 4831 esac 4832 fi 4833 done 4834 IFS=$lt_save_ifs 4835 done 4836 : ${lt_cv_path_NM=no} 4837fi 4838fi 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4840$as_echo "$lt_cv_path_NM" >&6; } 4841if test no != "$lt_cv_path_NM"; then 4842 NM=$lt_cv_path_NM 4843else 4844 # Didn't find any BSD compatible name lister, look for dumpbin. 4845 if test -n "$DUMPBIN"; then : 4846 # Let the user override the test. 4847 else 4848 if test -n "$ac_tool_prefix"; then 4849 for ac_prog in dumpbin "link -dump" 4850 do 4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4852set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4854$as_echo_n "checking for $ac_word... " >&6; } 4855if ${ac_cv_prog_DUMPBIN+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 if test -n "$DUMPBIN"; then 4859 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4860else 4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862for as_dir in $PATH 4863do 4864 IFS=$as_save_IFS 4865 test -z "$as_dir" && as_dir=. 4866 for ac_exec_ext in '' $ac_executable_extensions; do 4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4868 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4870 break 2 4871 fi 4872done 4873 done 4874IFS=$as_save_IFS 4875 4876fi 4877fi 4878DUMPBIN=$ac_cv_prog_DUMPBIN 4879if test -n "$DUMPBIN"; then 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4881$as_echo "$DUMPBIN" >&6; } 4882else 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884$as_echo "no" >&6; } 4885fi 4886 4887 4888 test -n "$DUMPBIN" && break 4889 done 4890fi 4891if test -z "$DUMPBIN"; then 4892 ac_ct_DUMPBIN=$DUMPBIN 4893 for ac_prog in dumpbin "link -dump" 4894do 4895 # Extract the first word of "$ac_prog", so it can be a program name with args. 4896set dummy $ac_prog; ac_word=$2 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4898$as_echo_n "checking for $ac_word... " >&6; } 4899if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 if test -n "$ac_ct_DUMPBIN"; then 4903 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4904else 4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4906for as_dir in $PATH 4907do 4908 IFS=$as_save_IFS 4909 test -z "$as_dir" && as_dir=. 4910 for ac_exec_ext in '' $ac_executable_extensions; do 4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4912 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4914 break 2 4915 fi 4916done 4917 done 4918IFS=$as_save_IFS 4919 4920fi 4921fi 4922ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4923if test -n "$ac_ct_DUMPBIN"; then 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4925$as_echo "$ac_ct_DUMPBIN" >&6; } 4926else 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4928$as_echo "no" >&6; } 4929fi 4930 4931 4932 test -n "$ac_ct_DUMPBIN" && break 4933done 4934 4935 if test "x$ac_ct_DUMPBIN" = x; then 4936 DUMPBIN=":" 4937 else 4938 case $cross_compiling:$ac_tool_warned in 4939yes:) 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4942ac_tool_warned=yes ;; 4943esac 4944 DUMPBIN=$ac_ct_DUMPBIN 4945 fi 4946fi 4947 4948 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4949 *COFF*) 4950 DUMPBIN="$DUMPBIN -symbols -headers" 4951 ;; 4952 *) 4953 DUMPBIN=: 4954 ;; 4955 esac 4956 fi 4957 4958 if test : != "$DUMPBIN"; then 4959 NM=$DUMPBIN 4960 fi 4961fi 4962test -z "$NM" && NM=nm 4963 4964 4965 4966 4967 4968 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4970$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4971if ${lt_cv_nm_interface+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 lt_cv_nm_interface="BSD nm" 4975 echo "int some_variable = 0;" > conftest.$ac_ext 4976 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4977 (eval "$ac_compile" 2>conftest.err) 4978 cat conftest.err >&5 4979 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4980 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4981 cat conftest.err >&5 4982 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4983 cat conftest.out >&5 4984 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4985 lt_cv_nm_interface="MS dumpbin" 4986 fi 4987 rm -f conftest* 4988fi 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4990$as_echo "$lt_cv_nm_interface" >&6; } 4991 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4993$as_echo_n "checking whether ln -s works... " >&6; } 4994LN_S=$as_ln_s 4995if test "$LN_S" = "ln -s"; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4997$as_echo "yes" >&6; } 4998else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5000$as_echo "no, using $LN_S" >&6; } 5001fi 5002 5003# find the maximum length of command line arguments 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5005$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5006if ${lt_cv_sys_max_cmd_len+:} false; then : 5007 $as_echo_n "(cached) " >&6 5008else 5009 i=0 5010 teststring=ABCD 5011 5012 case $build_os in 5013 msdosdjgpp*) 5014 # On DJGPP, this test can blow up pretty badly due to problems in libc 5015 # (any single argument exceeding 2000 bytes causes a buffer overrun 5016 # during glob expansion). Even if it were fixed, the result of this 5017 # check would be larger than it should be. 5018 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5019 ;; 5020 5021 gnu*) 5022 # Under GNU Hurd, this test is not required because there is 5023 # no limit to the length of command line arguments. 5024 # Libtool will interpret -1 as no limit whatsoever 5025 lt_cv_sys_max_cmd_len=-1; 5026 ;; 5027 5028 cygwin* | mingw* | cegcc*) 5029 # On Win9x/ME, this test blows up -- it succeeds, but takes 5030 # about 5 minutes as the teststring grows exponentially. 5031 # Worse, since 9x/ME are not pre-emptively multitasking, 5032 # you end up with a "frozen" computer, even though with patience 5033 # the test eventually succeeds (with a max line length of 256k). 5034 # Instead, let's just punt: use the minimum linelength reported by 5035 # all of the supported platforms: 8192 (on NT/2K/XP). 5036 lt_cv_sys_max_cmd_len=8192; 5037 ;; 5038 5039 mint*) 5040 # On MiNT this can take a long time and run out of memory. 5041 lt_cv_sys_max_cmd_len=8192; 5042 ;; 5043 5044 amigaos*) 5045 # On AmigaOS with pdksh, this test takes hours, literally. 5046 # So we just punt and use a minimum line length of 8192. 5047 lt_cv_sys_max_cmd_len=8192; 5048 ;; 5049 5050 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5051 # This has been around since 386BSD, at least. Likely further. 5052 if test -x /sbin/sysctl; then 5053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5054 elif test -x /usr/sbin/sysctl; then 5055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5056 else 5057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5058 fi 5059 # And add a safety zone 5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5062 ;; 5063 5064 interix*) 5065 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5066 lt_cv_sys_max_cmd_len=196608 5067 ;; 5068 5069 os2*) 5070 # The test takes a long time on OS/2. 5071 lt_cv_sys_max_cmd_len=8192 5072 ;; 5073 5074 osf*) 5075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5077 # nice to cause kernel panics so lets avoid the loop below. 5078 # First set a reasonable default. 5079 lt_cv_sys_max_cmd_len=16384 5080 # 5081 if test -x /sbin/sysconfig; then 5082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5083 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5084 esac 5085 fi 5086 ;; 5087 sco3.2v5*) 5088 lt_cv_sys_max_cmd_len=102400 5089 ;; 5090 sysv5* | sco5v6* | sysv4.2uw2*) 5091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5092 if test -n "$kargmax"; then 5093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5094 else 5095 lt_cv_sys_max_cmd_len=32768 5096 fi 5097 ;; 5098 *) 5099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5100 if test -n "$lt_cv_sys_max_cmd_len" && \ 5101 test undefined != "$lt_cv_sys_max_cmd_len"; then 5102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5104 else 5105 # Make teststring a little bigger before we do anything with it. 5106 # a 1K string should be a reasonable start. 5107 for i in 1 2 3 4 5 6 7 8; do 5108 teststring=$teststring$teststring 5109 done 5110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5111 # If test is not a shell built-in, we'll probably end up computing a 5112 # maximum length that is only half of the actual maximum length, but 5113 # we can't tell. 5114 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5115 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5116 test 17 != "$i" # 1/2 MB should be enough 5117 do 5118 i=`expr $i + 1` 5119 teststring=$teststring$teststring 5120 done 5121 # Only check the string length outside the loop. 5122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5123 teststring= 5124 # Add a significant safety factor because C++ compilers can tack on 5125 # massive amounts of additional arguments before passing them to the 5126 # linker. It appears as though 1/2 is a usable value. 5127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5128 fi 5129 ;; 5130 esac 5131 5132fi 5133 5134if test -n "$lt_cv_sys_max_cmd_len"; then 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5136$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5137else 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5139$as_echo "none" >&6; } 5140fi 5141max_cmd_len=$lt_cv_sys_max_cmd_len 5142 5143 5144 5145 5146 5147 5148: ${CP="cp -f"} 5149: ${MV="mv -f"} 5150: ${RM="rm -f"} 5151 5152if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5153 lt_unset=unset 5154else 5155 lt_unset=false 5156fi 5157 5158 5159 5160 5161 5162# test EBCDIC or ASCII 5163case `echo X|tr X '\101'` in 5164 A) # ASCII based system 5165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5166 lt_SP2NL='tr \040 \012' 5167 lt_NL2SP='tr \015\012 \040\040' 5168 ;; 5169 *) # EBCDIC based system 5170 lt_SP2NL='tr \100 \n' 5171 lt_NL2SP='tr \r\n \100\100' 5172 ;; 5173esac 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5184$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5185if ${lt_cv_to_host_file_cmd+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 case $host in 5189 *-*-mingw* ) 5190 case $build in 5191 *-*-mingw* ) # actually msys 5192 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5193 ;; 5194 *-*-cygwin* ) 5195 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5196 ;; 5197 * ) # otherwise, assume *nix 5198 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5199 ;; 5200 esac 5201 ;; 5202 *-*-cygwin* ) 5203 case $build in 5204 *-*-mingw* ) # actually msys 5205 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5206 ;; 5207 *-*-cygwin* ) 5208 lt_cv_to_host_file_cmd=func_convert_file_noop 5209 ;; 5210 * ) # otherwise, assume *nix 5211 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5212 ;; 5213 esac 5214 ;; 5215 * ) # unhandled hosts (and "normal" native builds) 5216 lt_cv_to_host_file_cmd=func_convert_file_noop 5217 ;; 5218esac 5219 5220fi 5221 5222to_host_file_cmd=$lt_cv_to_host_file_cmd 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5224$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5225 5226 5227 5228 5229 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5231$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5232if ${lt_cv_to_tool_file_cmd+:} false; then : 5233 $as_echo_n "(cached) " >&6 5234else 5235 #assume ordinary cross tools, or native build. 5236lt_cv_to_tool_file_cmd=func_convert_file_noop 5237case $host in 5238 *-*-mingw* ) 5239 case $build in 5240 *-*-mingw* ) # actually msys 5241 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5242 ;; 5243 esac 5244 ;; 5245esac 5246 5247fi 5248 5249to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5251$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5252 5253 5254 5255 5256 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5258$as_echo_n "checking for $LD option to reload object files... " >&6; } 5259if ${lt_cv_ld_reload_flag+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261else 5262 lt_cv_ld_reload_flag='-r' 5263fi 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5265$as_echo "$lt_cv_ld_reload_flag" >&6; } 5266reload_flag=$lt_cv_ld_reload_flag 5267case $reload_flag in 5268"" | " "*) ;; 5269*) reload_flag=" $reload_flag" ;; 5270esac 5271reload_cmds='$LD$reload_flag -o $output$reload_objs' 5272case $host_os in 5273 cygwin* | mingw* | pw32* | cegcc*) 5274 if test yes != "$GCC"; then 5275 reload_cmds=false 5276 fi 5277 ;; 5278 darwin*) 5279 if test yes = "$GCC"; then 5280 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5281 else 5282 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5283 fi 5284 ;; 5285esac 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295if test -n "$ac_tool_prefix"; then 5296 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5297set dummy ${ac_tool_prefix}objdump; ac_word=$2 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5299$as_echo_n "checking for $ac_word... " >&6; } 5300if ${ac_cv_prog_OBJDUMP+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 if test -n "$OBJDUMP"; then 5304 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5305else 5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH 5308do 5309 IFS=$as_save_IFS 5310 test -z "$as_dir" && as_dir=. 5311 for ac_exec_ext in '' $ac_executable_extensions; do 5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5315 break 2 5316 fi 5317done 5318 done 5319IFS=$as_save_IFS 5320 5321fi 5322fi 5323OBJDUMP=$ac_cv_prog_OBJDUMP 5324if test -n "$OBJDUMP"; then 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5326$as_echo "$OBJDUMP" >&6; } 5327else 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329$as_echo "no" >&6; } 5330fi 5331 5332 5333fi 5334if test -z "$ac_cv_prog_OBJDUMP"; then 5335 ac_ct_OBJDUMP=$OBJDUMP 5336 # Extract the first word of "objdump", so it can be a program name with args. 5337set dummy objdump; ac_word=$2 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5339$as_echo_n "checking for $ac_word... " >&6; } 5340if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 if test -n "$ac_ct_OBJDUMP"; then 5344 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5345else 5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361fi 5362fi 5363ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5364if test -n "$ac_ct_OBJDUMP"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5366$as_echo "$ac_ct_OBJDUMP" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 if test "x$ac_ct_OBJDUMP" = x; then 5373 OBJDUMP="false" 5374 else 5375 case $cross_compiling:$ac_tool_warned in 5376yes:) 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5379ac_tool_warned=yes ;; 5380esac 5381 OBJDUMP=$ac_ct_OBJDUMP 5382 fi 5383else 5384 OBJDUMP="$ac_cv_prog_OBJDUMP" 5385fi 5386 5387test -z "$OBJDUMP" && OBJDUMP=objdump 5388 5389 5390 5391 5392 5393 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5395$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5396if ${lt_cv_deplibs_check_method+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 lt_cv_file_magic_cmd='$MAGIC_CMD' 5400lt_cv_file_magic_test_file= 5401lt_cv_deplibs_check_method='unknown' 5402# Need to set the preceding variable on all platforms that support 5403# interlibrary dependencies. 5404# 'none' -- dependencies not supported. 5405# 'unknown' -- same as none, but documents that we really don't know. 5406# 'pass_all' -- all dependencies passed with no checks. 5407# 'test_compile' -- check by making test program. 5408# 'file_magic [[regex]]' -- check by looking for files in library path 5409# that responds to the $file_magic_cmd with a given extended regex. 5410# If you have 'file' or equivalent on your system and you're not sure 5411# whether 'pass_all' will *always* work, you probably want this one. 5412 5413case $host_os in 5414aix[4-9]*) 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 5418beos*) 5419 lt_cv_deplibs_check_method=pass_all 5420 ;; 5421 5422bsdi[45]*) 5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5424 lt_cv_file_magic_cmd='/usr/bin/file -L' 5425 lt_cv_file_magic_test_file=/shlib/libc.so 5426 ;; 5427 5428cygwin*) 5429 # func_win32_libid is a shell function defined in ltmain.sh 5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5431 lt_cv_file_magic_cmd='func_win32_libid' 5432 ;; 5433 5434mingw* | pw32*) 5435 # Base MSYS/MinGW do not provide the 'file' command needed by 5436 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5437 # unless we find 'file', for example because we are cross-compiling. 5438 if ( file / ) >/dev/null 2>&1; then 5439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5440 lt_cv_file_magic_cmd='func_win32_libid' 5441 else 5442 # Keep this pattern in sync with the one in func_win32_libid. 5443 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5444 lt_cv_file_magic_cmd='$OBJDUMP -f' 5445 fi 5446 ;; 5447 5448cegcc*) 5449 # use the weaker test based on 'objdump'. See mingw*. 5450 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5451 lt_cv_file_magic_cmd='$OBJDUMP -f' 5452 ;; 5453 5454darwin* | rhapsody*) 5455 lt_cv_deplibs_check_method=pass_all 5456 ;; 5457 5458freebsd* | dragonfly*) 5459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5460 case $host_cpu in 5461 i*86 ) 5462 # Not sure whether the presence of OpenBSD here was a mistake. 5463 # Let's accept both of them until this is cleared up. 5464 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5465 lt_cv_file_magic_cmd=/usr/bin/file 5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5467 ;; 5468 esac 5469 else 5470 lt_cv_deplibs_check_method=pass_all 5471 fi 5472 ;; 5473 5474haiku*) 5475 lt_cv_deplibs_check_method=pass_all 5476 ;; 5477 5478hpux10.20* | hpux11*) 5479 lt_cv_file_magic_cmd=/usr/bin/file 5480 case $host_cpu in 5481 ia64*) 5482 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5483 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5484 ;; 5485 hppa*64*) 5486 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]' 5487 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5488 ;; 5489 *) 5490 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5491 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5492 ;; 5493 esac 5494 ;; 5495 5496interix[3-9]*) 5497 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5499 ;; 5500 5501irix5* | irix6* | nonstopux*) 5502 case $LD in 5503 *-32|*"-32 ") libmagic=32-bit;; 5504 *-n32|*"-n32 ") libmagic=N32;; 5505 *-64|*"-64 ") libmagic=64-bit;; 5506 *) libmagic=never-match;; 5507 esac 5508 lt_cv_deplibs_check_method=pass_all 5509 ;; 5510 5511# This must be glibc/ELF. 5512linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5513 lt_cv_deplibs_check_method=pass_all 5514 ;; 5515 5516netbsd*) 5517 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5519 else 5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5521 fi 5522 ;; 5523 5524newos6*) 5525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5526 lt_cv_file_magic_cmd=/usr/bin/file 5527 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5528 ;; 5529 5530*nto* | *qnx*) 5531 lt_cv_deplibs_check_method=pass_all 5532 ;; 5533 5534openbsd* | bitrig*) 5535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5537 else 5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5539 fi 5540 ;; 5541 5542osf3* | osf4* | osf5*) 5543 lt_cv_deplibs_check_method=pass_all 5544 ;; 5545 5546rdos*) 5547 lt_cv_deplibs_check_method=pass_all 5548 ;; 5549 5550solaris*) 5551 lt_cv_deplibs_check_method=pass_all 5552 ;; 5553 5554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5555 lt_cv_deplibs_check_method=pass_all 5556 ;; 5557 5558sysv4 | sysv4.3*) 5559 case $host_vendor in 5560 motorola) 5561 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]' 5562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5563 ;; 5564 ncr) 5565 lt_cv_deplibs_check_method=pass_all 5566 ;; 5567 sequent) 5568 lt_cv_file_magic_cmd='/bin/file' 5569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5570 ;; 5571 sni) 5572 lt_cv_file_magic_cmd='/bin/file' 5573 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5574 lt_cv_file_magic_test_file=/lib/libc.so 5575 ;; 5576 siemens) 5577 lt_cv_deplibs_check_method=pass_all 5578 ;; 5579 pc) 5580 lt_cv_deplibs_check_method=pass_all 5581 ;; 5582 esac 5583 ;; 5584 5585tpf*) 5586 lt_cv_deplibs_check_method=pass_all 5587 ;; 5588os2*) 5589 lt_cv_deplibs_check_method=pass_all 5590 ;; 5591esac 5592 5593fi 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5595$as_echo "$lt_cv_deplibs_check_method" >&6; } 5596 5597file_magic_glob= 5598want_nocaseglob=no 5599if test "$build" = "$host"; then 5600 case $host_os in 5601 mingw* | pw32*) 5602 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5603 want_nocaseglob=yes 5604 else 5605 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5606 fi 5607 ;; 5608 esac 5609fi 5610 5611file_magic_cmd=$lt_cv_file_magic_cmd 5612deplibs_check_method=$lt_cv_deplibs_check_method 5613test -z "$deplibs_check_method" && deplibs_check_method=unknown 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636if test -n "$ac_tool_prefix"; then 5637 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5638set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if ${ac_cv_prog_DLLTOOL+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 if test -n "$DLLTOOL"; then 5645 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5646else 5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664DLLTOOL=$ac_cv_prog_DLLTOOL 5665if test -n "$DLLTOOL"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5667$as_echo "$DLLTOOL" >&6; } 5668else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671fi 5672 5673 5674fi 5675if test -z "$ac_cv_prog_DLLTOOL"; then 5676 ac_ct_DLLTOOL=$DLLTOOL 5677 # Extract the first word of "dlltool", so it can be a program name with args. 5678set dummy dlltool; ac_word=$2 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680$as_echo_n "checking for $ac_word... " >&6; } 5681if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 if test -n "$ac_ct_DLLTOOL"; then 5685 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5686else 5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688for as_dir in $PATH 5689do 5690 IFS=$as_save_IFS 5691 test -z "$as_dir" && as_dir=. 5692 for ac_exec_ext in '' $ac_executable_extensions; do 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5694 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5696 break 2 5697 fi 5698done 5699 done 5700IFS=$as_save_IFS 5701 5702fi 5703fi 5704ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5705if test -n "$ac_ct_DLLTOOL"; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5707$as_echo "$ac_ct_DLLTOOL" >&6; } 5708else 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5710$as_echo "no" >&6; } 5711fi 5712 5713 if test "x$ac_ct_DLLTOOL" = x; then 5714 DLLTOOL="false" 5715 else 5716 case $cross_compiling:$ac_tool_warned in 5717yes:) 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5720ac_tool_warned=yes ;; 5721esac 5722 DLLTOOL=$ac_ct_DLLTOOL 5723 fi 5724else 5725 DLLTOOL="$ac_cv_prog_DLLTOOL" 5726fi 5727 5728test -z "$DLLTOOL" && DLLTOOL=dlltool 5729 5730 5731 5732 5733 5734 5735 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5737$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5738if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 lt_cv_sharedlib_from_linklib_cmd='unknown' 5742 5743case $host_os in 5744cygwin* | mingw* | pw32* | cegcc*) 5745 # two different shell functions defined in ltmain.sh; 5746 # decide which one to use based on capabilities of $DLLTOOL 5747 case `$DLLTOOL --help 2>&1` in 5748 *--identify-strict*) 5749 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5750 ;; 5751 *) 5752 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5753 ;; 5754 esac 5755 ;; 5756*) 5757 # fallback: assume linklib IS sharedlib 5758 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5759 ;; 5760esac 5761 5762fi 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5764$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5765sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5766test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5767 5768 5769 5770 5771 5772 5773 5774if test -n "$ac_tool_prefix"; then 5775 for ac_prog in ar 5776 do 5777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5778set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5780$as_echo_n "checking for $ac_word... " >&6; } 5781if ${ac_cv_prog_AR+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 if test -n "$AR"; then 5785 ac_cv_prog_AR="$AR" # Let the user override the test. 5786else 5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788for as_dir in $PATH 5789do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5794 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798done 5799 done 5800IFS=$as_save_IFS 5801 5802fi 5803fi 5804AR=$ac_cv_prog_AR 5805if test -n "$AR"; then 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5807$as_echo "$AR" >&6; } 5808else 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5810$as_echo "no" >&6; } 5811fi 5812 5813 5814 test -n "$AR" && break 5815 done 5816fi 5817if test -z "$AR"; then 5818 ac_ct_AR=$AR 5819 for ac_prog in ar 5820do 5821 # Extract the first word of "$ac_prog", so it can be a program name with args. 5822set dummy $ac_prog; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if ${ac_cv_prog_ac_ct_AR+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$ac_ct_AR"; then 5829 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5830else 5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832for as_dir in $PATH 5833do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5838 ac_cv_prog_ac_ct_AR="$ac_prog" 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840 break 2 5841 fi 5842done 5843 done 5844IFS=$as_save_IFS 5845 5846fi 5847fi 5848ac_ct_AR=$ac_cv_prog_ac_ct_AR 5849if test -n "$ac_ct_AR"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5851$as_echo "$ac_ct_AR" >&6; } 5852else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854$as_echo "no" >&6; } 5855fi 5856 5857 5858 test -n "$ac_ct_AR" && break 5859done 5860 5861 if test "x$ac_ct_AR" = x; then 5862 AR="false" 5863 else 5864 case $cross_compiling:$ac_tool_warned in 5865yes:) 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5868ac_tool_warned=yes ;; 5869esac 5870 AR=$ac_ct_AR 5871 fi 5872fi 5873 5874: ${AR=ar} 5875: ${AR_FLAGS=cru} 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5888$as_echo_n "checking for archiver @FILE support... " >&6; } 5889if ${lt_cv_ar_at_file+:} false; then : 5890 $as_echo_n "(cached) " >&6 5891else 5892 lt_cv_ar_at_file=no 5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5894/* end confdefs.h. */ 5895 5896int 5897main () 5898{ 5899 5900 ; 5901 return 0; 5902} 5903_ACEOF 5904if ac_fn_c_try_compile "$LINENO"; then : 5905 echo conftest.$ac_objext > conftest.lst 5906 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5908 (eval $lt_ar_try) 2>&5 5909 ac_status=$? 5910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5911 test $ac_status = 0; } 5912 if test 0 -eq "$ac_status"; then 5913 # Ensure the archiver fails upon bogus file names. 5914 rm -f conftest.$ac_objext libconftest.a 5915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5916 (eval $lt_ar_try) 2>&5 5917 ac_status=$? 5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5919 test $ac_status = 0; } 5920 if test 0 -ne "$ac_status"; then 5921 lt_cv_ar_at_file=@ 5922 fi 5923 fi 5924 rm -f conftest.* libconftest.a 5925 5926fi 5927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5928 5929fi 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5931$as_echo "$lt_cv_ar_at_file" >&6; } 5932 5933if test no = "$lt_cv_ar_at_file"; then 5934 archiver_list_spec= 5935else 5936 archiver_list_spec=$lt_cv_ar_at_file 5937fi 5938 5939 5940 5941 5942 5943 5944 5945if test -n "$ac_tool_prefix"; then 5946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5947set dummy ${ac_tool_prefix}strip; ac_word=$2 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5949$as_echo_n "checking for $ac_word... " >&6; } 5950if ${ac_cv_prog_STRIP+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 if test -n "$STRIP"; then 5954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5955else 5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5957for as_dir in $PATH 5958do 5959 IFS=$as_save_IFS 5960 test -z "$as_dir" && as_dir=. 5961 for ac_exec_ext in '' $ac_executable_extensions; do 5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5963 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5965 break 2 5966 fi 5967done 5968 done 5969IFS=$as_save_IFS 5970 5971fi 5972fi 5973STRIP=$ac_cv_prog_STRIP 5974if test -n "$STRIP"; then 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5976$as_echo "$STRIP" >&6; } 5977else 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5979$as_echo "no" >&6; } 5980fi 5981 5982 5983fi 5984if test -z "$ac_cv_prog_STRIP"; then 5985 ac_ct_STRIP=$STRIP 5986 # Extract the first word of "strip", so it can be a program name with args. 5987set dummy strip; ac_word=$2 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5989$as_echo_n "checking for $ac_word... " >&6; } 5990if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 if test -n "$ac_ct_STRIP"; then 5994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5995else 5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5997for as_dir in $PATH 5998do 5999 IFS=$as_save_IFS 6000 test -z "$as_dir" && as_dir=. 6001 for ac_exec_ext in '' $ac_executable_extensions; do 6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6003 ac_cv_prog_ac_ct_STRIP="strip" 6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6005 break 2 6006 fi 6007done 6008 done 6009IFS=$as_save_IFS 6010 6011fi 6012fi 6013ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6014if test -n "$ac_ct_STRIP"; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6016$as_echo "$ac_ct_STRIP" >&6; } 6017else 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6019$as_echo "no" >&6; } 6020fi 6021 6022 if test "x$ac_ct_STRIP" = x; then 6023 STRIP=":" 6024 else 6025 case $cross_compiling:$ac_tool_warned in 6026yes:) 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6029ac_tool_warned=yes ;; 6030esac 6031 STRIP=$ac_ct_STRIP 6032 fi 6033else 6034 STRIP="$ac_cv_prog_STRIP" 6035fi 6036 6037test -z "$STRIP" && STRIP=: 6038 6039 6040 6041 6042 6043 6044if test -n "$ac_tool_prefix"; then 6045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6046set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6048$as_echo_n "checking for $ac_word... " >&6; } 6049if ${ac_cv_prog_RANLIB+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 if test -n "$RANLIB"; then 6053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6054else 6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6056for as_dir in $PATH 6057do 6058 IFS=$as_save_IFS 6059 test -z "$as_dir" && as_dir=. 6060 for ac_exec_ext in '' $ac_executable_extensions; do 6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6064 break 2 6065 fi 6066done 6067 done 6068IFS=$as_save_IFS 6069 6070fi 6071fi 6072RANLIB=$ac_cv_prog_RANLIB 6073if test -n "$RANLIB"; then 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6075$as_echo "$RANLIB" >&6; } 6076else 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6078$as_echo "no" >&6; } 6079fi 6080 6081 6082fi 6083if test -z "$ac_cv_prog_RANLIB"; then 6084 ac_ct_RANLIB=$RANLIB 6085 # Extract the first word of "ranlib", so it can be a program name with args. 6086set dummy ranlib; ac_word=$2 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088$as_echo_n "checking for $ac_word... " >&6; } 6089if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 if test -n "$ac_ct_RANLIB"; then 6093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_ac_ct_RANLIB="ranlib" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6113if test -n "$ac_ct_RANLIB"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6115$as_echo "$ac_ct_RANLIB" >&6; } 6116else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118$as_echo "no" >&6; } 6119fi 6120 6121 if test "x$ac_ct_RANLIB" = x; then 6122 RANLIB=":" 6123 else 6124 case $cross_compiling:$ac_tool_warned in 6125yes:) 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6128ac_tool_warned=yes ;; 6129esac 6130 RANLIB=$ac_ct_RANLIB 6131 fi 6132else 6133 RANLIB="$ac_cv_prog_RANLIB" 6134fi 6135 6136test -z "$RANLIB" && RANLIB=: 6137 6138 6139 6140 6141 6142 6143# Determine commands to create old-style static archives. 6144old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6145old_postinstall_cmds='chmod 644 $oldlib' 6146old_postuninstall_cmds= 6147 6148if test -n "$RANLIB"; then 6149 case $host_os in 6150 bitrig* | openbsd*) 6151 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6152 ;; 6153 *) 6154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6155 ;; 6156 esac 6157 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6158fi 6159 6160case $host_os in 6161 darwin*) 6162 lock_old_archive_extraction=yes ;; 6163 *) 6164 lock_old_archive_extraction=no ;; 6165esac 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205# If no C compiler was specified, use CC. 6206LTCC=${LTCC-"$CC"} 6207 6208# If no C compiler flags were specified, use CFLAGS. 6209LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6210 6211# Allow CC to be a program name with arguments. 6212compiler=$CC 6213 6214 6215# Check for command to grab the raw symbol name followed by C symbol from nm. 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6217$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6218if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 6222# These are sane defaults that work on at least a few old systems. 6223# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6224 6225# Character class describing NM global symbol codes. 6226symcode='[BCDEGRST]' 6227 6228# Regexp to match symbols that can be accessed directly from C. 6229sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6230 6231# Define system-specific variables. 6232case $host_os in 6233aix*) 6234 symcode='[BCDT]' 6235 ;; 6236cygwin* | mingw* | pw32* | cegcc*) 6237 symcode='[ABCDGISTW]' 6238 ;; 6239hpux*) 6240 if test ia64 = "$host_cpu"; then 6241 symcode='[ABCDEGRST]' 6242 fi 6243 ;; 6244irix* | nonstopux*) 6245 symcode='[BCDEGRST]' 6246 ;; 6247osf*) 6248 symcode='[BCDEGQRST]' 6249 ;; 6250solaris*) 6251 symcode='[BDRT]' 6252 ;; 6253sco3.2v5*) 6254 symcode='[DT]' 6255 ;; 6256sysv4.2uw2*) 6257 symcode='[DT]' 6258 ;; 6259sysv5* | sco5v6* | unixware* | OpenUNIX*) 6260 symcode='[ABDT]' 6261 ;; 6262sysv4) 6263 symcode='[DFNSTU]' 6264 ;; 6265esac 6266 6267# If we're using GNU nm, then use its standard symbol codes. 6268case `$NM -V 2>&1` in 6269*GNU* | *'with BFD'*) 6270 symcode='[ABCDGIRSTW]' ;; 6271esac 6272 6273if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6274 # Gets list of data symbols to import. 6275 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6276 # Adjust the below global symbol transforms to fixup imported variables. 6277 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6278 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6279 lt_c_name_lib_hook="\ 6280 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6281 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6282else 6283 # Disable hooks by default. 6284 lt_cv_sys_global_symbol_to_import= 6285 lt_cdecl_hook= 6286 lt_c_name_hook= 6287 lt_c_name_lib_hook= 6288fi 6289 6290# Transform an extracted symbol line into a proper C declaration. 6291# Some systems (esp. on ia64) link data and code symbols differently, 6292# so use this general approach. 6293lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6294$lt_cdecl_hook\ 6295" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6296" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6297 6298# Transform an extracted symbol line into symbol name and symbol address 6299lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6300$lt_c_name_hook\ 6301" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6302" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6303 6304# Transform an extracted symbol line into symbol name with lib prefix and 6305# symbol address. 6306lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6307$lt_c_name_lib_hook\ 6308" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6309" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6310" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6311 6312# Handle CRLF in mingw tool chain 6313opt_cr= 6314case $build_os in 6315mingw*) 6316 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6317 ;; 6318esac 6319 6320# Try without a prefix underscore, then with it. 6321for ac_symprfx in "" "_"; do 6322 6323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6324 symxfrm="\\1 $ac_symprfx\\2 \\2" 6325 6326 # Write the raw and C identifiers. 6327 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6328 # Fake it for dumpbin and say T for any non-static function, 6329 # D for any global variable and I for any imported variable. 6330 # Also find C++ and __fastcall symbols from MSVC++, 6331 # which start with @ or ?. 6332 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6333" {last_section=section; section=\$ 3};"\ 6334" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6335" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6336" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6337" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6338" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6339" \$ 0!~/External *\|/{next};"\ 6340" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6341" {if(hide[section]) next};"\ 6342" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6343" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6344" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6345" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6346" ' prfx=^$ac_symprfx" 6347 else 6348 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6349 fi 6350 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6351 6352 # Check to see that the pipe works correctly. 6353 pipe_works=no 6354 6355 rm -f conftest* 6356 cat > conftest.$ac_ext <<_LT_EOF 6357#ifdef __cplusplus 6358extern "C" { 6359#endif 6360char nm_test_var; 6361void nm_test_func(void); 6362void nm_test_func(void){} 6363#ifdef __cplusplus 6364} 6365#endif 6366int main(){nm_test_var='a';nm_test_func();return(0);} 6367_LT_EOF 6368 6369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6370 (eval $ac_compile) 2>&5 6371 ac_status=$? 6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6373 test $ac_status = 0; }; then 6374 # Now try to grab the symbols. 6375 nlist=conftest.nm 6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6377 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6378 ac_status=$? 6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6380 test $ac_status = 0; } && test -s "$nlist"; then 6381 # Try sorting and uniquifying the output. 6382 if sort "$nlist" | uniq > "$nlist"T; then 6383 mv -f "$nlist"T "$nlist" 6384 else 6385 rm -f "$nlist"T 6386 fi 6387 6388 # Make sure that we snagged all the symbols we need. 6389 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6390 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6391 cat <<_LT_EOF > conftest.$ac_ext 6392/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6393#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6394/* DATA imports from DLLs on WIN32 can't be const, because runtime 6395 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6396# define LT_DLSYM_CONST 6397#elif defined __osf__ 6398/* This system does not cope well with relocations in const data. */ 6399# define LT_DLSYM_CONST 6400#else 6401# define LT_DLSYM_CONST const 6402#endif 6403 6404#ifdef __cplusplus 6405extern "C" { 6406#endif 6407 6408_LT_EOF 6409 # Now generate the symbol file. 6410 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6411 6412 cat <<_LT_EOF >> conftest.$ac_ext 6413 6414/* The mapping between symbol names and symbols. */ 6415LT_DLSYM_CONST struct { 6416 const char *name; 6417 void *address; 6418} 6419lt__PROGRAM__LTX_preloaded_symbols[] = 6420{ 6421 { "@PROGRAM@", (void *) 0 }, 6422_LT_EOF 6423 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6424 cat <<\_LT_EOF >> conftest.$ac_ext 6425 {0, (void *) 0} 6426}; 6427 6428/* This works around a problem in FreeBSD linker */ 6429#ifdef FREEBSD_WORKAROUND 6430static const void *lt_preloaded_setup() { 6431 return lt__PROGRAM__LTX_preloaded_symbols; 6432} 6433#endif 6434 6435#ifdef __cplusplus 6436} 6437#endif 6438_LT_EOF 6439 # Now try linking the two files. 6440 mv conftest.$ac_objext conftstm.$ac_objext 6441 lt_globsym_save_LIBS=$LIBS 6442 lt_globsym_save_CFLAGS=$CFLAGS 6443 LIBS=conftstm.$ac_objext 6444 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6446 (eval $ac_link) 2>&5 6447 ac_status=$? 6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6449 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6450 pipe_works=yes 6451 fi 6452 LIBS=$lt_globsym_save_LIBS 6453 CFLAGS=$lt_globsym_save_CFLAGS 6454 else 6455 echo "cannot find nm_test_func in $nlist" >&5 6456 fi 6457 else 6458 echo "cannot find nm_test_var in $nlist" >&5 6459 fi 6460 else 6461 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6462 fi 6463 else 6464 echo "$progname: failed program was:" >&5 6465 cat conftest.$ac_ext >&5 6466 fi 6467 rm -rf conftest* conftst* 6468 6469 # Do not use the global_symbol_pipe unless it works. 6470 if test yes = "$pipe_works"; then 6471 break 6472 else 6473 lt_cv_sys_global_symbol_pipe= 6474 fi 6475done 6476 6477fi 6478 6479if test -z "$lt_cv_sys_global_symbol_pipe"; then 6480 lt_cv_sys_global_symbol_to_cdecl= 6481fi 6482if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6484$as_echo "failed" >&6; } 6485else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6487$as_echo "ok" >&6; } 6488fi 6489 6490# Response file support. 6491if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6492 nm_file_list_spec='@' 6493elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6494 nm_file_list_spec='@' 6495fi 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6534$as_echo_n "checking for sysroot... " >&6; } 6535 6536# Check whether --with-sysroot was given. 6537if test "${with_sysroot+set}" = set; then : 6538 withval=$with_sysroot; 6539else 6540 with_sysroot=no 6541fi 6542 6543 6544lt_sysroot= 6545case $with_sysroot in #( 6546 yes) 6547 if test yes = "$GCC"; then 6548 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6549 fi 6550 ;; #( 6551 /*) 6552 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6553 ;; #( 6554 no|'') 6555 ;; #( 6556 *) 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6558$as_echo "$with_sysroot" >&6; } 6559 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6560 ;; 6561esac 6562 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6564$as_echo "${lt_sysroot:-no}" >&6; } 6565 6566 6567 6568 6569 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6571$as_echo_n "checking for a working dd... " >&6; } 6572if ${ac_cv_path_lt_DD+:} false; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 printf 0123456789abcdef0123456789abcdef >conftest.i 6576cat conftest.i conftest.i >conftest2.i 6577: ${lt_DD:=$DD} 6578if test -z "$lt_DD"; then 6579 ac_path_lt_DD_found=false 6580 # Loop through the user's path and test for each of PROGNAME-LIST 6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6582for as_dir in $PATH 6583do 6584 IFS=$as_save_IFS 6585 test -z "$as_dir" && as_dir=. 6586 for ac_prog in dd; do 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6589 as_fn_executable_p "$ac_path_lt_DD" || continue 6590if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6591 cmp -s conftest.i conftest.out \ 6592 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6593fi 6594 $ac_path_lt_DD_found && break 3 6595 done 6596 done 6597 done 6598IFS=$as_save_IFS 6599 if test -z "$ac_cv_path_lt_DD"; then 6600 : 6601 fi 6602else 6603 ac_cv_path_lt_DD=$lt_DD 6604fi 6605 6606rm -f conftest.i conftest2.i conftest.out 6607fi 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6609$as_echo "$ac_cv_path_lt_DD" >&6; } 6610 6611 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6613$as_echo_n "checking how to truncate binary pipes... " >&6; } 6614if ${lt_cv_truncate_bin+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 printf 0123456789abcdef0123456789abcdef >conftest.i 6618cat conftest.i conftest.i >conftest2.i 6619lt_cv_truncate_bin= 6620if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6621 cmp -s conftest.i conftest.out \ 6622 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6623fi 6624rm -f conftest.i conftest2.i conftest.out 6625test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6626fi 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6628$as_echo "$lt_cv_truncate_bin" >&6; } 6629 6630 6631 6632 6633 6634 6635 6636# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6637func_cc_basename () 6638{ 6639 for cc_temp in $*""; do 6640 case $cc_temp in 6641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6643 \-*) ;; 6644 *) break;; 6645 esac 6646 done 6647 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6648} 6649 6650# Check whether --enable-libtool-lock was given. 6651if test "${enable_libtool_lock+set}" = set; then : 6652 enableval=$enable_libtool_lock; 6653fi 6654 6655test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6656 6657# Some flags need to be propagated to the compiler or linker for good 6658# libtool support. 6659case $host in 6660ia64-*-hpux*) 6661 # Find out what ABI is being produced by ac_compile, and set mode 6662 # options accordingly. 6663 echo 'int i;' > conftest.$ac_ext 6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6665 (eval $ac_compile) 2>&5 6666 ac_status=$? 6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6668 test $ac_status = 0; }; then 6669 case `/usr/bin/file conftest.$ac_objext` in 6670 *ELF-32*) 6671 HPUX_IA64_MODE=32 6672 ;; 6673 *ELF-64*) 6674 HPUX_IA64_MODE=64 6675 ;; 6676 esac 6677 fi 6678 rm -rf conftest* 6679 ;; 6680*-*-irix6*) 6681 # Find out what ABI is being produced by ac_compile, and set linker 6682 # options accordingly. 6683 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6685 (eval $ac_compile) 2>&5 6686 ac_status=$? 6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6688 test $ac_status = 0; }; then 6689 if test yes = "$lt_cv_prog_gnu_ld"; then 6690 case `/usr/bin/file conftest.$ac_objext` in 6691 *32-bit*) 6692 LD="${LD-ld} -melf32bsmip" 6693 ;; 6694 *N32*) 6695 LD="${LD-ld} -melf32bmipn32" 6696 ;; 6697 *64-bit*) 6698 LD="${LD-ld} -melf64bmip" 6699 ;; 6700 esac 6701 else 6702 case `/usr/bin/file conftest.$ac_objext` in 6703 *32-bit*) 6704 LD="${LD-ld} -32" 6705 ;; 6706 *N32*) 6707 LD="${LD-ld} -n32" 6708 ;; 6709 *64-bit*) 6710 LD="${LD-ld} -64" 6711 ;; 6712 esac 6713 fi 6714 fi 6715 rm -rf conftest* 6716 ;; 6717 6718mips64*-*linux*) 6719 # Find out what ABI is being produced by ac_compile, and set linker 6720 # options accordingly. 6721 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6723 (eval $ac_compile) 2>&5 6724 ac_status=$? 6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6726 test $ac_status = 0; }; then 6727 emul=elf 6728 case `/usr/bin/file conftest.$ac_objext` in 6729 *32-bit*) 6730 emul="${emul}32" 6731 ;; 6732 *64-bit*) 6733 emul="${emul}64" 6734 ;; 6735 esac 6736 case `/usr/bin/file conftest.$ac_objext` in 6737 *MSB*) 6738 emul="${emul}btsmip" 6739 ;; 6740 *LSB*) 6741 emul="${emul}ltsmip" 6742 ;; 6743 esac 6744 case `/usr/bin/file conftest.$ac_objext` in 6745 *N32*) 6746 emul="${emul}n32" 6747 ;; 6748 esac 6749 LD="${LD-ld} -m $emul" 6750 fi 6751 rm -rf conftest* 6752 ;; 6753 6754x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6755s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6756 # Find out what ABI is being produced by ac_compile, and set linker 6757 # options accordingly. Note that the listed cases only cover the 6758 # situations where additional linker options are needed (such as when 6759 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6760 # vice versa); the common cases where no linker options are needed do 6761 # not appear in the list. 6762 echo 'int i;' > conftest.$ac_ext 6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6764 (eval $ac_compile) 2>&5 6765 ac_status=$? 6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6767 test $ac_status = 0; }; then 6768 case `/usr/bin/file conftest.o` in 6769 *32-bit*) 6770 case $host in 6771 x86_64-*kfreebsd*-gnu) 6772 LD="${LD-ld} -m elf_i386_fbsd" 6773 ;; 6774 x86_64-*linux*) 6775 case `/usr/bin/file conftest.o` in 6776 *x86-64*) 6777 LD="${LD-ld} -m elf32_x86_64" 6778 ;; 6779 *) 6780 LD="${LD-ld} -m elf_i386" 6781 ;; 6782 esac 6783 ;; 6784 powerpc64le-*linux*) 6785 LD="${LD-ld} -m elf32lppclinux" 6786 ;; 6787 powerpc64-*linux*) 6788 LD="${LD-ld} -m elf32ppclinux" 6789 ;; 6790 s390x-*linux*) 6791 LD="${LD-ld} -m elf_s390" 6792 ;; 6793 sparc64-*linux*) 6794 LD="${LD-ld} -m elf32_sparc" 6795 ;; 6796 esac 6797 ;; 6798 *64-bit*) 6799 case $host in 6800 x86_64-*kfreebsd*-gnu) 6801 LD="${LD-ld} -m elf_x86_64_fbsd" 6802 ;; 6803 x86_64-*linux*) 6804 LD="${LD-ld} -m elf_x86_64" 6805 ;; 6806 powerpcle-*linux*) 6807 LD="${LD-ld} -m elf64lppc" 6808 ;; 6809 powerpc-*linux*) 6810 LD="${LD-ld} -m elf64ppc" 6811 ;; 6812 s390*-*linux*|s390*-*tpf*) 6813 LD="${LD-ld} -m elf64_s390" 6814 ;; 6815 sparc*-*linux*) 6816 LD="${LD-ld} -m elf64_sparc" 6817 ;; 6818 esac 6819 ;; 6820 esac 6821 fi 6822 rm -rf conftest* 6823 ;; 6824 6825*-*-sco3.2v5*) 6826 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6827 SAVE_CFLAGS=$CFLAGS 6828 CFLAGS="$CFLAGS -belf" 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6830$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6831if ${lt_cv_cc_needs_belf+:} false; then : 6832 $as_echo_n "(cached) " >&6 6833else 6834 ac_ext=c 6835ac_cpp='$CPP $CPPFLAGS' 6836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6838ac_compiler_gnu=$ac_cv_c_compiler_gnu 6839 6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842 6843int 6844main () 6845{ 6846 6847 ; 6848 return 0; 6849} 6850_ACEOF 6851if ac_fn_c_try_link "$LINENO"; then : 6852 lt_cv_cc_needs_belf=yes 6853else 6854 lt_cv_cc_needs_belf=no 6855fi 6856rm -f core conftest.err conftest.$ac_objext \ 6857 conftest$ac_exeext conftest.$ac_ext 6858 ac_ext=c 6859ac_cpp='$CPP $CPPFLAGS' 6860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6862ac_compiler_gnu=$ac_cv_c_compiler_gnu 6863 6864fi 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6866$as_echo "$lt_cv_cc_needs_belf" >&6; } 6867 if test yes != "$lt_cv_cc_needs_belf"; then 6868 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6869 CFLAGS=$SAVE_CFLAGS 6870 fi 6871 ;; 6872*-*solaris*) 6873 # Find out what ABI is being produced by ac_compile, and set linker 6874 # options accordingly. 6875 echo 'int i;' > conftest.$ac_ext 6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6877 (eval $ac_compile) 2>&5 6878 ac_status=$? 6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6880 test $ac_status = 0; }; then 6881 case `/usr/bin/file conftest.o` in 6882 *64-bit*) 6883 case $lt_cv_prog_gnu_ld in 6884 yes*) 6885 case $host in 6886 i?86-*-solaris*|x86_64-*-solaris*) 6887 LD="${LD-ld} -m elf_x86_64" 6888 ;; 6889 sparc*-*-solaris*) 6890 LD="${LD-ld} -m elf64_sparc" 6891 ;; 6892 esac 6893 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6894 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6895 LD=${LD-ld}_sol2 6896 fi 6897 ;; 6898 *) 6899 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6900 LD="${LD-ld} -64" 6901 fi 6902 ;; 6903 esac 6904 ;; 6905 esac 6906 fi 6907 rm -rf conftest* 6908 ;; 6909esac 6910 6911need_locks=$enable_libtool_lock 6912 6913if test -n "$ac_tool_prefix"; then 6914 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6915set dummy ${ac_tool_prefix}mt; ac_word=$2 6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6917$as_echo_n "checking for $ac_word... " >&6; } 6918if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6919 $as_echo_n "(cached) " >&6 6920else 6921 if test -n "$MANIFEST_TOOL"; then 6922 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6923else 6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925for as_dir in $PATH 6926do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6931 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935done 6936 done 6937IFS=$as_save_IFS 6938 6939fi 6940fi 6941MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6942if test -n "$MANIFEST_TOOL"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6944$as_echo "$MANIFEST_TOOL" >&6; } 6945else 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947$as_echo "no" >&6; } 6948fi 6949 6950 6951fi 6952if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6953 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6954 # Extract the first word of "mt", so it can be a program name with args. 6955set dummy mt; ac_word=$2 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6957$as_echo_n "checking for $ac_word... " >&6; } 6958if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 if test -n "$ac_ct_MANIFEST_TOOL"; then 6962 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6963else 6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965for as_dir in $PATH 6966do 6967 IFS=$as_save_IFS 6968 test -z "$as_dir" && as_dir=. 6969 for ac_exec_ext in '' $ac_executable_extensions; do 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6971 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6973 break 2 6974 fi 6975done 6976 done 6977IFS=$as_save_IFS 6978 6979fi 6980fi 6981ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6982if test -n "$ac_ct_MANIFEST_TOOL"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6984$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6985else 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6987$as_echo "no" >&6; } 6988fi 6989 6990 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6991 MANIFEST_TOOL=":" 6992 else 6993 case $cross_compiling:$ac_tool_warned in 6994yes:) 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6997ac_tool_warned=yes ;; 6998esac 6999 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7000 fi 7001else 7002 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7003fi 7004 7005test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7007$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7008if ${lt_cv_path_mainfest_tool+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 lt_cv_path_mainfest_tool=no 7012 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7013 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7014 cat conftest.err >&5 7015 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7016 lt_cv_path_mainfest_tool=yes 7017 fi 7018 rm -f conftest* 7019fi 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7021$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7022if test yes != "$lt_cv_path_mainfest_tool"; then 7023 MANIFEST_TOOL=: 7024fi 7025 7026 7027 7028 7029 7030 7031 case $host_os in 7032 rhapsody* | darwin*) 7033 if test -n "$ac_tool_prefix"; then 7034 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7035set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7037$as_echo_n "checking for $ac_word... " >&6; } 7038if ${ac_cv_prog_DSYMUTIL+:} false; then : 7039 $as_echo_n "(cached) " >&6 7040else 7041 if test -n "$DSYMUTIL"; then 7042 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7043else 7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7045for as_dir in $PATH 7046do 7047 IFS=$as_save_IFS 7048 test -z "$as_dir" && as_dir=. 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7051 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7053 break 2 7054 fi 7055done 7056 done 7057IFS=$as_save_IFS 7058 7059fi 7060fi 7061DSYMUTIL=$ac_cv_prog_DSYMUTIL 7062if test -n "$DSYMUTIL"; then 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7064$as_echo "$DSYMUTIL" >&6; } 7065else 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7067$as_echo "no" >&6; } 7068fi 7069 7070 7071fi 7072if test -z "$ac_cv_prog_DSYMUTIL"; then 7073 ac_ct_DSYMUTIL=$DSYMUTIL 7074 # Extract the first word of "dsymutil", so it can be a program name with args. 7075set dummy dsymutil; ac_word=$2 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077$as_echo_n "checking for $ac_word... " >&6; } 7078if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 if test -n "$ac_ct_DSYMUTIL"; then 7082 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7083else 7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7085for as_dir in $PATH 7086do 7087 IFS=$as_save_IFS 7088 test -z "$as_dir" && as_dir=. 7089 for ac_exec_ext in '' $ac_executable_extensions; do 7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7091 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7093 break 2 7094 fi 7095done 7096 done 7097IFS=$as_save_IFS 7098 7099fi 7100fi 7101ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7102if test -n "$ac_ct_DSYMUTIL"; then 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7104$as_echo "$ac_ct_DSYMUTIL" >&6; } 7105else 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7107$as_echo "no" >&6; } 7108fi 7109 7110 if test "x$ac_ct_DSYMUTIL" = x; then 7111 DSYMUTIL=":" 7112 else 7113 case $cross_compiling:$ac_tool_warned in 7114yes:) 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7117ac_tool_warned=yes ;; 7118esac 7119 DSYMUTIL=$ac_ct_DSYMUTIL 7120 fi 7121else 7122 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7123fi 7124 7125 if test -n "$ac_tool_prefix"; then 7126 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7127set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7129$as_echo_n "checking for $ac_word... " >&6; } 7130if ${ac_cv_prog_NMEDIT+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132else 7133 if test -n "$NMEDIT"; then 7134 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7135else 7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7137for as_dir in $PATH 7138do 7139 IFS=$as_save_IFS 7140 test -z "$as_dir" && as_dir=. 7141 for ac_exec_ext in '' $ac_executable_extensions; do 7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7143 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7145 break 2 7146 fi 7147done 7148 done 7149IFS=$as_save_IFS 7150 7151fi 7152fi 7153NMEDIT=$ac_cv_prog_NMEDIT 7154if test -n "$NMEDIT"; then 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7156$as_echo "$NMEDIT" >&6; } 7157else 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7159$as_echo "no" >&6; } 7160fi 7161 7162 7163fi 7164if test -z "$ac_cv_prog_NMEDIT"; then 7165 ac_ct_NMEDIT=$NMEDIT 7166 # Extract the first word of "nmedit", so it can be a program name with args. 7167set dummy nmedit; ac_word=$2 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7169$as_echo_n "checking for $ac_word... " >&6; } 7170if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7171 $as_echo_n "(cached) " >&6 7172else 7173 if test -n "$ac_ct_NMEDIT"; then 7174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7175else 7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7177for as_dir in $PATH 7178do 7179 IFS=$as_save_IFS 7180 test -z "$as_dir" && as_dir=. 7181 for ac_exec_ext in '' $ac_executable_extensions; do 7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7183 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7185 break 2 7186 fi 7187done 7188 done 7189IFS=$as_save_IFS 7190 7191fi 7192fi 7193ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7194if test -n "$ac_ct_NMEDIT"; then 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7196$as_echo "$ac_ct_NMEDIT" >&6; } 7197else 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7199$as_echo "no" >&6; } 7200fi 7201 7202 if test "x$ac_ct_NMEDIT" = x; then 7203 NMEDIT=":" 7204 else 7205 case $cross_compiling:$ac_tool_warned in 7206yes:) 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7209ac_tool_warned=yes ;; 7210esac 7211 NMEDIT=$ac_ct_NMEDIT 7212 fi 7213else 7214 NMEDIT="$ac_cv_prog_NMEDIT" 7215fi 7216 7217 if test -n "$ac_tool_prefix"; then 7218 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7219set dummy ${ac_tool_prefix}lipo; ac_word=$2 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7221$as_echo_n "checking for $ac_word... " >&6; } 7222if ${ac_cv_prog_LIPO+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 if test -n "$LIPO"; then 7226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7227else 7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7235 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239done 7240 done 7241IFS=$as_save_IFS 7242 7243fi 7244fi 7245LIPO=$ac_cv_prog_LIPO 7246if test -n "$LIPO"; then 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7248$as_echo "$LIPO" >&6; } 7249else 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7251$as_echo "no" >&6; } 7252fi 7253 7254 7255fi 7256if test -z "$ac_cv_prog_LIPO"; then 7257 ac_ct_LIPO=$LIPO 7258 # Extract the first word of "lipo", so it can be a program name with args. 7259set dummy lipo; ac_word=$2 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7261$as_echo_n "checking for $ac_word... " >&6; } 7262if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264else 7265 if test -n "$ac_ct_LIPO"; then 7266 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7267else 7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269for as_dir in $PATH 7270do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7275 ac_cv_prog_ac_ct_LIPO="lipo" 7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279done 7280 done 7281IFS=$as_save_IFS 7282 7283fi 7284fi 7285ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7286if test -n "$ac_ct_LIPO"; then 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7288$as_echo "$ac_ct_LIPO" >&6; } 7289else 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7291$as_echo "no" >&6; } 7292fi 7293 7294 if test "x$ac_ct_LIPO" = x; then 7295 LIPO=":" 7296 else 7297 case $cross_compiling:$ac_tool_warned in 7298yes:) 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7301ac_tool_warned=yes ;; 7302esac 7303 LIPO=$ac_ct_LIPO 7304 fi 7305else 7306 LIPO="$ac_cv_prog_LIPO" 7307fi 7308 7309 if test -n "$ac_tool_prefix"; then 7310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7311set dummy ${ac_tool_prefix}otool; ac_word=$2 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7313$as_echo_n "checking for $ac_word... " >&6; } 7314if ${ac_cv_prog_OTOOL+:} false; then : 7315 $as_echo_n "(cached) " >&6 7316else 7317 if test -n "$OTOOL"; then 7318 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7319else 7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7321for as_dir in $PATH 7322do 7323 IFS=$as_save_IFS 7324 test -z "$as_dir" && as_dir=. 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7327 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331done 7332 done 7333IFS=$as_save_IFS 7334 7335fi 7336fi 7337OTOOL=$ac_cv_prog_OTOOL 7338if test -n "$OTOOL"; then 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7340$as_echo "$OTOOL" >&6; } 7341else 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7343$as_echo "no" >&6; } 7344fi 7345 7346 7347fi 7348if test -z "$ac_cv_prog_OTOOL"; then 7349 ac_ct_OTOOL=$OTOOL 7350 # Extract the first word of "otool", so it can be a program name with args. 7351set dummy otool; ac_word=$2 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7353$as_echo_n "checking for $ac_word... " >&6; } 7354if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356else 7357 if test -n "$ac_ct_OTOOL"; then 7358 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7359else 7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361for as_dir in $PATH 7362do 7363 IFS=$as_save_IFS 7364 test -z "$as_dir" && as_dir=. 7365 for ac_exec_ext in '' $ac_executable_extensions; do 7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7367 ac_cv_prog_ac_ct_OTOOL="otool" 7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7369 break 2 7370 fi 7371done 7372 done 7373IFS=$as_save_IFS 7374 7375fi 7376fi 7377ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7378if test -n "$ac_ct_OTOOL"; then 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7380$as_echo "$ac_ct_OTOOL" >&6; } 7381else 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7383$as_echo "no" >&6; } 7384fi 7385 7386 if test "x$ac_ct_OTOOL" = x; then 7387 OTOOL=":" 7388 else 7389 case $cross_compiling:$ac_tool_warned in 7390yes:) 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7393ac_tool_warned=yes ;; 7394esac 7395 OTOOL=$ac_ct_OTOOL 7396 fi 7397else 7398 OTOOL="$ac_cv_prog_OTOOL" 7399fi 7400 7401 if test -n "$ac_tool_prefix"; then 7402 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7403set dummy ${ac_tool_prefix}otool64; ac_word=$2 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7405$as_echo_n "checking for $ac_word... " >&6; } 7406if ${ac_cv_prog_OTOOL64+:} false; then : 7407 $as_echo_n "(cached) " >&6 7408else 7409 if test -n "$OTOOL64"; then 7410 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7411else 7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7413for as_dir in $PATH 7414do 7415 IFS=$as_save_IFS 7416 test -z "$as_dir" && as_dir=. 7417 for ac_exec_ext in '' $ac_executable_extensions; do 7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7419 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7421 break 2 7422 fi 7423done 7424 done 7425IFS=$as_save_IFS 7426 7427fi 7428fi 7429OTOOL64=$ac_cv_prog_OTOOL64 7430if test -n "$OTOOL64"; then 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7432$as_echo "$OTOOL64" >&6; } 7433else 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7435$as_echo "no" >&6; } 7436fi 7437 7438 7439fi 7440if test -z "$ac_cv_prog_OTOOL64"; then 7441 ac_ct_OTOOL64=$OTOOL64 7442 # Extract the first word of "otool64", so it can be a program name with args. 7443set dummy otool64; ac_word=$2 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7445$as_echo_n "checking for $ac_word... " >&6; } 7446if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 if test -n "$ac_ct_OTOOL64"; then 7450 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7451else 7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453for as_dir in $PATH 7454do 7455 IFS=$as_save_IFS 7456 test -z "$as_dir" && as_dir=. 7457 for ac_exec_ext in '' $ac_executable_extensions; do 7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 ac_cv_prog_ac_ct_OTOOL64="otool64" 7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 break 2 7462 fi 7463done 7464 done 7465IFS=$as_save_IFS 7466 7467fi 7468fi 7469ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7470if test -n "$ac_ct_OTOOL64"; then 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7472$as_echo "$ac_ct_OTOOL64" >&6; } 7473else 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7475$as_echo "no" >&6; } 7476fi 7477 7478 if test "x$ac_ct_OTOOL64" = x; then 7479 OTOOL64=":" 7480 else 7481 case $cross_compiling:$ac_tool_warned in 7482yes:) 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7485ac_tool_warned=yes ;; 7486esac 7487 OTOOL64=$ac_ct_OTOOL64 7488 fi 7489else 7490 OTOOL64="$ac_cv_prog_OTOOL64" 7491fi 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7520$as_echo_n "checking for -single_module linker flag... " >&6; } 7521if ${lt_cv_apple_cc_single_mod+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 lt_cv_apple_cc_single_mod=no 7525 if test -z "$LT_MULTI_MODULE"; then 7526 # By default we will add the -single_module flag. You can override 7527 # by either setting the environment variable LT_MULTI_MODULE 7528 # non-empty at configure time, or by adding -multi_module to the 7529 # link flags. 7530 rm -rf libconftest.dylib* 7531 echo "int foo(void){return 1;}" > conftest.c 7532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7533-dynamiclib -Wl,-single_module conftest.c" >&5 7534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7536 _lt_result=$? 7537 # If there is a non-empty error log, and "single_module" 7538 # appears in it, assume the flag caused a linker warning 7539 if test -s conftest.err && $GREP single_module conftest.err; then 7540 cat conftest.err >&5 7541 # Otherwise, if the output was created with a 0 exit code from 7542 # the compiler, it worked. 7543 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7544 lt_cv_apple_cc_single_mod=yes 7545 else 7546 cat conftest.err >&5 7547 fi 7548 rm -rf libconftest.dylib* 7549 rm -f conftest.* 7550 fi 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7553$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7554 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7556$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7557if ${lt_cv_ld_exported_symbols_list+:} false; then : 7558 $as_echo_n "(cached) " >&6 7559else 7560 lt_cv_ld_exported_symbols_list=no 7561 save_LDFLAGS=$LDFLAGS 7562 echo "_main" > conftest.sym 7563 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7565/* end confdefs.h. */ 7566 7567int 7568main () 7569{ 7570 7571 ; 7572 return 0; 7573} 7574_ACEOF 7575if ac_fn_c_try_link "$LINENO"; then : 7576 lt_cv_ld_exported_symbols_list=yes 7577else 7578 lt_cv_ld_exported_symbols_list=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext \ 7581 conftest$ac_exeext conftest.$ac_ext 7582 LDFLAGS=$save_LDFLAGS 7583 7584fi 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7586$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7587 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7589$as_echo_n "checking for -force_load linker flag... " >&6; } 7590if ${lt_cv_ld_force_load+:} false; then : 7591 $as_echo_n "(cached) " >&6 7592else 7593 lt_cv_ld_force_load=no 7594 cat > conftest.c << _LT_EOF 7595int forced_loaded() { return 2;} 7596_LT_EOF 7597 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7598 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7599 echo "$AR cru libconftest.a conftest.o" >&5 7600 $AR cru libconftest.a conftest.o 2>&5 7601 echo "$RANLIB libconftest.a" >&5 7602 $RANLIB libconftest.a 2>&5 7603 cat > conftest.c << _LT_EOF 7604int main() { return 0;} 7605_LT_EOF 7606 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7607 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7608 _lt_result=$? 7609 if test -s conftest.err && $GREP force_load conftest.err; then 7610 cat conftest.err >&5 7611 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7612 lt_cv_ld_force_load=yes 7613 else 7614 cat conftest.err >&5 7615 fi 7616 rm -f conftest.err libconftest.a conftest conftest.c 7617 rm -rf conftest.dSYM 7618 7619fi 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7621$as_echo "$lt_cv_ld_force_load" >&6; } 7622 case $host_os in 7623 rhapsody* | darwin1.[012]) 7624 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7625 darwin1.*) 7626 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7627 darwin*) # darwin 5.x on 7628 # if running on 10.5 or later, the deployment target defaults 7629 # to the OS version, if on x86, and 10.4, the deployment 7630 # target defaults to 10.4. Don't you love it? 7631 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7632 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7633 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7634 10.[012][,.]*) 7635 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7636 10.*) 7637 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7638 esac 7639 ;; 7640 esac 7641 if test yes = "$lt_cv_apple_cc_single_mod"; then 7642 _lt_dar_single_mod='$single_module' 7643 fi 7644 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7645 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7646 else 7647 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7648 fi 7649 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7650 _lt_dsymutil='~$DSYMUTIL $lib || :' 7651 else 7652 _lt_dsymutil= 7653 fi 7654 ;; 7655 esac 7656 7657# func_munge_path_list VARIABLE PATH 7658# ----------------------------------- 7659# VARIABLE is name of variable containing _space_ separated list of 7660# directories to be munged by the contents of PATH, which is string 7661# having a format: 7662# "DIR[:DIR]:" 7663# string "DIR[ DIR]" will be prepended to VARIABLE 7664# ":DIR[:DIR]" 7665# string "DIR[ DIR]" will be appended to VARIABLE 7666# "DIRP[:DIRP]::[DIRA:]DIRA" 7667# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7668# "DIRA[ DIRA]" will be appended to VARIABLE 7669# "DIR[:DIR]" 7670# VARIABLE will be replaced by "DIR[ DIR]" 7671func_munge_path_list () 7672{ 7673 case x$2 in 7674 x) 7675 ;; 7676 *:) 7677 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7678 ;; 7679 x:*) 7680 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7681 ;; 7682 *::*) 7683 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7684 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7685 ;; 7686 *) 7687 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7688 ;; 7689 esac 7690} 7691 7692ac_ext=c 7693ac_cpp='$CPP $CPPFLAGS' 7694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7696ac_compiler_gnu=$ac_cv_c_compiler_gnu 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7698$as_echo_n "checking how to run the C preprocessor... " >&6; } 7699# On Suns, sometimes $CPP names a directory. 7700if test -n "$CPP" && test -d "$CPP"; then 7701 CPP= 7702fi 7703if test -z "$CPP"; then 7704 if ${ac_cv_prog_CPP+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 # Double quotes because CPP needs to be expanded 7708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7709 do 7710 ac_preproc_ok=false 7711for ac_c_preproc_warn_flag in '' yes 7712do 7713 # Use a header file that comes with gcc, so configuring glibc 7714 # with a fresh cross-compiler works. 7715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7716 # <limits.h> exists even on freestanding compilers. 7717 # On the NeXT, cc -E runs the code through the compiler's parser, 7718 # not just through cpp. "Syntax error" is here to catch this case. 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721#ifdef __STDC__ 7722# include <limits.h> 7723#else 7724# include <assert.h> 7725#endif 7726 Syntax error 7727_ACEOF 7728if ac_fn_c_try_cpp "$LINENO"; then : 7729 7730else 7731 # Broken: fails on valid input. 7732continue 7733fi 7734rm -f conftest.err conftest.i conftest.$ac_ext 7735 7736 # OK, works on sane cases. Now check whether nonexistent headers 7737 # can be detected and how. 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740#include <ac_nonexistent.h> 7741_ACEOF 7742if ac_fn_c_try_cpp "$LINENO"; then : 7743 # Broken: success on invalid input. 7744continue 7745else 7746 # Passes both tests. 7747ac_preproc_ok=: 7748break 7749fi 7750rm -f conftest.err conftest.i conftest.$ac_ext 7751 7752done 7753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7754rm -f conftest.i conftest.err conftest.$ac_ext 7755if $ac_preproc_ok; then : 7756 break 7757fi 7758 7759 done 7760 ac_cv_prog_CPP=$CPP 7761 7762fi 7763 CPP=$ac_cv_prog_CPP 7764else 7765 ac_cv_prog_CPP=$CPP 7766fi 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7768$as_echo "$CPP" >&6; } 7769ac_preproc_ok=false 7770for ac_c_preproc_warn_flag in '' yes 7771do 7772 # Use a header file that comes with gcc, so configuring glibc 7773 # with a fresh cross-compiler works. 7774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7775 # <limits.h> exists even on freestanding compilers. 7776 # On the NeXT, cc -E runs the code through the compiler's parser, 7777 # not just through cpp. "Syntax error" is here to catch this case. 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780#ifdef __STDC__ 7781# include <limits.h> 7782#else 7783# include <assert.h> 7784#endif 7785 Syntax error 7786_ACEOF 7787if ac_fn_c_try_cpp "$LINENO"; then : 7788 7789else 7790 # Broken: fails on valid input. 7791continue 7792fi 7793rm -f conftest.err conftest.i conftest.$ac_ext 7794 7795 # OK, works on sane cases. Now check whether nonexistent headers 7796 # can be detected and how. 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798/* end confdefs.h. */ 7799#include <ac_nonexistent.h> 7800_ACEOF 7801if ac_fn_c_try_cpp "$LINENO"; then : 7802 # Broken: success on invalid input. 7803continue 7804else 7805 # Passes both tests. 7806ac_preproc_ok=: 7807break 7808fi 7809rm -f conftest.err conftest.i conftest.$ac_ext 7810 7811done 7812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7813rm -f conftest.i conftest.err conftest.$ac_ext 7814if $ac_preproc_ok; then : 7815 7816else 7817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7819as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7820See \`config.log' for more details" "$LINENO" 5; } 7821fi 7822 7823ac_ext=c 7824ac_cpp='$CPP $CPPFLAGS' 7825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7827ac_compiler_gnu=$ac_cv_c_compiler_gnu 7828 7829 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7831$as_echo_n "checking for ANSI C header files... " >&6; } 7832if ${ac_cv_header_stdc+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834else 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837#include <stdlib.h> 7838#include <stdarg.h> 7839#include <string.h> 7840#include <float.h> 7841 7842int 7843main () 7844{ 7845 7846 ; 7847 return 0; 7848} 7849_ACEOF 7850if ac_fn_c_try_compile "$LINENO"; then : 7851 ac_cv_header_stdc=yes 7852else 7853 ac_cv_header_stdc=no 7854fi 7855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7856 7857if test $ac_cv_header_stdc = yes; then 7858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7860/* end confdefs.h. */ 7861#include <string.h> 7862 7863_ACEOF 7864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7865 $EGREP "memchr" >/dev/null 2>&1; then : 7866 7867else 7868 ac_cv_header_stdc=no 7869fi 7870rm -f conftest* 7871 7872fi 7873 7874if test $ac_cv_header_stdc = yes; then 7875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878#include <stdlib.h> 7879 7880_ACEOF 7881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7882 $EGREP "free" >/dev/null 2>&1; then : 7883 7884else 7885 ac_cv_header_stdc=no 7886fi 7887rm -f conftest* 7888 7889fi 7890 7891if test $ac_cv_header_stdc = yes; then 7892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7893 if test "$cross_compiling" = yes; then : 7894 : 7895else 7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898#include <ctype.h> 7899#include <stdlib.h> 7900#if ((' ' & 0x0FF) == 0x020) 7901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7903#else 7904# define ISLOWER(c) \ 7905 (('a' <= (c) && (c) <= 'i') \ 7906 || ('j' <= (c) && (c) <= 'r') \ 7907 || ('s' <= (c) && (c) <= 'z')) 7908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7909#endif 7910 7911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7912int 7913main () 7914{ 7915 int i; 7916 for (i = 0; i < 256; i++) 7917 if (XOR (islower (i), ISLOWER (i)) 7918 || toupper (i) != TOUPPER (i)) 7919 return 2; 7920 return 0; 7921} 7922_ACEOF 7923if ac_fn_c_try_run "$LINENO"; then : 7924 7925else 7926 ac_cv_header_stdc=no 7927fi 7928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7929 conftest.$ac_objext conftest.beam conftest.$ac_ext 7930fi 7931 7932fi 7933fi 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7935$as_echo "$ac_cv_header_stdc" >&6; } 7936if test $ac_cv_header_stdc = yes; then 7937 7938$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7939 7940fi 7941 7942# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7943for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7944 inttypes.h stdint.h unistd.h 7945do : 7946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7947ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7948" 7949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7950 cat >>confdefs.h <<_ACEOF 7951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7952_ACEOF 7953 7954fi 7955 7956done 7957 7958 7959for ac_header in dlfcn.h 7960do : 7961 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7962" 7963if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7964 cat >>confdefs.h <<_ACEOF 7965#define HAVE_DLFCN_H 1 7966_ACEOF 7967 7968fi 7969 7970done 7971 7972 7973 7974 7975 7976# Set options 7977enable_win32_dll=yes 7978 7979case $host in 7980*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7981 if test -n "$ac_tool_prefix"; then 7982 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7983set dummy ${ac_tool_prefix}as; ac_word=$2 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985$as_echo_n "checking for $ac_word... " >&6; } 7986if ${ac_cv_prog_AS+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 if test -n "$AS"; then 7990 ac_cv_prog_AS="$AS" # Let the user override the test. 7991else 7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7993for as_dir in $PATH 7994do 7995 IFS=$as_save_IFS 7996 test -z "$as_dir" && as_dir=. 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7999 ac_cv_prog_AS="${ac_tool_prefix}as" 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8001 break 2 8002 fi 8003done 8004 done 8005IFS=$as_save_IFS 8006 8007fi 8008fi 8009AS=$ac_cv_prog_AS 8010if test -n "$AS"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8012$as_echo "$AS" >&6; } 8013else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015$as_echo "no" >&6; } 8016fi 8017 8018 8019fi 8020if test -z "$ac_cv_prog_AS"; then 8021 ac_ct_AS=$AS 8022 # Extract the first word of "as", so it can be a program name with args. 8023set dummy as; ac_word=$2 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025$as_echo_n "checking for $ac_word... " >&6; } 8026if ${ac_cv_prog_ac_ct_AS+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 if test -n "$ac_ct_AS"; then 8030 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8031else 8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8033for as_dir in $PATH 8034do 8035 IFS=$as_save_IFS 8036 test -z "$as_dir" && as_dir=. 8037 for ac_exec_ext in '' $ac_executable_extensions; do 8038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8039 ac_cv_prog_ac_ct_AS="as" 8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8041 break 2 8042 fi 8043done 8044 done 8045IFS=$as_save_IFS 8046 8047fi 8048fi 8049ac_ct_AS=$ac_cv_prog_ac_ct_AS 8050if test -n "$ac_ct_AS"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8052$as_echo "$ac_ct_AS" >&6; } 8053else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8055$as_echo "no" >&6; } 8056fi 8057 8058 if test "x$ac_ct_AS" = x; then 8059 AS="false" 8060 else 8061 case $cross_compiling:$ac_tool_warned in 8062yes:) 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8065ac_tool_warned=yes ;; 8066esac 8067 AS=$ac_ct_AS 8068 fi 8069else 8070 AS="$ac_cv_prog_AS" 8071fi 8072 8073 if test -n "$ac_tool_prefix"; then 8074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8075set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8077$as_echo_n "checking for $ac_word... " >&6; } 8078if ${ac_cv_prog_DLLTOOL+:} false; then : 8079 $as_echo_n "(cached) " >&6 8080else 8081 if test -n "$DLLTOOL"; then 8082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8083else 8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8085for as_dir in $PATH 8086do 8087 IFS=$as_save_IFS 8088 test -z "$as_dir" && as_dir=. 8089 for ac_exec_ext in '' $ac_executable_extensions; do 8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8091 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8093 break 2 8094 fi 8095done 8096 done 8097IFS=$as_save_IFS 8098 8099fi 8100fi 8101DLLTOOL=$ac_cv_prog_DLLTOOL 8102if test -n "$DLLTOOL"; then 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8104$as_echo "$DLLTOOL" >&6; } 8105else 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8107$as_echo "no" >&6; } 8108fi 8109 8110 8111fi 8112if test -z "$ac_cv_prog_DLLTOOL"; then 8113 ac_ct_DLLTOOL=$DLLTOOL 8114 # Extract the first word of "dlltool", so it can be a program name with args. 8115set dummy dlltool; ac_word=$2 8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8117$as_echo_n "checking for $ac_word... " >&6; } 8118if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120else 8121 if test -n "$ac_ct_DLLTOOL"; then 8122 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8123else 8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8125for as_dir in $PATH 8126do 8127 IFS=$as_save_IFS 8128 test -z "$as_dir" && as_dir=. 8129 for ac_exec_ext in '' $ac_executable_extensions; do 8130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8131 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8133 break 2 8134 fi 8135done 8136 done 8137IFS=$as_save_IFS 8138 8139fi 8140fi 8141ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8142if test -n "$ac_ct_DLLTOOL"; then 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8144$as_echo "$ac_ct_DLLTOOL" >&6; } 8145else 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8147$as_echo "no" >&6; } 8148fi 8149 8150 if test "x$ac_ct_DLLTOOL" = x; then 8151 DLLTOOL="false" 8152 else 8153 case $cross_compiling:$ac_tool_warned in 8154yes:) 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8157ac_tool_warned=yes ;; 8158esac 8159 DLLTOOL=$ac_ct_DLLTOOL 8160 fi 8161else 8162 DLLTOOL="$ac_cv_prog_DLLTOOL" 8163fi 8164 8165 if test -n "$ac_tool_prefix"; then 8166 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8167set dummy ${ac_tool_prefix}objdump; ac_word=$2 8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8169$as_echo_n "checking for $ac_word... " >&6; } 8170if ${ac_cv_prog_OBJDUMP+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172else 8173 if test -n "$OBJDUMP"; then 8174 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8175else 8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177for as_dir in $PATH 8178do 8179 IFS=$as_save_IFS 8180 test -z "$as_dir" && as_dir=. 8181 for ac_exec_ext in '' $ac_executable_extensions; do 8182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8183 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8185 break 2 8186 fi 8187done 8188 done 8189IFS=$as_save_IFS 8190 8191fi 8192fi 8193OBJDUMP=$ac_cv_prog_OBJDUMP 8194if test -n "$OBJDUMP"; then 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8196$as_echo "$OBJDUMP" >&6; } 8197else 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8199$as_echo "no" >&6; } 8200fi 8201 8202 8203fi 8204if test -z "$ac_cv_prog_OBJDUMP"; then 8205 ac_ct_OBJDUMP=$OBJDUMP 8206 # Extract the first word of "objdump", so it can be a program name with args. 8207set dummy objdump; ac_word=$2 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8209$as_echo_n "checking for $ac_word... " >&6; } 8210if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 if test -n "$ac_ct_OBJDUMP"; then 8214 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8215else 8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8217for as_dir in $PATH 8218do 8219 IFS=$as_save_IFS 8220 test -z "$as_dir" && as_dir=. 8221 for ac_exec_ext in '' $ac_executable_extensions; do 8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8223 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8225 break 2 8226 fi 8227done 8228 done 8229IFS=$as_save_IFS 8230 8231fi 8232fi 8233ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8234if test -n "$ac_ct_OBJDUMP"; then 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8236$as_echo "$ac_ct_OBJDUMP" >&6; } 8237else 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8239$as_echo "no" >&6; } 8240fi 8241 8242 if test "x$ac_ct_OBJDUMP" = x; then 8243 OBJDUMP="false" 8244 else 8245 case $cross_compiling:$ac_tool_warned in 8246yes:) 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8249ac_tool_warned=yes ;; 8250esac 8251 OBJDUMP=$ac_ct_OBJDUMP 8252 fi 8253else 8254 OBJDUMP="$ac_cv_prog_OBJDUMP" 8255fi 8256 8257 ;; 8258esac 8259 8260test -z "$AS" && AS=as 8261 8262 8263 8264 8265 8266test -z "$DLLTOOL" && DLLTOOL=dlltool 8267 8268 8269 8270 8271 8272test -z "$OBJDUMP" && OBJDUMP=objdump 8273 8274 8275 8276 8277 8278 8279 8280 enable_dlopen=no 8281 8282 8283 8284 # Check whether --enable-shared was given. 8285if test "${enable_shared+set}" = set; then : 8286 enableval=$enable_shared; p=${PACKAGE-default} 8287 case $enableval in 8288 yes) enable_shared=yes ;; 8289 no) enable_shared=no ;; 8290 *) 8291 enable_shared=no 8292 # Look at the argument we got. We use all the common list separators. 8293 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8294 for pkg in $enableval; do 8295 IFS=$lt_save_ifs 8296 if test "X$pkg" = "X$p"; then 8297 enable_shared=yes 8298 fi 8299 done 8300 IFS=$lt_save_ifs 8301 ;; 8302 esac 8303else 8304 enable_shared=yes 8305fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 # Check whether --enable-static was given. 8316if test "${enable_static+set}" = set; then : 8317 enableval=$enable_static; p=${PACKAGE-default} 8318 case $enableval in 8319 yes) enable_static=yes ;; 8320 no) enable_static=no ;; 8321 *) 8322 enable_static=no 8323 # Look at the argument we got. We use all the common list separators. 8324 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8325 for pkg in $enableval; do 8326 IFS=$lt_save_ifs 8327 if test "X$pkg" = "X$p"; then 8328 enable_static=yes 8329 fi 8330 done 8331 IFS=$lt_save_ifs 8332 ;; 8333 esac 8334else 8335 enable_static=yes 8336fi 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347# Check whether --with-pic was given. 8348if test "${with_pic+set}" = set; then : 8349 withval=$with_pic; lt_p=${PACKAGE-default} 8350 case $withval in 8351 yes|no) pic_mode=$withval ;; 8352 *) 8353 pic_mode=default 8354 # Look at the argument we got. We use all the common list separators. 8355 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8356 for lt_pkg in $withval; do 8357 IFS=$lt_save_ifs 8358 if test "X$lt_pkg" = "X$lt_p"; then 8359 pic_mode=yes 8360 fi 8361 done 8362 IFS=$lt_save_ifs 8363 ;; 8364 esac 8365else 8366 pic_mode=default 8367fi 8368 8369 8370 8371 8372 8373 8374 8375 8376 # Check whether --enable-fast-install was given. 8377if test "${enable_fast_install+set}" = set; then : 8378 enableval=$enable_fast_install; p=${PACKAGE-default} 8379 case $enableval in 8380 yes) enable_fast_install=yes ;; 8381 no) enable_fast_install=no ;; 8382 *) 8383 enable_fast_install=no 8384 # Look at the argument we got. We use all the common list separators. 8385 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8386 for pkg in $enableval; do 8387 IFS=$lt_save_ifs 8388 if test "X$pkg" = "X$p"; then 8389 enable_fast_install=yes 8390 fi 8391 done 8392 IFS=$lt_save_ifs 8393 ;; 8394 esac 8395else 8396 enable_fast_install=yes 8397fi 8398 8399 8400 8401 8402 8403 8404 8405 8406 shared_archive_member_spec= 8407case $host,$enable_shared in 8408power*-*-aix[5-9]*,yes) 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8410$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8411 8412# Check whether --with-aix-soname was given. 8413if test "${with_aix_soname+set}" = set; then : 8414 withval=$with_aix_soname; case $withval in 8415 aix|svr4|both) 8416 ;; 8417 *) 8418 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8419 ;; 8420 esac 8421 lt_cv_with_aix_soname=$with_aix_soname 8422else 8423 if ${lt_cv_with_aix_soname+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 lt_cv_with_aix_soname=aix 8427fi 8428 8429 with_aix_soname=$lt_cv_with_aix_soname 8430fi 8431 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8433$as_echo "$with_aix_soname" >&6; } 8434 if test aix != "$with_aix_soname"; then 8435 # For the AIX way of multilib, we name the shared archive member 8436 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8437 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8438 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8439 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8440 if test 64 = "${OBJECT_MODE-32}"; then 8441 shared_archive_member_spec=shr_64 8442 else 8443 shared_archive_member_spec=shr 8444 fi 8445 fi 8446 ;; 8447*) 8448 with_aix_soname=aix 8449 ;; 8450esac 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461# This can be used to rebuild libtool when needed 8462LIBTOOL_DEPS=$ltmain 8463 8464# Always use our own libtool. 8465LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496test -z "$LN_S" && LN_S="ln -s" 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511if test -n "${ZSH_VERSION+set}"; then 8512 setopt NO_GLOB_SUBST 8513fi 8514 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8516$as_echo_n "checking for objdir... " >&6; } 8517if ${lt_cv_objdir+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 rm -f .libs 2>/dev/null 8521mkdir .libs 2>/dev/null 8522if test -d .libs; then 8523 lt_cv_objdir=.libs 8524else 8525 # MS-DOS does not allow filenames that begin with a dot. 8526 lt_cv_objdir=_libs 8527fi 8528rmdir .libs 2>/dev/null 8529fi 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8531$as_echo "$lt_cv_objdir" >&6; } 8532objdir=$lt_cv_objdir 8533 8534 8535 8536 8537 8538cat >>confdefs.h <<_ACEOF 8539#define LT_OBJDIR "$lt_cv_objdir/" 8540_ACEOF 8541 8542 8543 8544 8545case $host_os in 8546aix3*) 8547 # AIX sometimes has problems with the GCC collect2 program. For some 8548 # reason, if we set the COLLECT_NAMES environment variable, the problems 8549 # vanish in a puff of smoke. 8550 if test set != "${COLLECT_NAMES+set}"; then 8551 COLLECT_NAMES= 8552 export COLLECT_NAMES 8553 fi 8554 ;; 8555esac 8556 8557# Global variables: 8558ofile=libtool 8559can_build_shared=yes 8560 8561# All known linkers require a '.a' archive for static linking (except MSVC, 8562# which needs '.lib'). 8563libext=a 8564 8565with_gnu_ld=$lt_cv_prog_gnu_ld 8566 8567old_CC=$CC 8568old_CFLAGS=$CFLAGS 8569 8570# Set sane defaults for various variables 8571test -z "$CC" && CC=cc 8572test -z "$LTCC" && LTCC=$CC 8573test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8574test -z "$LD" && LD=ld 8575test -z "$ac_objext" && ac_objext=o 8576 8577func_cc_basename $compiler 8578cc_basename=$func_cc_basename_result 8579 8580 8581# Only perform the check for file, if the check method requires it 8582test -z "$MAGIC_CMD" && MAGIC_CMD=file 8583case $deplibs_check_method in 8584file_magic*) 8585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8587$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8588if ${lt_cv_path_MAGIC_CMD+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 case $MAGIC_CMD in 8592[\\/*] | ?:[\\/]*) 8593 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8594 ;; 8595*) 8596 lt_save_MAGIC_CMD=$MAGIC_CMD 8597 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8599 for ac_dir in $ac_dummy; do 8600 IFS=$lt_save_ifs 8601 test -z "$ac_dir" && ac_dir=. 8602 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8603 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8604 if test -n "$file_magic_test_file"; then 8605 case $deplibs_check_method in 8606 "file_magic "*) 8607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8608 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8610 $EGREP "$file_magic_regex" > /dev/null; then 8611 : 8612 else 8613 cat <<_LT_EOF 1>&2 8614 8615*** Warning: the command libtool uses to detect shared libraries, 8616*** $file_magic_cmd, produces output that libtool cannot recognize. 8617*** The result is that libtool may fail to recognize shared libraries 8618*** as such. This will affect the creation of libtool libraries that 8619*** depend on shared libraries, but programs linked with such libtool 8620*** libraries will work regardless of this problem. Nevertheless, you 8621*** may want to report the problem to your system manager and/or to 8622*** bug-libtool@gnu.org 8623 8624_LT_EOF 8625 fi ;; 8626 esac 8627 fi 8628 break 8629 fi 8630 done 8631 IFS=$lt_save_ifs 8632 MAGIC_CMD=$lt_save_MAGIC_CMD 8633 ;; 8634esac 8635fi 8636 8637MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8638if test -n "$MAGIC_CMD"; then 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8640$as_echo "$MAGIC_CMD" >&6; } 8641else 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8643$as_echo "no" >&6; } 8644fi 8645 8646 8647 8648 8649 8650if test -z "$lt_cv_path_MAGIC_CMD"; then 8651 if test -n "$ac_tool_prefix"; then 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8653$as_echo_n "checking for file... " >&6; } 8654if ${lt_cv_path_MAGIC_CMD+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 case $MAGIC_CMD in 8658[\\/*] | ?:[\\/]*) 8659 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8660 ;; 8661*) 8662 lt_save_MAGIC_CMD=$MAGIC_CMD 8663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8665 for ac_dir in $ac_dummy; do 8666 IFS=$lt_save_ifs 8667 test -z "$ac_dir" && ac_dir=. 8668 if test -f "$ac_dir/file"; then 8669 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8670 if test -n "$file_magic_test_file"; then 8671 case $deplibs_check_method in 8672 "file_magic "*) 8673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8674 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8676 $EGREP "$file_magic_regex" > /dev/null; then 8677 : 8678 else 8679 cat <<_LT_EOF 1>&2 8680 8681*** Warning: the command libtool uses to detect shared libraries, 8682*** $file_magic_cmd, produces output that libtool cannot recognize. 8683*** The result is that libtool may fail to recognize shared libraries 8684*** as such. This will affect the creation of libtool libraries that 8685*** depend on shared libraries, but programs linked with such libtool 8686*** libraries will work regardless of this problem. Nevertheless, you 8687*** may want to report the problem to your system manager and/or to 8688*** bug-libtool@gnu.org 8689 8690_LT_EOF 8691 fi ;; 8692 esac 8693 fi 8694 break 8695 fi 8696 done 8697 IFS=$lt_save_ifs 8698 MAGIC_CMD=$lt_save_MAGIC_CMD 8699 ;; 8700esac 8701fi 8702 8703MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8704if test -n "$MAGIC_CMD"; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8706$as_echo "$MAGIC_CMD" >&6; } 8707else 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8709$as_echo "no" >&6; } 8710fi 8711 8712 8713 else 8714 MAGIC_CMD=: 8715 fi 8716fi 8717 8718 fi 8719 ;; 8720esac 8721 8722# Use C for the default configuration in the libtool script 8723 8724lt_save_CC=$CC 8725ac_ext=c 8726ac_cpp='$CPP $CPPFLAGS' 8727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8729ac_compiler_gnu=$ac_cv_c_compiler_gnu 8730 8731 8732# Source file extension for C test sources. 8733ac_ext=c 8734 8735# Object file extension for compiled C test sources. 8736objext=o 8737objext=$objext 8738 8739# Code to be used in simple compile tests 8740lt_simple_compile_test_code="int some_variable = 0;" 8741 8742# Code to be used in simple link tests 8743lt_simple_link_test_code='int main(){return(0);}' 8744 8745 8746 8747 8748 8749 8750 8751# If no C compiler was specified, use CC. 8752LTCC=${LTCC-"$CC"} 8753 8754# If no C compiler flags were specified, use CFLAGS. 8755LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8756 8757# Allow CC to be a program name with arguments. 8758compiler=$CC 8759 8760# Save the default compiler, since it gets overwritten when the other 8761# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8762compiler_DEFAULT=$CC 8763 8764# save warnings/boilerplate of simple test code 8765ac_outfile=conftest.$ac_objext 8766echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8767eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8768_lt_compiler_boilerplate=`cat conftest.err` 8769$RM conftest* 8770 8771ac_outfile=conftest.$ac_objext 8772echo "$lt_simple_link_test_code" >conftest.$ac_ext 8773eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8774_lt_linker_boilerplate=`cat conftest.err` 8775$RM -r conftest* 8776 8777 8778## CAVEAT EMPTOR: 8779## There is no encapsulation within the following macros, do not change 8780## the running order or otherwise move them around unless you know exactly 8781## what you are doing... 8782if test -n "$compiler"; then 8783 8784lt_prog_compiler_no_builtin_flag= 8785 8786if test yes = "$GCC"; then 8787 case $cc_basename in 8788 nvcc*) 8789 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8790 *) 8791 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8792 esac 8793 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8795$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8796if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8797 $as_echo_n "(cached) " >&6 8798else 8799 lt_cv_prog_compiler_rtti_exceptions=no 8800 ac_outfile=conftest.$ac_objext 8801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8802 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8803 # Insert the option either (1) after the last *FLAGS variable, or 8804 # (2) before a word containing "conftest.", or (3) at the end. 8805 # Note that $ac_compile itself does not contain backslashes and begins 8806 # with a dollar sign (not a hyphen), so the echo should work correctly. 8807 # The option is referenced via a variable to avoid confusing sed. 8808 lt_compile=`echo "$ac_compile" | $SED \ 8809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8811 -e 's:$: $lt_compiler_flag:'` 8812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8813 (eval "$lt_compile" 2>conftest.err) 8814 ac_status=$? 8815 cat conftest.err >&5 8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8817 if (exit $ac_status) && test -s "$ac_outfile"; then 8818 # The compiler can only warn and ignore the option if not recognized 8819 # So say no if there are warnings other than the usual output. 8820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8823 lt_cv_prog_compiler_rtti_exceptions=yes 8824 fi 8825 fi 8826 $RM conftest* 8827 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8830$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8831 8832if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8833 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8834else 8835 : 8836fi 8837 8838fi 8839 8840 8841 8842 8843 8844 8845 lt_prog_compiler_wl= 8846lt_prog_compiler_pic= 8847lt_prog_compiler_static= 8848 8849 8850 if test yes = "$GCC"; then 8851 lt_prog_compiler_wl='-Wl,' 8852 lt_prog_compiler_static='-static' 8853 8854 case $host_os in 8855 aix*) 8856 # All AIX code is PIC. 8857 if test ia64 = "$host_cpu"; then 8858 # AIX 5 now supports IA64 processor 8859 lt_prog_compiler_static='-Bstatic' 8860 fi 8861 lt_prog_compiler_pic='-fPIC' 8862 ;; 8863 8864 amigaos*) 8865 case $host_cpu in 8866 powerpc) 8867 # see comment about AmigaOS4 .so support 8868 lt_prog_compiler_pic='-fPIC' 8869 ;; 8870 m68k) 8871 # FIXME: we need at least 68020 code to build shared libraries, but 8872 # adding the '-m68020' flag to GCC prevents building anything better, 8873 # like '-m68040'. 8874 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8875 ;; 8876 esac 8877 ;; 8878 8879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8880 # PIC is the default for these OSes. 8881 ;; 8882 8883 mingw* | cygwin* | pw32* | os2* | cegcc*) 8884 # This hack is so that the source file can tell whether it is being 8885 # built for inclusion in a dll (and should export symbols for example). 8886 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8887 # (--disable-auto-import) libraries 8888 lt_prog_compiler_pic='-DDLL_EXPORT' 8889 case $host_os in 8890 os2*) 8891 lt_prog_compiler_static='$wl-static' 8892 ;; 8893 esac 8894 ;; 8895 8896 darwin* | rhapsody*) 8897 # PIC is the default on this platform 8898 # Common symbols not allowed in MH_DYLIB files 8899 lt_prog_compiler_pic='-fno-common' 8900 ;; 8901 8902 haiku*) 8903 # PIC is the default for Haiku. 8904 # The "-static" flag exists, but is broken. 8905 lt_prog_compiler_static= 8906 ;; 8907 8908 hpux*) 8909 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8910 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8911 # sets the default TLS model and affects inlining. 8912 case $host_cpu in 8913 hppa*64*) 8914 # +Z the default 8915 ;; 8916 *) 8917 lt_prog_compiler_pic='-fPIC' 8918 ;; 8919 esac 8920 ;; 8921 8922 interix[3-9]*) 8923 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8924 # Instead, we relocate shared libraries at runtime. 8925 ;; 8926 8927 msdosdjgpp*) 8928 # Just because we use GCC doesn't mean we suddenly get shared libraries 8929 # on systems that don't support them. 8930 lt_prog_compiler_can_build_shared=no 8931 enable_shared=no 8932 ;; 8933 8934 *nto* | *qnx*) 8935 # QNX uses GNU C++, but need to define -shared option too, otherwise 8936 # it will coredump. 8937 lt_prog_compiler_pic='-fPIC -shared' 8938 ;; 8939 8940 sysv4*MP*) 8941 if test -d /usr/nec; then 8942 lt_prog_compiler_pic=-Kconform_pic 8943 fi 8944 ;; 8945 8946 *) 8947 lt_prog_compiler_pic='-fPIC' 8948 ;; 8949 esac 8950 8951 case $cc_basename in 8952 nvcc*) # Cuda Compiler Driver 2.2 8953 lt_prog_compiler_wl='-Xlinker ' 8954 if test -n "$lt_prog_compiler_pic"; then 8955 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8956 fi 8957 ;; 8958 esac 8959 else 8960 # PORTME Check for flag to pass linker flags through the system compiler. 8961 case $host_os in 8962 aix*) 8963 lt_prog_compiler_wl='-Wl,' 8964 if test ia64 = "$host_cpu"; then 8965 # AIX 5 now supports IA64 processor 8966 lt_prog_compiler_static='-Bstatic' 8967 else 8968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8969 fi 8970 ;; 8971 8972 darwin* | rhapsody*) 8973 # PIC is the default on this platform 8974 # Common symbols not allowed in MH_DYLIB files 8975 lt_prog_compiler_pic='-fno-common' 8976 case $cc_basename in 8977 nagfor*) 8978 # NAG Fortran compiler 8979 lt_prog_compiler_wl='-Wl,-Wl,,' 8980 lt_prog_compiler_pic='-PIC' 8981 lt_prog_compiler_static='-Bstatic' 8982 ;; 8983 esac 8984 ;; 8985 8986 mingw* | cygwin* | pw32* | os2* | cegcc*) 8987 # This hack is so that the source file can tell whether it is being 8988 # built for inclusion in a dll (and should export symbols for example). 8989 lt_prog_compiler_pic='-DDLL_EXPORT' 8990 case $host_os in 8991 os2*) 8992 lt_prog_compiler_static='$wl-static' 8993 ;; 8994 esac 8995 ;; 8996 8997 hpux9* | hpux10* | hpux11*) 8998 lt_prog_compiler_wl='-Wl,' 8999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9000 # not for PA HP-UX. 9001 case $host_cpu in 9002 hppa*64*|ia64*) 9003 # +Z the default 9004 ;; 9005 *) 9006 lt_prog_compiler_pic='+Z' 9007 ;; 9008 esac 9009 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9010 lt_prog_compiler_static='$wl-a ${wl}archive' 9011 ;; 9012 9013 irix5* | irix6* | nonstopux*) 9014 lt_prog_compiler_wl='-Wl,' 9015 # PIC (with -KPIC) is the default. 9016 lt_prog_compiler_static='-non_shared' 9017 ;; 9018 9019 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9020 case $cc_basename in 9021 # old Intel for x86_64, which still supported -KPIC. 9022 ecc*) 9023 lt_prog_compiler_wl='-Wl,' 9024 lt_prog_compiler_pic='-KPIC' 9025 lt_prog_compiler_static='-static' 9026 ;; 9027 # icc used to be incompatible with GCC. 9028 # ICC 10 doesn't accept -KPIC any more. 9029 icc* | ifort*) 9030 lt_prog_compiler_wl='-Wl,' 9031 lt_prog_compiler_pic='-fPIC' 9032 lt_prog_compiler_static='-static' 9033 ;; 9034 # Lahey Fortran 8.1. 9035 lf95*) 9036 lt_prog_compiler_wl='-Wl,' 9037 lt_prog_compiler_pic='--shared' 9038 lt_prog_compiler_static='--static' 9039 ;; 9040 nagfor*) 9041 # NAG Fortran compiler 9042 lt_prog_compiler_wl='-Wl,-Wl,,' 9043 lt_prog_compiler_pic='-PIC' 9044 lt_prog_compiler_static='-Bstatic' 9045 ;; 9046 tcc*) 9047 # Fabrice Bellard et al's Tiny C Compiler 9048 lt_prog_compiler_wl='-Wl,' 9049 lt_prog_compiler_pic='-fPIC' 9050 lt_prog_compiler_static='-static' 9051 ;; 9052 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9053 # Portland Group compilers (*not* the Pentium gcc compiler, 9054 # which looks to be a dead project) 9055 lt_prog_compiler_wl='-Wl,' 9056 lt_prog_compiler_pic='-fpic' 9057 lt_prog_compiler_static='-Bstatic' 9058 ;; 9059 ccc*) 9060 lt_prog_compiler_wl='-Wl,' 9061 # All Alpha code is PIC. 9062 lt_prog_compiler_static='-non_shared' 9063 ;; 9064 xl* | bgxl* | bgf* | mpixl*) 9065 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9066 lt_prog_compiler_wl='-Wl,' 9067 lt_prog_compiler_pic='-qpic' 9068 lt_prog_compiler_static='-qstaticlink' 9069 ;; 9070 *) 9071 case `$CC -V 2>&1 | sed 5q` in 9072 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9073 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9074 lt_prog_compiler_pic='-KPIC' 9075 lt_prog_compiler_static='-Bstatic' 9076 lt_prog_compiler_wl='' 9077 ;; 9078 *Sun\ F* | *Sun*Fortran*) 9079 lt_prog_compiler_pic='-KPIC' 9080 lt_prog_compiler_static='-Bstatic' 9081 lt_prog_compiler_wl='-Qoption ld ' 9082 ;; 9083 *Sun\ C*) 9084 # Sun C 5.9 9085 lt_prog_compiler_pic='-KPIC' 9086 lt_prog_compiler_static='-Bstatic' 9087 lt_prog_compiler_wl='-Wl,' 9088 ;; 9089 *Intel*\ [CF]*Compiler*) 9090 lt_prog_compiler_wl='-Wl,' 9091 lt_prog_compiler_pic='-fPIC' 9092 lt_prog_compiler_static='-static' 9093 ;; 9094 *Portland\ Group*) 9095 lt_prog_compiler_wl='-Wl,' 9096 lt_prog_compiler_pic='-fpic' 9097 lt_prog_compiler_static='-Bstatic' 9098 ;; 9099 esac 9100 ;; 9101 esac 9102 ;; 9103 9104 newsos6) 9105 lt_prog_compiler_pic='-KPIC' 9106 lt_prog_compiler_static='-Bstatic' 9107 ;; 9108 9109 *nto* | *qnx*) 9110 # QNX uses GNU C++, but need to define -shared option too, otherwise 9111 # it will coredump. 9112 lt_prog_compiler_pic='-fPIC -shared' 9113 ;; 9114 9115 osf3* | osf4* | osf5*) 9116 lt_prog_compiler_wl='-Wl,' 9117 # All OSF/1 code is PIC. 9118 lt_prog_compiler_static='-non_shared' 9119 ;; 9120 9121 rdos*) 9122 lt_prog_compiler_static='-non_shared' 9123 ;; 9124 9125 solaris*) 9126 lt_prog_compiler_pic='-KPIC' 9127 lt_prog_compiler_static='-Bstatic' 9128 case $cc_basename in 9129 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9130 lt_prog_compiler_wl='-Qoption ld ';; 9131 *) 9132 lt_prog_compiler_wl='-Wl,';; 9133 esac 9134 ;; 9135 9136 sunos4*) 9137 lt_prog_compiler_wl='-Qoption ld ' 9138 lt_prog_compiler_pic='-PIC' 9139 lt_prog_compiler_static='-Bstatic' 9140 ;; 9141 9142 sysv4 | sysv4.2uw2* | sysv4.3*) 9143 lt_prog_compiler_wl='-Wl,' 9144 lt_prog_compiler_pic='-KPIC' 9145 lt_prog_compiler_static='-Bstatic' 9146 ;; 9147 9148 sysv4*MP*) 9149 if test -d /usr/nec; then 9150 lt_prog_compiler_pic='-Kconform_pic' 9151 lt_prog_compiler_static='-Bstatic' 9152 fi 9153 ;; 9154 9155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9156 lt_prog_compiler_wl='-Wl,' 9157 lt_prog_compiler_pic='-KPIC' 9158 lt_prog_compiler_static='-Bstatic' 9159 ;; 9160 9161 unicos*) 9162 lt_prog_compiler_wl='-Wl,' 9163 lt_prog_compiler_can_build_shared=no 9164 ;; 9165 9166 uts4*) 9167 lt_prog_compiler_pic='-pic' 9168 lt_prog_compiler_static='-Bstatic' 9169 ;; 9170 9171 *) 9172 lt_prog_compiler_can_build_shared=no 9173 ;; 9174 esac 9175 fi 9176 9177case $host_os in 9178 # For platforms that do not support PIC, -DPIC is meaningless: 9179 *djgpp*) 9180 lt_prog_compiler_pic= 9181 ;; 9182 *) 9183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9184 ;; 9185esac 9186 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9188$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9189if ${lt_cv_prog_compiler_pic+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9193fi 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9195$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9196lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9197 9198# 9199# Check to make sure the PIC flag actually works. 9200# 9201if test -n "$lt_prog_compiler_pic"; then 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9203$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9204if ${lt_cv_prog_compiler_pic_works+:} false; then : 9205 $as_echo_n "(cached) " >&6 9206else 9207 lt_cv_prog_compiler_pic_works=no 9208 ac_outfile=conftest.$ac_objext 9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9210 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9211 # Insert the option either (1) after the last *FLAGS variable, or 9212 # (2) before a word containing "conftest.", or (3) at the end. 9213 # Note that $ac_compile itself does not contain backslashes and begins 9214 # with a dollar sign (not a hyphen), so the echo should work correctly. 9215 # The option is referenced via a variable to avoid confusing sed. 9216 lt_compile=`echo "$ac_compile" | $SED \ 9217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9219 -e 's:$: $lt_compiler_flag:'` 9220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9221 (eval "$lt_compile" 2>conftest.err) 9222 ac_status=$? 9223 cat conftest.err >&5 9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9225 if (exit $ac_status) && test -s "$ac_outfile"; then 9226 # The compiler can only warn and ignore the option if not recognized 9227 # So say no if there are warnings other than the usual output. 9228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9231 lt_cv_prog_compiler_pic_works=yes 9232 fi 9233 fi 9234 $RM conftest* 9235 9236fi 9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9238$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9239 9240if test yes = "$lt_cv_prog_compiler_pic_works"; then 9241 case $lt_prog_compiler_pic in 9242 "" | " "*) ;; 9243 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9244 esac 9245else 9246 lt_prog_compiler_pic= 9247 lt_prog_compiler_can_build_shared=no 9248fi 9249 9250fi 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262# 9263# Check to make sure the static flag actually works. 9264# 9265wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9267$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9268if ${lt_cv_prog_compiler_static_works+:} false; then : 9269 $as_echo_n "(cached) " >&6 9270else 9271 lt_cv_prog_compiler_static_works=no 9272 save_LDFLAGS=$LDFLAGS 9273 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9274 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9275 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9276 # The linker can only warn and ignore the option if not recognized 9277 # So say no if there are warnings 9278 if test -s conftest.err; then 9279 # Append any errors to the config.log. 9280 cat conftest.err 1>&5 9281 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9283 if diff conftest.exp conftest.er2 >/dev/null; then 9284 lt_cv_prog_compiler_static_works=yes 9285 fi 9286 else 9287 lt_cv_prog_compiler_static_works=yes 9288 fi 9289 fi 9290 $RM -r conftest* 9291 LDFLAGS=$save_LDFLAGS 9292 9293fi 9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9295$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9296 9297if test yes = "$lt_cv_prog_compiler_static_works"; then 9298 : 9299else 9300 lt_prog_compiler_static= 9301fi 9302 9303 9304 9305 9306 9307 9308 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9310$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9311if ${lt_cv_prog_compiler_c_o+:} false; then : 9312 $as_echo_n "(cached) " >&6 9313else 9314 lt_cv_prog_compiler_c_o=no 9315 $RM -r conftest 2>/dev/null 9316 mkdir conftest 9317 cd conftest 9318 mkdir out 9319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9320 9321 lt_compiler_flag="-o out/conftest2.$ac_objext" 9322 # Insert the option either (1) after the last *FLAGS variable, or 9323 # (2) before a word containing "conftest.", or (3) at the end. 9324 # Note that $ac_compile itself does not contain backslashes and begins 9325 # with a dollar sign (not a hyphen), so the echo should work correctly. 9326 lt_compile=`echo "$ac_compile" | $SED \ 9327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9329 -e 's:$: $lt_compiler_flag:'` 9330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9331 (eval "$lt_compile" 2>out/conftest.err) 9332 ac_status=$? 9333 cat out/conftest.err >&5 9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9335 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9336 then 9337 # The compiler can only warn and ignore the option if not recognized 9338 # So say no if there are warnings 9339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9342 lt_cv_prog_compiler_c_o=yes 9343 fi 9344 fi 9345 chmod u+w . 2>&5 9346 $RM conftest* 9347 # SGI C++ compiler will create directory out/ii_files/ for 9348 # template instantiation 9349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9350 $RM out/* && rmdir out 9351 cd .. 9352 $RM -r conftest 9353 $RM conftest* 9354 9355fi 9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9357$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9358 9359 9360 9361 9362 9363 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9365$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9366if ${lt_cv_prog_compiler_c_o+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368else 9369 lt_cv_prog_compiler_c_o=no 9370 $RM -r conftest 2>/dev/null 9371 mkdir conftest 9372 cd conftest 9373 mkdir out 9374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9375 9376 lt_compiler_flag="-o out/conftest2.$ac_objext" 9377 # Insert the option either (1) after the last *FLAGS variable, or 9378 # (2) before a word containing "conftest.", or (3) at the end. 9379 # Note that $ac_compile itself does not contain backslashes and begins 9380 # with a dollar sign (not a hyphen), so the echo should work correctly. 9381 lt_compile=`echo "$ac_compile" | $SED \ 9382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9384 -e 's:$: $lt_compiler_flag:'` 9385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9386 (eval "$lt_compile" 2>out/conftest.err) 9387 ac_status=$? 9388 cat out/conftest.err >&5 9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9390 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9391 then 9392 # The compiler can only warn and ignore the option if not recognized 9393 # So say no if there are warnings 9394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9397 lt_cv_prog_compiler_c_o=yes 9398 fi 9399 fi 9400 chmod u+w . 2>&5 9401 $RM conftest* 9402 # SGI C++ compiler will create directory out/ii_files/ for 9403 # template instantiation 9404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9405 $RM out/* && rmdir out 9406 cd .. 9407 $RM -r conftest 9408 $RM conftest* 9409 9410fi 9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9412$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9413 9414 9415 9416 9417hard_links=nottested 9418if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9419 # do not overwrite the value of need_locks provided by the user 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9421$as_echo_n "checking if we can lock with hard links... " >&6; } 9422 hard_links=yes 9423 $RM conftest* 9424 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9425 touch conftest.a 9426 ln conftest.a conftest.b 2>&5 || hard_links=no 9427 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9429$as_echo "$hard_links" >&6; } 9430 if test no = "$hard_links"; then 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9432$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9433 need_locks=warn 9434 fi 9435else 9436 need_locks=no 9437fi 9438 9439 9440 9441 9442 9443 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9445$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9446 9447 runpath_var= 9448 allow_undefined_flag= 9449 always_export_symbols=no 9450 archive_cmds= 9451 archive_expsym_cmds= 9452 compiler_needs_object=no 9453 enable_shared_with_static_runtimes=no 9454 export_dynamic_flag_spec= 9455 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9456 hardcode_automatic=no 9457 hardcode_direct=no 9458 hardcode_direct_absolute=no 9459 hardcode_libdir_flag_spec= 9460 hardcode_libdir_separator= 9461 hardcode_minus_L=no 9462 hardcode_shlibpath_var=unsupported 9463 inherit_rpath=no 9464 link_all_deplibs=unknown 9465 module_cmds= 9466 module_expsym_cmds= 9467 old_archive_from_new_cmds= 9468 old_archive_from_expsyms_cmds= 9469 thread_safe_flag_spec= 9470 whole_archive_flag_spec= 9471 # include_expsyms should be a list of space-separated symbols to be *always* 9472 # included in the symbol list 9473 include_expsyms= 9474 # exclude_expsyms can be an extended regexp of symbols to exclude 9475 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9476 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9477 # as well as any symbol that contains 'd'. 9478 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9480 # platforms (ab)use it in PIC code, but their linkers get confused if 9481 # the symbol is explicitly referenced. Since portable code cannot 9482 # rely on this symbol name, it's probably fine to never include it in 9483 # preloaded symbol tables. 9484 # Exclude shared library initialization/finalization symbols. 9485 extract_expsyms_cmds= 9486 9487 case $host_os in 9488 cygwin* | mingw* | pw32* | cegcc*) 9489 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9490 # When not using gcc, we currently assume that we are using 9491 # Microsoft Visual C++. 9492 if test yes != "$GCC"; then 9493 with_gnu_ld=no 9494 fi 9495 ;; 9496 interix*) 9497 # we just hope/assume this is gcc and not c89 (= MSVC++) 9498 with_gnu_ld=yes 9499 ;; 9500 openbsd* | bitrig*) 9501 with_gnu_ld=no 9502 ;; 9503 esac 9504 9505 ld_shlibs=yes 9506 9507 # On some targets, GNU ld is compatible enough with the native linker 9508 # that we're better off using the native interface for both. 9509 lt_use_gnu_ld_interface=no 9510 if test yes = "$with_gnu_ld"; then 9511 case $host_os in 9512 aix*) 9513 # The AIX port of GNU ld has always aspired to compatibility 9514 # with the native linker. However, as the warning in the GNU ld 9515 # block says, versions before 2.19.5* couldn't really create working 9516 # shared libraries, regardless of the interface used. 9517 case `$LD -v 2>&1` in 9518 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9519 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9520 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9521 *) 9522 lt_use_gnu_ld_interface=yes 9523 ;; 9524 esac 9525 ;; 9526 *) 9527 lt_use_gnu_ld_interface=yes 9528 ;; 9529 esac 9530 fi 9531 9532 if test yes = "$lt_use_gnu_ld_interface"; then 9533 # If archive_cmds runs LD, not CC, wlarc should be empty 9534 wlarc='$wl' 9535 9536 # Set some defaults for GNU ld with shared library support. These 9537 # are reset later if shared libraries are not supported. Putting them 9538 # here allows them to be overridden if necessary. 9539 runpath_var=LD_RUN_PATH 9540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9541 export_dynamic_flag_spec='$wl--export-dynamic' 9542 # ancient GNU ld didn't support --whole-archive et. al. 9543 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9544 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9545 else 9546 whole_archive_flag_spec= 9547 fi 9548 supports_anon_versioning=no 9549 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9550 *GNU\ gold*) supports_anon_versioning=yes ;; 9551 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9552 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9553 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9554 *\ 2.11.*) ;; # other 2.11 versions 9555 *) supports_anon_versioning=yes ;; 9556 esac 9557 9558 # See if GNU ld supports shared libraries. 9559 case $host_os in 9560 aix[3-9]*) 9561 # On AIX/PPC, the GNU linker is very broken 9562 if test ia64 != "$host_cpu"; then 9563 ld_shlibs=no 9564 cat <<_LT_EOF 1>&2 9565 9566*** Warning: the GNU linker, at least up to release 2.19, is reported 9567*** to be unable to reliably create shared libraries on AIX. 9568*** Therefore, libtool is disabling shared libraries support. If you 9569*** really care for shared libraries, you may want to install binutils 9570*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9571*** You will then need to restart the configuration process. 9572 9573_LT_EOF 9574 fi 9575 ;; 9576 9577 amigaos*) 9578 case $host_cpu in 9579 powerpc) 9580 # see comment about AmigaOS4 .so support 9581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9582 archive_expsym_cmds='' 9583 ;; 9584 m68k) 9585 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)' 9586 hardcode_libdir_flag_spec='-L$libdir' 9587 hardcode_minus_L=yes 9588 ;; 9589 esac 9590 ;; 9591 9592 beos*) 9593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9594 allow_undefined_flag=unsupported 9595 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9596 # support --undefined. This deserves some investigation. FIXME 9597 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9598 else 9599 ld_shlibs=no 9600 fi 9601 ;; 9602 9603 cygwin* | mingw* | pw32* | cegcc*) 9604 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9605 # as there is no search path for DLLs. 9606 hardcode_libdir_flag_spec='-L$libdir' 9607 export_dynamic_flag_spec='$wl--export-all-symbols' 9608 allow_undefined_flag=unsupported 9609 always_export_symbols=no 9610 enable_shared_with_static_runtimes=yes 9611 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' 9612 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9613 9614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9616 # If the export-symbols file already is a .def file, use it as 9617 # is; otherwise, prepend EXPORTS... 9618 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9619 cp $export_symbols $output_objdir/$soname.def; 9620 else 9621 echo EXPORTS > $output_objdir/$soname.def; 9622 cat $export_symbols >> $output_objdir/$soname.def; 9623 fi~ 9624 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9625 else 9626 ld_shlibs=no 9627 fi 9628 ;; 9629 9630 haiku*) 9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9632 link_all_deplibs=yes 9633 ;; 9634 9635 os2*) 9636 hardcode_libdir_flag_spec='-L$libdir' 9637 hardcode_minus_L=yes 9638 allow_undefined_flag=unsupported 9639 shrext_cmds=.dll 9640 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9641 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9642 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9643 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9644 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9645 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9646 emximp -o $lib $output_objdir/$libname.def' 9647 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9650 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9651 prefix_cmds="$SED"~ 9652 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9653 prefix_cmds="$prefix_cmds -e 1d"; 9654 fi~ 9655 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9656 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9657 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9658 emximp -o $lib $output_objdir/$libname.def' 9659 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9660 enable_shared_with_static_runtimes=yes 9661 ;; 9662 9663 interix[3-9]*) 9664 hardcode_direct=no 9665 hardcode_shlibpath_var=no 9666 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9667 export_dynamic_flag_spec='$wl-E' 9668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9669 # Instead, shared libraries are loaded at an image base (0x10000000 by 9670 # default) and relocated if they conflict, which is a slow very memory 9671 # consuming and fragmenting process. To avoid this, we pick a random, 9672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9673 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9675 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' 9676 ;; 9677 9678 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9679 tmp_diet=no 9680 if test linux-dietlibc = "$host_os"; then 9681 case $cc_basename in 9682 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9683 esac 9684 fi 9685 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9686 && test no = "$tmp_diet" 9687 then 9688 tmp_addflag=' $pic_flag' 9689 tmp_sharedflag='-shared' 9690 case $cc_basename,$host_cpu in 9691 pgcc*) # Portland Group C compiler 9692 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' 9693 tmp_addflag=' $pic_flag' 9694 ;; 9695 pgf77* | pgf90* | pgf95* | pgfortran*) 9696 # Portland Group f77 and f90 compilers 9697 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' 9698 tmp_addflag=' $pic_flag -Mnomain' ;; 9699 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9700 tmp_addflag=' -i_dynamic' ;; 9701 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9702 tmp_addflag=' -i_dynamic -nofor_main' ;; 9703 ifc* | ifort*) # Intel Fortran compiler 9704 tmp_addflag=' -nofor_main' ;; 9705 lf95*) # Lahey Fortran 8.1 9706 whole_archive_flag_spec= 9707 tmp_sharedflag='--shared' ;; 9708 nagfor*) # NAGFOR 5.3 9709 tmp_sharedflag='-Wl,-shared' ;; 9710 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9711 tmp_sharedflag='-qmkshrobj' 9712 tmp_addflag= ;; 9713 nvcc*) # Cuda Compiler Driver 2.2 9714 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' 9715 compiler_needs_object=yes 9716 ;; 9717 esac 9718 case `$CC -V 2>&1 | sed 5q` in 9719 *Sun\ C*) # Sun C 5.9 9720 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' 9721 compiler_needs_object=yes 9722 tmp_sharedflag='-G' ;; 9723 *Sun\ F*) # Sun Fortran 8.3 9724 tmp_sharedflag='-G' ;; 9725 esac 9726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9727 9728 if test yes = "$supports_anon_versioning"; then 9729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9731 echo "local: *; };" >> $output_objdir/$libname.ver~ 9732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9733 fi 9734 9735 case $cc_basename in 9736 tcc*) 9737 export_dynamic_flag_spec='-rdynamic' 9738 ;; 9739 xlf* | bgf* | bgxlf* | mpixlf*) 9740 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9741 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9744 if test yes = "$supports_anon_versioning"; then 9745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9747 echo "local: *; };" >> $output_objdir/$libname.ver~ 9748 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9749 fi 9750 ;; 9751 esac 9752 else 9753 ld_shlibs=no 9754 fi 9755 ;; 9756 9757 netbsd*) 9758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9760 wlarc= 9761 else 9762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9764 fi 9765 ;; 9766 9767 solaris*) 9768 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9769 ld_shlibs=no 9770 cat <<_LT_EOF 1>&2 9771 9772*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9773*** create shared libraries on Solaris systems. Therefore, libtool 9774*** is disabling shared libraries support. We urge you to upgrade GNU 9775*** binutils to release 2.9.1 or newer. Another option is to modify 9776*** your PATH or compiler configuration so that the native linker is 9777*** used, and then restart. 9778 9779_LT_EOF 9780 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9782 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9783 else 9784 ld_shlibs=no 9785 fi 9786 ;; 9787 9788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9789 case `$LD -v 2>&1` in 9790 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9791 ld_shlibs=no 9792 cat <<_LT_EOF 1>&2 9793 9794*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9795*** reliably create shared libraries on SCO systems. Therefore, libtool 9796*** is disabling shared libraries support. We urge you to upgrade GNU 9797*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9798*** your PATH or compiler configuration so that the native linker is 9799*** used, and then restart. 9800 9801_LT_EOF 9802 ;; 9803 *) 9804 # For security reasons, it is highly recommended that you always 9805 # use absolute paths for naming shared libraries, and exclude the 9806 # DT_RUNPATH tag from executables and libraries. But doing so 9807 # requires that you compile everything twice, which is a pain. 9808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9811 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9812 else 9813 ld_shlibs=no 9814 fi 9815 ;; 9816 esac 9817 ;; 9818 9819 sunos4*) 9820 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9821 wlarc= 9822 hardcode_direct=yes 9823 hardcode_shlibpath_var=no 9824 ;; 9825 9826 *) 9827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9829 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9830 else 9831 ld_shlibs=no 9832 fi 9833 ;; 9834 esac 9835 9836 if test no = "$ld_shlibs"; then 9837 runpath_var= 9838 hardcode_libdir_flag_spec= 9839 export_dynamic_flag_spec= 9840 whole_archive_flag_spec= 9841 fi 9842 else 9843 # PORTME fill in a description of your system's linker (not GNU ld) 9844 case $host_os in 9845 aix3*) 9846 allow_undefined_flag=unsupported 9847 always_export_symbols=yes 9848 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' 9849 # Note: this linker hardcodes the directories in LIBPATH if there 9850 # are no directories specified by -L. 9851 hardcode_minus_L=yes 9852 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9853 # Neither direct hardcoding nor static linking is supported with a 9854 # broken collect2. 9855 hardcode_direct=unsupported 9856 fi 9857 ;; 9858 9859 aix[4-9]*) 9860 if test ia64 = "$host_cpu"; then 9861 # On IA64, the linker does run time linking by default, so we don't 9862 # have to do anything special. 9863 aix_use_runtimelinking=no 9864 exp_sym_flag='-Bexport' 9865 no_entry_flag= 9866 else 9867 # If we're using GNU nm, then we don't want the "-C" option. 9868 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9869 # Without the "-l" option, or with the "-B" option, AIX nm treats 9870 # weak defined symbols like other global defined symbols, whereas 9871 # GNU nm marks them as "W". 9872 # While the 'weak' keyword is ignored in the Export File, we need 9873 # it in the Import File for the 'aix-soname' feature, so we have 9874 # to replace the "-B" option with "-P" for AIX nm. 9875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9876 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' 9877 else 9878 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' 9879 fi 9880 aix_use_runtimelinking=no 9881 9882 # Test if we are trying to use run time linking or normal 9883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9884 # have runtime linking enabled, and use it for executables. 9885 # For shared libraries, we enable/disable runtime linking 9886 # depending on the kind of the shared library created - 9887 # when "with_aix_soname,aix_use_runtimelinking" is: 9888 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9889 # "aix,yes" lib.so shared, rtl:yes, for executables 9890 # lib.a static archive 9891 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9892 # lib.a(lib.so.V) shared, rtl:no, for executables 9893 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9894 # lib.a(lib.so.V) shared, rtl:no 9895 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9896 # lib.a static archive 9897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9898 for ld_flag in $LDFLAGS; do 9899 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9900 aix_use_runtimelinking=yes 9901 break 9902 fi 9903 done 9904 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9905 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9906 # so we don't have lib.a shared libs to link our executables. 9907 # We have to force runtime linking in this case. 9908 aix_use_runtimelinking=yes 9909 LDFLAGS="$LDFLAGS -Wl,-brtl" 9910 fi 9911 ;; 9912 esac 9913 9914 exp_sym_flag='-bexport' 9915 no_entry_flag='-bnoentry' 9916 fi 9917 9918 # When large executables or shared objects are built, AIX ld can 9919 # have problems creating the table of contents. If linking a library 9920 # or program results in "error TOC overflow" add -mminimal-toc to 9921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9923 9924 archive_cmds='' 9925 hardcode_direct=yes 9926 hardcode_direct_absolute=yes 9927 hardcode_libdir_separator=':' 9928 link_all_deplibs=yes 9929 file_list_spec='$wl-f,' 9930 case $with_aix_soname,$aix_use_runtimelinking in 9931 aix,*) ;; # traditional, no import file 9932 svr4,* | *,yes) # use import file 9933 # The Import File defines what to hardcode. 9934 hardcode_direct=no 9935 hardcode_direct_absolute=no 9936 ;; 9937 esac 9938 9939 if test yes = "$GCC"; then 9940 case $host_os in aix4.[012]|aix4.[012].*) 9941 # We only want to do this on AIX 4.2 and lower, the check 9942 # below for broken collect2 doesn't work under 4.3+ 9943 collect2name=`$CC -print-prog-name=collect2` 9944 if test -f "$collect2name" && 9945 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9946 then 9947 # We have reworked collect2 9948 : 9949 else 9950 # We have old collect2 9951 hardcode_direct=unsupported 9952 # It fails to find uninstalled libraries when the uninstalled 9953 # path is not listed in the libpath. Setting hardcode_minus_L 9954 # to unsupported forces relinking 9955 hardcode_minus_L=yes 9956 hardcode_libdir_flag_spec='-L$libdir' 9957 hardcode_libdir_separator= 9958 fi 9959 ;; 9960 esac 9961 shared_flag='-shared' 9962 if test yes = "$aix_use_runtimelinking"; then 9963 shared_flag="$shared_flag "'$wl-G' 9964 fi 9965 # Need to ensure runtime linking is disabled for the traditional 9966 # shared library, or the linker may eventually find shared libraries 9967 # /with/ Import File - we do not want to mix them. 9968 shared_flag_aix='-shared' 9969 shared_flag_svr4='-shared $wl-G' 9970 else 9971 # not using gcc 9972 if test ia64 = "$host_cpu"; then 9973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9974 # chokes on -Wl,-G. The following line is correct: 9975 shared_flag='-G' 9976 else 9977 if test yes = "$aix_use_runtimelinking"; then 9978 shared_flag='$wl-G' 9979 else 9980 shared_flag='$wl-bM:SRE' 9981 fi 9982 shared_flag_aix='$wl-bM:SRE' 9983 shared_flag_svr4='$wl-G' 9984 fi 9985 fi 9986 9987 export_dynamic_flag_spec='$wl-bexpall' 9988 # It seems that -bexpall does not export symbols beginning with 9989 # underscore (_), so it is better to generate a list of symbols to export. 9990 always_export_symbols=yes 9991 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9992 # Warning - without using the other runtime loading flags (-brtl), 9993 # -berok will link without error, but may produce a broken library. 9994 allow_undefined_flag='-berok' 9995 # Determine the default libpath from the value encoded in an 9996 # empty executable. 9997 if test set = "${lt_cv_aix_libpath+set}"; then 9998 aix_libpath=$lt_cv_aix_libpath 9999else 10000 if ${lt_cv_aix_libpath_+:} false; then : 10001 $as_echo_n "(cached) " >&6 10002else 10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10004/* end confdefs.h. */ 10005 10006int 10007main () 10008{ 10009 10010 ; 10011 return 0; 10012} 10013_ACEOF 10014if ac_fn_c_try_link "$LINENO"; then : 10015 10016 lt_aix_libpath_sed=' 10017 /Import File Strings/,/^$/ { 10018 /^0/ { 10019 s/^0 *\([^ ]*\) *$/\1/ 10020 p 10021 } 10022 }' 10023 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10024 # Check for a 64-bit object if we didn't find anything. 10025 if test -z "$lt_cv_aix_libpath_"; then 10026 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10027 fi 10028fi 10029rm -f core conftest.err conftest.$ac_objext \ 10030 conftest$ac_exeext conftest.$ac_ext 10031 if test -z "$lt_cv_aix_libpath_"; then 10032 lt_cv_aix_libpath_=/usr/lib:/lib 10033 fi 10034 10035fi 10036 10037 aix_libpath=$lt_cv_aix_libpath_ 10038fi 10039 10040 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10041 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 10042 else 10043 if test ia64 = "$host_cpu"; then 10044 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10045 allow_undefined_flag="-z nodefs" 10046 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" 10047 else 10048 # Determine the default libpath from the value encoded in an 10049 # empty executable. 10050 if test set = "${lt_cv_aix_libpath+set}"; then 10051 aix_libpath=$lt_cv_aix_libpath 10052else 10053 if ${lt_cv_aix_libpath_+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058 10059int 10060main () 10061{ 10062 10063 ; 10064 return 0; 10065} 10066_ACEOF 10067if ac_fn_c_try_link "$LINENO"; then : 10068 10069 lt_aix_libpath_sed=' 10070 /Import File Strings/,/^$/ { 10071 /^0/ { 10072 s/^0 *\([^ ]*\) *$/\1/ 10073 p 10074 } 10075 }' 10076 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10077 # Check for a 64-bit object if we didn't find anything. 10078 if test -z "$lt_cv_aix_libpath_"; then 10079 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10080 fi 10081fi 10082rm -f core conftest.err conftest.$ac_objext \ 10083 conftest$ac_exeext conftest.$ac_ext 10084 if test -z "$lt_cv_aix_libpath_"; then 10085 lt_cv_aix_libpath_=/usr/lib:/lib 10086 fi 10087 10088fi 10089 10090 aix_libpath=$lt_cv_aix_libpath_ 10091fi 10092 10093 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10094 # Warning - without using the other run time loading flags, 10095 # -berok will link without error, but may produce a broken library. 10096 no_undefined_flag=' $wl-bernotok' 10097 allow_undefined_flag=' $wl-berok' 10098 if test yes = "$with_gnu_ld"; then 10099 # We only use this code for GNU lds that support --whole-archive. 10100 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10101 else 10102 # Exported symbols can be pulled into shared objects from archives 10103 whole_archive_flag_spec='$convenience' 10104 fi 10105 archive_cmds_need_lc=yes 10106 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10107 # -brtl affects multiple linker settings, -berok does not and is overridden later 10108 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10109 if test svr4 != "$with_aix_soname"; then 10110 # This is similar to how AIX traditionally builds its shared libraries. 10111 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' 10112 fi 10113 if test aix != "$with_aix_soname"; then 10114 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' 10115 else 10116 # used by -dlpreopen to get the symbols 10117 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10118 fi 10119 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10120 fi 10121 fi 10122 ;; 10123 10124 amigaos*) 10125 case $host_cpu in 10126 powerpc) 10127 # see comment about AmigaOS4 .so support 10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10129 archive_expsym_cmds='' 10130 ;; 10131 m68k) 10132 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)' 10133 hardcode_libdir_flag_spec='-L$libdir' 10134 hardcode_minus_L=yes 10135 ;; 10136 esac 10137 ;; 10138 10139 bsdi[45]*) 10140 export_dynamic_flag_spec=-rdynamic 10141 ;; 10142 10143 cygwin* | mingw* | pw32* | cegcc*) 10144 # When not using gcc, we currently assume that we are using 10145 # Microsoft Visual C++. 10146 # hardcode_libdir_flag_spec is actually meaningless, as there is 10147 # no search path for DLLs. 10148 case $cc_basename in 10149 cl*) 10150 # Native MSVC 10151 hardcode_libdir_flag_spec=' ' 10152 allow_undefined_flag=unsupported 10153 always_export_symbols=yes 10154 file_list_spec='@' 10155 # Tell ltmain to make .lib files, not .a files. 10156 libext=lib 10157 # Tell ltmain to make .dll files, not .so files. 10158 shrext_cmds=.dll 10159 # FIXME: Setting linknames here is a bad hack. 10160 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10161 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10162 cp "$export_symbols" "$output_objdir/$soname.def"; 10163 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10164 else 10165 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10166 fi~ 10167 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10168 linknames=' 10169 # The linker will not automatically build a static lib if we build a DLL. 10170 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10171 enable_shared_with_static_runtimes=yes 10172 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10174 # Don't use ranlib 10175 old_postinstall_cmds='chmod 644 $oldlib' 10176 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10177 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10178 case $lt_outputfile in 10179 *.exe|*.EXE) ;; 10180 *) 10181 lt_outputfile=$lt_outputfile.exe 10182 lt_tool_outputfile=$lt_tool_outputfile.exe 10183 ;; 10184 esac~ 10185 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10186 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10187 $RM "$lt_outputfile.manifest"; 10188 fi' 10189 ;; 10190 *) 10191 # Assume MSVC wrapper 10192 hardcode_libdir_flag_spec=' ' 10193 allow_undefined_flag=unsupported 10194 # Tell ltmain to make .lib files, not .a files. 10195 libext=lib 10196 # Tell ltmain to make .dll files, not .so files. 10197 shrext_cmds=.dll 10198 # FIXME: Setting linknames here is a bad hack. 10199 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10200 # The linker will automatically build a .lib file if we build a DLL. 10201 old_archive_from_new_cmds='true' 10202 # FIXME: Should let the user specify the lib program. 10203 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10204 enable_shared_with_static_runtimes=yes 10205 ;; 10206 esac 10207 ;; 10208 10209 darwin* | rhapsody*) 10210 10211 10212 archive_cmds_need_lc=no 10213 hardcode_direct=no 10214 hardcode_automatic=yes 10215 hardcode_shlibpath_var=unsupported 10216 if test yes = "$lt_cv_ld_force_load"; then 10217 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\"`' 10218 10219 else 10220 whole_archive_flag_spec='' 10221 fi 10222 link_all_deplibs=yes 10223 allow_undefined_flag=$_lt_dar_allow_undefined 10224 case $cc_basename in 10225 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10226 *) _lt_dar_can_shared=$GCC ;; 10227 esac 10228 if test yes = "$_lt_dar_can_shared"; then 10229 output_verbose_link_cmd=func_echo_all 10230 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10231 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10232 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" 10233 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" 10234 10235 else 10236 ld_shlibs=no 10237 fi 10238 10239 ;; 10240 10241 dgux*) 10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10243 hardcode_libdir_flag_spec='-L$libdir' 10244 hardcode_shlibpath_var=no 10245 ;; 10246 10247 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10248 # support. Future versions do this automatically, but an explicit c++rt0.o 10249 # does not break anything, and helps significantly (at the cost of a little 10250 # extra space). 10251 freebsd2.2*) 10252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10253 hardcode_libdir_flag_spec='-R$libdir' 10254 hardcode_direct=yes 10255 hardcode_shlibpath_var=no 10256 ;; 10257 10258 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10259 freebsd2.*) 10260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10261 hardcode_direct=yes 10262 hardcode_minus_L=yes 10263 hardcode_shlibpath_var=no 10264 ;; 10265 10266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10267 freebsd* | dragonfly*) 10268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10269 hardcode_libdir_flag_spec='-R$libdir' 10270 hardcode_direct=yes 10271 hardcode_shlibpath_var=no 10272 ;; 10273 10274 hpux9*) 10275 if test yes = "$GCC"; then 10276 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' 10277 else 10278 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' 10279 fi 10280 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10281 hardcode_libdir_separator=: 10282 hardcode_direct=yes 10283 10284 # hardcode_minus_L: Not really in the search PATH, 10285 # but as the default location of the library. 10286 hardcode_minus_L=yes 10287 export_dynamic_flag_spec='$wl-E' 10288 ;; 10289 10290 hpux10*) 10291 if test yes,no = "$GCC,$with_gnu_ld"; then 10292 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10293 else 10294 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10295 fi 10296 if test no = "$with_gnu_ld"; then 10297 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10298 hardcode_libdir_separator=: 10299 hardcode_direct=yes 10300 hardcode_direct_absolute=yes 10301 export_dynamic_flag_spec='$wl-E' 10302 # hardcode_minus_L: Not really in the search PATH, 10303 # but as the default location of the library. 10304 hardcode_minus_L=yes 10305 fi 10306 ;; 10307 10308 hpux11*) 10309 if test yes,no = "$GCC,$with_gnu_ld"; then 10310 case $host_cpu in 10311 hppa*64*) 10312 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10313 ;; 10314 ia64*) 10315 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10316 ;; 10317 *) 10318 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10319 ;; 10320 esac 10321 else 10322 case $host_cpu in 10323 hppa*64*) 10324 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10325 ;; 10326 ia64*) 10327 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10328 ;; 10329 *) 10330 10331 # Older versions of the 11.00 compiler do not understand -b yet 10332 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10334$as_echo_n "checking if $CC understands -b... " >&6; } 10335if ${lt_cv_prog_compiler__b+:} false; then : 10336 $as_echo_n "(cached) " >&6 10337else 10338 lt_cv_prog_compiler__b=no 10339 save_LDFLAGS=$LDFLAGS 10340 LDFLAGS="$LDFLAGS -b" 10341 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10343 # The linker can only warn and ignore the option if not recognized 10344 # So say no if there are warnings 10345 if test -s conftest.err; then 10346 # Append any errors to the config.log. 10347 cat conftest.err 1>&5 10348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10350 if diff conftest.exp conftest.er2 >/dev/null; then 10351 lt_cv_prog_compiler__b=yes 10352 fi 10353 else 10354 lt_cv_prog_compiler__b=yes 10355 fi 10356 fi 10357 $RM -r conftest* 10358 LDFLAGS=$save_LDFLAGS 10359 10360fi 10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10362$as_echo "$lt_cv_prog_compiler__b" >&6; } 10363 10364if test yes = "$lt_cv_prog_compiler__b"; then 10365 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10366else 10367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10368fi 10369 10370 ;; 10371 esac 10372 fi 10373 if test no = "$with_gnu_ld"; then 10374 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10375 hardcode_libdir_separator=: 10376 10377 case $host_cpu in 10378 hppa*64*|ia64*) 10379 hardcode_direct=no 10380 hardcode_shlibpath_var=no 10381 ;; 10382 *) 10383 hardcode_direct=yes 10384 hardcode_direct_absolute=yes 10385 export_dynamic_flag_spec='$wl-E' 10386 10387 # hardcode_minus_L: Not really in the search PATH, 10388 # but as the default location of the library. 10389 hardcode_minus_L=yes 10390 ;; 10391 esac 10392 fi 10393 ;; 10394 10395 irix5* | irix6* | nonstopux*) 10396 if test yes = "$GCC"; then 10397 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' 10398 # Try to use the -exported_symbol ld option, if it does not 10399 # work, assume that -exports_file does not work either and 10400 # implicitly export all symbols. 10401 # This should be the same for all languages, so no per-tag cache variable. 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10403$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10404if ${lt_cv_irix_exported_symbol+:} false; then : 10405 $as_echo_n "(cached) " >&6 10406else 10407 save_LDFLAGS=$LDFLAGS 10408 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10410/* end confdefs.h. */ 10411int foo (void) { return 0; } 10412_ACEOF 10413if ac_fn_c_try_link "$LINENO"; then : 10414 lt_cv_irix_exported_symbol=yes 10415else 10416 lt_cv_irix_exported_symbol=no 10417fi 10418rm -f core conftest.err conftest.$ac_objext \ 10419 conftest$ac_exeext conftest.$ac_ext 10420 LDFLAGS=$save_LDFLAGS 10421fi 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10423$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10424 if test yes = "$lt_cv_irix_exported_symbol"; then 10425 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' 10426 fi 10427 else 10428 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' 10429 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' 10430 fi 10431 archive_cmds_need_lc='no' 10432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10433 hardcode_libdir_separator=: 10434 inherit_rpath=yes 10435 link_all_deplibs=yes 10436 ;; 10437 10438 linux*) 10439 case $cc_basename in 10440 tcc*) 10441 # Fabrice Bellard et al's Tiny C Compiler 10442 ld_shlibs=yes 10443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10444 ;; 10445 esac 10446 ;; 10447 10448 netbsd*) 10449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10451 else 10452 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10453 fi 10454 hardcode_libdir_flag_spec='-R$libdir' 10455 hardcode_direct=yes 10456 hardcode_shlibpath_var=no 10457 ;; 10458 10459 newsos6) 10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10461 hardcode_direct=yes 10462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10463 hardcode_libdir_separator=: 10464 hardcode_shlibpath_var=no 10465 ;; 10466 10467 *nto* | *qnx*) 10468 ;; 10469 10470 openbsd* | bitrig*) 10471 if test -f /usr/libexec/ld.so; then 10472 hardcode_direct=yes 10473 hardcode_shlibpath_var=no 10474 hardcode_direct_absolute=yes 10475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10477 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10478 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10479 export_dynamic_flag_spec='$wl-E' 10480 else 10481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10482 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10483 fi 10484 else 10485 ld_shlibs=no 10486 fi 10487 ;; 10488 10489 os2*) 10490 hardcode_libdir_flag_spec='-L$libdir' 10491 hardcode_minus_L=yes 10492 allow_undefined_flag=unsupported 10493 shrext_cmds=.dll 10494 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10495 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10496 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10497 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10498 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10499 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10500 emximp -o $lib $output_objdir/$libname.def' 10501 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10502 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10503 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10504 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10505 prefix_cmds="$SED"~ 10506 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10507 prefix_cmds="$prefix_cmds -e 1d"; 10508 fi~ 10509 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10510 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10511 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10512 emximp -o $lib $output_objdir/$libname.def' 10513 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10514 enable_shared_with_static_runtimes=yes 10515 ;; 10516 10517 osf3*) 10518 if test yes = "$GCC"; then 10519 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10520 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' 10521 else 10522 allow_undefined_flag=' -expect_unresolved \*' 10523 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' 10524 fi 10525 archive_cmds_need_lc='no' 10526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10527 hardcode_libdir_separator=: 10528 ;; 10529 10530 osf4* | osf5*) # as osf3* with the addition of -msym flag 10531 if test yes = "$GCC"; then 10532 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10533 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' 10534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10535 else 10536 allow_undefined_flag=' -expect_unresolved \*' 10537 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' 10538 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~ 10539 $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' 10540 10541 # Both c and cxx compiler support -rpath directly 10542 hardcode_libdir_flag_spec='-rpath $libdir' 10543 fi 10544 archive_cmds_need_lc='no' 10545 hardcode_libdir_separator=: 10546 ;; 10547 10548 solaris*) 10549 no_undefined_flag=' -z defs' 10550 if test yes = "$GCC"; then 10551 wlarc='$wl' 10552 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10554 $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' 10555 else 10556 case `$CC -V 2>&1` in 10557 *"Compilers 5.0"*) 10558 wlarc='' 10559 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10561 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10562 ;; 10563 *) 10564 wlarc='$wl' 10565 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10567 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10568 ;; 10569 esac 10570 fi 10571 hardcode_libdir_flag_spec='-R$libdir' 10572 hardcode_shlibpath_var=no 10573 case $host_os in 10574 solaris2.[0-5] | solaris2.[0-5].*) ;; 10575 *) 10576 # The compiler driver will combine and reorder linker options, 10577 # but understands '-z linker_flag'. GCC discards it without '$wl', 10578 # but is careful enough not to reorder. 10579 # Supported since Solaris 2.6 (maybe 2.5.1?) 10580 if test yes = "$GCC"; then 10581 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10582 else 10583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10584 fi 10585 ;; 10586 esac 10587 link_all_deplibs=yes 10588 ;; 10589 10590 sunos4*) 10591 if test sequent = "$host_vendor"; then 10592 # Use $CC to link under sequent, because it throws in some extra .o 10593 # files that make .init and .fini sections work. 10594 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10595 else 10596 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10597 fi 10598 hardcode_libdir_flag_spec='-L$libdir' 10599 hardcode_direct=yes 10600 hardcode_minus_L=yes 10601 hardcode_shlibpath_var=no 10602 ;; 10603 10604 sysv4) 10605 case $host_vendor in 10606 sni) 10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10608 hardcode_direct=yes # is this really true??? 10609 ;; 10610 siemens) 10611 ## LD is ld it makes a PLAMLIB 10612 ## CC just makes a GrossModule. 10613 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10614 reload_cmds='$CC -r -o $output$reload_objs' 10615 hardcode_direct=no 10616 ;; 10617 motorola) 10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10619 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10620 ;; 10621 esac 10622 runpath_var='LD_RUN_PATH' 10623 hardcode_shlibpath_var=no 10624 ;; 10625 10626 sysv4.3*) 10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10628 hardcode_shlibpath_var=no 10629 export_dynamic_flag_spec='-Bexport' 10630 ;; 10631 10632 sysv4*MP*) 10633 if test -d /usr/nec; then 10634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10635 hardcode_shlibpath_var=no 10636 runpath_var=LD_RUN_PATH 10637 hardcode_runpath_var=yes 10638 ld_shlibs=yes 10639 fi 10640 ;; 10641 10642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10643 no_undefined_flag='$wl-z,text' 10644 archive_cmds_need_lc=no 10645 hardcode_shlibpath_var=no 10646 runpath_var='LD_RUN_PATH' 10647 10648 if test yes = "$GCC"; then 10649 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10650 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10651 else 10652 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10653 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10654 fi 10655 ;; 10656 10657 sysv5* | sco3.2v5* | sco5v6*) 10658 # Note: We CANNOT use -z defs as we might desire, because we do not 10659 # link with -lc, and that would cause any symbols used from libc to 10660 # always be unresolved, which means just about no library would 10661 # ever link correctly. If we're not using GNU ld we use -z text 10662 # though, which does catch some bad symbols but isn't as heavy-handed 10663 # as -z defs. 10664 no_undefined_flag='$wl-z,text' 10665 allow_undefined_flag='$wl-z,nodefs' 10666 archive_cmds_need_lc=no 10667 hardcode_shlibpath_var=no 10668 hardcode_libdir_flag_spec='$wl-R,$libdir' 10669 hardcode_libdir_separator=':' 10670 link_all_deplibs=yes 10671 export_dynamic_flag_spec='$wl-Bexport' 10672 runpath_var='LD_RUN_PATH' 10673 10674 if test yes = "$GCC"; then 10675 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10676 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10677 else 10678 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10679 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10680 fi 10681 ;; 10682 10683 uts4*) 10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10685 hardcode_libdir_flag_spec='-L$libdir' 10686 hardcode_shlibpath_var=no 10687 ;; 10688 10689 *) 10690 ld_shlibs=no 10691 ;; 10692 esac 10693 10694 if test sni = "$host_vendor"; then 10695 case $host in 10696 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10697 export_dynamic_flag_spec='$wl-Blargedynsym' 10698 ;; 10699 esac 10700 fi 10701 fi 10702 10703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10704$as_echo "$ld_shlibs" >&6; } 10705test no = "$ld_shlibs" && can_build_shared=no 10706 10707with_gnu_ld=$with_gnu_ld 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723# 10724# Do we need to explicitly link libc? 10725# 10726case "x$archive_cmds_need_lc" in 10727x|xyes) 10728 # Assume -lc should be added 10729 archive_cmds_need_lc=yes 10730 10731 if test yes,yes = "$GCC,$enable_shared"; then 10732 case $archive_cmds in 10733 *'~'*) 10734 # FIXME: we may have to deal with multi-command sequences. 10735 ;; 10736 '$CC '*) 10737 # Test whether the compiler implicitly links with -lc since on some 10738 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10739 # to ld, don't add -lc before -lgcc. 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10741$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10742if ${lt_cv_archive_cmds_need_lc+:} false; then : 10743 $as_echo_n "(cached) " >&6 10744else 10745 $RM conftest* 10746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10747 10748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10749 (eval $ac_compile) 2>&5 10750 ac_status=$? 10751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10752 test $ac_status = 0; } 2>conftest.err; then 10753 soname=conftest 10754 lib=conftest 10755 libobjs=conftest.$ac_objext 10756 deplibs= 10757 wl=$lt_prog_compiler_wl 10758 pic_flag=$lt_prog_compiler_pic 10759 compiler_flags=-v 10760 linker_flags=-v 10761 verstring= 10762 output_objdir=. 10763 libname=conftest 10764 lt_save_allow_undefined_flag=$allow_undefined_flag 10765 allow_undefined_flag= 10766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10767 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10768 ac_status=$? 10769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10770 test $ac_status = 0; } 10771 then 10772 lt_cv_archive_cmds_need_lc=no 10773 else 10774 lt_cv_archive_cmds_need_lc=yes 10775 fi 10776 allow_undefined_flag=$lt_save_allow_undefined_flag 10777 else 10778 cat conftest.err 1>&5 10779 fi 10780 $RM conftest* 10781 10782fi 10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10784$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10785 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10786 ;; 10787 esac 10788 fi 10789 ;; 10790esac 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10944$as_echo_n "checking dynamic linker characteristics... " >&6; } 10945 10946if test yes = "$GCC"; then 10947 case $host_os in 10948 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10949 *) lt_awk_arg='/^libraries:/' ;; 10950 esac 10951 case $host_os in 10952 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10953 *) lt_sed_strip_eq='s|=/|/|g' ;; 10954 esac 10955 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10956 case $lt_search_path_spec in 10957 *\;*) 10958 # if the path contains ";" then we assume it to be the separator 10959 # otherwise default to the standard path separator (i.e. ":") - it is 10960 # assumed that no part of a normal pathname contains ";" but that should 10961 # okay in the real world where ";" in dirpaths is itself problematic. 10962 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10963 ;; 10964 *) 10965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10966 ;; 10967 esac 10968 # Ok, now we have the path, separated by spaces, we can step through it 10969 # and add multilib dir if necessary... 10970 lt_tmp_lt_search_path_spec= 10971 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10972 # ...but if some path component already ends with the multilib dir we assume 10973 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10974 case "$lt_multi_os_dir; $lt_search_path_spec " in 10975 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10976 lt_multi_os_dir= 10977 ;; 10978 esac 10979 for lt_sys_path in $lt_search_path_spec; do 10980 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10982 elif test -n "$lt_multi_os_dir"; then 10983 test -d "$lt_sys_path" && \ 10984 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10985 fi 10986 done 10987 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10988BEGIN {RS = " "; FS = "/|\n";} { 10989 lt_foo = ""; 10990 lt_count = 0; 10991 for (lt_i = NF; lt_i > 0; lt_i--) { 10992 if ($lt_i != "" && $lt_i != ".") { 10993 if ($lt_i == "..") { 10994 lt_count++; 10995 } else { 10996 if (lt_count == 0) { 10997 lt_foo = "/" $lt_i lt_foo; 10998 } else { 10999 lt_count--; 11000 } 11001 } 11002 } 11003 } 11004 if (lt_foo != "") { lt_freq[lt_foo]++; } 11005 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11006}'` 11007 # AWK program above erroneously prepends '/' to C:/dos/paths 11008 # for these hosts. 11009 case $host_os in 11010 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11011 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11012 esac 11013 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11014else 11015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11016fi 11017library_names_spec= 11018libname_spec='lib$name' 11019soname_spec= 11020shrext_cmds=.so 11021postinstall_cmds= 11022postuninstall_cmds= 11023finish_cmds= 11024finish_eval= 11025shlibpath_var= 11026shlibpath_overrides_runpath=unknown 11027version_type=none 11028dynamic_linker="$host_os ld.so" 11029sys_lib_dlsearch_path_spec="/lib /usr/lib" 11030need_lib_prefix=unknown 11031hardcode_into_libs=no 11032 11033# when you set need_version to no, make sure it does not cause -set_version 11034# flags to be left without arguments 11035need_version=unknown 11036 11037 11038 11039case $host_os in 11040aix3*) 11041 version_type=linux # correct to gnu/linux during the next big refactor 11042 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11043 shlibpath_var=LIBPATH 11044 11045 # AIX 3 has no versioning support, so we append a major version to the name. 11046 soname_spec='$libname$release$shared_ext$major' 11047 ;; 11048 11049aix[4-9]*) 11050 version_type=linux # correct to gnu/linux during the next big refactor 11051 need_lib_prefix=no 11052 need_version=no 11053 hardcode_into_libs=yes 11054 if test ia64 = "$host_cpu"; then 11055 # AIX 5 supports IA64 11056 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11057 shlibpath_var=LD_LIBRARY_PATH 11058 else 11059 # With GCC up to 2.95.x, collect2 would create an import file 11060 # for dependence libraries. The import file would start with 11061 # the line '#! .'. This would cause the generated library to 11062 # depend on '.', always an invalid library. This was fixed in 11063 # development snapshots of GCC prior to 3.0. 11064 case $host_os in 11065 aix4 | aix4.[01] | aix4.[01].*) 11066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11067 echo ' yes ' 11068 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11069 : 11070 else 11071 can_build_shared=no 11072 fi 11073 ;; 11074 esac 11075 # Using Import Files as archive members, it is possible to support 11076 # filename-based versioning of shared library archives on AIX. While 11077 # this would work for both with and without runtime linking, it will 11078 # prevent static linking of such archives. So we do filename-based 11079 # shared library versioning with .so extension only, which is used 11080 # when both runtime linking and shared linking is enabled. 11081 # Unfortunately, runtime linking may impact performance, so we do 11082 # not want this to be the default eventually. Also, we use the 11083 # versioned .so libs for executables only if there is the -brtl 11084 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11085 # To allow for filename-based versioning support, we need to create 11086 # libNAME.so.V as an archive file, containing: 11087 # *) an Import File, referring to the versioned filename of the 11088 # archive as well as the shared archive member, telling the 11089 # bitwidth (32 or 64) of that shared object, and providing the 11090 # list of exported symbols of that shared object, eventually 11091 # decorated with the 'weak' keyword 11092 # *) the shared object with the F_LOADONLY flag set, to really avoid 11093 # it being seen by the linker. 11094 # At run time we better use the real file rather than another symlink, 11095 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11096 11097 case $with_aix_soname,$aix_use_runtimelinking in 11098 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11099 # soname into executable. Probably we can add versioning support to 11100 # collect2, so additional links can be useful in future. 11101 aix,yes) # traditional libtool 11102 dynamic_linker='AIX unversionable lib.so' 11103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11104 # instead of lib<name>.a to let people know that these are not 11105 # typical AIX shared libraries. 11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11107 ;; 11108 aix,no) # traditional AIX only 11109 dynamic_linker='AIX lib.a(lib.so.V)' 11110 # We preserve .a as extension for shared libraries through AIX4.2 11111 # and later when we are not doing run time linking. 11112 library_names_spec='$libname$release.a $libname.a' 11113 soname_spec='$libname$release$shared_ext$major' 11114 ;; 11115 svr4,*) # full svr4 only 11116 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11117 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11118 # We do not specify a path in Import Files, so LIBPATH fires. 11119 shlibpath_overrides_runpath=yes 11120 ;; 11121 *,yes) # both, prefer svr4 11122 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11123 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11124 # unpreferred sharedlib libNAME.a needs extra handling 11125 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"' 11126 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"' 11127 # We do not specify a path in Import Files, so LIBPATH fires. 11128 shlibpath_overrides_runpath=yes 11129 ;; 11130 *,no) # both, prefer aix 11131 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11132 library_names_spec='$libname$release.a $libname.a' 11133 soname_spec='$libname$release$shared_ext$major' 11134 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11135 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)' 11136 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"' 11137 ;; 11138 esac 11139 shlibpath_var=LIBPATH 11140 fi 11141 ;; 11142 11143amigaos*) 11144 case $host_cpu in 11145 powerpc) 11146 # Since July 2007 AmigaOS4 officially supports .so libraries. 11147 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11149 ;; 11150 m68k) 11151 library_names_spec='$libname.ixlibrary $libname.a' 11152 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11153 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' 11154 ;; 11155 esac 11156 ;; 11157 11158beos*) 11159 library_names_spec='$libname$shared_ext' 11160 dynamic_linker="$host_os ld.so" 11161 shlibpath_var=LIBRARY_PATH 11162 ;; 11163 11164bsdi[45]*) 11165 version_type=linux # correct to gnu/linux during the next big refactor 11166 need_version=no 11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11168 soname_spec='$libname$release$shared_ext$major' 11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11170 shlibpath_var=LD_LIBRARY_PATH 11171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11173 # the default ld.so.conf also contains /usr/contrib/lib and 11174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11175 # libtool to hard-code these into programs 11176 ;; 11177 11178cygwin* | mingw* | pw32* | cegcc*) 11179 version_type=windows 11180 shrext_cmds=.dll 11181 need_version=no 11182 need_lib_prefix=no 11183 11184 case $GCC,$cc_basename in 11185 yes,*) 11186 # gcc 11187 library_names_spec='$libname.dll.a' 11188 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11189 postinstall_cmds='base_file=`basename \$file`~ 11190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11191 dldir=$destdir/`dirname \$dlpath`~ 11192 test -d \$dldir || mkdir -p \$dldir~ 11193 $install_prog $dir/$dlname \$dldir/$dlname~ 11194 chmod a+x \$dldir/$dlname~ 11195 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11196 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11197 fi' 11198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11199 dlpath=$dir/\$dldll~ 11200 $RM \$dlpath' 11201 shlibpath_overrides_runpath=yes 11202 11203 case $host_os in 11204 cygwin*) 11205 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11206 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11207 11208 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11209 ;; 11210 mingw* | cegcc*) 11211 # MinGW DLLs use traditional 'lib' prefix 11212 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11213 ;; 11214 pw32*) 11215 # pw32 DLLs use 'pw' prefix rather than 'lib' 11216 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11217 ;; 11218 esac 11219 dynamic_linker='Win32 ld.exe' 11220 ;; 11221 11222 *,cl*) 11223 # Native MSVC 11224 libname_spec='$name' 11225 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11226 library_names_spec='$libname.dll.lib' 11227 11228 case $build_os in 11229 mingw*) 11230 sys_lib_search_path_spec= 11231 lt_save_ifs=$IFS 11232 IFS=';' 11233 for lt_path in $LIB 11234 do 11235 IFS=$lt_save_ifs 11236 # Let DOS variable expansion print the short 8.3 style file name. 11237 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11238 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11239 done 11240 IFS=$lt_save_ifs 11241 # Convert to MSYS style. 11242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11243 ;; 11244 cygwin*) 11245 # Convert to unix form, then to dos form, then back to unix form 11246 # but this time dos style (no spaces!) so that the unix form looks 11247 # like /cygdrive/c/PROGRA~1:/cygdr... 11248 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11249 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11250 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11251 ;; 11252 *) 11253 sys_lib_search_path_spec=$LIB 11254 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11255 # It is most probably a Windows format PATH. 11256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11257 else 11258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11259 fi 11260 # FIXME: find the short name or the path components, as spaces are 11261 # common. (e.g. "Program Files" -> "PROGRA~1") 11262 ;; 11263 esac 11264 11265 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11266 postinstall_cmds='base_file=`basename \$file`~ 11267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11268 dldir=$destdir/`dirname \$dlpath`~ 11269 test -d \$dldir || mkdir -p \$dldir~ 11270 $install_prog $dir/$dlname \$dldir/$dlname' 11271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11272 dlpath=$dir/\$dldll~ 11273 $RM \$dlpath' 11274 shlibpath_overrides_runpath=yes 11275 dynamic_linker='Win32 link.exe' 11276 ;; 11277 11278 *) 11279 # Assume MSVC wrapper 11280 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11281 dynamic_linker='Win32 ld.exe' 11282 ;; 11283 esac 11284 # FIXME: first we should search . and the directory the executable is in 11285 shlibpath_var=PATH 11286 ;; 11287 11288darwin* | rhapsody*) 11289 dynamic_linker="$host_os dyld" 11290 version_type=darwin 11291 need_lib_prefix=no 11292 need_version=no 11293 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11294 soname_spec='$libname$release$major$shared_ext' 11295 shlibpath_overrides_runpath=yes 11296 shlibpath_var=DYLD_LIBRARY_PATH 11297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11298 11299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11301 ;; 11302 11303dgux*) 11304 version_type=linux # correct to gnu/linux during the next big refactor 11305 need_lib_prefix=no 11306 need_version=no 11307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11308 soname_spec='$libname$release$shared_ext$major' 11309 shlibpath_var=LD_LIBRARY_PATH 11310 ;; 11311 11312freebsd* | dragonfly*) 11313 # DragonFly does not have aout. When/if they implement a new 11314 # versioning mechanism, adjust this. 11315 if test -x /usr/bin/objformat; then 11316 objformat=`/usr/bin/objformat` 11317 else 11318 case $host_os in 11319 freebsd[23].*) objformat=aout ;; 11320 *) objformat=elf ;; 11321 esac 11322 fi 11323 version_type=freebsd-$objformat 11324 case $version_type in 11325 freebsd-elf*) 11326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11327 soname_spec='$libname$release$shared_ext$major' 11328 need_version=no 11329 need_lib_prefix=no 11330 ;; 11331 freebsd-*) 11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11333 need_version=yes 11334 ;; 11335 esac 11336 shlibpath_var=LD_LIBRARY_PATH 11337 case $host_os in 11338 freebsd2.*) 11339 shlibpath_overrides_runpath=yes 11340 ;; 11341 freebsd3.[01]* | freebsdelf3.[01]*) 11342 shlibpath_overrides_runpath=yes 11343 hardcode_into_libs=yes 11344 ;; 11345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11347 shlibpath_overrides_runpath=no 11348 hardcode_into_libs=yes 11349 ;; 11350 *) # from 4.6 on, and DragonFly 11351 shlibpath_overrides_runpath=yes 11352 hardcode_into_libs=yes 11353 ;; 11354 esac 11355 ;; 11356 11357haiku*) 11358 version_type=linux # correct to gnu/linux during the next big refactor 11359 need_lib_prefix=no 11360 need_version=no 11361 dynamic_linker="$host_os runtime_loader" 11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11363 soname_spec='$libname$release$shared_ext$major' 11364 shlibpath_var=LIBRARY_PATH 11365 shlibpath_overrides_runpath=no 11366 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11367 hardcode_into_libs=yes 11368 ;; 11369 11370hpux9* | hpux10* | hpux11*) 11371 # Give a soname corresponding to the major version so that dld.sl refuses to 11372 # link against other versions. 11373 version_type=sunos 11374 need_lib_prefix=no 11375 need_version=no 11376 case $host_cpu in 11377 ia64*) 11378 shrext_cmds='.so' 11379 hardcode_into_libs=yes 11380 dynamic_linker="$host_os dld.so" 11381 shlibpath_var=LD_LIBRARY_PATH 11382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11384 soname_spec='$libname$release$shared_ext$major' 11385 if test 32 = "$HPUX_IA64_MODE"; then 11386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11387 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11388 else 11389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11390 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11391 fi 11392 ;; 11393 hppa*64*) 11394 shrext_cmds='.sl' 11395 hardcode_into_libs=yes 11396 dynamic_linker="$host_os dld.sl" 11397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11400 soname_spec='$libname$release$shared_ext$major' 11401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11403 ;; 11404 *) 11405 shrext_cmds='.sl' 11406 dynamic_linker="$host_os dld.sl" 11407 shlibpath_var=SHLIB_PATH 11408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11410 soname_spec='$libname$release$shared_ext$major' 11411 ;; 11412 esac 11413 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11414 postinstall_cmds='chmod 555 $lib' 11415 # or fails outright, so override atomically: 11416 install_override_mode=555 11417 ;; 11418 11419interix[3-9]*) 11420 version_type=linux # correct to gnu/linux during the next big refactor 11421 need_lib_prefix=no 11422 need_version=no 11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11424 soname_spec='$libname$release$shared_ext$major' 11425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11426 shlibpath_var=LD_LIBRARY_PATH 11427 shlibpath_overrides_runpath=no 11428 hardcode_into_libs=yes 11429 ;; 11430 11431irix5* | irix6* | nonstopux*) 11432 case $host_os in 11433 nonstopux*) version_type=nonstopux ;; 11434 *) 11435 if test yes = "$lt_cv_prog_gnu_ld"; then 11436 version_type=linux # correct to gnu/linux during the next big refactor 11437 else 11438 version_type=irix 11439 fi ;; 11440 esac 11441 need_lib_prefix=no 11442 need_version=no 11443 soname_spec='$libname$release$shared_ext$major' 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11445 case $host_os in 11446 irix5* | nonstopux*) 11447 libsuff= shlibsuff= 11448 ;; 11449 *) 11450 case $LD in # libtool.m4 will add one of these switches to LD 11451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11452 libsuff= shlibsuff= libmagic=32-bit;; 11453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11454 libsuff=32 shlibsuff=N32 libmagic=N32;; 11455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11456 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11457 *) libsuff= shlibsuff= libmagic=never-match;; 11458 esac 11459 ;; 11460 esac 11461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11462 shlibpath_overrides_runpath=no 11463 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11464 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11465 hardcode_into_libs=yes 11466 ;; 11467 11468# No shared lib support for Linux oldld, aout, or coff. 11469linux*oldld* | linux*aout* | linux*coff*) 11470 dynamic_linker=no 11471 ;; 11472 11473linux*android*) 11474 version_type=none # Android doesn't support versioned libraries. 11475 need_lib_prefix=no 11476 need_version=no 11477 library_names_spec='$libname$release$shared_ext' 11478 soname_spec='$libname$release$shared_ext' 11479 finish_cmds= 11480 shlibpath_var=LD_LIBRARY_PATH 11481 shlibpath_overrides_runpath=yes 11482 11483 # This implies no fast_install, which is unacceptable. 11484 # Some rework will be needed to allow for fast_install 11485 # before this can be enabled. 11486 hardcode_into_libs=yes 11487 11488 dynamic_linker='Android linker' 11489 # Don't embed -rpath directories since the linker doesn't support them. 11490 hardcode_libdir_flag_spec='-L$libdir' 11491 ;; 11492 11493# This must be glibc/ELF. 11494linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11495 version_type=linux # correct to gnu/linux during the next big refactor 11496 need_lib_prefix=no 11497 need_version=no 11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11499 soname_spec='$libname$release$shared_ext$major' 11500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11501 shlibpath_var=LD_LIBRARY_PATH 11502 shlibpath_overrides_runpath=no 11503 11504 # Some binutils ld are patched to set DT_RUNPATH 11505 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 lt_cv_shlibpath_overrides_runpath=no 11509 save_LDFLAGS=$LDFLAGS 11510 save_libdir=$libdir 11511 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11512 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11514/* end confdefs.h. */ 11515 11516int 11517main () 11518{ 11519 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524if ac_fn_c_try_link "$LINENO"; then : 11525 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11526 lt_cv_shlibpath_overrides_runpath=yes 11527fi 11528fi 11529rm -f core conftest.err conftest.$ac_objext \ 11530 conftest$ac_exeext conftest.$ac_ext 11531 LDFLAGS=$save_LDFLAGS 11532 libdir=$save_libdir 11533 11534fi 11535 11536 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11537 11538 # This implies no fast_install, which is unacceptable. 11539 # Some rework will be needed to allow for fast_install 11540 # before this can be enabled. 11541 hardcode_into_libs=yes 11542 11543 # Ideally, we could use ldconfig to report *all* directores which are 11544 # searched for libraries, however this is still not possible. Aside from not 11545 # being certain /sbin/ldconfig is available, command 11546 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11547 # even though it is searched at run-time. Try to do the best guess by 11548 # appending ld.so.conf contents (and includes) to the search path. 11549 if test -f /etc/ld.so.conf; then 11550 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' ' '` 11551 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11552 fi 11553 11554 # We used to test for /lib/ld.so.1 and disable shared libraries on 11555 # powerpc, because MkLinux only supported shared libraries with the 11556 # GNU dynamic linker. Since this was broken with cross compilers, 11557 # most powerpc-linux boxes support dynamic linking these days and 11558 # people can always --disable-shared, the test was removed, and we 11559 # assume the GNU/Linux dynamic linker is in use. 11560 dynamic_linker='GNU/Linux ld.so' 11561 ;; 11562 11563netbsd*) 11564 version_type=sunos 11565 need_lib_prefix=no 11566 need_version=no 11567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11568 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11570 dynamic_linker='NetBSD (a.out) ld.so' 11571 else 11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11573 soname_spec='$libname$release$shared_ext$major' 11574 dynamic_linker='NetBSD ld.elf_so' 11575 fi 11576 shlibpath_var=LD_LIBRARY_PATH 11577 shlibpath_overrides_runpath=yes 11578 hardcode_into_libs=yes 11579 ;; 11580 11581newsos6) 11582 version_type=linux # correct to gnu/linux during the next big refactor 11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11584 shlibpath_var=LD_LIBRARY_PATH 11585 shlibpath_overrides_runpath=yes 11586 ;; 11587 11588*nto* | *qnx*) 11589 version_type=qnx 11590 need_lib_prefix=no 11591 need_version=no 11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11593 soname_spec='$libname$release$shared_ext$major' 11594 shlibpath_var=LD_LIBRARY_PATH 11595 shlibpath_overrides_runpath=no 11596 hardcode_into_libs=yes 11597 dynamic_linker='ldqnx.so' 11598 ;; 11599 11600openbsd* | bitrig*) 11601 version_type=sunos 11602 sys_lib_dlsearch_path_spec=/usr/lib 11603 need_lib_prefix=no 11604 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11605 need_version=no 11606 else 11607 need_version=yes 11608 fi 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11611 shlibpath_var=LD_LIBRARY_PATH 11612 shlibpath_overrides_runpath=yes 11613 ;; 11614 11615os2*) 11616 libname_spec='$name' 11617 version_type=windows 11618 shrext_cmds=.dll 11619 need_version=no 11620 need_lib_prefix=no 11621 # OS/2 can only load a DLL with a base name of 8 characters or less. 11622 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11623 v=$($ECHO $release$versuffix | tr -d .-); 11624 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11625 $ECHO $n$v`$shared_ext' 11626 library_names_spec='${libname}_dll.$libext' 11627 dynamic_linker='OS/2 ld.exe' 11628 shlibpath_var=BEGINLIBPATH 11629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11631 postinstall_cmds='base_file=`basename \$file`~ 11632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11633 dldir=$destdir/`dirname \$dlpath`~ 11634 test -d \$dldir || mkdir -p \$dldir~ 11635 $install_prog $dir/$dlname \$dldir/$dlname~ 11636 chmod a+x \$dldir/$dlname~ 11637 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11638 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11639 fi' 11640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11641 dlpath=$dir/\$dldll~ 11642 $RM \$dlpath' 11643 ;; 11644 11645osf3* | osf4* | osf5*) 11646 version_type=osf 11647 need_lib_prefix=no 11648 need_version=no 11649 soname_spec='$libname$release$shared_ext$major' 11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11651 shlibpath_var=LD_LIBRARY_PATH 11652 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11654 ;; 11655 11656rdos*) 11657 dynamic_linker=no 11658 ;; 11659 11660solaris*) 11661 version_type=linux # correct to gnu/linux during the next big refactor 11662 need_lib_prefix=no 11663 need_version=no 11664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11665 soname_spec='$libname$release$shared_ext$major' 11666 shlibpath_var=LD_LIBRARY_PATH 11667 shlibpath_overrides_runpath=yes 11668 hardcode_into_libs=yes 11669 # ldd complains unless libraries are executable 11670 postinstall_cmds='chmod +x $lib' 11671 ;; 11672 11673sunos4*) 11674 version_type=sunos 11675 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11677 shlibpath_var=LD_LIBRARY_PATH 11678 shlibpath_overrides_runpath=yes 11679 if test yes = "$with_gnu_ld"; then 11680 need_lib_prefix=no 11681 fi 11682 need_version=yes 11683 ;; 11684 11685sysv4 | sysv4.3*) 11686 version_type=linux # correct to gnu/linux during the next big refactor 11687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11688 soname_spec='$libname$release$shared_ext$major' 11689 shlibpath_var=LD_LIBRARY_PATH 11690 case $host_vendor in 11691 sni) 11692 shlibpath_overrides_runpath=no 11693 need_lib_prefix=no 11694 runpath_var=LD_RUN_PATH 11695 ;; 11696 siemens) 11697 need_lib_prefix=no 11698 ;; 11699 motorola) 11700 need_lib_prefix=no 11701 need_version=no 11702 shlibpath_overrides_runpath=no 11703 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11704 ;; 11705 esac 11706 ;; 11707 11708sysv4*MP*) 11709 if test -d /usr/nec; then 11710 version_type=linux # correct to gnu/linux during the next big refactor 11711 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11712 soname_spec='$libname$shared_ext.$major' 11713 shlibpath_var=LD_LIBRARY_PATH 11714 fi 11715 ;; 11716 11717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11718 version_type=sco 11719 need_lib_prefix=no 11720 need_version=no 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11722 soname_spec='$libname$release$shared_ext$major' 11723 shlibpath_var=LD_LIBRARY_PATH 11724 shlibpath_overrides_runpath=yes 11725 hardcode_into_libs=yes 11726 if test yes = "$with_gnu_ld"; then 11727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11728 else 11729 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11730 case $host_os in 11731 sco3.2v5*) 11732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11733 ;; 11734 esac 11735 fi 11736 sys_lib_dlsearch_path_spec='/usr/lib' 11737 ;; 11738 11739tpf*) 11740 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11741 version_type=linux # correct to gnu/linux during the next big refactor 11742 need_lib_prefix=no 11743 need_version=no 11744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11745 shlibpath_var=LD_LIBRARY_PATH 11746 shlibpath_overrides_runpath=no 11747 hardcode_into_libs=yes 11748 ;; 11749 11750uts4*) 11751 version_type=linux # correct to gnu/linux during the next big refactor 11752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11753 soname_spec='$libname$release$shared_ext$major' 11754 shlibpath_var=LD_LIBRARY_PATH 11755 ;; 11756 11757*) 11758 dynamic_linker=no 11759 ;; 11760esac 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11762$as_echo "$dynamic_linker" >&6; } 11763test no = "$dynamic_linker" && can_build_shared=no 11764 11765variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11766if test yes = "$GCC"; then 11767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11768fi 11769 11770if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11771 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11772fi 11773 11774if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11775 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11776fi 11777 11778# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11779configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11780 11781# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11782func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11783 11784# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11785configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11884$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11885hardcode_action= 11886if test -n "$hardcode_libdir_flag_spec" || 11887 test -n "$runpath_var" || 11888 test yes = "$hardcode_automatic"; then 11889 11890 # We can hardcode non-existent directories. 11891 if test no != "$hardcode_direct" && 11892 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11893 # have to relink, otherwise we might link with an installed library 11894 # when we should be linking with a yet-to-be-installed one 11895 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11896 test no != "$hardcode_minus_L"; then 11897 # Linking always hardcodes the temporary library directory. 11898 hardcode_action=relink 11899 else 11900 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11901 hardcode_action=immediate 11902 fi 11903else 11904 # We cannot hardcode anything, or else we can only hardcode existing 11905 # directories. 11906 hardcode_action=unsupported 11907fi 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11909$as_echo "$hardcode_action" >&6; } 11910 11911if test relink = "$hardcode_action" || 11912 test yes = "$inherit_rpath"; then 11913 # Fast installation is not supported 11914 enable_fast_install=no 11915elif test yes = "$shlibpath_overrides_runpath" || 11916 test no = "$enable_shared"; then 11917 # Fast installation is not necessary 11918 enable_fast_install=needless 11919fi 11920 11921 11922 11923 11924 11925 11926 if test yes != "$enable_dlopen"; then 11927 enable_dlopen=unknown 11928 enable_dlopen_self=unknown 11929 enable_dlopen_self_static=unknown 11930else 11931 lt_cv_dlopen=no 11932 lt_cv_dlopen_libs= 11933 11934 case $host_os in 11935 beos*) 11936 lt_cv_dlopen=load_add_on 11937 lt_cv_dlopen_libs= 11938 lt_cv_dlopen_self=yes 11939 ;; 11940 11941 mingw* | pw32* | cegcc*) 11942 lt_cv_dlopen=LoadLibrary 11943 lt_cv_dlopen_libs= 11944 ;; 11945 11946 cygwin*) 11947 lt_cv_dlopen=dlopen 11948 lt_cv_dlopen_libs= 11949 ;; 11950 11951 darwin*) 11952 # if libdl is installed we need to link against it 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11954$as_echo_n "checking for dlopen in -ldl... " >&6; } 11955if ${ac_cv_lib_dl_dlopen+:} false; then : 11956 $as_echo_n "(cached) " >&6 11957else 11958 ac_check_lib_save_LIBS=$LIBS 11959LIBS="-ldl $LIBS" 11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11961/* end confdefs.h. */ 11962 11963/* Override any GCC internal prototype to avoid an error. 11964 Use char because int might match the return type of a GCC 11965 builtin and then its argument prototype would still apply. */ 11966#ifdef __cplusplus 11967extern "C" 11968#endif 11969char dlopen (); 11970int 11971main () 11972{ 11973return dlopen (); 11974 ; 11975 return 0; 11976} 11977_ACEOF 11978if ac_fn_c_try_link "$LINENO"; then : 11979 ac_cv_lib_dl_dlopen=yes 11980else 11981 ac_cv_lib_dl_dlopen=no 11982fi 11983rm -f core conftest.err conftest.$ac_objext \ 11984 conftest$ac_exeext conftest.$ac_ext 11985LIBS=$ac_check_lib_save_LIBS 11986fi 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11988$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11989if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11990 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11991else 11992 11993 lt_cv_dlopen=dyld 11994 lt_cv_dlopen_libs= 11995 lt_cv_dlopen_self=yes 11996 11997fi 11998 11999 ;; 12000 12001 tpf*) 12002 # Don't try to run any link tests for TPF. We know it's impossible 12003 # because TPF is a cross-compiler, and we know how we open DSOs. 12004 lt_cv_dlopen=dlopen 12005 lt_cv_dlopen_libs= 12006 lt_cv_dlopen_self=no 12007 ;; 12008 12009 *) 12010 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12011if test "x$ac_cv_func_shl_load" = xyes; then : 12012 lt_cv_dlopen=shl_load 12013else 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12015$as_echo_n "checking for shl_load in -ldld... " >&6; } 12016if ${ac_cv_lib_dld_shl_load+:} false; then : 12017 $as_echo_n "(cached) " >&6 12018else 12019 ac_check_lib_save_LIBS=$LIBS 12020LIBS="-ldld $LIBS" 12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12022/* end confdefs.h. */ 12023 12024/* Override any GCC internal prototype to avoid an error. 12025 Use char because int might match the return type of a GCC 12026 builtin and then its argument prototype would still apply. */ 12027#ifdef __cplusplus 12028extern "C" 12029#endif 12030char shl_load (); 12031int 12032main () 12033{ 12034return shl_load (); 12035 ; 12036 return 0; 12037} 12038_ACEOF 12039if ac_fn_c_try_link "$LINENO"; then : 12040 ac_cv_lib_dld_shl_load=yes 12041else 12042 ac_cv_lib_dld_shl_load=no 12043fi 12044rm -f core conftest.err conftest.$ac_objext \ 12045 conftest$ac_exeext conftest.$ac_ext 12046LIBS=$ac_check_lib_save_LIBS 12047fi 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12049$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12050if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12051 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12052else 12053 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12054if test "x$ac_cv_func_dlopen" = xyes; then : 12055 lt_cv_dlopen=dlopen 12056else 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12058$as_echo_n "checking for dlopen in -ldl... " >&6; } 12059if ${ac_cv_lib_dl_dlopen+:} false; then : 12060 $as_echo_n "(cached) " >&6 12061else 12062 ac_check_lib_save_LIBS=$LIBS 12063LIBS="-ldl $LIBS" 12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066 12067/* Override any GCC internal prototype to avoid an error. 12068 Use char because int might match the return type of a GCC 12069 builtin and then its argument prototype would still apply. */ 12070#ifdef __cplusplus 12071extern "C" 12072#endif 12073char dlopen (); 12074int 12075main () 12076{ 12077return dlopen (); 12078 ; 12079 return 0; 12080} 12081_ACEOF 12082if ac_fn_c_try_link "$LINENO"; then : 12083 ac_cv_lib_dl_dlopen=yes 12084else 12085 ac_cv_lib_dl_dlopen=no 12086fi 12087rm -f core conftest.err conftest.$ac_objext \ 12088 conftest$ac_exeext conftest.$ac_ext 12089LIBS=$ac_check_lib_save_LIBS 12090fi 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12092$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12093if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12094 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12095else 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12097$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12098if ${ac_cv_lib_svld_dlopen+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100else 12101 ac_check_lib_save_LIBS=$LIBS 12102LIBS="-lsvld $LIBS" 12103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12104/* end confdefs.h. */ 12105 12106/* Override any GCC internal prototype to avoid an error. 12107 Use char because int might match the return type of a GCC 12108 builtin and then its argument prototype would still apply. */ 12109#ifdef __cplusplus 12110extern "C" 12111#endif 12112char dlopen (); 12113int 12114main () 12115{ 12116return dlopen (); 12117 ; 12118 return 0; 12119} 12120_ACEOF 12121if ac_fn_c_try_link "$LINENO"; then : 12122 ac_cv_lib_svld_dlopen=yes 12123else 12124 ac_cv_lib_svld_dlopen=no 12125fi 12126rm -f core conftest.err conftest.$ac_objext \ 12127 conftest$ac_exeext conftest.$ac_ext 12128LIBS=$ac_check_lib_save_LIBS 12129fi 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12131$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12132if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12133 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12134else 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12136$as_echo_n "checking for dld_link in -ldld... " >&6; } 12137if ${ac_cv_lib_dld_dld_link+:} false; then : 12138 $as_echo_n "(cached) " >&6 12139else 12140 ac_check_lib_save_LIBS=$LIBS 12141LIBS="-ldld $LIBS" 12142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12143/* end confdefs.h. */ 12144 12145/* Override any GCC internal prototype to avoid an error. 12146 Use char because int might match the return type of a GCC 12147 builtin and then its argument prototype would still apply. */ 12148#ifdef __cplusplus 12149extern "C" 12150#endif 12151char dld_link (); 12152int 12153main () 12154{ 12155return dld_link (); 12156 ; 12157 return 0; 12158} 12159_ACEOF 12160if ac_fn_c_try_link "$LINENO"; then : 12161 ac_cv_lib_dld_dld_link=yes 12162else 12163 ac_cv_lib_dld_dld_link=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext \ 12166 conftest$ac_exeext conftest.$ac_ext 12167LIBS=$ac_check_lib_save_LIBS 12168fi 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12170$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12171if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12172 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12173fi 12174 12175 12176fi 12177 12178 12179fi 12180 12181 12182fi 12183 12184 12185fi 12186 12187 12188fi 12189 12190 ;; 12191 esac 12192 12193 if test no = "$lt_cv_dlopen"; then 12194 enable_dlopen=no 12195 else 12196 enable_dlopen=yes 12197 fi 12198 12199 case $lt_cv_dlopen in 12200 dlopen) 12201 save_CPPFLAGS=$CPPFLAGS 12202 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12203 12204 save_LDFLAGS=$LDFLAGS 12205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12206 12207 save_LIBS=$LIBS 12208 LIBS="$lt_cv_dlopen_libs $LIBS" 12209 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12211$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12212if ${lt_cv_dlopen_self+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214else 12215 if test yes = "$cross_compiling"; then : 12216 lt_cv_dlopen_self=cross 12217else 12218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12219 lt_status=$lt_dlunknown 12220 cat > conftest.$ac_ext <<_LT_EOF 12221#line $LINENO "configure" 12222#include "confdefs.h" 12223 12224#if HAVE_DLFCN_H 12225#include <dlfcn.h> 12226#endif 12227 12228#include <stdio.h> 12229 12230#ifdef RTLD_GLOBAL 12231# define LT_DLGLOBAL RTLD_GLOBAL 12232#else 12233# ifdef DL_GLOBAL 12234# define LT_DLGLOBAL DL_GLOBAL 12235# else 12236# define LT_DLGLOBAL 0 12237# endif 12238#endif 12239 12240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12241 find out it does not work in some platform. */ 12242#ifndef LT_DLLAZY_OR_NOW 12243# ifdef RTLD_LAZY 12244# define LT_DLLAZY_OR_NOW RTLD_LAZY 12245# else 12246# ifdef DL_LAZY 12247# define LT_DLLAZY_OR_NOW DL_LAZY 12248# else 12249# ifdef RTLD_NOW 12250# define LT_DLLAZY_OR_NOW RTLD_NOW 12251# else 12252# ifdef DL_NOW 12253# define LT_DLLAZY_OR_NOW DL_NOW 12254# else 12255# define LT_DLLAZY_OR_NOW 0 12256# endif 12257# endif 12258# endif 12259# endif 12260#endif 12261 12262/* When -fvisibility=hidden is used, assume the code has been annotated 12263 correspondingly for the symbols needed. */ 12264#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12265int fnord () __attribute__((visibility("default"))); 12266#endif 12267 12268int fnord () { return 42; } 12269int main () 12270{ 12271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12272 int status = $lt_dlunknown; 12273 12274 if (self) 12275 { 12276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12277 else 12278 { 12279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12280 else puts (dlerror ()); 12281 } 12282 /* dlclose (self); */ 12283 } 12284 else 12285 puts (dlerror ()); 12286 12287 return status; 12288} 12289_LT_EOF 12290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12291 (eval $ac_link) 2>&5 12292 ac_status=$? 12293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12294 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12295 (./conftest; exit; ) >&5 2>/dev/null 12296 lt_status=$? 12297 case x$lt_status in 12298 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12299 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12300 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12301 esac 12302 else : 12303 # compilation failed 12304 lt_cv_dlopen_self=no 12305 fi 12306fi 12307rm -fr conftest* 12308 12309 12310fi 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12312$as_echo "$lt_cv_dlopen_self" >&6; } 12313 12314 if test yes = "$lt_cv_dlopen_self"; then 12315 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12317$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12318if ${lt_cv_dlopen_self_static+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320else 12321 if test yes = "$cross_compiling"; then : 12322 lt_cv_dlopen_self_static=cross 12323else 12324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12325 lt_status=$lt_dlunknown 12326 cat > conftest.$ac_ext <<_LT_EOF 12327#line $LINENO "configure" 12328#include "confdefs.h" 12329 12330#if HAVE_DLFCN_H 12331#include <dlfcn.h> 12332#endif 12333 12334#include <stdio.h> 12335 12336#ifdef RTLD_GLOBAL 12337# define LT_DLGLOBAL RTLD_GLOBAL 12338#else 12339# ifdef DL_GLOBAL 12340# define LT_DLGLOBAL DL_GLOBAL 12341# else 12342# define LT_DLGLOBAL 0 12343# endif 12344#endif 12345 12346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12347 find out it does not work in some platform. */ 12348#ifndef LT_DLLAZY_OR_NOW 12349# ifdef RTLD_LAZY 12350# define LT_DLLAZY_OR_NOW RTLD_LAZY 12351# else 12352# ifdef DL_LAZY 12353# define LT_DLLAZY_OR_NOW DL_LAZY 12354# else 12355# ifdef RTLD_NOW 12356# define LT_DLLAZY_OR_NOW RTLD_NOW 12357# else 12358# ifdef DL_NOW 12359# define LT_DLLAZY_OR_NOW DL_NOW 12360# else 12361# define LT_DLLAZY_OR_NOW 0 12362# endif 12363# endif 12364# endif 12365# endif 12366#endif 12367 12368/* When -fvisibility=hidden is used, assume the code has been annotated 12369 correspondingly for the symbols needed. */ 12370#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12371int fnord () __attribute__((visibility("default"))); 12372#endif 12373 12374int fnord () { return 42; } 12375int main () 12376{ 12377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12378 int status = $lt_dlunknown; 12379 12380 if (self) 12381 { 12382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12383 else 12384 { 12385 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12386 else puts (dlerror ()); 12387 } 12388 /* dlclose (self); */ 12389 } 12390 else 12391 puts (dlerror ()); 12392 12393 return status; 12394} 12395_LT_EOF 12396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12397 (eval $ac_link) 2>&5 12398 ac_status=$? 12399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12400 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12401 (./conftest; exit; ) >&5 2>/dev/null 12402 lt_status=$? 12403 case x$lt_status in 12404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12406 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12407 esac 12408 else : 12409 # compilation failed 12410 lt_cv_dlopen_self_static=no 12411 fi 12412fi 12413rm -fr conftest* 12414 12415 12416fi 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12418$as_echo "$lt_cv_dlopen_self_static" >&6; } 12419 fi 12420 12421 CPPFLAGS=$save_CPPFLAGS 12422 LDFLAGS=$save_LDFLAGS 12423 LIBS=$save_LIBS 12424 ;; 12425 esac 12426 12427 case $lt_cv_dlopen_self in 12428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12429 *) enable_dlopen_self=unknown ;; 12430 esac 12431 12432 case $lt_cv_dlopen_self_static in 12433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12434 *) enable_dlopen_self_static=unknown ;; 12435 esac 12436fi 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454striplib= 12455old_striplib= 12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12457$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12458if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12459 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12460 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12462$as_echo "yes" >&6; } 12463else 12464# FIXME - insert some real tests, host_os isn't really good enough 12465 case $host_os in 12466 darwin*) 12467 if test -n "$STRIP"; then 12468 striplib="$STRIP -x" 12469 old_striplib="$STRIP -S" 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12471$as_echo "yes" >&6; } 12472 else 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12474$as_echo "no" >&6; } 12475 fi 12476 ;; 12477 *) 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12479$as_echo "no" >&6; } 12480 ;; 12481 esac 12482fi 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 # Report what library types will actually be built 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12497$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12499$as_echo "$can_build_shared" >&6; } 12500 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12502$as_echo_n "checking whether to build shared libraries... " >&6; } 12503 test no = "$can_build_shared" && enable_shared=no 12504 12505 # On AIX, shared libraries and static libraries use the same namespace, and 12506 # are all built from PIC. 12507 case $host_os in 12508 aix3*) 12509 test yes = "$enable_shared" && enable_static=no 12510 if test -n "$RANLIB"; then 12511 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12512 postinstall_cmds='$RANLIB $lib' 12513 fi 12514 ;; 12515 12516 aix[4-9]*) 12517 if test ia64 != "$host_cpu"; then 12518 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12519 yes,aix,yes) ;; # shared object as lib.so file only 12520 yes,svr4,*) ;; # shared object as lib.so archive member only 12521 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12522 esac 12523 fi 12524 ;; 12525 esac 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12527$as_echo "$enable_shared" >&6; } 12528 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12530$as_echo_n "checking whether to build static libraries... " >&6; } 12531 # Make sure either enable_shared or enable_static is yes. 12532 test yes = "$enable_shared" || enable_static=yes 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12534$as_echo "$enable_static" >&6; } 12535 12536 12537 12538 12539fi 12540ac_ext=c 12541ac_cpp='$CPP $CPPFLAGS' 12542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12544ac_compiler_gnu=$ac_cv_c_compiler_gnu 12545 12546CC=$lt_save_CC 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 ac_config_commands="$ac_config_commands libtool" 12563 12564 12565 12566 12567# Only expand once: 12568 12569 12570AM_CPPFLAGS="$CPPFLAGS" 12571 12572gp_config_msg_len="$(expr "Compiler" : '.*')" 12573if test "$gp_config_msg_len" -ge "$gp_config_len"; then 12574 gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:" 12575else 12576 gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" 12577fi 12578gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${CC} 12579" 12580 12581 12582 12583 12584 12585# Extract the first word of "diff", so it can be a program name with args. 12586set dummy diff; ac_word=$2 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12588$as_echo_n "checking for $ac_word... " >&6; } 12589if ${ac_cv_path_DIFF+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 case $DIFF in 12593 [\\/]* | ?:[\\/]*) 12594 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 12595 ;; 12596 *) 12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12598for as_dir in $PATH 12599do 12600 IFS=$as_save_IFS 12601 test -z "$as_dir" && as_dir=. 12602 for ac_exec_ext in '' $ac_executable_extensions; do 12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12604 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12606 break 2 12607 fi 12608done 12609 done 12610IFS=$as_save_IFS 12611 12612 test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="no" 12613 ;; 12614esac 12615fi 12616DIFF=$ac_cv_path_DIFF 12617if test -n "$DIFF"; then 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 12619$as_echo "$DIFF" >&6; } 12620else 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12622$as_echo "no" >&6; } 12623fi 12624 12625 12626 if test "x$DIFF" != xno; then 12627 HAVE_DIFF_TRUE= 12628 HAVE_DIFF_FALSE='#' 12629else 12630 HAVE_DIFF_TRUE='#' 12631 HAVE_DIFF_FALSE= 12632fi 12633 12634 12635DIFF_U="no" 12636if test "x$DIFF" != xno; then : 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether diff supports -u" >&5 12638$as_echo_n "checking whether diff supports -u... " >&6; } 12639echo moo > conftest-a.c 12640echo moo > conftest-b.c 12641if ${DIFF} -u conftest-a.c conftest-b.c; then : 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12643$as_echo "yes" >&6; } 12644 DIFF_U="$DIFF -u" 12645 12646else 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12648$as_echo "no" >&6; } 12649 12650fi 12651rm -f conftest-a.c conftest-b.c 12652 12653fi 12654 12655 if test "x$DIFF_U" != xno; then 12656 HAVE_DIFF_U_TRUE= 12657 HAVE_DIFF_U_FALSE='#' 12658else 12659 HAVE_DIFF_U_TRUE='#' 12660 HAVE_DIFF_U_FALSE= 12661fi 12662 12663 12664 12665 12666# Check whether --enable-largefile was given. 12667if test "${enable_largefile+set}" = set; then : 12668 enableval=$enable_largefile; 12669fi 12670 12671if test "$enable_largefile" != no; then 12672 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12674$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12675if ${ac_cv_sys_largefile_CC+:} false; then : 12676 $as_echo_n "(cached) " >&6 12677else 12678 ac_cv_sys_largefile_CC=no 12679 if test "$GCC" != yes; then 12680 ac_save_CC=$CC 12681 while :; do 12682 # IRIX 6.2 and later do not support large files by default, 12683 # so use the C compiler's -n32 option if that helps. 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686#include <sys/types.h> 12687 /* Check that off_t can represent 2**63 - 1 correctly. 12688 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12689 since some C++ compilers masquerading as C compilers 12690 incorrectly reject 9223372036854775807. */ 12691#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12693 && LARGE_OFF_T % 2147483647 == 1) 12694 ? 1 : -1]; 12695int 12696main () 12697{ 12698 12699 ; 12700 return 0; 12701} 12702_ACEOF 12703 if ac_fn_c_try_compile "$LINENO"; then : 12704 break 12705fi 12706rm -f core conftest.err conftest.$ac_objext 12707 CC="$CC -n32" 12708 if ac_fn_c_try_compile "$LINENO"; then : 12709 ac_cv_sys_largefile_CC=' -n32'; break 12710fi 12711rm -f core conftest.err conftest.$ac_objext 12712 break 12713 done 12714 CC=$ac_save_CC 12715 rm -f conftest.$ac_ext 12716 fi 12717fi 12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12719$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12720 if test "$ac_cv_sys_largefile_CC" != no; then 12721 CC=$CC$ac_cv_sys_largefile_CC 12722 fi 12723 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12725$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12726if ${ac_cv_sys_file_offset_bits+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728else 12729 while :; do 12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12731/* end confdefs.h. */ 12732#include <sys/types.h> 12733 /* Check that off_t can represent 2**63 - 1 correctly. 12734 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12735 since some C++ compilers masquerading as C compilers 12736 incorrectly reject 9223372036854775807. */ 12737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12739 && LARGE_OFF_T % 2147483647 == 1) 12740 ? 1 : -1]; 12741int 12742main () 12743{ 12744 12745 ; 12746 return 0; 12747} 12748_ACEOF 12749if ac_fn_c_try_compile "$LINENO"; then : 12750 ac_cv_sys_file_offset_bits=no; break 12751fi 12752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12754/* end confdefs.h. */ 12755#define _FILE_OFFSET_BITS 64 12756#include <sys/types.h> 12757 /* Check that off_t can represent 2**63 - 1 correctly. 12758 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12759 since some C++ compilers masquerading as C compilers 12760 incorrectly reject 9223372036854775807. */ 12761#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12763 && LARGE_OFF_T % 2147483647 == 1) 12764 ? 1 : -1]; 12765int 12766main () 12767{ 12768 12769 ; 12770 return 0; 12771} 12772_ACEOF 12773if ac_fn_c_try_compile "$LINENO"; then : 12774 ac_cv_sys_file_offset_bits=64; break 12775fi 12776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12777 ac_cv_sys_file_offset_bits=unknown 12778 break 12779done 12780fi 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12782$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12783case $ac_cv_sys_file_offset_bits in #( 12784 no | unknown) ;; 12785 *) 12786cat >>confdefs.h <<_ACEOF 12787#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12788_ACEOF 12789;; 12790esac 12791rm -rf conftest* 12792 if test $ac_cv_sys_file_offset_bits = unknown; then 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12794$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12795if ${ac_cv_sys_large_files+:} false; then : 12796 $as_echo_n "(cached) " >&6 12797else 12798 while :; do 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801#include <sys/types.h> 12802 /* Check that off_t can represent 2**63 - 1 correctly. 12803 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12804 since some C++ compilers masquerading as C compilers 12805 incorrectly reject 9223372036854775807. */ 12806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12808 && LARGE_OFF_T % 2147483647 == 1) 12809 ? 1 : -1]; 12810int 12811main () 12812{ 12813 12814 ; 12815 return 0; 12816} 12817_ACEOF 12818if ac_fn_c_try_compile "$LINENO"; then : 12819 ac_cv_sys_large_files=no; break 12820fi 12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12823/* end confdefs.h. */ 12824#define _LARGE_FILES 1 12825#include <sys/types.h> 12826 /* Check that off_t can represent 2**63 - 1 correctly. 12827 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12828 since some C++ compilers masquerading as C compilers 12829 incorrectly reject 9223372036854775807. */ 12830#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12832 && LARGE_OFF_T % 2147483647 == 1) 12833 ? 1 : -1]; 12834int 12835main () 12836{ 12837 12838 ; 12839 return 0; 12840} 12841_ACEOF 12842if ac_fn_c_try_compile "$LINENO"; then : 12843 ac_cv_sys_large_files=1; break 12844fi 12845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12846 ac_cv_sys_large_files=unknown 12847 break 12848done 12849fi 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12851$as_echo "$ac_cv_sys_large_files" >&6; } 12852case $ac_cv_sys_large_files in #( 12853 no | unknown) ;; 12854 *) 12855cat >>confdefs.h <<_ACEOF 12856#define _LARGE_FILES $ac_cv_sys_large_files 12857_ACEOF 12858;; 12859esac 12860rm -rf conftest* 12861 fi 12862 12863 12864fi 12865 12866 12867 12868ac_dir=`echo "libexif/_stdint.h"|sed 's%/[^/][^/]*$%%'` 12869if test "$ac_dir" != "libexif/_stdint.h" && test "$ac_dir" != .; then 12870 # The file is in a subdirectory. 12871 test ! -d "$ac_dir" && mkdir "$ac_dir" 12872fi 12873 12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5 12875$as_echo_n "checking for uint8_t in stdint.h... " >&6; } 12876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12877/* end confdefs.h. */ 12878#include <stdint.h> 12879_ACEOF 12880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12881 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12882 ac_cv_type_uint8_t=yes 12883else 12884 ac_cv_type_uint8_t=no 12885fi 12886rm -f conftest* 12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 12888$as_echo "$ac_cv_type_uint8_t" >&6; } 12889if test $ac_cv_type_uint8_t = yes; then 12890 12891cat > "libexif/_stdint.h" <<EOF 12892/* This file is generated automatically by configure */ 12893#include <stdint.h> 12894EOF 12895else 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5 12897$as_echo_n "checking for uint8_t in inttypes.h... " >&6; } 12898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12899/* end confdefs.h. */ 12900#include <inttypes.h> 12901_ACEOF 12902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12903 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12904 ac_cv_type_uint8_t=yes 12905else 12906 ac_cv_type_uint8_t=no 12907fi 12908rm -f conftest* 12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 12910$as_echo "$ac_cv_type_uint8_t" >&6; } 12911if test $ac_cv_type_uint8_t = yes; then 12912 cat > "libexif/_stdint.h" <<EOF 12913/* This file is generated automatically by configure */ 12914#include <inttypes.h> 12915EOF 12916else 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5 12918$as_echo_n "checking for uint8_t in sys/types.h... " >&6; } 12919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921#include <sys/types.h> 12922_ACEOF 12923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12924 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12925 ac_cv_type_uint8_t=yes 12926else 12927 ac_cv_type_uint8_t=no 12928fi 12929rm -f conftest* 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5 12931$as_echo "$ac_cv_type_uint8_t" >&6; } 12932if test $ac_cv_type_uint8_t = yes; then 12933 cat > "libexif/_stdint.h" <<EOF 12934/* This file is generated automatically by configure */ 12935#include <sys/types.h> 12936EOF 12937else 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5 12939$as_echo_n "checking for u_int8_t in sys/types.h... " >&6; } 12940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12941/* end confdefs.h. */ 12942#include <sys/types.h> 12943_ACEOF 12944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12945 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12946 ac_cv_type_u_int8_t=yes 12947else 12948 ac_cv_type_u_int8_t=no 12949fi 12950rm -f conftest* 12951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5 12952$as_echo "$ac_cv_type_u_int8_t" >&6; } 12953if test $ac_cv_type_u_int8_t = yes; then 12954 cat > "libexif/_stdint.h" <<EOF 12955/* This file is generated automatically by configure */ 12956#ifndef __STDINT_H 12957#define __STDINT_H 12958#include <sys/types.h> 12959typedef u_int8_t uint8_t; 12960typedef u_int16_t uint16_t; 12961typedef u_int32_t uint32_t; 12962EOF 12963 12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5 12965$as_echo_n "checking for u_int64_t in sys/types.h... " >&6; } 12966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967/* end confdefs.h. */ 12968#include <sys/types.h> 12969_ACEOF 12970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12971 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12972 ac_cv_type_u_int64_t=yes 12973else 12974 ac_cv_type_u_int64_t=no 12975fi 12976rm -f conftest* 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5 12978$as_echo "$ac_cv_type_u_int64_t" >&6; } 12979if test $ac_cv_type_u_int64_t = yes; then 12980 cat >> "libexif/_stdint.h" <<EOF 12981typedef u_int64_t uint64_t; 12982#endif /*!__STDINT_H*/ 12983EOF 12984else 12985 cat >> "libexif/_stdint.h" <<EOF 12986/* 64-bit types are not available on this system */ 12987/* typedef u_int64_t uint64_t; */ 12988#endif /*!__STDINT_H*/ 12989EOF 12990fi 12991 12992 12993 12994else 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5 12996$as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;} 12997if test -e "libexif/_stdint.h" ; then 12998 rm -f "libexif/_stdint.h" 12999fi 13000 13001fi 13002 13003fi 13004 13005fi 13006 13007fi 13008 13009 13010 13011 13012ship_binaries=false 13013# Check whether --enable-ship-binaries was given. 13014if test "${enable_ship_binaries+set}" = set; then : 13015 enableval=$enable_ship_binaries; 13016if test "x$enableval" = xyes; then : 13017 ship_binaries=true 13018fi 13019 13020fi 13021 13022 if $ship_binaries; then 13023 SHIP_BINARIES_TRUE= 13024 SHIP_BINARIES_FALSE='#' 13025else 13026 SHIP_BINARIES_TRUE='#' 13027 SHIP_BINARIES_FALSE= 13028fi 13029 13030 13031gp_config_msg_len="$(expr "Ship binaries in tarball" : '.*')" 13032if test "$gp_config_msg_len" -ge "$gp_config_len"; then 13033 gp_config_msg_lhs="$(expr "Ship binaries in tarball" : "\(.\{0,${gp_config_len3}\}\)")..:" 13034else 13035 gp_config_msg_lhs="$(expr "Ship binaries in tarball:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" 13036fi 13037gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} $ship_binaries 13038" 13039 13040 13041 13042 13043# we need sqrt and pow which may be in libm 13044# We cannot use AC_CHECK_FUNC because if CFLAGS contains 13045# -Wall -Werror here the check fails because 13046# char *sqrt() conflicts with double sqrt(double xx) 13047 13048# Start by assuming -lm is needed, because it's possible that the little 13049# test program below will be optimized to in-line floating point code that 13050# doesn't require -lm, whereas the library itself cannot be so optimized 13051# (this actually seems to be the case on x86 with gcc 4.2). Assuming the 13052# reverse means that -lm could be needed but wouldn't be detected below. 13053 13054LIBS_orig="$LIBS" 13055LIBS="$LIBS -lm" 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math functions in libm" >&5 13057$as_echo_n "checking for math functions in libm... " >&6; } 13058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13059/* end confdefs.h. */ 13060 13061 #include <math.h> 13062 13063int 13064main () 13065{ 13066 13067 double s = sqrt(0); 13068 double p = pow(s,s); 13069 13070 ; 13071 return 0; 13072} 13073_ACEOF 13074if ac_fn_c_try_link "$LINENO"; then : 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13076$as_echo "yes" >&6; } 13077else 13078 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13080$as_echo "no" >&6; } 13081 LIBS="$LIBS_orig" 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math functions without libm" >&5 13083$as_echo_n "checking for math functions without libm... " >&6; } 13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086 13087 #include <math.h> 13088 13089int 13090main () 13091{ 13092 13093 double s = sqrt(0); 13094 double p = pow(s,s); 13095 13096 ; 13097 return 0; 13098} 13099_ACEOF 13100if ac_fn_c_try_link "$LINENO"; then : 13101 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13103$as_echo "yes" >&6; } 13104 13105else 13106 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13108$as_echo "no" >&6; } 13109 as_fn_error $? "*** Could not find sqrt() & pow() functions" "$LINENO" 5 13110 13111fi 13112rm -f core conftest.err conftest.$ac_objext \ 13113 conftest$ac_exeext conftest.$ac_ext 13114 13115fi 13116rm -f core conftest.err conftest.$ac_objext \ 13117 conftest$ac_exeext conftest.$ac_ext 13118 13119# Check whether libfailmalloc is available for tests 13120 13121 path_provided= 13122 failmalloc_requested= 13123# Check whether --with-failmalloc was given. 13124if test "${with_failmalloc+set}" = set; then : 13125 withval=$with_failmalloc; 13126 failmalloc_requested=1 13127 if test x"$withval" = "x" -o x"$withval" = x"yes"; then 13128 failmalloc_search_path="$sys_lib_search_path_spec" 13129 elif test x"$withval" = x"no"; then 13130 failmalloc_search_path="" 13131 failmalloc_requested= 13132 else 13133 failmalloc_search_path="$withval" 13134 path_provided=1 13135 fi 13136 13137else 13138 failmalloc_search_path="$sys_lib_search_path_spec" 13139 13140fi 13141 13142 libfailmalloc_file=libfailmalloc.so.0 13143 FAILMALLOC_PATH= 13144 13145 if test x"$cross_compiling" = x"no" -o x"$failmalloc_requested" = x"1"; then 13146 for d in $failmalloc_search_path; do 13147 as_ac_File=`$as_echo "ac_cv_file_$d/$libfailmalloc_file" | $as_tr_sh` 13148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $d/$libfailmalloc_file" >&5 13149$as_echo_n "checking for $d/$libfailmalloc_file... " >&6; } 13150if eval \${$as_ac_File+:} false; then : 13151 $as_echo_n "(cached) " >&6 13152else 13153 test "$cross_compiling" = yes && 13154 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 13155if test -r "$d/$libfailmalloc_file"; then 13156 eval "$as_ac_File=yes" 13157else 13158 eval "$as_ac_File=no" 13159fi 13160fi 13161eval ac_res=\$$as_ac_File 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13163$as_echo "$ac_res" >&6; } 13164if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 13165 13166 FAILMALLOC_PATH="$d/$libfailmalloc_file" 13167 break 13168 13169fi 13170 13171 done 13172 if test -z "$FAILMALLOC_PATH" -a -n "$path_provided"; then 13173 as_ac_File=`$as_echo "ac_cv_file_$failmalloc_search_path" | $as_tr_sh` 13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $failmalloc_search_path" >&5 13175$as_echo_n "checking for $failmalloc_search_path... " >&6; } 13176if eval \${$as_ac_File+:} false; then : 13177 $as_echo_n "(cached) " >&6 13178else 13179 test "$cross_compiling" = yes && 13180 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 13181if test -r "$failmalloc_search_path"; then 13182 eval "$as_ac_File=yes" 13183else 13184 eval "$as_ac_File=no" 13185fi 13186fi 13187eval ac_res=\$$as_ac_File 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13189$as_echo "$ac_res" >&6; } 13190if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 13191 FAILMALLOC_PATH="$failmalloc_search_path" 13192fi 13193 13194 fi 13195 fi 13196 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for failmalloc" >&5 13198$as_echo_n "checking for failmalloc... " >&6; } 13199 if test -n "$FAILMALLOC_PATH" -a -f "$FAILMALLOC_PATH"; then 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13201$as_echo "yes" >&6; } 13202 else 13203 if test -n "$path_provided"; then 13204 as_fn_error $? "$libfailmalloc_file was not found at $failmalloc_search_path" "$LINENO" 5 13205 else 13206 if test x"$cross_compiling" != x"no"; then 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross compiling)" >&5 13208$as_echo "no (cross compiling)" >&6; } 13209 else 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13211$as_echo "no" >&6; } 13212 fi 13213 fi 13214 fi 13215 13216 if test x"$FAILMALLOC_PATH" != x; then 13217 USE_FAILMALLOC_TRUE= 13218 USE_FAILMALLOC_FALSE='#' 13219else 13220 USE_FAILMALLOC_TRUE='#' 13221 USE_FAILMALLOC_FALSE= 13222fi 13223 13224 13225 13226# doc support 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build any docs" >&5 13228$as_echo_n "checking whether to build any docs... " >&6; } 13229# Check whether --enable-docs was given. 13230if test "${enable_docs+set}" = set; then : 13231 enableval=$enable_docs; case "$enableval" in 13232 yes|true|on) gp_build_docs="yes" ;; 13233 *) gp_build_docs="no" ;; 13234esac 13235 13236else 13237 gp_build_docs="yes" 13238 13239fi 13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_build_docs}" >&5 13241$as_echo "${gp_build_docs}" >&6; } 13242 if test "x${gp_build_docs}" = "xyes"; then 13243 BUILD_DOCS_TRUE= 13244 BUILD_DOCS_FALSE='#' 13245else 13246 BUILD_DOCS_TRUE='#' 13247 BUILD_DOCS_FALSE= 13248fi 13249 13250 13251 13252 13253 13254# Check whether --with-doc-dir was given. 13255if test "${with_doc_dir+set}" = set; then : 13256 withval=$with_doc_dir; 13257fi 13258 13259 13260# check for the main ("root") documentation directory 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5 13262$as_echo_n "checking main docdir... " >&6; } 13263 13264if test "x${with_doc_dir}" != "x" 13265then # docdir is given as parameter 13266 docdir="${with_doc_dir}" 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5 13268$as_echo "${docdir} (from parameter)" >&6; } 13269else # otherwise invent a docdir hopefully compatible with system policy 13270 if test -d "/usr/share/doc" 13271 then 13272 maindocdir='${prefix}/share/doc' 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5 13274$as_echo "${maindocdir} (FHS style)" >&6; } 13275 elif test -d "/usr/doc" 13276 then 13277 maindocdir='${prefix}/doc' 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5 13279$as_echo "${maindocdir} (old style)" >&6; } 13280 else 13281 maindocdir='${datadir}/doc' 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5 13283$as_echo "${maindocdir} (default value)" >&6; } 13284 fi 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5 13286$as_echo_n "checking package docdir... " >&6; } 13287 # check whether to include package version into documentation path 13288 # FIXME: doesn't work properly. 13289 if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1 13290 then 13291 docdir="${maindocdir}/${PACKAGE}-${VERSION}" 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5 13293$as_echo "${docdir} (redhat style)" >&6; } 13294 else 13295 docdir="${maindocdir}/${PACKAGE}" 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5 13297$as_echo "${docdir} (default style)" >&6; } 13298 fi 13299fi 13300 13301 13302 13303# Extract the first word of "dot", so it can be a program name with args. 13304set dummy dot; 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_DOT+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 case $DOT in 13311 [\\/]* | ?:[\\/]*) 13312 ac_cv_path_DOT="$DOT" # 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_DOT="$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_DOT" && ac_cv_path_DOT="false" 13331 ;; 13332esac 13333fi 13334DOT=$ac_cv_path_DOT 13335if test -n "$DOT"; then 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 13337$as_echo "$DOT" >&6; } 13338else 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13340$as_echo "no" >&6; } 13341fi 13342 13343 13344# Extract the first word of "doxygen", so it can be a program name with args. 13345set dummy doxygen; ac_word=$2 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13347$as_echo_n "checking for $ac_word... " >&6; } 13348if ${ac_cv_path_DOXYGEN+:} false; then : 13349 $as_echo_n "(cached) " >&6 13350else 13351 case $DOXYGEN in 13352 [\\/]* | ?:[\\/]*) 13353 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13354 ;; 13355 *) 13356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13357for as_dir in $PATH 13358do 13359 IFS=$as_save_IFS 13360 test -z "$as_dir" && as_dir=. 13361 for ac_exec_ext in '' $ac_executable_extensions; do 13362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13363 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13365 break 2 13366 fi 13367done 13368 done 13369IFS=$as_save_IFS 13370 13371 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false" 13372 ;; 13373esac 13374fi 13375DOXYGEN=$ac_cv_path_DOXYGEN 13376if test -n "$DOXYGEN"; then 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13378$as_echo "$DOXYGEN" >&6; } 13379else 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13381$as_echo "no" >&6; } 13382fi 13383 13384 13385 if test "x$DOXYGEN" != "xfalse"; then 13386 HAVE_DOXYGEN_TRUE= 13387 HAVE_DOXYGEN_FALSE='#' 13388else 13389 HAVE_DOXYGEN_TRUE='#' 13390 HAVE_DOXYGEN_FALSE= 13391fi 13392 13393 if test "x$DOT" != "xfalse"; then 13394 HAVE_DOT_TRUE= 13395 HAVE_DOT_FALSE='#' 13396else 13397 HAVE_DOT_TRUE='#' 13398 HAVE_DOT_FALSE= 13399fi 13400 13401if test "x$DOT" != "xfalse"; then 13402 HAVE_DOT=YES 13403 13404else 13405 HAVE_DOT=NO 13406 13407fi 13408HTML_APIDOC_DIR="${PACKAGE_TARNAME}-api.html" 13409 13410DOXYGEN_OUTPUT_DIR=doxygen-output 13411 13412HTML_APIDOC_INTERNALS_DIR="${PACKAGE_TARNAME}-internals.html" 13413 13414 13415 13416# Whether to enable the internal docs build. 13417# 13418# This takes quite some time due to the generation of lots of call 13419# graphs, so it is disabled by default. 13420set_enable_internal_docs=no 13421# Check whether --enable-internal-docs was given. 13422if test "${enable_internal_docs+set}" = set; then : 13423 enableval=$enable_internal_docs; 13424case "$enableval" in #( 13425 no|off|false) : 13426 set_enable_internal_docs=no ;; #( 13427 yes|on|true) : 13428 set_enable_internal_docs=yes ;; #( 13429 *) : 13430 ;; 13431esac 13432 13433fi 13434 13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create internal code docs" >&5 13436$as_echo_n "checking whether to create internal code docs... " >&6; } 13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${set_enable_internal_docs}" >&5 13438$as_echo "${set_enable_internal_docs}" >&6; } 13439 if test "x${set_enable_internal_docs}" = "xyes"; then 13440 ENABLE_INTERNAL_DOCS_TRUE= 13441 ENABLE_INTERNAL_DOCS_FALSE='#' 13442else 13443 ENABLE_INTERNAL_DOCS_TRUE='#' 13444 ENABLE_INTERNAL_DOCS_FALSE= 13445fi 13446 13447 13448 13449# --------------------------------------------------------------------------- 13450# i18n support 13451# --------------------------------------------------------------------------- 13452ALL_LINGUAS="be bs cs da de en_AU en_CA en_GB es fr it ja ms nl pl pt pt_BR ru sk sq sr sv tr uk vi zh_CN" 13453 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13455$as_echo_n "checking whether NLS is requested... " >&6; } 13456 # Check whether --enable-nls was given. 13457if test "${enable_nls+set}" = set; then : 13458 enableval=$enable_nls; USE_NLS=$enableval 13459else 13460 USE_NLS=yes 13461fi 13462 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13464$as_echo "$USE_NLS" >&6; } 13465 13466 13467 13468 13469 GETTEXT_MACRO_VERSION=0.18 13470 13471 13472 13473 13474# Prepare PATH_SEPARATOR. 13475# The user is always right. 13476if test "${PATH_SEPARATOR+set}" != set; then 13477 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13478 # contains only /bin. Note that ksh looks also at the FPATH variable, 13479 # so we have to set that as well for the test. 13480 PATH_SEPARATOR=: 13481 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13482 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13483 || PATH_SEPARATOR=';' 13484 } 13485fi 13486 13487# Find out how to test for executable files. Don't use a zero-byte file, 13488# as systems may use methods other than mode bits to determine executability. 13489cat >conf$$.file <<_ASEOF 13490#! /bin/sh 13491exit 0 13492_ASEOF 13493chmod +x conf$$.file 13494if test -x conf$$.file >/dev/null 2>&1; then 13495 ac_executable_p="test -x" 13496else 13497 ac_executable_p="test -f" 13498fi 13499rm -f conf$$.file 13500 13501# Extract the first word of "msgfmt", so it can be a program name with args. 13502set dummy msgfmt; ac_word=$2 13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13504$as_echo_n "checking for $ac_word... " >&6; } 13505if ${ac_cv_path_MSGFMT+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 case "$MSGFMT" in 13509 [\\/]* | ?:[\\/]*) 13510 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 13511 ;; 13512 *) 13513 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13514 for ac_dir in $PATH; do 13515 IFS="$ac_save_IFS" 13516 test -z "$ac_dir" && ac_dir=. 13517 for ac_exec_ext in '' $ac_executable_extensions; do 13518 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13519 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13520 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 13521 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13522 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 13523 break 2 13524 fi 13525 fi 13526 done 13527 done 13528 IFS="$ac_save_IFS" 13529 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 13530 ;; 13531esac 13532fi 13533MSGFMT="$ac_cv_path_MSGFMT" 13534if test "$MSGFMT" != ":"; then 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13536$as_echo "$MSGFMT" >&6; } 13537else 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13539$as_echo "no" >&6; } 13540fi 13541 13542 # Extract the first word of "gmsgfmt", so it can be a program name with args. 13543set dummy gmsgfmt; ac_word=$2 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13545$as_echo_n "checking for $ac_word... " >&6; } 13546if ${ac_cv_path_GMSGFMT+:} false; then : 13547 $as_echo_n "(cached) " >&6 13548else 13549 case $GMSGFMT in 13550 [\\/]* | ?:[\\/]*) 13551 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 13552 ;; 13553 *) 13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13555for as_dir in $PATH 13556do 13557 IFS=$as_save_IFS 13558 test -z "$as_dir" && as_dir=. 13559 for ac_exec_ext in '' $ac_executable_extensions; do 13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13561 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13563 break 2 13564 fi 13565done 13566 done 13567IFS=$as_save_IFS 13568 13569 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 13570 ;; 13571esac 13572fi 13573GMSGFMT=$ac_cv_path_GMSGFMT 13574if test -n "$GMSGFMT"; then 13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 13576$as_echo "$GMSGFMT" >&6; } 13577else 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13579$as_echo "no" >&6; } 13580fi 13581 13582 13583 13584 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13585 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 13586 *) MSGFMT_015=$MSGFMT ;; 13587 esac 13588 13589 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13590 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 13591 *) GMSGFMT_015=$GMSGFMT ;; 13592 esac 13593 13594 13595 13596# Prepare PATH_SEPARATOR. 13597# The user is always right. 13598if test "${PATH_SEPARATOR+set}" != set; then 13599 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13600 # contains only /bin. Note that ksh looks also at the FPATH variable, 13601 # so we have to set that as well for the test. 13602 PATH_SEPARATOR=: 13603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13604 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13605 || PATH_SEPARATOR=';' 13606 } 13607fi 13608 13609# Find out how to test for executable files. Don't use a zero-byte file, 13610# as systems may use methods other than mode bits to determine executability. 13611cat >conf$$.file <<_ASEOF 13612#! /bin/sh 13613exit 0 13614_ASEOF 13615chmod +x conf$$.file 13616if test -x conf$$.file >/dev/null 2>&1; then 13617 ac_executable_p="test -x" 13618else 13619 ac_executable_p="test -f" 13620fi 13621rm -f conf$$.file 13622 13623# Extract the first word of "xgettext", so it can be a program name with args. 13624set dummy xgettext; ac_word=$2 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13626$as_echo_n "checking for $ac_word... " >&6; } 13627if ${ac_cv_path_XGETTEXT+:} false; then : 13628 $as_echo_n "(cached) " >&6 13629else 13630 case "$XGETTEXT" in 13631 [\\/]* | ?:[\\/]*) 13632 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 13633 ;; 13634 *) 13635 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13636 for ac_dir in $PATH; do 13637 IFS="$ac_save_IFS" 13638 test -z "$ac_dir" && ac_dir=. 13639 for ac_exec_ext in '' $ac_executable_extensions; do 13640 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13641 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13642 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 13643 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13644 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 13645 break 2 13646 fi 13647 fi 13648 done 13649 done 13650 IFS="$ac_save_IFS" 13651 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 13652 ;; 13653esac 13654fi 13655XGETTEXT="$ac_cv_path_XGETTEXT" 13656if test "$XGETTEXT" != ":"; then 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 13658$as_echo "$XGETTEXT" >&6; } 13659else 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13661$as_echo "no" >&6; } 13662fi 13663 13664 rm -f messages.po 13665 13666 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13667 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 13668 *) XGETTEXT_015=$XGETTEXT ;; 13669 esac 13670 13671 13672 13673# Prepare PATH_SEPARATOR. 13674# The user is always right. 13675if test "${PATH_SEPARATOR+set}" != set; then 13676 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13677 # contains only /bin. Note that ksh looks also at the FPATH variable, 13678 # so we have to set that as well for the test. 13679 PATH_SEPARATOR=: 13680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13681 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13682 || PATH_SEPARATOR=';' 13683 } 13684fi 13685 13686# Find out how to test for executable files. Don't use a zero-byte file, 13687# as systems may use methods other than mode bits to determine executability. 13688cat >conf$$.file <<_ASEOF 13689#! /bin/sh 13690exit 0 13691_ASEOF 13692chmod +x conf$$.file 13693if test -x conf$$.file >/dev/null 2>&1; then 13694 ac_executable_p="test -x" 13695else 13696 ac_executable_p="test -f" 13697fi 13698rm -f conf$$.file 13699 13700# Extract the first word of "msgmerge", so it can be a program name with args. 13701set dummy msgmerge; ac_word=$2 13702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13703$as_echo_n "checking for $ac_word... " >&6; } 13704if ${ac_cv_path_MSGMERGE+:} false; then : 13705 $as_echo_n "(cached) " >&6 13706else 13707 case "$MSGMERGE" in 13708 [\\/]* | ?:[\\/]*) 13709 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 13710 ;; 13711 *) 13712 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13713 for ac_dir in $PATH; do 13714 IFS="$ac_save_IFS" 13715 test -z "$ac_dir" && ac_dir=. 13716 for ac_exec_ext in '' $ac_executable_extensions; do 13717 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13718 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13719 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 13720 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 13721 break 2 13722 fi 13723 fi 13724 done 13725 done 13726 IFS="$ac_save_IFS" 13727 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 13728 ;; 13729esac 13730fi 13731MSGMERGE="$ac_cv_path_MSGMERGE" 13732if test "$MSGMERGE" != ":"; then 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 13734$as_echo "$MSGMERGE" >&6; } 13735else 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13737$as_echo "no" >&6; } 13738fi 13739 13740 13741 test -n "$localedir" || localedir='${datadir}/locale' 13742 13743 13744 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 13745 13746 13747 ac_config_commands="$ac_config_commands po-directories" 13748 13749 13750 13751GETTEXT_PACKAGE="${PACKAGE}-${LIBEXIF_CURRENT_MIN}" 13752# The gettext domain we're using 13753AM_CPPFLAGS="$AM_CPPFLAGS -DGETTEXT_PACKAGE=\\\"${GETTEXT_PACKAGE}\\\"" 13754 13755sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|" 13756sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = Lutz Mueller and others|" 13757 13758if test -n "$PACKAGE_BUGREPORT"; then 13759 sed_mb="${PACKAGE_BUGREPORT}" 13760else 13761 as_fn_error $? " 13762*** Your configure.{ac,in} is wrong. 13763*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax) 13764*** or give GP_GETTEXT_HACK the third parameter. 13765*** 13766" "$LINENO" 5 13767fi 13768 13769sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|" 13770# Not so sure whether this hack is all *that* evil... 13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5 13772$as_echo_n "checking for po/Makevars requiring hack... " >&6; } 13773if test -f "${srcdir}/po/Makevars.template"; then 13774 sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars" 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5 13776$as_echo "yes, done." >&6; } 13777else 13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13779$as_echo "no" >&6; } 13780fi 13781 13782 13783 13784 if test "X$prefix" = "XNONE"; then 13785 acl_final_prefix="$ac_default_prefix" 13786 else 13787 acl_final_prefix="$prefix" 13788 fi 13789 if test "X$exec_prefix" = "XNONE"; then 13790 acl_final_exec_prefix='${prefix}' 13791 else 13792 acl_final_exec_prefix="$exec_prefix" 13793 fi 13794 acl_save_prefix="$prefix" 13795 prefix="$acl_final_prefix" 13796 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13797 prefix="$acl_save_prefix" 13798 13799 13800 13801# Check whether --with-gnu-ld was given. 13802if test "${with_gnu_ld+set}" = set; then : 13803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13804else 13805 with_gnu_ld=no 13806fi 13807 13808# Prepare PATH_SEPARATOR. 13809# The user is always right. 13810if test "${PATH_SEPARATOR+set}" != set; then 13811 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13812 # contains only /bin. Note that ksh looks also at the FPATH variable, 13813 # so we have to set that as well for the test. 13814 PATH_SEPARATOR=: 13815 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13816 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13817 || PATH_SEPARATOR=';' 13818 } 13819fi 13820 13821ac_prog=ld 13822if test "$GCC" = yes; then 13823 # Check if gcc -print-prog-name=ld gives a path. 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13825$as_echo_n "checking for ld used by $CC... " >&6; } 13826 case $host in 13827 *-*-mingw*) 13828 # gcc leaves a trailing carriage return which upsets mingw 13829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13830 *) 13831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13832 esac 13833 case $ac_prog in 13834 # Accept absolute paths. 13835 [\\/]* | ?:[\\/]*) 13836 re_direlt='/[^/][^/]*/\.\./' 13837 # Canonicalize the pathname of ld 13838 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 13839 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 13840 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13841 done 13842 test -z "$LD" && LD="$ac_prog" 13843 ;; 13844 "") 13845 # If it fails, then pretend we aren't using GCC. 13846 ac_prog=ld 13847 ;; 13848 *) 13849 # If it is relative, then search for the first ld in PATH. 13850 with_gnu_ld=unknown 13851 ;; 13852 esac 13853elif test "$with_gnu_ld" = yes; then 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13855$as_echo_n "checking for GNU ld... " >&6; } 13856else 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13858$as_echo_n "checking for non-GNU ld... " >&6; } 13859fi 13860if ${acl_cv_path_LD+:} false; then : 13861 $as_echo_n "(cached) " >&6 13862else 13863 if test -z "$LD"; then 13864 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13865 for ac_dir in $PATH; do 13866 IFS="$acl_save_ifs" 13867 test -z "$ac_dir" && ac_dir=. 13868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13869 acl_cv_path_LD="$ac_dir/$ac_prog" 13870 # Check to see if the program is GNU ld. I'd rather use --version, 13871 # but apparently some variants of GNU ld only accept -v. 13872 # Break only if it was the GNU/non-GNU ld that we prefer. 13873 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 13874 *GNU* | *'with BFD'*) 13875 test "$with_gnu_ld" != no && break 13876 ;; 13877 *) 13878 test "$with_gnu_ld" != yes && break 13879 ;; 13880 esac 13881 fi 13882 done 13883 IFS="$acl_save_ifs" 13884else 13885 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13886fi 13887fi 13888 13889LD="$acl_cv_path_LD" 13890if test -n "$LD"; then 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13892$as_echo "$LD" >&6; } 13893else 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13895$as_echo "no" >&6; } 13896fi 13897test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13899$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13900if ${acl_cv_prog_gnu_ld+:} false; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13904case `$LD -v 2>&1 </dev/null` in 13905*GNU* | *'with BFD'*) 13906 acl_cv_prog_gnu_ld=yes 13907 ;; 13908*) 13909 acl_cv_prog_gnu_ld=no 13910 ;; 13911esac 13912fi 13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13914$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13915with_gnu_ld=$acl_cv_prog_gnu_ld 13916 13917 13918 13919 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13921$as_echo_n "checking for shared library run path origin... " >&6; } 13922if ${acl_cv_rpath+:} false; then : 13923 $as_echo_n "(cached) " >&6 13924else 13925 13926 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13927 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13928 . ./conftest.sh 13929 rm -f ./conftest.sh 13930 acl_cv_rpath=done 13931 13932fi 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13934$as_echo "$acl_cv_rpath" >&6; } 13935 wl="$acl_cv_wl" 13936 acl_libext="$acl_cv_libext" 13937 acl_shlibext="$acl_cv_shlibext" 13938 acl_libname_spec="$acl_cv_libname_spec" 13939 acl_library_names_spec="$acl_cv_library_names_spec" 13940 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13941 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13942 acl_hardcode_direct="$acl_cv_hardcode_direct" 13943 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13944 # Check whether --enable-rpath was given. 13945if test "${enable_rpath+set}" = set; then : 13946 enableval=$enable_rpath; : 13947else 13948 enable_rpath=yes 13949fi 13950 13951 13952 13953 13954 acl_libdirstem=lib 13955 acl_libdirstem2= 13956 case "$host_os" in 13957 solaris*) 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 13959$as_echo_n "checking for 64-bit host... " >&6; } 13960if ${gl_cv_solaris_64bit+:} false; then : 13961 $as_echo_n "(cached) " >&6 13962else 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964/* end confdefs.h. */ 13965 13966#ifdef _LP64 13967sixtyfour bits 13968#endif 13969 13970_ACEOF 13971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13972 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 13973 gl_cv_solaris_64bit=yes 13974else 13975 gl_cv_solaris_64bit=no 13976fi 13977rm -f conftest* 13978 13979 13980fi 13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 13982$as_echo "$gl_cv_solaris_64bit" >&6; } 13983 if test $gl_cv_solaris_64bit = yes; then 13984 acl_libdirstem=lib/64 13985 case "$host_cpu" in 13986 sparc*) acl_libdirstem2=lib/sparcv9 ;; 13987 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 13988 esac 13989 fi 13990 ;; 13991 *) 13992 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13993 if test -n "$searchpath"; then 13994 acl_save_IFS="${IFS= }"; IFS=":" 13995 for searchdir in $searchpath; do 13996 if test -d "$searchdir"; then 13997 case "$searchdir" in 13998 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13999 */../ | */.. ) 14000 # Better ignore directories of this form. They are misleading. 14001 ;; 14002 *) searchdir=`cd "$searchdir" && pwd` 14003 case "$searchdir" in 14004 */lib64 ) acl_libdirstem=lib64 ;; 14005 esac ;; 14006 esac 14007 fi 14008 done 14009 IFS="$acl_save_IFS" 14010 fi 14011 ;; 14012 esac 14013 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 use_additional=yes 14027 14028 acl_save_prefix="$prefix" 14029 prefix="$acl_final_prefix" 14030 acl_save_exec_prefix="$exec_prefix" 14031 exec_prefix="$acl_final_exec_prefix" 14032 14033 eval additional_includedir=\"$includedir\" 14034 eval additional_libdir=\"$libdir\" 14035 14036 exec_prefix="$acl_save_exec_prefix" 14037 prefix="$acl_save_prefix" 14038 14039 14040# Check whether --with-libiconv-prefix was given. 14041if test "${with_libiconv_prefix+set}" = set; then : 14042 withval=$with_libiconv_prefix; 14043 if test "X$withval" = "Xno"; then 14044 use_additional=no 14045 else 14046 if test "X$withval" = "X"; then 14047 14048 acl_save_prefix="$prefix" 14049 prefix="$acl_final_prefix" 14050 acl_save_exec_prefix="$exec_prefix" 14051 exec_prefix="$acl_final_exec_prefix" 14052 14053 eval additional_includedir=\"$includedir\" 14054 eval additional_libdir=\"$libdir\" 14055 14056 exec_prefix="$acl_save_exec_prefix" 14057 prefix="$acl_save_prefix" 14058 14059 else 14060 additional_includedir="$withval/include" 14061 additional_libdir="$withval/$acl_libdirstem" 14062 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 14063 && ! test -d "$withval/$acl_libdirstem"; then 14064 additional_libdir="$withval/$acl_libdirstem2" 14065 fi 14066 fi 14067 fi 14068 14069fi 14070 14071 LIBICONV= 14072 LTLIBICONV= 14073 INCICONV= 14074 LIBICONV_PREFIX= 14075 HAVE_LIBICONV= 14076 rpathdirs= 14077 ltrpathdirs= 14078 names_already_handled= 14079 names_next_round='iconv ' 14080 while test -n "$names_next_round"; do 14081 names_this_round="$names_next_round" 14082 names_next_round= 14083 for name in $names_this_round; do 14084 already_handled= 14085 for n in $names_already_handled; do 14086 if test "$n" = "$name"; then 14087 already_handled=yes 14088 break 14089 fi 14090 done 14091 if test -z "$already_handled"; then 14092 names_already_handled="$names_already_handled $name" 14093 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 14094 eval value=\"\$HAVE_LIB$uppername\" 14095 if test -n "$value"; then 14096 if test "$value" = yes; then 14097 eval value=\"\$LIB$uppername\" 14098 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 14099 eval value=\"\$LTLIB$uppername\" 14100 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 14101 else 14102 : 14103 fi 14104 else 14105 found_dir= 14106 found_la= 14107 found_so= 14108 found_a= 14109 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 14110 if test -n "$acl_shlibext"; then 14111 shrext=".$acl_shlibext" # typically: shrext=.so 14112 else 14113 shrext= 14114 fi 14115 if test $use_additional = yes; then 14116 dir="$additional_libdir" 14117 if test -n "$acl_shlibext"; then 14118 if test -f "$dir/$libname$shrext"; then 14119 found_dir="$dir" 14120 found_so="$dir/$libname$shrext" 14121 else 14122 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14123 ver=`(cd "$dir" && \ 14124 for f in "$libname$shrext".*; do echo "$f"; done \ 14125 | sed -e "s,^$libname$shrext\\\\.,," \ 14126 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14127 | sed 1q ) 2>/dev/null` 14128 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14129 found_dir="$dir" 14130 found_so="$dir/$libname$shrext.$ver" 14131 fi 14132 else 14133 eval library_names=\"$acl_library_names_spec\" 14134 for f in $library_names; do 14135 if test -f "$dir/$f"; then 14136 found_dir="$dir" 14137 found_so="$dir/$f" 14138 break 14139 fi 14140 done 14141 fi 14142 fi 14143 fi 14144 if test "X$found_dir" = "X"; then 14145 if test -f "$dir/$libname.$acl_libext"; then 14146 found_dir="$dir" 14147 found_a="$dir/$libname.$acl_libext" 14148 fi 14149 fi 14150 if test "X$found_dir" != "X"; then 14151 if test -f "$dir/$libname.la"; then 14152 found_la="$dir/$libname.la" 14153 fi 14154 fi 14155 fi 14156 if test "X$found_dir" = "X"; then 14157 for x in $LDFLAGS $LTLIBICONV; do 14158 14159 acl_save_prefix="$prefix" 14160 prefix="$acl_final_prefix" 14161 acl_save_exec_prefix="$exec_prefix" 14162 exec_prefix="$acl_final_exec_prefix" 14163 eval x=\"$x\" 14164 exec_prefix="$acl_save_exec_prefix" 14165 prefix="$acl_save_prefix" 14166 14167 case "$x" in 14168 -L*) 14169 dir=`echo "X$x" | sed -e 's/^X-L//'` 14170 if test -n "$acl_shlibext"; then 14171 if test -f "$dir/$libname$shrext"; then 14172 found_dir="$dir" 14173 found_so="$dir/$libname$shrext" 14174 else 14175 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14176 ver=`(cd "$dir" && \ 14177 for f in "$libname$shrext".*; do echo "$f"; done \ 14178 | sed -e "s,^$libname$shrext\\\\.,," \ 14179 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14180 | sed 1q ) 2>/dev/null` 14181 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14182 found_dir="$dir" 14183 found_so="$dir/$libname$shrext.$ver" 14184 fi 14185 else 14186 eval library_names=\"$acl_library_names_spec\" 14187 for f in $library_names; do 14188 if test -f "$dir/$f"; then 14189 found_dir="$dir" 14190 found_so="$dir/$f" 14191 break 14192 fi 14193 done 14194 fi 14195 fi 14196 fi 14197 if test "X$found_dir" = "X"; then 14198 if test -f "$dir/$libname.$acl_libext"; then 14199 found_dir="$dir" 14200 found_a="$dir/$libname.$acl_libext" 14201 fi 14202 fi 14203 if test "X$found_dir" != "X"; then 14204 if test -f "$dir/$libname.la"; then 14205 found_la="$dir/$libname.la" 14206 fi 14207 fi 14208 ;; 14209 esac 14210 if test "X$found_dir" != "X"; then 14211 break 14212 fi 14213 done 14214 fi 14215 if test "X$found_dir" != "X"; then 14216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 14217 if test "X$found_so" != "X"; then 14218 if test "$enable_rpath" = no \ 14219 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 14220 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 14221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14222 else 14223 haveit= 14224 for x in $ltrpathdirs; do 14225 if test "X$x" = "X$found_dir"; then 14226 haveit=yes 14227 break 14228 fi 14229 done 14230 if test -z "$haveit"; then 14231 ltrpathdirs="$ltrpathdirs $found_dir" 14232 fi 14233 if test "$acl_hardcode_direct" = yes; then 14234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14235 else 14236 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 14237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14238 haveit= 14239 for x in $rpathdirs; do 14240 if test "X$x" = "X$found_dir"; then 14241 haveit=yes 14242 break 14243 fi 14244 done 14245 if test -z "$haveit"; then 14246 rpathdirs="$rpathdirs $found_dir" 14247 fi 14248 else 14249 haveit= 14250 for x in $LDFLAGS $LIBICONV; do 14251 14252 acl_save_prefix="$prefix" 14253 prefix="$acl_final_prefix" 14254 acl_save_exec_prefix="$exec_prefix" 14255 exec_prefix="$acl_final_exec_prefix" 14256 eval x=\"$x\" 14257 exec_prefix="$acl_save_exec_prefix" 14258 prefix="$acl_save_prefix" 14259 14260 if test "X$x" = "X-L$found_dir"; then 14261 haveit=yes 14262 break 14263 fi 14264 done 14265 if test -z "$haveit"; then 14266 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 14267 fi 14268 if test "$acl_hardcode_minus_L" != no; then 14269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14270 else 14271 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14272 fi 14273 fi 14274 fi 14275 fi 14276 else 14277 if test "X$found_a" != "X"; then 14278 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 14279 else 14280 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 14281 fi 14282 fi 14283 additional_includedir= 14284 case "$found_dir" in 14285 */$acl_libdirstem | */$acl_libdirstem/) 14286 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 14287 if test "$name" = 'iconv'; then 14288 LIBICONV_PREFIX="$basedir" 14289 fi 14290 additional_includedir="$basedir/include" 14291 ;; 14292 */$acl_libdirstem2 | */$acl_libdirstem2/) 14293 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 14294 if test "$name" = 'iconv'; then 14295 LIBICONV_PREFIX="$basedir" 14296 fi 14297 additional_includedir="$basedir/include" 14298 ;; 14299 esac 14300 if test "X$additional_includedir" != "X"; then 14301 if test "X$additional_includedir" != "X/usr/include"; then 14302 haveit= 14303 if test "X$additional_includedir" = "X/usr/local/include"; then 14304 if test -n "$GCC"; then 14305 case $host_os in 14306 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14307 esac 14308 fi 14309 fi 14310 if test -z "$haveit"; then 14311 for x in $CPPFLAGS $INCICONV; do 14312 14313 acl_save_prefix="$prefix" 14314 prefix="$acl_final_prefix" 14315 acl_save_exec_prefix="$exec_prefix" 14316 exec_prefix="$acl_final_exec_prefix" 14317 eval x=\"$x\" 14318 exec_prefix="$acl_save_exec_prefix" 14319 prefix="$acl_save_prefix" 14320 14321 if test "X$x" = "X-I$additional_includedir"; then 14322 haveit=yes 14323 break 14324 fi 14325 done 14326 if test -z "$haveit"; then 14327 if test -d "$additional_includedir"; then 14328 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 14329 fi 14330 fi 14331 fi 14332 fi 14333 fi 14334 if test -n "$found_la"; then 14335 save_libdir="$libdir" 14336 case "$found_la" in 14337 */* | *\\*) . "$found_la" ;; 14338 *) . "./$found_la" ;; 14339 esac 14340 libdir="$save_libdir" 14341 for dep in $dependency_libs; do 14342 case "$dep" in 14343 -L*) 14344 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14345 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 14346 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 14347 haveit= 14348 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 14349 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 14350 if test -n "$GCC"; then 14351 case $host_os in 14352 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14353 esac 14354 fi 14355 fi 14356 if test -z "$haveit"; then 14357 haveit= 14358 for x in $LDFLAGS $LIBICONV; do 14359 14360 acl_save_prefix="$prefix" 14361 prefix="$acl_final_prefix" 14362 acl_save_exec_prefix="$exec_prefix" 14363 exec_prefix="$acl_final_exec_prefix" 14364 eval x=\"$x\" 14365 exec_prefix="$acl_save_exec_prefix" 14366 prefix="$acl_save_prefix" 14367 14368 if test "X$x" = "X-L$additional_libdir"; then 14369 haveit=yes 14370 break 14371 fi 14372 done 14373 if test -z "$haveit"; then 14374 if test -d "$additional_libdir"; then 14375 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 14376 fi 14377 fi 14378 haveit= 14379 for x in $LDFLAGS $LTLIBICONV; do 14380 14381 acl_save_prefix="$prefix" 14382 prefix="$acl_final_prefix" 14383 acl_save_exec_prefix="$exec_prefix" 14384 exec_prefix="$acl_final_exec_prefix" 14385 eval x=\"$x\" 14386 exec_prefix="$acl_save_exec_prefix" 14387 prefix="$acl_save_prefix" 14388 14389 if test "X$x" = "X-L$additional_libdir"; then 14390 haveit=yes 14391 break 14392 fi 14393 done 14394 if test -z "$haveit"; then 14395 if test -d "$additional_libdir"; then 14396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 14397 fi 14398 fi 14399 fi 14400 fi 14401 ;; 14402 -R*) 14403 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14404 if test "$enable_rpath" != no; then 14405 haveit= 14406 for x in $rpathdirs; do 14407 if test "X$x" = "X$dir"; then 14408 haveit=yes 14409 break 14410 fi 14411 done 14412 if test -z "$haveit"; then 14413 rpathdirs="$rpathdirs $dir" 14414 fi 14415 haveit= 14416 for x in $ltrpathdirs; do 14417 if test "X$x" = "X$dir"; then 14418 haveit=yes 14419 break 14420 fi 14421 done 14422 if test -z "$haveit"; then 14423 ltrpathdirs="$ltrpathdirs $dir" 14424 fi 14425 fi 14426 ;; 14427 -l*) 14428 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14429 ;; 14430 *.la) 14431 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14432 ;; 14433 *) 14434 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 14435 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 14436 ;; 14437 esac 14438 done 14439 fi 14440 else 14441 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14442 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 14443 fi 14444 fi 14445 fi 14446 done 14447 done 14448 if test "X$rpathdirs" != "X"; then 14449 if test -n "$acl_hardcode_libdir_separator"; then 14450 alldirs= 14451 for found_dir in $rpathdirs; do 14452 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 14453 done 14454 acl_save_libdir="$libdir" 14455 libdir="$alldirs" 14456 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14457 libdir="$acl_save_libdir" 14458 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14459 else 14460 for found_dir in $rpathdirs; do 14461 acl_save_libdir="$libdir" 14462 libdir="$found_dir" 14463 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14464 libdir="$acl_save_libdir" 14465 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14466 done 14467 fi 14468 fi 14469 if test "X$ltrpathdirs" != "X"; then 14470 for found_dir in $ltrpathdirs; do 14471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 14472 done 14473 fi 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 14506$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 14507if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 14508 $as_echo_n "(cached) " >&6 14509else 14510 gt_save_LIBS="$LIBS" 14511 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14513/* end confdefs.h. */ 14514#include <CoreFoundation/CFPreferences.h> 14515int 14516main () 14517{ 14518CFPreferencesCopyAppValue(NULL, NULL) 14519 ; 14520 return 0; 14521} 14522_ACEOF 14523if ac_fn_c_try_link "$LINENO"; then : 14524 gt_cv_func_CFPreferencesCopyAppValue=yes 14525else 14526 gt_cv_func_CFPreferencesCopyAppValue=no 14527fi 14528rm -f core conftest.err conftest.$ac_objext \ 14529 conftest$ac_exeext conftest.$ac_ext 14530 LIBS="$gt_save_LIBS" 14531fi 14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 14533$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 14534 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 14535 14536$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 14537 14538 fi 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 14540$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 14541if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 14542 $as_echo_n "(cached) " >&6 14543else 14544 gt_save_LIBS="$LIBS" 14545 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548#include <CoreFoundation/CFLocale.h> 14549int 14550main () 14551{ 14552CFLocaleCopyCurrent(); 14553 ; 14554 return 0; 14555} 14556_ACEOF 14557if ac_fn_c_try_link "$LINENO"; then : 14558 gt_cv_func_CFLocaleCopyCurrent=yes 14559else 14560 gt_cv_func_CFLocaleCopyCurrent=no 14561fi 14562rm -f core conftest.err conftest.$ac_objext \ 14563 conftest$ac_exeext conftest.$ac_ext 14564 LIBS="$gt_save_LIBS" 14565fi 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 14567$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 14568 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14569 14570$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 14571 14572 fi 14573 INTL_MACOSX_LIBS= 14574 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14575 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 14576 fi 14577 14578 14579 14580 14581 14582 14583 LIBINTL= 14584 LTLIBINTL= 14585 POSUB= 14586 14587 case " $gt_needs " in 14588 *" need-formatstring-macros "*) gt_api_version=3 ;; 14589 *" need-ngettext "*) gt_api_version=2 ;; 14590 *) gt_api_version=1 ;; 14591 esac 14592 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 14593 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 14594 14595 if test "$USE_NLS" = "yes"; then 14596 gt_use_preinstalled_gnugettext=no 14597 14598 14599 if test $gt_api_version -ge 3; then 14600 gt_revision_test_code=' 14601#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14602#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 14603#endif 14604typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 14605' 14606 else 14607 gt_revision_test_code= 14608 fi 14609 if test $gt_api_version -ge 2; then 14610 gt_expression_test_code=' + * ngettext ("", "", 0)' 14611 else 14612 gt_expression_test_code= 14613 fi 14614 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 14616$as_echo_n "checking for GNU gettext in libc... " >&6; } 14617if eval \${$gt_func_gnugettext_libc+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14621/* end confdefs.h. */ 14622 14623#include <libintl.h> 14624$gt_revision_test_code 14625extern int _nl_msg_cat_cntr; 14626extern int *_nl_domain_bindings; 14627 14628int 14629main () 14630{ 14631 14632bindtextdomain ("", ""); 14633return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 14634 14635 ; 14636 return 0; 14637} 14638_ACEOF 14639if ac_fn_c_try_link "$LINENO"; then : 14640 eval "$gt_func_gnugettext_libc=yes" 14641else 14642 eval "$gt_func_gnugettext_libc=no" 14643fi 14644rm -f core conftest.err conftest.$ac_objext \ 14645 conftest$ac_exeext conftest.$ac_ext 14646fi 14647eval ac_res=\$$gt_func_gnugettext_libc 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14649$as_echo "$ac_res" >&6; } 14650 14651 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 14652 14653 14654 14655 14656 14657 am_save_CPPFLAGS="$CPPFLAGS" 14658 14659 for element in $INCICONV; do 14660 haveit= 14661 for x in $CPPFLAGS; do 14662 14663 acl_save_prefix="$prefix" 14664 prefix="$acl_final_prefix" 14665 acl_save_exec_prefix="$exec_prefix" 14666 exec_prefix="$acl_final_exec_prefix" 14667 eval x=\"$x\" 14668 exec_prefix="$acl_save_exec_prefix" 14669 prefix="$acl_save_prefix" 14670 14671 if test "X$x" = "X$element"; then 14672 haveit=yes 14673 break 14674 fi 14675 done 14676 if test -z "$haveit"; then 14677 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14678 fi 14679 done 14680 14681 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14683$as_echo_n "checking for iconv... " >&6; } 14684if ${am_cv_func_iconv+:} false; then : 14685 $as_echo_n "(cached) " >&6 14686else 14687 14688 am_cv_func_iconv="no, consider installing GNU libiconv" 14689 am_cv_lib_iconv=no 14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14691/* end confdefs.h. */ 14692 14693#include <stdlib.h> 14694#include <iconv.h> 14695 14696int 14697main () 14698{ 14699iconv_t cd = iconv_open("",""); 14700 iconv(cd,NULL,NULL,NULL,NULL); 14701 iconv_close(cd); 14702 ; 14703 return 0; 14704} 14705_ACEOF 14706if ac_fn_c_try_link "$LINENO"; then : 14707 am_cv_func_iconv=yes 14708fi 14709rm -f core conftest.err conftest.$ac_objext \ 14710 conftest$ac_exeext conftest.$ac_ext 14711 if test "$am_cv_func_iconv" != yes; then 14712 am_save_LIBS="$LIBS" 14713 LIBS="$LIBS $LIBICONV" 14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14715/* end confdefs.h. */ 14716 14717#include <stdlib.h> 14718#include <iconv.h> 14719 14720int 14721main () 14722{ 14723iconv_t cd = iconv_open("",""); 14724 iconv(cd,NULL,NULL,NULL,NULL); 14725 iconv_close(cd); 14726 ; 14727 return 0; 14728} 14729_ACEOF 14730if ac_fn_c_try_link "$LINENO"; then : 14731 am_cv_lib_iconv=yes 14732 am_cv_func_iconv=yes 14733fi 14734rm -f core conftest.err conftest.$ac_objext \ 14735 conftest$ac_exeext conftest.$ac_ext 14736 LIBS="$am_save_LIBS" 14737 fi 14738 14739fi 14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14741$as_echo "$am_cv_func_iconv" >&6; } 14742 if test "$am_cv_func_iconv" = yes; then 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 14744$as_echo_n "checking for working iconv... " >&6; } 14745if ${am_cv_func_iconv_works+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 14749 am_save_LIBS="$LIBS" 14750 if test $am_cv_lib_iconv = yes; then 14751 LIBS="$LIBS $LIBICONV" 14752 fi 14753 if test "$cross_compiling" = yes; then : 14754 14755 case "$host_os" in 14756 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 14757 *) am_cv_func_iconv_works="guessing yes" ;; 14758 esac 14759 14760else 14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14762/* end confdefs.h. */ 14763 14764#include <iconv.h> 14765#include <string.h> 14766int main () 14767{ 14768 int result = 0; 14769 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 14770 returns. */ 14771 { 14772 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 14773 if (cd_utf8_to_88591 != (iconv_t)(-1)) 14774 { 14775 static const char input[] = "\342\202\254"; /* EURO SIGN */ 14776 char buf[10]; 14777 const char *inptr = input; 14778 size_t inbytesleft = strlen (input); 14779 char *outptr = buf; 14780 size_t outbytesleft = sizeof (buf); 14781 size_t res = iconv (cd_utf8_to_88591, 14782 (char **) &inptr, &inbytesleft, 14783 &outptr, &outbytesleft); 14784 if (res == 0) 14785 result |= 1; 14786 iconv_close (cd_utf8_to_88591); 14787 } 14788 } 14789 /* Test against Solaris 10 bug: Failures are not distinguishable from 14790 successful returns. */ 14791 { 14792 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 14793 if (cd_ascii_to_88591 != (iconv_t)(-1)) 14794 { 14795 static const char input[] = "\263"; 14796 char buf[10]; 14797 const char *inptr = input; 14798 size_t inbytesleft = strlen (input); 14799 char *outptr = buf; 14800 size_t outbytesleft = sizeof (buf); 14801 size_t res = iconv (cd_ascii_to_88591, 14802 (char **) &inptr, &inbytesleft, 14803 &outptr, &outbytesleft); 14804 if (res == 0) 14805 result |= 2; 14806 iconv_close (cd_ascii_to_88591); 14807 } 14808 } 14809 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 14810 { 14811 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 14812 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14813 { 14814 static const char input[] = "\304"; 14815 static char buf[2] = { (char)0xDE, (char)0xAD }; 14816 const char *inptr = input; 14817 size_t inbytesleft = 1; 14818 char *outptr = buf; 14819 size_t outbytesleft = 1; 14820 size_t res = iconv (cd_88591_to_utf8, 14821 (char **) &inptr, &inbytesleft, 14822 &outptr, &outbytesleft); 14823 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 14824 result |= 4; 14825 iconv_close (cd_88591_to_utf8); 14826 } 14827 } 14828#if 0 /* This bug could be worked around by the caller. */ 14829 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 14830 { 14831 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 14832 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14833 { 14834 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 14835 char buf[50]; 14836 const char *inptr = input; 14837 size_t inbytesleft = strlen (input); 14838 char *outptr = buf; 14839 size_t outbytesleft = sizeof (buf); 14840 size_t res = iconv (cd_88591_to_utf8, 14841 (char **) &inptr, &inbytesleft, 14842 &outptr, &outbytesleft); 14843 if ((int)res > 0) 14844 result |= 8; 14845 iconv_close (cd_88591_to_utf8); 14846 } 14847 } 14848#endif 14849 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 14850 provided. */ 14851 if (/* Try standardized names. */ 14852 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 14853 /* Try IRIX, OSF/1 names. */ 14854 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 14855 /* Try AIX names. */ 14856 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 14857 /* Try HP-UX names. */ 14858 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 14859 result |= 16; 14860 return result; 14861} 14862_ACEOF 14863if ac_fn_c_try_run "$LINENO"; then : 14864 am_cv_func_iconv_works=yes 14865else 14866 am_cv_func_iconv_works=no 14867fi 14868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14869 conftest.$ac_objext conftest.beam conftest.$ac_ext 14870fi 14871 14872 LIBS="$am_save_LIBS" 14873 14874fi 14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 14876$as_echo "$am_cv_func_iconv_works" >&6; } 14877 case "$am_cv_func_iconv_works" in 14878 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 14879 *) am_func_iconv=yes ;; 14880 esac 14881 else 14882 am_func_iconv=no am_cv_lib_iconv=no 14883 fi 14884 if test "$am_func_iconv" = yes; then 14885 14886$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14887 14888 fi 14889 if test "$am_cv_lib_iconv" = yes; then 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14891$as_echo_n "checking how to link with libiconv... " >&6; } 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14893$as_echo "$LIBICONV" >&6; } 14894 else 14895 CPPFLAGS="$am_save_CPPFLAGS" 14896 LIBICONV= 14897 LTLIBICONV= 14898 fi 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 use_additional=yes 14911 14912 acl_save_prefix="$prefix" 14913 prefix="$acl_final_prefix" 14914 acl_save_exec_prefix="$exec_prefix" 14915 exec_prefix="$acl_final_exec_prefix" 14916 14917 eval additional_includedir=\"$includedir\" 14918 eval additional_libdir=\"$libdir\" 14919 14920 exec_prefix="$acl_save_exec_prefix" 14921 prefix="$acl_save_prefix" 14922 14923 14924# Check whether --with-libintl-prefix was given. 14925if test "${with_libintl_prefix+set}" = set; then : 14926 withval=$with_libintl_prefix; 14927 if test "X$withval" = "Xno"; then 14928 use_additional=no 14929 else 14930 if test "X$withval" = "X"; then 14931 14932 acl_save_prefix="$prefix" 14933 prefix="$acl_final_prefix" 14934 acl_save_exec_prefix="$exec_prefix" 14935 exec_prefix="$acl_final_exec_prefix" 14936 14937 eval additional_includedir=\"$includedir\" 14938 eval additional_libdir=\"$libdir\" 14939 14940 exec_prefix="$acl_save_exec_prefix" 14941 prefix="$acl_save_prefix" 14942 14943 else 14944 additional_includedir="$withval/include" 14945 additional_libdir="$withval/$acl_libdirstem" 14946 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 14947 && ! test -d "$withval/$acl_libdirstem"; then 14948 additional_libdir="$withval/$acl_libdirstem2" 14949 fi 14950 fi 14951 fi 14952 14953fi 14954 14955 LIBINTL= 14956 LTLIBINTL= 14957 INCINTL= 14958 LIBINTL_PREFIX= 14959 HAVE_LIBINTL= 14960 rpathdirs= 14961 ltrpathdirs= 14962 names_already_handled= 14963 names_next_round='intl ' 14964 while test -n "$names_next_round"; do 14965 names_this_round="$names_next_round" 14966 names_next_round= 14967 for name in $names_this_round; do 14968 already_handled= 14969 for n in $names_already_handled; do 14970 if test "$n" = "$name"; then 14971 already_handled=yes 14972 break 14973 fi 14974 done 14975 if test -z "$already_handled"; then 14976 names_already_handled="$names_already_handled $name" 14977 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 14978 eval value=\"\$HAVE_LIB$uppername\" 14979 if test -n "$value"; then 14980 if test "$value" = yes; then 14981 eval value=\"\$LIB$uppername\" 14982 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 14983 eval value=\"\$LTLIB$uppername\" 14984 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 14985 else 14986 : 14987 fi 14988 else 14989 found_dir= 14990 found_la= 14991 found_so= 14992 found_a= 14993 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 14994 if test -n "$acl_shlibext"; then 14995 shrext=".$acl_shlibext" # typically: shrext=.so 14996 else 14997 shrext= 14998 fi 14999 if test $use_additional = yes; then 15000 dir="$additional_libdir" 15001 if test -n "$acl_shlibext"; then 15002 if test -f "$dir/$libname$shrext"; then 15003 found_dir="$dir" 15004 found_so="$dir/$libname$shrext" 15005 else 15006 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 15007 ver=`(cd "$dir" && \ 15008 for f in "$libname$shrext".*; do echo "$f"; done \ 15009 | sed -e "s,^$libname$shrext\\\\.,," \ 15010 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 15011 | sed 1q ) 2>/dev/null` 15012 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 15013 found_dir="$dir" 15014 found_so="$dir/$libname$shrext.$ver" 15015 fi 15016 else 15017 eval library_names=\"$acl_library_names_spec\" 15018 for f in $library_names; do 15019 if test -f "$dir/$f"; then 15020 found_dir="$dir" 15021 found_so="$dir/$f" 15022 break 15023 fi 15024 done 15025 fi 15026 fi 15027 fi 15028 if test "X$found_dir" = "X"; then 15029 if test -f "$dir/$libname.$acl_libext"; then 15030 found_dir="$dir" 15031 found_a="$dir/$libname.$acl_libext" 15032 fi 15033 fi 15034 if test "X$found_dir" != "X"; then 15035 if test -f "$dir/$libname.la"; then 15036 found_la="$dir/$libname.la" 15037 fi 15038 fi 15039 fi 15040 if test "X$found_dir" = "X"; then 15041 for x in $LDFLAGS $LTLIBINTL; do 15042 15043 acl_save_prefix="$prefix" 15044 prefix="$acl_final_prefix" 15045 acl_save_exec_prefix="$exec_prefix" 15046 exec_prefix="$acl_final_exec_prefix" 15047 eval x=\"$x\" 15048 exec_prefix="$acl_save_exec_prefix" 15049 prefix="$acl_save_prefix" 15050 15051 case "$x" in 15052 -L*) 15053 dir=`echo "X$x" | sed -e 's/^X-L//'` 15054 if test -n "$acl_shlibext"; then 15055 if test -f "$dir/$libname$shrext"; then 15056 found_dir="$dir" 15057 found_so="$dir/$libname$shrext" 15058 else 15059 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 15060 ver=`(cd "$dir" && \ 15061 for f in "$libname$shrext".*; do echo "$f"; done \ 15062 | sed -e "s,^$libname$shrext\\\\.,," \ 15063 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 15064 | sed 1q ) 2>/dev/null` 15065 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 15066 found_dir="$dir" 15067 found_so="$dir/$libname$shrext.$ver" 15068 fi 15069 else 15070 eval library_names=\"$acl_library_names_spec\" 15071 for f in $library_names; do 15072 if test -f "$dir/$f"; then 15073 found_dir="$dir" 15074 found_so="$dir/$f" 15075 break 15076 fi 15077 done 15078 fi 15079 fi 15080 fi 15081 if test "X$found_dir" = "X"; then 15082 if test -f "$dir/$libname.$acl_libext"; then 15083 found_dir="$dir" 15084 found_a="$dir/$libname.$acl_libext" 15085 fi 15086 fi 15087 if test "X$found_dir" != "X"; then 15088 if test -f "$dir/$libname.la"; then 15089 found_la="$dir/$libname.la" 15090 fi 15091 fi 15092 ;; 15093 esac 15094 if test "X$found_dir" != "X"; then 15095 break 15096 fi 15097 done 15098 fi 15099 if test "X$found_dir" != "X"; then 15100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 15101 if test "X$found_so" != "X"; then 15102 if test "$enable_rpath" = no \ 15103 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 15104 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 15105 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 15106 else 15107 haveit= 15108 for x in $ltrpathdirs; do 15109 if test "X$x" = "X$found_dir"; then 15110 haveit=yes 15111 break 15112 fi 15113 done 15114 if test -z "$haveit"; then 15115 ltrpathdirs="$ltrpathdirs $found_dir" 15116 fi 15117 if test "$acl_hardcode_direct" = yes; then 15118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 15119 else 15120 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 15121 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 15122 haveit= 15123 for x in $rpathdirs; do 15124 if test "X$x" = "X$found_dir"; then 15125 haveit=yes 15126 break 15127 fi 15128 done 15129 if test -z "$haveit"; then 15130 rpathdirs="$rpathdirs $found_dir" 15131 fi 15132 else 15133 haveit= 15134 for x in $LDFLAGS $LIBINTL; do 15135 15136 acl_save_prefix="$prefix" 15137 prefix="$acl_final_prefix" 15138 acl_save_exec_prefix="$exec_prefix" 15139 exec_prefix="$acl_final_exec_prefix" 15140 eval x=\"$x\" 15141 exec_prefix="$acl_save_exec_prefix" 15142 prefix="$acl_save_prefix" 15143 15144 if test "X$x" = "X-L$found_dir"; then 15145 haveit=yes 15146 break 15147 fi 15148 done 15149 if test -z "$haveit"; then 15150 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 15151 fi 15152 if test "$acl_hardcode_minus_L" != no; then 15153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 15154 else 15155 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 15156 fi 15157 fi 15158 fi 15159 fi 15160 else 15161 if test "X$found_a" != "X"; then 15162 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 15163 else 15164 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 15165 fi 15166 fi 15167 additional_includedir= 15168 case "$found_dir" in 15169 */$acl_libdirstem | */$acl_libdirstem/) 15170 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 15171 if test "$name" = 'intl'; then 15172 LIBINTL_PREFIX="$basedir" 15173 fi 15174 additional_includedir="$basedir/include" 15175 ;; 15176 */$acl_libdirstem2 | */$acl_libdirstem2/) 15177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 15178 if test "$name" = 'intl'; then 15179 LIBINTL_PREFIX="$basedir" 15180 fi 15181 additional_includedir="$basedir/include" 15182 ;; 15183 esac 15184 if test "X$additional_includedir" != "X"; then 15185 if test "X$additional_includedir" != "X/usr/include"; then 15186 haveit= 15187 if test "X$additional_includedir" = "X/usr/local/include"; then 15188 if test -n "$GCC"; then 15189 case $host_os in 15190 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 15191 esac 15192 fi 15193 fi 15194 if test -z "$haveit"; then 15195 for x in $CPPFLAGS $INCINTL; do 15196 15197 acl_save_prefix="$prefix" 15198 prefix="$acl_final_prefix" 15199 acl_save_exec_prefix="$exec_prefix" 15200 exec_prefix="$acl_final_exec_prefix" 15201 eval x=\"$x\" 15202 exec_prefix="$acl_save_exec_prefix" 15203 prefix="$acl_save_prefix" 15204 15205 if test "X$x" = "X-I$additional_includedir"; then 15206 haveit=yes 15207 break 15208 fi 15209 done 15210 if test -z "$haveit"; then 15211 if test -d "$additional_includedir"; then 15212 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 15213 fi 15214 fi 15215 fi 15216 fi 15217 fi 15218 if test -n "$found_la"; then 15219 save_libdir="$libdir" 15220 case "$found_la" in 15221 */* | *\\*) . "$found_la" ;; 15222 *) . "./$found_la" ;; 15223 esac 15224 libdir="$save_libdir" 15225 for dep in $dependency_libs; do 15226 case "$dep" in 15227 -L*) 15228 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 15229 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 15230 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 15231 haveit= 15232 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 15233 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 15234 if test -n "$GCC"; then 15235 case $host_os in 15236 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 15237 esac 15238 fi 15239 fi 15240 if test -z "$haveit"; then 15241 haveit= 15242 for x in $LDFLAGS $LIBINTL; do 15243 15244 acl_save_prefix="$prefix" 15245 prefix="$acl_final_prefix" 15246 acl_save_exec_prefix="$exec_prefix" 15247 exec_prefix="$acl_final_exec_prefix" 15248 eval x=\"$x\" 15249 exec_prefix="$acl_save_exec_prefix" 15250 prefix="$acl_save_prefix" 15251 15252 if test "X$x" = "X-L$additional_libdir"; then 15253 haveit=yes 15254 break 15255 fi 15256 done 15257 if test -z "$haveit"; then 15258 if test -d "$additional_libdir"; then 15259 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 15260 fi 15261 fi 15262 haveit= 15263 for x in $LDFLAGS $LTLIBINTL; do 15264 15265 acl_save_prefix="$prefix" 15266 prefix="$acl_final_prefix" 15267 acl_save_exec_prefix="$exec_prefix" 15268 exec_prefix="$acl_final_exec_prefix" 15269 eval x=\"$x\" 15270 exec_prefix="$acl_save_exec_prefix" 15271 prefix="$acl_save_prefix" 15272 15273 if test "X$x" = "X-L$additional_libdir"; then 15274 haveit=yes 15275 break 15276 fi 15277 done 15278 if test -z "$haveit"; then 15279 if test -d "$additional_libdir"; then 15280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 15281 fi 15282 fi 15283 fi 15284 fi 15285 ;; 15286 -R*) 15287 dir=`echo "X$dep" | sed -e 's/^X-R//'` 15288 if test "$enable_rpath" != no; then 15289 haveit= 15290 for x in $rpathdirs; do 15291 if test "X$x" = "X$dir"; then 15292 haveit=yes 15293 break 15294 fi 15295 done 15296 if test -z "$haveit"; then 15297 rpathdirs="$rpathdirs $dir" 15298 fi 15299 haveit= 15300 for x in $ltrpathdirs; do 15301 if test "X$x" = "X$dir"; then 15302 haveit=yes 15303 break 15304 fi 15305 done 15306 if test -z "$haveit"; then 15307 ltrpathdirs="$ltrpathdirs $dir" 15308 fi 15309 fi 15310 ;; 15311 -l*) 15312 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 15313 ;; 15314 *.la) 15315 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 15316 ;; 15317 *) 15318 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 15319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 15320 ;; 15321 esac 15322 done 15323 fi 15324 else 15325 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 15326 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 15327 fi 15328 fi 15329 fi 15330 done 15331 done 15332 if test "X$rpathdirs" != "X"; then 15333 if test -n "$acl_hardcode_libdir_separator"; then 15334 alldirs= 15335 for found_dir in $rpathdirs; do 15336 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 15337 done 15338 acl_save_libdir="$libdir" 15339 libdir="$alldirs" 15340 eval flag=\"$acl_hardcode_libdir_flag_spec\" 15341 libdir="$acl_save_libdir" 15342 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 15343 else 15344 for found_dir in $rpathdirs; do 15345 acl_save_libdir="$libdir" 15346 libdir="$found_dir" 15347 eval flag=\"$acl_hardcode_libdir_flag_spec\" 15348 libdir="$acl_save_libdir" 15349 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 15350 done 15351 fi 15352 fi 15353 if test "X$ltrpathdirs" != "X"; then 15354 for found_dir in $ltrpathdirs; do 15355 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 15356 done 15357 fi 15358 15359 15360 15361 15362 15363 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 15365$as_echo_n "checking for GNU gettext in libintl... " >&6; } 15366if eval \${$gt_func_gnugettext_libintl+:} false; then : 15367 $as_echo_n "(cached) " >&6 15368else 15369 gt_save_CPPFLAGS="$CPPFLAGS" 15370 CPPFLAGS="$CPPFLAGS $INCINTL" 15371 gt_save_LIBS="$LIBS" 15372 LIBS="$LIBS $LIBINTL" 15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374/* end confdefs.h. */ 15375 15376#include <libintl.h> 15377$gt_revision_test_code 15378extern int _nl_msg_cat_cntr; 15379extern 15380#ifdef __cplusplus 15381"C" 15382#endif 15383const char *_nl_expand_alias (const char *); 15384 15385int 15386main () 15387{ 15388 15389bindtextdomain ("", ""); 15390return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 15391 15392 ; 15393 return 0; 15394} 15395_ACEOF 15396if ac_fn_c_try_link "$LINENO"; then : 15397 eval "$gt_func_gnugettext_libintl=yes" 15398else 15399 eval "$gt_func_gnugettext_libintl=no" 15400fi 15401rm -f core conftest.err conftest.$ac_objext \ 15402 conftest$ac_exeext conftest.$ac_ext 15403 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 15404 LIBS="$LIBS $LIBICONV" 15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407 15408#include <libintl.h> 15409$gt_revision_test_code 15410extern int _nl_msg_cat_cntr; 15411extern 15412#ifdef __cplusplus 15413"C" 15414#endif 15415const char *_nl_expand_alias (const char *); 15416 15417int 15418main () 15419{ 15420 15421bindtextdomain ("", ""); 15422return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 15423 15424 ; 15425 return 0; 15426} 15427_ACEOF 15428if ac_fn_c_try_link "$LINENO"; then : 15429 LIBINTL="$LIBINTL $LIBICONV" 15430 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 15431 eval "$gt_func_gnugettext_libintl=yes" 15432 15433fi 15434rm -f core conftest.err conftest.$ac_objext \ 15435 conftest$ac_exeext conftest.$ac_ext 15436 fi 15437 CPPFLAGS="$gt_save_CPPFLAGS" 15438 LIBS="$gt_save_LIBS" 15439fi 15440eval ac_res=\$$gt_func_gnugettext_libintl 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15442$as_echo "$ac_res" >&6; } 15443 fi 15444 15445 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 15446 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 15447 && test "$PACKAGE" != gettext-runtime \ 15448 && test "$PACKAGE" != gettext-tools; }; then 15449 gt_use_preinstalled_gnugettext=yes 15450 else 15451 LIBINTL= 15452 LTLIBINTL= 15453 INCINTL= 15454 fi 15455 15456 15457 15458 if test -n "$INTL_MACOSX_LIBS"; then 15459 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 15460 || test "$nls_cv_use_gnu_gettext" = "yes"; then 15461 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 15462 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 15463 fi 15464 fi 15465 15466 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 15467 || test "$nls_cv_use_gnu_gettext" = "yes"; then 15468 15469$as_echo "#define ENABLE_NLS 1" >>confdefs.h 15470 15471 else 15472 USE_NLS=no 15473 fi 15474 fi 15475 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 15477$as_echo_n "checking whether to use NLS... " >&6; } 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 15479$as_echo "$USE_NLS" >&6; } 15480 if test "$USE_NLS" = "yes"; then 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 15482$as_echo_n "checking where the gettext function comes from... " >&6; } 15483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 15484 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 15485 gt_source="external libintl" 15486 else 15487 gt_source="libc" 15488 fi 15489 else 15490 gt_source="included intl directory" 15491 fi 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 15493$as_echo "$gt_source" >&6; } 15494 fi 15495 15496 if test "$USE_NLS" = "yes"; then 15497 15498 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 15499 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 15501$as_echo_n "checking how to link with libintl... " >&6; } 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 15503$as_echo "$LIBINTL" >&6; } 15504 15505 for element in $INCINTL; do 15506 haveit= 15507 for x in $CPPFLAGS; do 15508 15509 acl_save_prefix="$prefix" 15510 prefix="$acl_final_prefix" 15511 acl_save_exec_prefix="$exec_prefix" 15512 exec_prefix="$acl_final_exec_prefix" 15513 eval x=\"$x\" 15514 exec_prefix="$acl_save_exec_prefix" 15515 prefix="$acl_save_prefix" 15516 15517 if test "X$x" = "X$element"; then 15518 haveit=yes 15519 break 15520 fi 15521 done 15522 if test -z "$haveit"; then 15523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15524 fi 15525 done 15526 15527 fi 15528 15529 15530$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 15531 15532 15533$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 15534 15535 fi 15536 15537 POSUB=po 15538 fi 15539 15540 15541 15542 INTLLIBS="$LIBINTL" 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 am_save_CPPFLAGS="$CPPFLAGS" 15555 15556 for element in $INCICONV; do 15557 haveit= 15558 for x in $CPPFLAGS; do 15559 15560 acl_save_prefix="$prefix" 15561 prefix="$acl_final_prefix" 15562 acl_save_exec_prefix="$exec_prefix" 15563 exec_prefix="$acl_final_exec_prefix" 15564 eval x=\"$x\" 15565 exec_prefix="$acl_save_exec_prefix" 15566 prefix="$acl_save_prefix" 15567 15568 if test "X$x" = "X$element"; then 15569 haveit=yes 15570 break 15571 fi 15572 done 15573 if test -z "$haveit"; then 15574 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15575 fi 15576 done 15577 15578 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 15580$as_echo_n "checking for iconv... " >&6; } 15581if ${am_cv_func_iconv+:} false; then : 15582 $as_echo_n "(cached) " >&6 15583else 15584 15585 am_cv_func_iconv="no, consider installing GNU libiconv" 15586 am_cv_lib_iconv=no 15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15588/* end confdefs.h. */ 15589 15590#include <stdlib.h> 15591#include <iconv.h> 15592 15593int 15594main () 15595{ 15596iconv_t cd = iconv_open("",""); 15597 iconv(cd,NULL,NULL,NULL,NULL); 15598 iconv_close(cd); 15599 ; 15600 return 0; 15601} 15602_ACEOF 15603if ac_fn_c_try_link "$LINENO"; then : 15604 am_cv_func_iconv=yes 15605fi 15606rm -f core conftest.err conftest.$ac_objext \ 15607 conftest$ac_exeext conftest.$ac_ext 15608 if test "$am_cv_func_iconv" != yes; then 15609 am_save_LIBS="$LIBS" 15610 LIBS="$LIBS $LIBICONV" 15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15612/* end confdefs.h. */ 15613 15614#include <stdlib.h> 15615#include <iconv.h> 15616 15617int 15618main () 15619{ 15620iconv_t cd = iconv_open("",""); 15621 iconv(cd,NULL,NULL,NULL,NULL); 15622 iconv_close(cd); 15623 ; 15624 return 0; 15625} 15626_ACEOF 15627if ac_fn_c_try_link "$LINENO"; then : 15628 am_cv_lib_iconv=yes 15629 am_cv_func_iconv=yes 15630fi 15631rm -f core conftest.err conftest.$ac_objext \ 15632 conftest$ac_exeext conftest.$ac_ext 15633 LIBS="$am_save_LIBS" 15634 fi 15635 15636fi 15637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 15638$as_echo "$am_cv_func_iconv" >&6; } 15639 if test "$am_cv_func_iconv" = yes; then 15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 15641$as_echo_n "checking for working iconv... " >&6; } 15642if ${am_cv_func_iconv_works+:} false; then : 15643 $as_echo_n "(cached) " >&6 15644else 15645 15646 am_save_LIBS="$LIBS" 15647 if test $am_cv_lib_iconv = yes; then 15648 LIBS="$LIBS $LIBICONV" 15649 fi 15650 if test "$cross_compiling" = yes; then : 15651 15652 case "$host_os" in 15653 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 15654 *) am_cv_func_iconv_works="guessing yes" ;; 15655 esac 15656 15657else 15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15659/* end confdefs.h. */ 15660 15661#include <iconv.h> 15662#include <string.h> 15663int main () 15664{ 15665 int result = 0; 15666 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 15667 returns. */ 15668 { 15669 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 15670 if (cd_utf8_to_88591 != (iconv_t)(-1)) 15671 { 15672 static const char input[] = "\342\202\254"; /* EURO SIGN */ 15673 char buf[10]; 15674 const char *inptr = input; 15675 size_t inbytesleft = strlen (input); 15676 char *outptr = buf; 15677 size_t outbytesleft = sizeof (buf); 15678 size_t res = iconv (cd_utf8_to_88591, 15679 (char **) &inptr, &inbytesleft, 15680 &outptr, &outbytesleft); 15681 if (res == 0) 15682 result |= 1; 15683 iconv_close (cd_utf8_to_88591); 15684 } 15685 } 15686 /* Test against Solaris 10 bug: Failures are not distinguishable from 15687 successful returns. */ 15688 { 15689 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 15690 if (cd_ascii_to_88591 != (iconv_t)(-1)) 15691 { 15692 static const char input[] = "\263"; 15693 char buf[10]; 15694 const char *inptr = input; 15695 size_t inbytesleft = strlen (input); 15696 char *outptr = buf; 15697 size_t outbytesleft = sizeof (buf); 15698 size_t res = iconv (cd_ascii_to_88591, 15699 (char **) &inptr, &inbytesleft, 15700 &outptr, &outbytesleft); 15701 if (res == 0) 15702 result |= 2; 15703 iconv_close (cd_ascii_to_88591); 15704 } 15705 } 15706 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 15707 { 15708 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 15709 if (cd_88591_to_utf8 != (iconv_t)(-1)) 15710 { 15711 static const char input[] = "\304"; 15712 static char buf[2] = { (char)0xDE, (char)0xAD }; 15713 const char *inptr = input; 15714 size_t inbytesleft = 1; 15715 char *outptr = buf; 15716 size_t outbytesleft = 1; 15717 size_t res = iconv (cd_88591_to_utf8, 15718 (char **) &inptr, &inbytesleft, 15719 &outptr, &outbytesleft); 15720 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 15721 result |= 4; 15722 iconv_close (cd_88591_to_utf8); 15723 } 15724 } 15725#if 0 /* This bug could be worked around by the caller. */ 15726 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 15727 { 15728 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 15729 if (cd_88591_to_utf8 != (iconv_t)(-1)) 15730 { 15731 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 15732 char buf[50]; 15733 const char *inptr = input; 15734 size_t inbytesleft = strlen (input); 15735 char *outptr = buf; 15736 size_t outbytesleft = sizeof (buf); 15737 size_t res = iconv (cd_88591_to_utf8, 15738 (char **) &inptr, &inbytesleft, 15739 &outptr, &outbytesleft); 15740 if ((int)res > 0) 15741 result |= 8; 15742 iconv_close (cd_88591_to_utf8); 15743 } 15744 } 15745#endif 15746 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 15747 provided. */ 15748 if (/* Try standardized names. */ 15749 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 15750 /* Try IRIX, OSF/1 names. */ 15751 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 15752 /* Try AIX names. */ 15753 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 15754 /* Try HP-UX names. */ 15755 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 15756 result |= 16; 15757 return result; 15758} 15759_ACEOF 15760if ac_fn_c_try_run "$LINENO"; then : 15761 am_cv_func_iconv_works=yes 15762else 15763 am_cv_func_iconv_works=no 15764fi 15765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15766 conftest.$ac_objext conftest.beam conftest.$ac_ext 15767fi 15768 15769 LIBS="$am_save_LIBS" 15770 15771fi 15772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 15773$as_echo "$am_cv_func_iconv_works" >&6; } 15774 case "$am_cv_func_iconv_works" in 15775 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 15776 *) am_func_iconv=yes ;; 15777 esac 15778 else 15779 am_func_iconv=no am_cv_lib_iconv=no 15780 fi 15781 if test "$am_func_iconv" = yes; then 15782 15783$as_echo "#define HAVE_ICONV 1" >>confdefs.h 15784 15785 fi 15786 if test "$am_cv_lib_iconv" = yes; then 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 15788$as_echo_n "checking how to link with libiconv... " >&6; } 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 15790$as_echo "$LIBICONV" >&6; } 15791 else 15792 CPPFLAGS="$am_save_CPPFLAGS" 15793 LIBICONV= 15794 LTLIBICONV= 15795 fi 15796 15797 15798 15799 if test "$am_cv_func_iconv" = yes; then 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 15801$as_echo_n "checking for iconv declaration... " >&6; } 15802 if ${am_cv_proto_iconv+:} false; then : 15803 $as_echo_n "(cached) " >&6 15804else 15805 15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15807/* end confdefs.h. */ 15808 15809#include <stdlib.h> 15810#include <iconv.h> 15811extern 15812#ifdef __cplusplus 15813"C" 15814#endif 15815#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 15816size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 15817#else 15818size_t iconv(); 15819#endif 15820 15821int 15822main () 15823{ 15824 15825 ; 15826 return 0; 15827} 15828_ACEOF 15829if ac_fn_c_try_compile "$LINENO"; then : 15830 am_cv_proto_iconv_arg1="" 15831else 15832 am_cv_proto_iconv_arg1="const" 15833fi 15834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15835 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 15836fi 15837 15838 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 15840 $am_cv_proto_iconv" >&5 15841$as_echo " 15842 $am_cv_proto_iconv" >&6; } 15843 15844cat >>confdefs.h <<_ACEOF 15845#define ICONV_CONST $am_cv_proto_iconv_arg1 15846_ACEOF 15847 15848 15849 fi 15850 15851 15852 15853 15854if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then 15855 AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl" 15856fi 15857 15858gp_config_msg_len="$(expr "Use translations" : '.*')" 15859if test "$gp_config_msg_len" -ge "$gp_config_len"; then 15860 gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:" 15861else 15862 gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" 15863fi 15864gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${USE_NLS} 15865" 15866 15867if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then 15868 15869gp_config_msg_len="$(expr "Use included libintl" : '.*')" 15870if test "$gp_config_msg_len" -ge "$gp_config_len"; then 15871 gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:" 15872else 15873 gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" 15874fi 15875gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL} 15876" 15877 15878fi 15879localedir='$(datadir)/locale' 15880 15881AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\"" 15882 15883 15884 15885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_s" >&5 15886$as_echo_n "checking for localtime_s... " >&6; } 15887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889 15890 #include <time.h> 15891 15892int 15893main () 15894{ 15895 15896 localtime_s(NULL, NULL); 15897 15898 ; 15899 return 0; 15900} 15901_ACEOF 15902if ac_fn_c_try_link "$LINENO"; then : 15903 have_localtime_s="yes" 15904 15905$as_echo "#define HAVE_LOCALTIME_S 1" >>confdefs.h 15906 15907 15908else 15909 have_localtime_s="no" 15910 15911fi 15912rm -f core conftest.err conftest.$ac_objext \ 15913 conftest$ac_exeext conftest.$ac_ext 15914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_localtime_s" >&5 15915$as_echo "$have_localtime_s" >&6; } 15916 15917for ac_func in localtime_r 15918do : 15919 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 15920if test "x$ac_cv_func_localtime_r" = xyes; then : 15921 cat >>confdefs.h <<_ACEOF 15922#define HAVE_LOCALTIME_R 1 15923_ACEOF 15924 15925fi 15926done 15927 15928 15929 15930AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)" 15931AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)" 15932AM_LDFLAGS="$LDFLAGS" 15933if test "x$GCC" = xyes; then : 15934 AM_CFLAGS="$AM_CFLAGS -ansi -pedantic-error" 15935 AM_CXXFLAGS="$AM_CXXFLAGS -ansi -pedantic-error" 15936 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes" 15937 AM_LDFLAGS="$AM_LDFLAGS -g -Wall" 15938 15939fi 15940 15941 15942 15943 15944 15945ac_config_files="$ac_config_files po/Makefile.in Makefile libexif.spec libexif/Makefile test/Makefile test/nls/Makefile m4m/Makefile doc/Makefile doc/Doxyfile doc/Doxyfile-internals libexif.pc libexif-uninstalled.pc binary-dist/Makefile contrib/Makefile contrib/examples/Makefile" 15946 15947cat >confcache <<\_ACEOF 15948# This file is a shell script that caches the results of configure 15949# tests run on this system so they can be shared between configure 15950# scripts and configure runs, see configure's option --config-cache. 15951# It is not useful on other systems. If it contains results you don't 15952# want to keep, you may remove or edit it. 15953# 15954# config.status only pays attention to the cache file if you give it 15955# the --recheck option to rerun configure. 15956# 15957# `ac_cv_env_foo' variables (set or unset) will be overridden when 15958# loading this file, other *unset* `ac_cv_foo' will be assigned the 15959# following values. 15960 15961_ACEOF 15962 15963# The following way of writing the cache mishandles newlines in values, 15964# but we know of no workaround that is simple, portable, and efficient. 15965# So, we kill variables containing newlines. 15966# Ultrix sh set writes to stderr and can't be redirected directly, 15967# and sets the high bit in the cache file unless we assign to the vars. 15968( 15969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15970 eval ac_val=\$$ac_var 15971 case $ac_val in #( 15972 *${as_nl}*) 15973 case $ac_var in #( 15974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15976 esac 15977 case $ac_var in #( 15978 _ | IFS | as_nl) ;; #( 15979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15980 *) { eval $ac_var=; unset $ac_var;} ;; 15981 esac ;; 15982 esac 15983 done 15984 15985 (set) 2>&1 | 15986 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15987 *${as_nl}ac_space=\ *) 15988 # `set' does not quote correctly, so add quotes: double-quote 15989 # substitution turns \\\\ into \\, and sed turns \\ into \. 15990 sed -n \ 15991 "s/'/'\\\\''/g; 15992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15993 ;; #( 15994 *) 15995 # `set' quotes correctly as required by POSIX, so do not add quotes. 15996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15997 ;; 15998 esac | 15999 sort 16000) | 16001 sed ' 16002 /^ac_cv_env_/b end 16003 t clear 16004 :clear 16005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16006 t end 16007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16008 :end' >>confcache 16009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16010 if test -w "$cache_file"; then 16011 if test "x$cache_file" != "x/dev/null"; then 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16013$as_echo "$as_me: updating cache $cache_file" >&6;} 16014 if test ! -f "$cache_file" || test -h "$cache_file"; then 16015 cat confcache >"$cache_file" 16016 else 16017 case $cache_file in #( 16018 */* | ?:*) 16019 mv -f confcache "$cache_file"$$ && 16020 mv -f "$cache_file"$$ "$cache_file" ;; #( 16021 *) 16022 mv -f confcache "$cache_file" ;; 16023 esac 16024 fi 16025 fi 16026 else 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16029 fi 16030fi 16031rm -f confcache 16032 16033test "x$prefix" = xNONE && prefix=$ac_default_prefix 16034# Let make expand exec_prefix. 16035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16036 16037DEFS=-DHAVE_CONFIG_H 16038 16039ac_libobjs= 16040ac_ltlibobjs= 16041U= 16042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16043 # 1. Remove the extension, and $U if already installed. 16044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16047 # will be set to the directory where LIBOBJS objects are built. 16048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16050done 16051LIBOBJS=$ac_libobjs 16052 16053LTLIBOBJS=$ac_ltlibobjs 16054 16055 16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16057$as_echo_n "checking that generated files are newer than configure... " >&6; } 16058 if test -n "$am_sleep_pid"; then 16059 # Hide warnings about reused PIDs. 16060 wait $am_sleep_pid 2>/dev/null 16061 fi 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16063$as_echo "done" >&6; } 16064 if test -n "$EXEEXT"; then 16065 am__EXEEXT_TRUE= 16066 am__EXEEXT_FALSE='#' 16067else 16068 am__EXEEXT_TRUE='#' 16069 am__EXEEXT_FALSE= 16070fi 16071 16072if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16073 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16074Usually this means the macro was only invoked conditionally." "$LINENO" 5 16075fi 16076if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16077 as_fn_error $? "conditional \"AMDEP\" was never defined. 16078Usually this means the macro was only invoked conditionally." "$LINENO" 5 16079fi 16080if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16081 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16082Usually this means the macro was only invoked conditionally." "$LINENO" 5 16083fi 16084if test -z "${HAVE_DIFF_TRUE}" && test -z "${HAVE_DIFF_FALSE}"; then 16085 as_fn_error $? "conditional \"HAVE_DIFF\" was never defined. 16086Usually this means the macro was only invoked conditionally." "$LINENO" 5 16087fi 16088if test -z "${HAVE_DIFF_U_TRUE}" && test -z "${HAVE_DIFF_U_FALSE}"; then 16089 as_fn_error $? "conditional \"HAVE_DIFF_U\" was never defined. 16090Usually this means the macro was only invoked conditionally." "$LINENO" 5 16091fi 16092if test -z "${SHIP_BINARIES_TRUE}" && test -z "${SHIP_BINARIES_FALSE}"; then 16093 as_fn_error $? "conditional \"SHIP_BINARIES\" was never defined. 16094Usually this means the macro was only invoked conditionally." "$LINENO" 5 16095fi 16096if test -z "${USE_FAILMALLOC_TRUE}" && test -z "${USE_FAILMALLOC_FALSE}"; then 16097 as_fn_error $? "conditional \"USE_FAILMALLOC\" was never defined. 16098Usually this means the macro was only invoked conditionally." "$LINENO" 5 16099fi 16100if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 16101 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 16102Usually this means the macro was only invoked conditionally." "$LINENO" 5 16103fi 16104if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 16105 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 16106Usually this means the macro was only invoked conditionally." "$LINENO" 5 16107fi 16108if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 16109 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 16110Usually this means the macro was only invoked conditionally." "$LINENO" 5 16111fi 16112if test -z "${ENABLE_INTERNAL_DOCS_TRUE}" && test -z "${ENABLE_INTERNAL_DOCS_FALSE}"; then 16113 as_fn_error $? "conditional \"ENABLE_INTERNAL_DOCS\" was never defined. 16114Usually this means the macro was only invoked conditionally." "$LINENO" 5 16115fi 16116 16117: "${CONFIG_STATUS=./config.status}" 16118ac_write_fail=0 16119ac_clean_files_save=$ac_clean_files 16120ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16121{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16122$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16123as_write_fail=0 16124cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16125#! $SHELL 16126# Generated by $as_me. 16127# Run this file to recreate the current configuration. 16128# Compiler output produced by configure, useful for debugging 16129# configure, is in config.log if it exists. 16130 16131debug=false 16132ac_cs_recheck=false 16133ac_cs_silent=false 16134 16135SHELL=\${CONFIG_SHELL-$SHELL} 16136export SHELL 16137_ASEOF 16138cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16139## -------------------- ## 16140## M4sh Initialization. ## 16141## -------------------- ## 16142 16143# Be more Bourne compatible 16144DUALCASE=1; export DUALCASE # for MKS sh 16145if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16146 emulate sh 16147 NULLCMD=: 16148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16149 # is contrary to our usage. Disable this feature. 16150 alias -g '${1+"$@"}'='"$@"' 16151 setopt NO_GLOB_SUBST 16152else 16153 case `(set -o) 2>/dev/null` in #( 16154 *posix*) : 16155 set -o posix ;; #( 16156 *) : 16157 ;; 16158esac 16159fi 16160 16161 16162as_nl=' 16163' 16164export as_nl 16165# Printing a long string crashes Solaris 7 /usr/bin/printf. 16166as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16168as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16169# Prefer a ksh shell builtin over an external printf program on Solaris, 16170# but without wasting forks for bash or zsh. 16171if test -z "$BASH_VERSION$ZSH_VERSION" \ 16172 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16173 as_echo='print -r --' 16174 as_echo_n='print -rn --' 16175elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16176 as_echo='printf %s\n' 16177 as_echo_n='printf %s' 16178else 16179 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16180 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16181 as_echo_n='/usr/ucb/echo -n' 16182 else 16183 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16184 as_echo_n_body='eval 16185 arg=$1; 16186 case $arg in #( 16187 *"$as_nl"*) 16188 expr "X$arg" : "X\\(.*\\)$as_nl"; 16189 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16190 esac; 16191 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16192 ' 16193 export as_echo_n_body 16194 as_echo_n='sh -c $as_echo_n_body as_echo' 16195 fi 16196 export as_echo_body 16197 as_echo='sh -c $as_echo_body as_echo' 16198fi 16199 16200# The user is always right. 16201if test "${PATH_SEPARATOR+set}" != set; then 16202 PATH_SEPARATOR=: 16203 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16204 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16205 PATH_SEPARATOR=';' 16206 } 16207fi 16208 16209 16210# IFS 16211# We need space, tab and new line, in precisely that order. Quoting is 16212# there to prevent editors from complaining about space-tab. 16213# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16214# splitting by setting IFS to empty value.) 16215IFS=" "" $as_nl" 16216 16217# Find who we are. Look in the path if we contain no directory separator. 16218as_myself= 16219case $0 in #(( 16220 *[\\/]* ) as_myself=$0 ;; 16221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16222for as_dir in $PATH 16223do 16224 IFS=$as_save_IFS 16225 test -z "$as_dir" && as_dir=. 16226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16227 done 16228IFS=$as_save_IFS 16229 16230 ;; 16231esac 16232# We did not find ourselves, most probably we were run as `sh COMMAND' 16233# in which case we are not to be found in the path. 16234if test "x$as_myself" = x; then 16235 as_myself=$0 16236fi 16237if test ! -f "$as_myself"; then 16238 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16239 exit 1 16240fi 16241 16242# Unset variables that we do not need and which cause bugs (e.g. in 16243# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16244# suppresses any "Segmentation fault" message there. '((' could 16245# trigger a bug in pdksh 5.2.14. 16246for as_var in BASH_ENV ENV MAIL MAILPATH 16247do eval test x\${$as_var+set} = xset \ 16248 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16249done 16250PS1='$ ' 16251PS2='> ' 16252PS4='+ ' 16253 16254# NLS nuisances. 16255LC_ALL=C 16256export LC_ALL 16257LANGUAGE=C 16258export LANGUAGE 16259 16260# CDPATH. 16261(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16262 16263 16264# as_fn_error STATUS ERROR [LINENO LOG_FD] 16265# ---------------------------------------- 16266# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16267# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16268# script with STATUS, using 1 if that was 0. 16269as_fn_error () 16270{ 16271 as_status=$1; test $as_status -eq 0 && as_status=1 16272 if test "$4"; then 16273 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16274 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16275 fi 16276 $as_echo "$as_me: error: $2" >&2 16277 as_fn_exit $as_status 16278} # as_fn_error 16279 16280 16281# as_fn_set_status STATUS 16282# ----------------------- 16283# Set $? to STATUS, without forking. 16284as_fn_set_status () 16285{ 16286 return $1 16287} # as_fn_set_status 16288 16289# as_fn_exit STATUS 16290# ----------------- 16291# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16292as_fn_exit () 16293{ 16294 set +e 16295 as_fn_set_status $1 16296 exit $1 16297} # as_fn_exit 16298 16299# as_fn_unset VAR 16300# --------------- 16301# Portably unset VAR. 16302as_fn_unset () 16303{ 16304 { eval $1=; unset $1;} 16305} 16306as_unset=as_fn_unset 16307# as_fn_append VAR VALUE 16308# ---------------------- 16309# Append the text in VALUE to the end of the definition contained in VAR. Take 16310# advantage of any shell optimizations that allow amortized linear growth over 16311# repeated appends, instead of the typical quadratic growth present in naive 16312# implementations. 16313if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16314 eval 'as_fn_append () 16315 { 16316 eval $1+=\$2 16317 }' 16318else 16319 as_fn_append () 16320 { 16321 eval $1=\$$1\$2 16322 } 16323fi # as_fn_append 16324 16325# as_fn_arith ARG... 16326# ------------------ 16327# Perform arithmetic evaluation on the ARGs, and store the result in the 16328# global $as_val. Take advantage of shells that can avoid forks. The arguments 16329# must be portable across $(()) and expr. 16330if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16331 eval 'as_fn_arith () 16332 { 16333 as_val=$(( $* )) 16334 }' 16335else 16336 as_fn_arith () 16337 { 16338 as_val=`expr "$@" || test $? -eq 1` 16339 } 16340fi # as_fn_arith 16341 16342 16343if expr a : '\(a\)' >/dev/null 2>&1 && 16344 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16345 as_expr=expr 16346else 16347 as_expr=false 16348fi 16349 16350if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16351 as_basename=basename 16352else 16353 as_basename=false 16354fi 16355 16356if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16357 as_dirname=dirname 16358else 16359 as_dirname=false 16360fi 16361 16362as_me=`$as_basename -- "$0" || 16363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16364 X"$0" : 'X\(//\)$' \| \ 16365 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16366$as_echo X/"$0" | 16367 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16368 s//\1/ 16369 q 16370 } 16371 /^X\/\(\/\/\)$/{ 16372 s//\1/ 16373 q 16374 } 16375 /^X\/\(\/\).*/{ 16376 s//\1/ 16377 q 16378 } 16379 s/.*/./; q'` 16380 16381# Avoid depending upon Character Ranges. 16382as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16383as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16384as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16385as_cr_digits='0123456789' 16386as_cr_alnum=$as_cr_Letters$as_cr_digits 16387 16388ECHO_C= ECHO_N= ECHO_T= 16389case `echo -n x` in #((((( 16390-n*) 16391 case `echo 'xy\c'` in 16392 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16393 xy) ECHO_C='\c';; 16394 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16395 ECHO_T=' ';; 16396 esac;; 16397*) 16398 ECHO_N='-n';; 16399esac 16400 16401rm -f conf$$ conf$$.exe conf$$.file 16402if test -d conf$$.dir; then 16403 rm -f conf$$.dir/conf$$.file 16404else 16405 rm -f conf$$.dir 16406 mkdir conf$$.dir 2>/dev/null 16407fi 16408if (echo >conf$$.file) 2>/dev/null; then 16409 if ln -s conf$$.file conf$$ 2>/dev/null; then 16410 as_ln_s='ln -s' 16411 # ... but there are two gotchas: 16412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16414 # In both cases, we have to default to `cp -pR'. 16415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16416 as_ln_s='cp -pR' 16417 elif ln conf$$.file conf$$ 2>/dev/null; then 16418 as_ln_s=ln 16419 else 16420 as_ln_s='cp -pR' 16421 fi 16422else 16423 as_ln_s='cp -pR' 16424fi 16425rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16426rmdir conf$$.dir 2>/dev/null 16427 16428 16429# as_fn_mkdir_p 16430# ------------- 16431# Create "$as_dir" as a directory, including parents if necessary. 16432as_fn_mkdir_p () 16433{ 16434 16435 case $as_dir in #( 16436 -*) as_dir=./$as_dir;; 16437 esac 16438 test -d "$as_dir" || eval $as_mkdir_p || { 16439 as_dirs= 16440 while :; do 16441 case $as_dir in #( 16442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16443 *) as_qdir=$as_dir;; 16444 esac 16445 as_dirs="'$as_qdir' $as_dirs" 16446 as_dir=`$as_dirname -- "$as_dir" || 16447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16448 X"$as_dir" : 'X\(//\)[^/]' \| \ 16449 X"$as_dir" : 'X\(//\)$' \| \ 16450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16451$as_echo X"$as_dir" | 16452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16453 s//\1/ 16454 q 16455 } 16456 /^X\(\/\/\)[^/].*/{ 16457 s//\1/ 16458 q 16459 } 16460 /^X\(\/\/\)$/{ 16461 s//\1/ 16462 q 16463 } 16464 /^X\(\/\).*/{ 16465 s//\1/ 16466 q 16467 } 16468 s/.*/./; q'` 16469 test -d "$as_dir" && break 16470 done 16471 test -z "$as_dirs" || eval "mkdir $as_dirs" 16472 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16473 16474 16475} # as_fn_mkdir_p 16476if mkdir -p . 2>/dev/null; then 16477 as_mkdir_p='mkdir -p "$as_dir"' 16478else 16479 test -d ./-p && rmdir ./-p 16480 as_mkdir_p=false 16481fi 16482 16483 16484# as_fn_executable_p FILE 16485# ----------------------- 16486# Test if FILE is an executable regular file. 16487as_fn_executable_p () 16488{ 16489 test -f "$1" && test -x "$1" 16490} # as_fn_executable_p 16491as_test_x='test -x' 16492as_executable_p=as_fn_executable_p 16493 16494# Sed expression to map a string onto a valid CPP name. 16495as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16496 16497# Sed expression to map a string onto a valid variable name. 16498as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16499 16500 16501exec 6>&1 16502## ----------------------------------- ## 16503## Main body of $CONFIG_STATUS script. ## 16504## ----------------------------------- ## 16505_ASEOF 16506test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16507 16508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16509# Save the log message, to keep $0 and so on meaningful, and to 16510# report actual input values of CONFIG_FILES etc. instead of their 16511# values after options handling. 16512ac_log=" 16513This file was extended by EXIF library $as_me 0.6.23, which was 16514generated by GNU Autoconf 2.69. Invocation command line was 16515 16516 CONFIG_FILES = $CONFIG_FILES 16517 CONFIG_HEADERS = $CONFIG_HEADERS 16518 CONFIG_LINKS = $CONFIG_LINKS 16519 CONFIG_COMMANDS = $CONFIG_COMMANDS 16520 $ $0 $@ 16521 16522on `(hostname || uname -n) 2>/dev/null | sed 1q` 16523" 16524 16525_ACEOF 16526 16527case $ac_config_files in *" 16528"*) set x $ac_config_files; shift; ac_config_files=$*;; 16529esac 16530 16531case $ac_config_headers in *" 16532"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16533esac 16534 16535 16536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16537# Files that config.status was made for. 16538config_files="$ac_config_files" 16539config_headers="$ac_config_headers" 16540config_commands="$ac_config_commands" 16541 16542_ACEOF 16543 16544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16545ac_cs_usage="\ 16546\`$as_me' instantiates files and other configuration actions 16547from templates according to the current configuration. Unless the files 16548and actions are specified as TAGs, all are instantiated by default. 16549 16550Usage: $0 [OPTION]... [TAG]... 16551 16552 -h, --help print this help, then exit 16553 -V, --version print version number and configuration settings, then exit 16554 --config print configuration, then exit 16555 -q, --quiet, --silent 16556 do not print progress messages 16557 -d, --debug don't remove temporary files 16558 --recheck update $as_me by reconfiguring in the same conditions 16559 --file=FILE[:TEMPLATE] 16560 instantiate the configuration file FILE 16561 --header=FILE[:TEMPLATE] 16562 instantiate the configuration header FILE 16563 16564Configuration files: 16565$config_files 16566 16567Configuration headers: 16568$config_headers 16569 16570Configuration commands: 16571$config_commands 16572 16573Report bugs to <libexif-devel@lists.sourceforge.net>. 16574EXIF library home page: <https://libexif.github.io/>." 16575 16576_ACEOF 16577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16578ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16579ac_cs_version="\\ 16580EXIF library config.status 0.6.23 16581configured by $0, generated by GNU Autoconf 2.69, 16582 with options \\"\$ac_cs_config\\" 16583 16584Copyright (C) 2012 Free Software Foundation, Inc. 16585This config.status script is free software; the Free Software Foundation 16586gives unlimited permission to copy, distribute and modify it." 16587 16588ac_pwd='$ac_pwd' 16589srcdir='$srcdir' 16590INSTALL='$INSTALL' 16591MKDIR_P='$MKDIR_P' 16592AWK='$AWK' 16593test -n "\$AWK" || AWK=awk 16594_ACEOF 16595 16596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16597# The default lists apply if the user does not specify any file. 16598ac_need_defaults=: 16599while test $# != 0 16600do 16601 case $1 in 16602 --*=?*) 16603 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16605 ac_shift=: 16606 ;; 16607 --*=) 16608 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16609 ac_optarg= 16610 ac_shift=: 16611 ;; 16612 *) 16613 ac_option=$1 16614 ac_optarg=$2 16615 ac_shift=shift 16616 ;; 16617 esac 16618 16619 case $ac_option in 16620 # Handling of the options. 16621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16622 ac_cs_recheck=: ;; 16623 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16624 $as_echo "$ac_cs_version"; exit ;; 16625 --config | --confi | --conf | --con | --co | --c ) 16626 $as_echo "$ac_cs_config"; exit ;; 16627 --debug | --debu | --deb | --de | --d | -d ) 16628 debug=: ;; 16629 --file | --fil | --fi | --f ) 16630 $ac_shift 16631 case $ac_optarg in 16632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16633 '') as_fn_error $? "missing file argument" ;; 16634 esac 16635 as_fn_append CONFIG_FILES " '$ac_optarg'" 16636 ac_need_defaults=false;; 16637 --header | --heade | --head | --hea ) 16638 $ac_shift 16639 case $ac_optarg in 16640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16641 esac 16642 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16643 ac_need_defaults=false;; 16644 --he | --h) 16645 # Conflict between --help and --header 16646 as_fn_error $? "ambiguous option: \`$1' 16647Try \`$0 --help' for more information.";; 16648 --help | --hel | -h ) 16649 $as_echo "$ac_cs_usage"; exit ;; 16650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16651 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16652 ac_cs_silent=: ;; 16653 16654 # This is an error. 16655 -*) as_fn_error $? "unrecognized option: \`$1' 16656Try \`$0 --help' for more information." ;; 16657 16658 *) as_fn_append ac_config_targets " $1" 16659 ac_need_defaults=false ;; 16660 16661 esac 16662 shift 16663done 16664 16665ac_configure_extra_args= 16666 16667if $ac_cs_silent; then 16668 exec 6>/dev/null 16669 ac_configure_extra_args="$ac_configure_extra_args --silent" 16670fi 16671 16672_ACEOF 16673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16674if \$ac_cs_recheck; then 16675 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16676 shift 16677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16678 CONFIG_SHELL='$SHELL' 16679 export CONFIG_SHELL 16680 exec "\$@" 16681fi 16682 16683_ACEOF 16684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16685exec 5>>config.log 16686{ 16687 echo 16688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16689## Running $as_me. ## 16690_ASBOX 16691 $as_echo "$ac_log" 16692} >&5 16693 16694_ACEOF 16695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16696# 16697# INIT-COMMANDS 16698# 16699AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16700 16701 16702# The HP-UX ksh and POSIX shell print the target directory to stdout 16703# if CDPATH is set. 16704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16705 16706sed_quote_subst='$sed_quote_subst' 16707double_quote_subst='$double_quote_subst' 16708delay_variable_subst='$delay_variable_subst' 16709macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16710macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16711AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 16712DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16713OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16714enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16715enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16716pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16717enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16718shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16719SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16720ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16721PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16722host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16723host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16724host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16725build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16726build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16727build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16728SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16729Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16730GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16731EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16732FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16733LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16734NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16735LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16736max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16737ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16738exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16739lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16740lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16741lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16742lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16743lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16744reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16745reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16746deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16747file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16748file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16749want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16750sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16751AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16752AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16753archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16754STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16755RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16756old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16757old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16758old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16759lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16760CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16761CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16762compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16763GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16764lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16765lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16766lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16767lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16768lt_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"`' 16769lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16770nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16771lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16772lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16773objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16774MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16775lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16776lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16777lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16778lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16779lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16780need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16781MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16782DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16783NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16784LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16785OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16786OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16787libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16788shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16789extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16790archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16791enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16792export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16793whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16794compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16795old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16796old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16797archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16798archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16799module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16800module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16801with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16802allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16803no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16804hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16805hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16806hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16807hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16808hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16809hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16810hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16811inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16812link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16813always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16814export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16815exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16816include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16817prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16818postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16819file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16820variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16821need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16822need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16823version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16824runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16825shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16826shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16827libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16828library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16829soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16830install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16831postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16832postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16833finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16834finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16835hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16836sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16837configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16838configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16839hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16840enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16841enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16842enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16843old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16844striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16845 16846LTCC='$LTCC' 16847LTCFLAGS='$LTCFLAGS' 16848compiler='$compiler_DEFAULT' 16849 16850# A function that is used when there is no print builtin or printf. 16851func_fallback_echo () 16852{ 16853 eval 'cat <<_LTECHO_EOF 16854\$1 16855_LTECHO_EOF' 16856} 16857 16858# Quote evaled strings. 16859for var in AS \ 16860DLLTOOL \ 16861OBJDUMP \ 16862SHELL \ 16863ECHO \ 16864PATH_SEPARATOR \ 16865SED \ 16866GREP \ 16867EGREP \ 16868FGREP \ 16869LD \ 16870NM \ 16871LN_S \ 16872lt_SP2NL \ 16873lt_NL2SP \ 16874reload_flag \ 16875deplibs_check_method \ 16876file_magic_cmd \ 16877file_magic_glob \ 16878want_nocaseglob \ 16879sharedlib_from_linklib_cmd \ 16880AR \ 16881AR_FLAGS \ 16882archiver_list_spec \ 16883STRIP \ 16884RANLIB \ 16885CC \ 16886CFLAGS \ 16887compiler \ 16888lt_cv_sys_global_symbol_pipe \ 16889lt_cv_sys_global_symbol_to_cdecl \ 16890lt_cv_sys_global_symbol_to_import \ 16891lt_cv_sys_global_symbol_to_c_name_address \ 16892lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16893lt_cv_nm_interface \ 16894nm_file_list_spec \ 16895lt_cv_truncate_bin \ 16896lt_prog_compiler_no_builtin_flag \ 16897lt_prog_compiler_pic \ 16898lt_prog_compiler_wl \ 16899lt_prog_compiler_static \ 16900lt_cv_prog_compiler_c_o \ 16901need_locks \ 16902MANIFEST_TOOL \ 16903DSYMUTIL \ 16904NMEDIT \ 16905LIPO \ 16906OTOOL \ 16907OTOOL64 \ 16908shrext_cmds \ 16909export_dynamic_flag_spec \ 16910whole_archive_flag_spec \ 16911compiler_needs_object \ 16912with_gnu_ld \ 16913allow_undefined_flag \ 16914no_undefined_flag \ 16915hardcode_libdir_flag_spec \ 16916hardcode_libdir_separator \ 16917exclude_expsyms \ 16918include_expsyms \ 16919file_list_spec \ 16920variables_saved_for_relink \ 16921libname_spec \ 16922library_names_spec \ 16923soname_spec \ 16924install_override_mode \ 16925finish_eval \ 16926old_striplib \ 16927striplib; do 16928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16929 *[\\\\\\\`\\"\\\$]*) 16930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16931 ;; 16932 *) 16933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16934 ;; 16935 esac 16936done 16937 16938# Double-quote double-evaled strings. 16939for var in reload_cmds \ 16940old_postinstall_cmds \ 16941old_postuninstall_cmds \ 16942old_archive_cmds \ 16943extract_expsyms_cmds \ 16944old_archive_from_new_cmds \ 16945old_archive_from_expsyms_cmds \ 16946archive_cmds \ 16947archive_expsym_cmds \ 16948module_cmds \ 16949module_expsym_cmds \ 16950export_symbols_cmds \ 16951prelink_cmds \ 16952postlink_cmds \ 16953postinstall_cmds \ 16954postuninstall_cmds \ 16955finish_cmds \ 16956sys_lib_search_path_spec \ 16957configure_time_dlsearch_path \ 16958configure_time_lt_sys_library_path; do 16959 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16960 *[\\\\\\\`\\"\\\$]*) 16961 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16962 ;; 16963 *) 16964 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16965 ;; 16966 esac 16967done 16968 16969ac_aux_dir='$ac_aux_dir' 16970 16971# See if we are running on zsh, and set the options that allow our 16972# commands through without removal of \ escapes INIT. 16973if test -n "\${ZSH_VERSION+set}"; then 16974 setopt NO_GLOB_SUBST 16975fi 16976 16977 16978 PACKAGE='$PACKAGE' 16979 VERSION='$VERSION' 16980 RM='$RM' 16981 ofile='$ofile' 16982 16983 16984 16985# Capture the value of obsolete ALL_LINGUAS because we need it to compute 16986 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 16987 # from automake < 1.5. 16988 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 16989 # Capture the value of LINGUAS because we need it to compute CATALOGS. 16990 LINGUAS="${LINGUAS-%UNSET%}" 16991 16992 16993_ACEOF 16994 16995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16996 16997# Handling of arguments. 16998for ac_config_target in $ac_config_targets 16999do 17000 case $ac_config_target in 17001 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17002 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17003 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17004 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 17005 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 17006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17007 "libexif.spec") CONFIG_FILES="$CONFIG_FILES libexif.spec" ;; 17008 "libexif/Makefile") CONFIG_FILES="$CONFIG_FILES libexif/Makefile" ;; 17009 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 17010 "test/nls/Makefile") CONFIG_FILES="$CONFIG_FILES test/nls/Makefile" ;; 17011 "m4m/Makefile") CONFIG_FILES="$CONFIG_FILES m4m/Makefile" ;; 17012 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17013 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 17014 "doc/Doxyfile-internals") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile-internals" ;; 17015 "libexif.pc") CONFIG_FILES="$CONFIG_FILES libexif.pc" ;; 17016 "libexif-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libexif-uninstalled.pc" ;; 17017 "binary-dist/Makefile") CONFIG_FILES="$CONFIG_FILES binary-dist/Makefile" ;; 17018 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 17019 "contrib/examples/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/examples/Makefile" ;; 17020 17021 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17022 esac 17023done 17024 17025 17026# If the user did not use the arguments to specify the items to instantiate, 17027# then the envvar interface is used. Set only those that are not. 17028# We use the long form for the default assignment because of an extremely 17029# bizarre bug on SunOS 4.1.3. 17030if $ac_need_defaults; then 17031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17034fi 17035 17036# Have a temporary directory for convenience. Make it in the build tree 17037# simply because there is no reason against having it here, and in addition, 17038# creating and moving files from /tmp can sometimes cause problems. 17039# Hook for its removal unless debugging. 17040# Note that there is a small window in which the directory will not be cleaned: 17041# after its creation but before its name has been assigned to `$tmp'. 17042$debug || 17043{ 17044 tmp= ac_tmp= 17045 trap 'exit_status=$? 17046 : "${ac_tmp:=$tmp}" 17047 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17048' 0 17049 trap 'as_fn_exit 1' 1 2 13 15 17050} 17051# Create a (secure) tmp directory for tmp files. 17052 17053{ 17054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17055 test -d "$tmp" 17056} || 17057{ 17058 tmp=./conf$$-$RANDOM 17059 (umask 077 && mkdir "$tmp") 17060} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17061ac_tmp=$tmp 17062 17063# Set up the scripts for CONFIG_FILES section. 17064# No need to generate them if there are no CONFIG_FILES. 17065# This happens for instance with `./config.status config.h'. 17066if test -n "$CONFIG_FILES"; then 17067 17068 17069ac_cr=`echo X | tr X '\015'` 17070# On cygwin, bash can eat \r inside `` if the user requested igncr. 17071# But we know of no other shell where ac_cr would be empty at this 17072# point, so we can use a bashism as a fallback. 17073if test "x$ac_cr" = x; then 17074 eval ac_cr=\$\'\\r\' 17075fi 17076ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17077if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17078 ac_cs_awk_cr='\\r' 17079else 17080 ac_cs_awk_cr=$ac_cr 17081fi 17082 17083echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17084_ACEOF 17085 17086 17087{ 17088 echo "cat >conf$$subs.awk <<_ACEOF" && 17089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17090 echo "_ACEOF" 17091} >conf$$subs.sh || 17092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17093ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17094ac_delim='%!_!# ' 17095for ac_last_try in false false false false false :; do 17096 . ./conf$$subs.sh || 17097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17098 17099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17100 if test $ac_delim_n = $ac_delim_num; then 17101 break 17102 elif $ac_last_try; then 17103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17104 else 17105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17106 fi 17107done 17108rm -f conf$$subs.sh 17109 17110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17111cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17112_ACEOF 17113sed -n ' 17114h 17115s/^/S["/; s/!.*/"]=/ 17116p 17117g 17118s/^[^!]*!// 17119:repl 17120t repl 17121s/'"$ac_delim"'$// 17122t delim 17123:nl 17124h 17125s/\(.\{148\}\)..*/\1/ 17126t more1 17127s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17128p 17129n 17130b repl 17131:more1 17132s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17133p 17134g 17135s/.\{148\}// 17136t nl 17137:delim 17138h 17139s/\(.\{148\}\)..*/\1/ 17140t more2 17141s/["\\]/\\&/g; s/^/"/; s/$/"/ 17142p 17143b 17144:more2 17145s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17146p 17147g 17148s/.\{148\}// 17149t delim 17150' <conf$$subs.awk | sed ' 17151/^[^""]/{ 17152 N 17153 s/\n// 17154} 17155' >>$CONFIG_STATUS || ac_write_fail=1 17156rm -f conf$$subs.awk 17157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17158_ACAWK 17159cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17160 for (key in S) S_is_set[key] = 1 17161 FS = "" 17162 17163} 17164{ 17165 line = $ 0 17166 nfields = split(line, field, "@") 17167 substed = 0 17168 len = length(field[1]) 17169 for (i = 2; i < nfields; i++) { 17170 key = field[i] 17171 keylen = length(key) 17172 if (S_is_set[key]) { 17173 value = S[key] 17174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17175 len += length(value) + length(field[++i]) 17176 substed = 1 17177 } else 17178 len += 1 + keylen 17179 } 17180 17181 print line 17182} 17183 17184_ACAWK 17185_ACEOF 17186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17187if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17189else 17190 cat 17191fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17192 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17193_ACEOF 17194 17195# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17196# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17197# trailing colons and then remove the whole line if VPATH becomes empty 17198# (actually we leave an empty line to preserve line numbers). 17199if test "x$srcdir" = x.; then 17200 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17201h 17202s/// 17203s/^/:/ 17204s/[ ]*$/:/ 17205s/:\$(srcdir):/:/g 17206s/:\${srcdir}:/:/g 17207s/:@srcdir@:/:/g 17208s/^:*// 17209s/:*$// 17210x 17211s/\(=[ ]*\).*/\1/ 17212G 17213s/\n// 17214s/^[^=]*=[ ]*$// 17215}' 17216fi 17217 17218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17219fi # test -n "$CONFIG_FILES" 17220 17221# Set up the scripts for CONFIG_HEADERS section. 17222# No need to generate them if there are no CONFIG_HEADERS. 17223# This happens for instance with `./config.status Makefile'. 17224if test -n "$CONFIG_HEADERS"; then 17225cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17226BEGIN { 17227_ACEOF 17228 17229# Transform confdefs.h into an awk script `defines.awk', embedded as 17230# here-document in config.status, that substitutes the proper values into 17231# config.h.in to produce config.h. 17232 17233# Create a delimiter string that does not exist in confdefs.h, to ease 17234# handling of long lines. 17235ac_delim='%!_!# ' 17236for ac_last_try in false false :; do 17237 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17238 if test -z "$ac_tt"; then 17239 break 17240 elif $ac_last_try; then 17241 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17242 else 17243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17244 fi 17245done 17246 17247# For the awk script, D is an array of macro values keyed by name, 17248# likewise P contains macro parameters if any. Preserve backslash 17249# newline sequences. 17250 17251ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17252sed -n ' 17253s/.\{148\}/&'"$ac_delim"'/g 17254t rset 17255:rset 17256s/^[ ]*#[ ]*define[ ][ ]*/ / 17257t def 17258d 17259:def 17260s/\\$// 17261t bsnl 17262s/["\\]/\\&/g 17263s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17264D["\1"]=" \3"/p 17265s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17266d 17267:bsnl 17268s/["\\]/\\&/g 17269s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17270D["\1"]=" \3\\\\\\n"\\/p 17271t cont 17272s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17273t cont 17274d 17275:cont 17276n 17277s/.\{148\}/&'"$ac_delim"'/g 17278t clear 17279:clear 17280s/\\$// 17281t bsnlc 17282s/["\\]/\\&/g; s/^/"/; s/$/"/p 17283d 17284:bsnlc 17285s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17286b cont 17287' <confdefs.h | sed ' 17288s/'"$ac_delim"'/"\\\ 17289"/g' >>$CONFIG_STATUS || ac_write_fail=1 17290 17291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17292 for (key in D) D_is_set[key] = 1 17293 FS = "" 17294} 17295/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17296 line = \$ 0 17297 split(line, arg, " ") 17298 if (arg[1] == "#") { 17299 defundef = arg[2] 17300 mac1 = arg[3] 17301 } else { 17302 defundef = substr(arg[1], 2) 17303 mac1 = arg[2] 17304 } 17305 split(mac1, mac2, "(") #) 17306 macro = mac2[1] 17307 prefix = substr(line, 1, index(line, defundef) - 1) 17308 if (D_is_set[macro]) { 17309 # Preserve the white space surrounding the "#". 17310 print prefix "define", macro P[macro] D[macro] 17311 next 17312 } else { 17313 # Replace #undef with comments. This is necessary, for example, 17314 # in the case of _POSIX_SOURCE, which is predefined and required 17315 # on some systems where configure will not decide to define it. 17316 if (defundef == "undef") { 17317 print "/*", prefix defundef, macro, "*/" 17318 next 17319 } 17320 } 17321} 17322{ print } 17323_ACAWK 17324_ACEOF 17325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17326 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17327fi # test -n "$CONFIG_HEADERS" 17328 17329 17330eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17331shift 17332for ac_tag 17333do 17334 case $ac_tag in 17335 :[FHLC]) ac_mode=$ac_tag; continue;; 17336 esac 17337 case $ac_mode$ac_tag in 17338 :[FHL]*:*);; 17339 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17340 :[FH]-) ac_tag=-:-;; 17341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17342 esac 17343 ac_save_IFS=$IFS 17344 IFS=: 17345 set x $ac_tag 17346 IFS=$ac_save_IFS 17347 shift 17348 ac_file=$1 17349 shift 17350 17351 case $ac_mode in 17352 :L) ac_source=$1;; 17353 :[FH]) 17354 ac_file_inputs= 17355 for ac_f 17356 do 17357 case $ac_f in 17358 -) ac_f="$ac_tmp/stdin";; 17359 *) # Look for the file first in the build tree, then in the source tree 17360 # (if the path is not absolute). The absolute path cannot be DOS-style, 17361 # because $ac_f cannot contain `:'. 17362 test -f "$ac_f" || 17363 case $ac_f in 17364 [\\/$]*) false;; 17365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17366 esac || 17367 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17368 esac 17369 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17370 as_fn_append ac_file_inputs " '$ac_f'" 17371 done 17372 17373 # Let's still pretend it is `configure' which instantiates (i.e., don't 17374 # use $as_me), people would be surprised to read: 17375 # /* config.h. Generated by config.status. */ 17376 configure_input='Generated from '` 17377 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17378 `' by configure.' 17379 if test x"$ac_file" != x-; then 17380 configure_input="$ac_file. $configure_input" 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17382$as_echo "$as_me: creating $ac_file" >&6;} 17383 fi 17384 # Neutralize special characters interpreted by sed in replacement strings. 17385 case $configure_input in #( 17386 *\&* | *\|* | *\\* ) 17387 ac_sed_conf_input=`$as_echo "$configure_input" | 17388 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17389 *) ac_sed_conf_input=$configure_input;; 17390 esac 17391 17392 case $ac_tag in 17393 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17395 esac 17396 ;; 17397 esac 17398 17399 ac_dir=`$as_dirname -- "$ac_file" || 17400$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17401 X"$ac_file" : 'X\(//\)[^/]' \| \ 17402 X"$ac_file" : 'X\(//\)$' \| \ 17403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17404$as_echo X"$ac_file" | 17405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17406 s//\1/ 17407 q 17408 } 17409 /^X\(\/\/\)[^/].*/{ 17410 s//\1/ 17411 q 17412 } 17413 /^X\(\/\/\)$/{ 17414 s//\1/ 17415 q 17416 } 17417 /^X\(\/\).*/{ 17418 s//\1/ 17419 q 17420 } 17421 s/.*/./; q'` 17422 as_dir="$ac_dir"; as_fn_mkdir_p 17423 ac_builddir=. 17424 17425case "$ac_dir" in 17426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17427*) 17428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17429 # A ".." for each directory in $ac_dir_suffix. 17430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17431 case $ac_top_builddir_sub in 17432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17434 esac ;; 17435esac 17436ac_abs_top_builddir=$ac_pwd 17437ac_abs_builddir=$ac_pwd$ac_dir_suffix 17438# for backward compatibility: 17439ac_top_builddir=$ac_top_build_prefix 17440 17441case $srcdir in 17442 .) # We are building in place. 17443 ac_srcdir=. 17444 ac_top_srcdir=$ac_top_builddir_sub 17445 ac_abs_top_srcdir=$ac_pwd ;; 17446 [\\/]* | ?:[\\/]* ) # Absolute name. 17447 ac_srcdir=$srcdir$ac_dir_suffix; 17448 ac_top_srcdir=$srcdir 17449 ac_abs_top_srcdir=$srcdir ;; 17450 *) # Relative name. 17451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17452 ac_top_srcdir=$ac_top_build_prefix$srcdir 17453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17454esac 17455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17456 17457 17458 case $ac_mode in 17459 :F) 17460 # 17461 # CONFIG_FILE 17462 # 17463 17464 case $INSTALL in 17465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17467 esac 17468 ac_MKDIR_P=$MKDIR_P 17469 case $MKDIR_P in 17470 [\\/$]* | ?:[\\/]* ) ;; 17471 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17472 esac 17473_ACEOF 17474 17475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17476# If the template does not know about datarootdir, expand it. 17477# FIXME: This hack should be removed a few years after 2.60. 17478ac_datarootdir_hack=; ac_datarootdir_seen= 17479ac_sed_dataroot=' 17480/datarootdir/ { 17481 p 17482 q 17483} 17484/@datadir@/p 17485/@docdir@/p 17486/@infodir@/p 17487/@localedir@/p 17488/@mandir@/p' 17489case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17490*datarootdir*) ac_datarootdir_seen=yes;; 17491*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17493$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17494_ACEOF 17495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17496 ac_datarootdir_hack=' 17497 s&@datadir@&$datadir&g 17498 s&@docdir@&$docdir&g 17499 s&@infodir@&$infodir&g 17500 s&@localedir@&$localedir&g 17501 s&@mandir@&$mandir&g 17502 s&\\\${datarootdir}&$datarootdir&g' ;; 17503esac 17504_ACEOF 17505 17506# Neutralize VPATH when `$srcdir' = `.'. 17507# Shell code in configure.ac might set extrasub. 17508# FIXME: do we really want to maintain this feature? 17509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17510ac_sed_extra="$ac_vpsub 17511$extrasub 17512_ACEOF 17513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17514:t 17515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17516s|@configure_input@|$ac_sed_conf_input|;t t 17517s&@top_builddir@&$ac_top_builddir_sub&;t t 17518s&@top_build_prefix@&$ac_top_build_prefix&;t t 17519s&@srcdir@&$ac_srcdir&;t t 17520s&@abs_srcdir@&$ac_abs_srcdir&;t t 17521s&@top_srcdir@&$ac_top_srcdir&;t t 17522s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17523s&@builddir@&$ac_builddir&;t t 17524s&@abs_builddir@&$ac_abs_builddir&;t t 17525s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17526s&@INSTALL@&$ac_INSTALL&;t t 17527s&@MKDIR_P@&$ac_MKDIR_P&;t t 17528$ac_datarootdir_hack 17529" 17530eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17531 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17532 17533test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17534 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17536 "$ac_tmp/out"`; test -z "$ac_out"; } && 17537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17538which seems to be undefined. Please make sure it is defined" >&5 17539$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17540which seems to be undefined. Please make sure it is defined" >&2;} 17541 17542 rm -f "$ac_tmp/stdin" 17543 case $ac_file in 17544 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17545 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17546 esac \ 17547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17548 ;; 17549 :H) 17550 # 17551 # CONFIG_HEADER 17552 # 17553 if test x"$ac_file" != x-; then 17554 { 17555 $as_echo "/* $configure_input */" \ 17556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17557 } >"$ac_tmp/config.h" \ 17558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17559 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17561$as_echo "$as_me: $ac_file is unchanged" >&6;} 17562 else 17563 rm -f "$ac_file" 17564 mv "$ac_tmp/config.h" "$ac_file" \ 17565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17566 fi 17567 else 17568 $as_echo "/* $configure_input */" \ 17569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17570 || as_fn_error $? "could not create -" "$LINENO" 5 17571 fi 17572# Compute "$ac_file"'s index in $config_headers. 17573_am_arg="$ac_file" 17574_am_stamp_count=1 17575for _am_header in $config_headers :; do 17576 case $_am_header in 17577 $_am_arg | $_am_arg:* ) 17578 break ;; 17579 * ) 17580 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17581 esac 17582done 17583echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17584$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17585 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17586 X"$_am_arg" : 'X\(//\)$' \| \ 17587 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17588$as_echo X"$_am_arg" | 17589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17590 s//\1/ 17591 q 17592 } 17593 /^X\(\/\/\)[^/].*/{ 17594 s//\1/ 17595 q 17596 } 17597 /^X\(\/\/\)$/{ 17598 s//\1/ 17599 q 17600 } 17601 /^X\(\/\).*/{ 17602 s//\1/ 17603 q 17604 } 17605 s/.*/./; q'`/stamp-h$_am_stamp_count 17606 ;; 17607 17608 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17609$as_echo "$as_me: executing $ac_file commands" >&6;} 17610 ;; 17611 esac 17612 17613 17614 case $ac_file$ac_mode in 17615 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17616 # Older Autoconf quotes --file arguments for eval, but not when files 17617 # are listed without --file. Let's play safe and only enable the eval 17618 # if we detect the quoting. 17619 # TODO: see whether this extra hack can be removed once we start 17620 # requiring Autoconf 2.70 or later. 17621 case $CONFIG_FILES in #( 17622 *\'*) : 17623 eval set x "$CONFIG_FILES" ;; #( 17624 *) : 17625 set x $CONFIG_FILES ;; #( 17626 *) : 17627 ;; 17628esac 17629 shift 17630 # Used to flag and report bootstrapping failures. 17631 am_rc=0 17632 for am_mf 17633 do 17634 # Strip MF so we end up with the name of the file. 17635 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17636 # Check whether this is an Automake generated Makefile which includes 17637 # dependency-tracking related rules and includes. 17638 # Grep'ing the whole file directly is not great: AIX grep has a line 17639 # limit of 2048, but all sed's we know have understand at least 4000. 17640 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17641 || continue 17642 am_dirpart=`$as_dirname -- "$am_mf" || 17643$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17644 X"$am_mf" : 'X\(//\)[^/]' \| \ 17645 X"$am_mf" : 'X\(//\)$' \| \ 17646 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17647$as_echo X"$am_mf" | 17648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17649 s//\1/ 17650 q 17651 } 17652 /^X\(\/\/\)[^/].*/{ 17653 s//\1/ 17654 q 17655 } 17656 /^X\(\/\/\)$/{ 17657 s//\1/ 17658 q 17659 } 17660 /^X\(\/\).*/{ 17661 s//\1/ 17662 q 17663 } 17664 s/.*/./; q'` 17665 am_filepart=`$as_basename -- "$am_mf" || 17666$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17667 X"$am_mf" : 'X\(//\)$' \| \ 17668 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17669$as_echo X/"$am_mf" | 17670 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17671 s//\1/ 17672 q 17673 } 17674 /^X\/\(\/\/\)$/{ 17675 s//\1/ 17676 q 17677 } 17678 /^X\/\(\/\).*/{ 17679 s//\1/ 17680 q 17681 } 17682 s/.*/./; q'` 17683 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17684 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17685 | $MAKE -f - am--depfiles" >&5 17686 (cd "$am_dirpart" \ 17687 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17688 | $MAKE -f - am--depfiles) >&5 2>&5 17689 ac_status=$? 17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17691 (exit $ac_status); } || am_rc=$? 17692 done 17693 if test $am_rc -ne 0; then 17694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17696as_fn_error $? "Something went wrong bootstrapping makefile fragments 17697 for automatic dependency tracking. If GNU make was not used, consider 17698 re-running the configure script with MAKE=\"gmake\" (or whatever is 17699 necessary). You can also try re-running configure with the 17700 '--disable-dependency-tracking' option to at least be able to build 17701 the package (albeit without support for automatic dependency tracking). 17702See \`config.log' for more details" "$LINENO" 5; } 17703 fi 17704 { am_dirpart=; unset am_dirpart;} 17705 { am_filepart=; unset am_filepart;} 17706 { am_mf=; unset am_mf;} 17707 { am_rc=; unset am_rc;} 17708 rm -f conftest-deps.mk 17709} 17710 ;; 17711 "libtool":C) 17712 17713 # See if we are running on zsh, and set the options that allow our 17714 # commands through without removal of \ escapes. 17715 if test -n "${ZSH_VERSION+set}"; then 17716 setopt NO_GLOB_SUBST 17717 fi 17718 17719 cfgfile=${ofile}T 17720 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17721 $RM "$cfgfile" 17722 17723 cat <<_LT_EOF >> "$cfgfile" 17724#! $SHELL 17725# Generated automatically by $as_me ($PACKAGE) $VERSION 17726# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17727 17728# Provide generalized library-building support services. 17729# Written by Gordon Matzigkeit, 1996 17730 17731# Copyright (C) 2014 Free Software Foundation, Inc. 17732# This is free software; see the source for copying conditions. There is NO 17733# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17734 17735# GNU Libtool is free software; you can redistribute it and/or modify 17736# it under the terms of the GNU General Public License as published by 17737# the Free Software Foundation; either version 2 of of the License, or 17738# (at your option) any later version. 17739# 17740# As a special exception to the GNU General Public License, if you 17741# distribute this file as part of a program or library that is built 17742# using GNU Libtool, you may include this file under the same 17743# distribution terms that you use for the rest of that program. 17744# 17745# GNU Libtool is distributed in the hope that it will be useful, but 17746# WITHOUT ANY WARRANTY; without even the implied warranty of 17747# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17748# GNU General Public License for more details. 17749# 17750# You should have received a copy of the GNU General Public License 17751# along with this program. If not, see <http://www.gnu.org/licenses/>. 17752 17753 17754# The names of the tagged configurations supported by this script. 17755available_tags='' 17756 17757# Configured defaults for sys_lib_dlsearch_path munging. 17758: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17759 17760# ### BEGIN LIBTOOL CONFIG 17761 17762# Which release of libtool.m4 was used? 17763macro_version=$macro_version 17764macro_revision=$macro_revision 17765 17766# Assembler program. 17767AS=$lt_AS 17768 17769# DLL creation program. 17770DLLTOOL=$lt_DLLTOOL 17771 17772# Object dumper program. 17773OBJDUMP=$lt_OBJDUMP 17774 17775# Whether or not to build shared libraries. 17776build_libtool_libs=$enable_shared 17777 17778# Whether or not to build static libraries. 17779build_old_libs=$enable_static 17780 17781# What type of objects to build. 17782pic_mode=$pic_mode 17783 17784# Whether or not to optimize for fast installation. 17785fast_install=$enable_fast_install 17786 17787# Shared archive member basename,for filename based shared library versioning on AIX. 17788shared_archive_member_spec=$shared_archive_member_spec 17789 17790# Shell to use when invoking shell scripts. 17791SHELL=$lt_SHELL 17792 17793# An echo program that protects backslashes. 17794ECHO=$lt_ECHO 17795 17796# The PATH separator for the build system. 17797PATH_SEPARATOR=$lt_PATH_SEPARATOR 17798 17799# The host system. 17800host_alias=$host_alias 17801host=$host 17802host_os=$host_os 17803 17804# The build system. 17805build_alias=$build_alias 17806build=$build 17807build_os=$build_os 17808 17809# A sed program that does not truncate output. 17810SED=$lt_SED 17811 17812# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17813Xsed="\$SED -e 1s/^X//" 17814 17815# A grep program that handles long lines. 17816GREP=$lt_GREP 17817 17818# An ERE matcher. 17819EGREP=$lt_EGREP 17820 17821# A literal string matcher. 17822FGREP=$lt_FGREP 17823 17824# A BSD- or MS-compatible name lister. 17825NM=$lt_NM 17826 17827# Whether we need soft or hard links. 17828LN_S=$lt_LN_S 17829 17830# What is the maximum length of a command? 17831max_cmd_len=$max_cmd_len 17832 17833# Object file suffix (normally "o"). 17834objext=$ac_objext 17835 17836# Executable file suffix (normally ""). 17837exeext=$exeext 17838 17839# whether the shell understands "unset". 17840lt_unset=$lt_unset 17841 17842# turn spaces into newlines. 17843SP2NL=$lt_lt_SP2NL 17844 17845# turn newlines into spaces. 17846NL2SP=$lt_lt_NL2SP 17847 17848# convert \$build file names to \$host format. 17849to_host_file_cmd=$lt_cv_to_host_file_cmd 17850 17851# convert \$build files to toolchain format. 17852to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17853 17854# Method to check whether dependent libraries are shared objects. 17855deplibs_check_method=$lt_deplibs_check_method 17856 17857# Command to use when deplibs_check_method = "file_magic". 17858file_magic_cmd=$lt_file_magic_cmd 17859 17860# How to find potential files when deplibs_check_method = "file_magic". 17861file_magic_glob=$lt_file_magic_glob 17862 17863# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17864want_nocaseglob=$lt_want_nocaseglob 17865 17866# Command to associate shared and link libraries. 17867sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17868 17869# The archiver. 17870AR=$lt_AR 17871 17872# Flags to create an archive. 17873AR_FLAGS=$lt_AR_FLAGS 17874 17875# How to feed a file listing to the archiver. 17876archiver_list_spec=$lt_archiver_list_spec 17877 17878# A symbol stripping program. 17879STRIP=$lt_STRIP 17880 17881# Commands used to install an old-style archive. 17882RANLIB=$lt_RANLIB 17883old_postinstall_cmds=$lt_old_postinstall_cmds 17884old_postuninstall_cmds=$lt_old_postuninstall_cmds 17885 17886# Whether to use a lock for old archive extraction. 17887lock_old_archive_extraction=$lock_old_archive_extraction 17888 17889# A C compiler. 17890LTCC=$lt_CC 17891 17892# LTCC compiler flags. 17893LTCFLAGS=$lt_CFLAGS 17894 17895# Take the output of nm and produce a listing of raw symbols and C names. 17896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17897 17898# Transform the output of nm in a proper C declaration. 17899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17900 17901# Transform the output of nm into a list of symbols to manually relocate. 17902global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17903 17904# Transform the output of nm in a C name address pair. 17905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17906 17907# Transform the output of nm in a C name address pair when lib prefix is needed. 17908global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17909 17910# The name lister interface. 17911nm_interface=$lt_lt_cv_nm_interface 17912 17913# Specify filename containing input files for \$NM. 17914nm_file_list_spec=$lt_nm_file_list_spec 17915 17916# The root where to search for dependent libraries,and where our libraries should be installed. 17917lt_sysroot=$lt_sysroot 17918 17919# Command to truncate a binary pipe. 17920lt_truncate_bin=$lt_lt_cv_truncate_bin 17921 17922# The name of the directory that contains temporary libtool files. 17923objdir=$objdir 17924 17925# Used to examine libraries when file_magic_cmd begins with "file". 17926MAGIC_CMD=$MAGIC_CMD 17927 17928# Must we lock files when doing compilation? 17929need_locks=$lt_need_locks 17930 17931# Manifest tool. 17932MANIFEST_TOOL=$lt_MANIFEST_TOOL 17933 17934# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17935DSYMUTIL=$lt_DSYMUTIL 17936 17937# Tool to change global to local symbols on Mac OS X. 17938NMEDIT=$lt_NMEDIT 17939 17940# Tool to manipulate fat objects and archives on Mac OS X. 17941LIPO=$lt_LIPO 17942 17943# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17944OTOOL=$lt_OTOOL 17945 17946# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17947OTOOL64=$lt_OTOOL64 17948 17949# Old archive suffix (normally "a"). 17950libext=$libext 17951 17952# Shared library suffix (normally ".so"). 17953shrext_cmds=$lt_shrext_cmds 17954 17955# The commands to extract the exported symbol list from a shared archive. 17956extract_expsyms_cmds=$lt_extract_expsyms_cmds 17957 17958# Variables whose values should be saved in libtool wrapper scripts and 17959# restored at link time. 17960variables_saved_for_relink=$lt_variables_saved_for_relink 17961 17962# Do we need the "lib" prefix for modules? 17963need_lib_prefix=$need_lib_prefix 17964 17965# Do we need a version for libraries? 17966need_version=$need_version 17967 17968# Library versioning type. 17969version_type=$version_type 17970 17971# Shared library runtime path variable. 17972runpath_var=$runpath_var 17973 17974# Shared library path variable. 17975shlibpath_var=$shlibpath_var 17976 17977# Is shlibpath searched before the hard-coded library search path? 17978shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17979 17980# Format of library name prefix. 17981libname_spec=$lt_libname_spec 17982 17983# List of archive names. First name is the real one, the rest are links. 17984# The last name is the one that the linker finds with -lNAME 17985library_names_spec=$lt_library_names_spec 17986 17987# The coded name of the library, if different from the real name. 17988soname_spec=$lt_soname_spec 17989 17990# Permission mode override for installation of shared libraries. 17991install_override_mode=$lt_install_override_mode 17992 17993# Command to use after installation of a shared archive. 17994postinstall_cmds=$lt_postinstall_cmds 17995 17996# Command to use after uninstallation of a shared archive. 17997postuninstall_cmds=$lt_postuninstall_cmds 17998 17999# Commands used to finish a libtool library installation in a directory. 18000finish_cmds=$lt_finish_cmds 18001 18002# As "finish_cmds", except a single script fragment to be evaled but 18003# not shown. 18004finish_eval=$lt_finish_eval 18005 18006# Whether we should hardcode library paths into libraries. 18007hardcode_into_libs=$hardcode_into_libs 18008 18009# Compile-time system search path for libraries. 18010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18011 18012# Detected run-time system search path for libraries. 18013sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18014 18015# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18016configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18017 18018# Whether dlopen is supported. 18019dlopen_support=$enable_dlopen 18020 18021# Whether dlopen of programs is supported. 18022dlopen_self=$enable_dlopen_self 18023 18024# Whether dlopen of statically linked programs is supported. 18025dlopen_self_static=$enable_dlopen_self_static 18026 18027# Commands to strip libraries. 18028old_striplib=$lt_old_striplib 18029striplib=$lt_striplib 18030 18031 18032# The linker used to build libraries. 18033LD=$lt_LD 18034 18035# How to create reloadable object files. 18036reload_flag=$lt_reload_flag 18037reload_cmds=$lt_reload_cmds 18038 18039# Commands used to build an old-style archive. 18040old_archive_cmds=$lt_old_archive_cmds 18041 18042# A language specific compiler. 18043CC=$lt_compiler 18044 18045# Is the compiler the GNU compiler? 18046with_gcc=$GCC 18047 18048# Compiler flag to turn off builtin functions. 18049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18050 18051# Additional compiler flags for building library objects. 18052pic_flag=$lt_lt_prog_compiler_pic 18053 18054# How to pass a linker flag through the compiler. 18055wl=$lt_lt_prog_compiler_wl 18056 18057# Compiler flag to prevent dynamic linking. 18058link_static_flag=$lt_lt_prog_compiler_static 18059 18060# Does compiler simultaneously support -c and -o options? 18061compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18062 18063# Whether or not to add -lc for building shared libraries. 18064build_libtool_need_lc=$archive_cmds_need_lc 18065 18066# Whether or not to disallow shared libs when runtime libs are static. 18067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18068 18069# Compiler flag to allow reflexive dlopens. 18070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18071 18072# Compiler flag to generate shared objects directly from archives. 18073whole_archive_flag_spec=$lt_whole_archive_flag_spec 18074 18075# Whether the compiler copes with passing no objects directly. 18076compiler_needs_object=$lt_compiler_needs_object 18077 18078# Create an old-style archive from a shared archive. 18079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18080 18081# Create a temporary old-style archive to link instead of a shared archive. 18082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18083 18084# Commands used to build a shared archive. 18085archive_cmds=$lt_archive_cmds 18086archive_expsym_cmds=$lt_archive_expsym_cmds 18087 18088# Commands used to build a loadable module if different from building 18089# a shared archive. 18090module_cmds=$lt_module_cmds 18091module_expsym_cmds=$lt_module_expsym_cmds 18092 18093# Whether we are building with GNU ld or not. 18094with_gnu_ld=$lt_with_gnu_ld 18095 18096# Flag that allows shared libraries with undefined symbols to be built. 18097allow_undefined_flag=$lt_allow_undefined_flag 18098 18099# Flag that enforces no undefined symbols. 18100no_undefined_flag=$lt_no_undefined_flag 18101 18102# Flag to hardcode \$libdir into a binary during linking. 18103# This must work even if \$libdir does not exist 18104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18105 18106# Whether we need a single "-rpath" flag with a separated argument. 18107hardcode_libdir_separator=$lt_hardcode_libdir_separator 18108 18109# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18110# DIR into the resulting binary. 18111hardcode_direct=$hardcode_direct 18112 18113# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18114# DIR into the resulting binary and the resulting library dependency is 18115# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18116# library is relocated. 18117hardcode_direct_absolute=$hardcode_direct_absolute 18118 18119# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18120# into the resulting binary. 18121hardcode_minus_L=$hardcode_minus_L 18122 18123# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18124# into the resulting binary. 18125hardcode_shlibpath_var=$hardcode_shlibpath_var 18126 18127# Set to "yes" if building a shared library automatically hardcodes DIR 18128# into the library and all subsequent libraries and executables linked 18129# against it. 18130hardcode_automatic=$hardcode_automatic 18131 18132# Set to yes if linker adds runtime paths of dependent libraries 18133# to runtime path list. 18134inherit_rpath=$inherit_rpath 18135 18136# Whether libtool must link a program against all its dependency libraries. 18137link_all_deplibs=$link_all_deplibs 18138 18139# Set to "yes" if exported symbols are required. 18140always_export_symbols=$always_export_symbols 18141 18142# The commands to list exported symbols. 18143export_symbols_cmds=$lt_export_symbols_cmds 18144 18145# Symbols that should not be listed in the preloaded symbols. 18146exclude_expsyms=$lt_exclude_expsyms 18147 18148# Symbols that must always be exported. 18149include_expsyms=$lt_include_expsyms 18150 18151# Commands necessary for linking programs (against libraries) with templates. 18152prelink_cmds=$lt_prelink_cmds 18153 18154# Commands necessary for finishing linking programs. 18155postlink_cmds=$lt_postlink_cmds 18156 18157# Specify filename containing input files. 18158file_list_spec=$lt_file_list_spec 18159 18160# How to hardcode a shared library path into an executable. 18161hardcode_action=$hardcode_action 18162 18163# ### END LIBTOOL CONFIG 18164 18165_LT_EOF 18166 18167 cat <<'_LT_EOF' >> "$cfgfile" 18168 18169# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18170 18171# func_munge_path_list VARIABLE PATH 18172# ----------------------------------- 18173# VARIABLE is name of variable containing _space_ separated list of 18174# directories to be munged by the contents of PATH, which is string 18175# having a format: 18176# "DIR[:DIR]:" 18177# string "DIR[ DIR]" will be prepended to VARIABLE 18178# ":DIR[:DIR]" 18179# string "DIR[ DIR]" will be appended to VARIABLE 18180# "DIRP[:DIRP]::[DIRA:]DIRA" 18181# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18182# "DIRA[ DIRA]" will be appended to VARIABLE 18183# "DIR[:DIR]" 18184# VARIABLE will be replaced by "DIR[ DIR]" 18185func_munge_path_list () 18186{ 18187 case x$2 in 18188 x) 18189 ;; 18190 *:) 18191 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18192 ;; 18193 x:*) 18194 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18195 ;; 18196 *::*) 18197 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18198 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18199 ;; 18200 *) 18201 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18202 ;; 18203 esac 18204} 18205 18206 18207# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18208func_cc_basename () 18209{ 18210 for cc_temp in $*""; do 18211 case $cc_temp in 18212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18214 \-*) ;; 18215 *) break;; 18216 esac 18217 done 18218 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18219} 18220 18221 18222# ### END FUNCTIONS SHARED WITH CONFIGURE 18223 18224_LT_EOF 18225 18226 case $host_os in 18227 aix3*) 18228 cat <<\_LT_EOF >> "$cfgfile" 18229# AIX sometimes has problems with the GCC collect2 program. For some 18230# reason, if we set the COLLECT_NAMES environment variable, the problems 18231# vanish in a puff of smoke. 18232if test set != "${COLLECT_NAMES+set}"; then 18233 COLLECT_NAMES= 18234 export COLLECT_NAMES 18235fi 18236_LT_EOF 18237 ;; 18238 esac 18239 18240 18241ltmain=$ac_aux_dir/ltmain.sh 18242 18243 18244 # We use sed instead of cat because bash on DJGPP gets confused if 18245 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18246 # text mode, it properly converts lines to CR/LF. This bash problem 18247 # is reportedly fixed, but why not run on old versions too? 18248 sed '$q' "$ltmain" >> "$cfgfile" \ 18249 || (rm -f "$cfgfile"; exit 1) 18250 18251 mv -f "$cfgfile" "$ofile" || 18252 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18253 chmod +x "$ofile" 18254 18255 ;; 18256 "po-directories":C) 18257 for ac_file in $CONFIG_FILES; do 18258 # Support "outfile[:infile[:infile...]]" 18259 case "$ac_file" in 18260 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 18261 esac 18262 # PO directories have a Makefile.in generated from Makefile.in.in. 18263 case "$ac_file" in */Makefile.in) 18264 # Adjust a relative srcdir. 18265 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 18266 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 18267 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 18268 # In autoconf-2.13 it is called $ac_given_srcdir. 18269 # In autoconf-2.50 it is called $srcdir. 18270 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 18271 case "$ac_given_srcdir" in 18272 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 18273 /*) top_srcdir="$ac_given_srcdir" ;; 18274 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 18275 esac 18276 # Treat a directory as a PO directory if and only if it has a 18277 # POTFILES.in file. This allows packages to have multiple PO 18278 # directories under different names or in different locations. 18279 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 18280 rm -f "$ac_dir/POTFILES" 18281 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 18282 gt_tab=`printf '\t'` 18283 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 18284 POMAKEFILEDEPS="POTFILES.in" 18285 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 18286 # on $ac_dir but don't depend on user-specified configuration 18287 # parameters. 18288 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 18289 # The LINGUAS file contains the set of available languages. 18290 if test -n "$OBSOLETE_ALL_LINGUAS"; then 18291 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 18292 fi 18293 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 18294 # Hide the ALL_LINGUAS assignment from automake < 1.5. 18295 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 18296 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 18297 else 18298 # The set of available languages was given in configure.in. 18299 # Hide the ALL_LINGUAS assignment from automake < 1.5. 18300 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 18301 fi 18302 # Compute POFILES 18303 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 18304 # Compute UPDATEPOFILES 18305 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 18306 # Compute DUMMYPOFILES 18307 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 18308 # Compute GMOFILES 18309 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 18310 case "$ac_given_srcdir" in 18311 .) srcdirpre= ;; 18312 *) srcdirpre='$(srcdir)/' ;; 18313 esac 18314 POFILES= 18315 UPDATEPOFILES= 18316 DUMMYPOFILES= 18317 GMOFILES= 18318 for lang in $ALL_LINGUAS; do 18319 POFILES="$POFILES $srcdirpre$lang.po" 18320 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 18321 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 18322 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 18323 done 18324 # CATALOGS depends on both $ac_dir and the user's LINGUAS 18325 # environment variable. 18326 INST_LINGUAS= 18327 if test -n "$ALL_LINGUAS"; then 18328 for presentlang in $ALL_LINGUAS; do 18329 useit=no 18330 if test "%UNSET%" != "$LINGUAS"; then 18331 desiredlanguages="$LINGUAS" 18332 else 18333 desiredlanguages="$ALL_LINGUAS" 18334 fi 18335 for desiredlang in $desiredlanguages; do 18336 # Use the presentlang catalog if desiredlang is 18337 # a. equal to presentlang, or 18338 # b. a variant of presentlang (because in this case, 18339 # presentlang can be used as a fallback for messages 18340 # which are not translated in the desiredlang catalog). 18341 case "$desiredlang" in 18342 "$presentlang"*) useit=yes;; 18343 esac 18344 done 18345 if test $useit = yes; then 18346 INST_LINGUAS="$INST_LINGUAS $presentlang" 18347 fi 18348 done 18349 fi 18350 CATALOGS= 18351 if test -n "$INST_LINGUAS"; then 18352 for lang in $INST_LINGUAS; do 18353 CATALOGS="$CATALOGS $lang.gmo" 18354 done 18355 fi 18356 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18357 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 18358 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18359 if test -f "$f"; then 18360 case "$f" in 18361 *.orig | *.bak | *~) ;; 18362 *) cat "$f" >> "$ac_dir/Makefile" ;; 18363 esac 18364 fi 18365 done 18366 fi 18367 ;; 18368 esac 18369 done ;; 18370 18371 esac 18372done # for ac_tag 18373 18374 18375as_fn_exit 0 18376_ACEOF 18377ac_clean_files=$ac_clean_files_save 18378 18379test $ac_write_fail = 0 || 18380 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18381 18382 18383# configure is writing to config.log, and then calls config.status. 18384# config.status does its own redirection, appending to config.log. 18385# Unfortunately, on DOS this fails, as config.log is still kept open 18386# by configure, so config.status won't be able to write to it; its 18387# output is simply discarded. So we exec the FD to /dev/null, 18388# effectively closing config.log, so it can be properly (re)opened and 18389# appended to by config.status. When coming back to configure, we 18390# need to make the FD available again. 18391if test "$no_create" != yes; then 18392 ac_cs_success=: 18393 ac_config_status_args= 18394 test "$silent" = yes && 18395 ac_config_status_args="$ac_config_status_args --quiet" 18396 exec 5>/dev/null 18397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18398 exec 5>>config.log 18399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18400 # would make configure fail if this is the last instruction. 18401 $ac_cs_success || as_fn_exit 1 18402fi 18403if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18405$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18406fi 18407 18408 18409# Message about configured subprojects 18410if test "x$subdirs" != "x"; then 18411 18412gp_config_msg="${gp_config_msg} 18413" 18414 _subdirs="" 18415 for sd in $subdirs; do 18416 ssd="$(basename "$sd")" 18417 if test "x$_subdirs" = "x"; then 18418 _subdirs="$ssd"; 18419 else 18420 _subdirs="$_subdirs $ssd" 18421 fi 18422 done 18423 18424gp_config_msg_len="$(expr "Subprojects" : '.*')" 18425if test "$gp_config_msg_len" -ge "$gp_config_len"; then 18426 gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:" 18427else 18428 gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")" 18429fi 18430gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${_subdirs} 18431" 18432fi 18433 18434echo "${gp_config_msg} 18435You may run \"make\" and \"make install\" now." 18436 18437