1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GD 2.3.1. 4# 5# Report bugs to <https://github.com/libgd/libgd/issues>. 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: https://github.com/libgd/libgd/issues about your 279$0: system, 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='GD' 592PACKAGE_TARNAME='libgd' 593PACKAGE_VERSION='2.3.1' 594PACKAGE_STRING='GD 2.3.1' 595PACKAGE_BUGREPORT='https://github.com/libgd/libgd/issues' 596PACKAGE_URL='http://lib.gd' 597 598ac_unique_file="src/gd.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640HAVE_VISIBILITY 641CFLAG_VISIBILITY 642HAVE_LIBWEBP_FALSE 643HAVE_LIBWEBP_TRUE 644LIBWEBP_LIBS 645LIBWEBP_CFLAGS 646HAVE_LIBTIFF_FALSE 647HAVE_LIBTIFF_TRUE 648LIBTIFF_LIBS 649LIBTIFF_CFLAGS 650HAVE_LIBXPM_FALSE 651HAVE_LIBXPM_TRUE 652LIBXPM_LIBS 653LIBXPM_CFLAGS 654HAVE_LIBIMAGEQUANT_FALSE 655HAVE_LIBIMAGEQUANT_TRUE 656HAVE_LIBJPEG_FALSE 657HAVE_LIBJPEG_TRUE 658LIBJPEG_LIBS 659LIBJPEG_CFLAGS 660HAVE_LIBFONTCONFIG_FALSE 661HAVE_LIBFONTCONFIG_TRUE 662LIBFONTCONFIG_LIBS 663LIBFONTCONFIG_CFLAGS 664HAVE_LIBRAQM_FALSE 665HAVE_LIBRAQM_TRUE 666LIBRAQM_LIBS 667LIBRAQM_CFLAGS 668HAVE_LIBFREETYPE_FALSE 669HAVE_LIBFREETYPE_TRUE 670LIBFREETYPE_LIBS 671LIBFREETYPE_CFLAGS 672HAVE_LIBPNG_FALSE 673HAVE_LIBPNG_TRUE 674LIBPNG_LIBS 675LIBPNG_CFLAGS 676HAVE_LIBZ_FALSE 677HAVE_LIBZ_TRUE 678LIBZ_LIBS 679LIBZ_CFLAGS 680ENABLE_GD_FORMATS_FALSE 681ENABLE_GD_FORMATS_TRUE 682PTHREAD_CFLAGS 683PTHREAD_LIBS 684PTHREAD_CC 685ax_pthread_config 686LTLIBICONV 687LIBICONV 688XMKMF 689PKG_CONFIG_LIBDIR 690PKG_CONFIG_PATH 691PKG_CONFIG 692CPP 693LT_SYS_LIBRARY_PATH 694OTOOL64 695OTOOL 696LIPO 697NMEDIT 698DSYMUTIL 699MANIFEST_TOOL 700RANLIB 701DLLTOOL 702OBJDUMP 703LN_S 704NM 705ac_ct_DUMPBIN 706DUMPBIN 707LD 708FGREP 709EGREP 710GREP 711SED 712LIBTOOL 713am__fastdepCC_FALSE 714am__fastdepCC_TRUE 715CCDEPMODE 716am__nodep 717AMDEPBACKSLASH 718AMDEP_FALSE 719AMDEP_TRUE 720am__quote 721am__include 722DEPDIR 723OBJEXT 724EXEEXT 725ac_ct_CC 726CPPFLAGS 727LDFLAGS 728CFLAGS 729CC 730ac_ct_AR 731AR 732AM_BACKSLASH 733AM_DEFAULT_VERBOSITY 734AM_DEFAULT_V 735AM_V 736am__untar 737am__tar 738AMTAR 739am__leading_dot 740SET_MAKE 741AWK 742mkdir_p 743MKDIR_P 744INSTALL_STRIP_PROGRAM 745STRIP 746install_sh 747MAKEINFO 748AUTOHEADER 749AUTOMAKE 750AUTOCONF 751ACLOCAL 752VERSION 753PACKAGE 754CYGPATH_W 755am__isrc 756INSTALL_DATA 757INSTALL_SCRIPT 758INSTALL_PROGRAM 759PKG_REQUIRES_PRIVATES 760LIBS_PRIVATES 761GDLIB_LT_AGE 762GDLIB_LT_REVISION 763GDLIB_LT_CURRENT 764host_os 765host_vendor 766host_cpu 767host 768build_os 769build_vendor 770build_cpu 771build 772target_alias 773host_alias 774build_alias 775LIBS 776ECHO_T 777ECHO_N 778ECHO_C 779DEFS 780mandir 781localedir 782libdir 783psdir 784pdfdir 785dvidir 786htmldir 787infodir 788docdir 789oldincludedir 790includedir 791runstatedir 792localstatedir 793sharedstatedir 794sysconfdir 795datadir 796datarootdir 797libexecdir 798sbindir 799bindir 800program_transform_name 801prefix 802exec_prefix 803PACKAGE_URL 804PACKAGE_BUGREPORT 805PACKAGE_STRING 806PACKAGE_VERSION 807PACKAGE_TARNAME 808PACKAGE_NAME 809PATH_SEPARATOR 810SHELL' 811ac_subst_files='' 812ac_user_opts=' 813enable_option_checking 814enable_silent_rules 815enable_dependency_tracking 816enable_shared 817enable_static 818with_pic 819enable_fast_install 820with_aix_soname 821with_gnu_ld 822with_sysroot 823enable_libtool_lock 824with_x 825enable_rpath 826with_libiconv_prefix 827enable_gd_formats 828with_zlib 829with_png 830with_freetype 831with_raqm 832with_fontconfig 833with_jpeg 834with_liq 835with_xpm 836with_tiff 837with_webp 838enable_werror 839' 840 ac_precious_vars='build_alias 841host_alias 842target_alias 843CC 844CFLAGS 845LDFLAGS 846LIBS 847CPPFLAGS 848LT_SYS_LIBRARY_PATH 849CPP 850PKG_CONFIG 851PKG_CONFIG_PATH 852PKG_CONFIG_LIBDIR 853XMKMF 854LIBZ_CFLAGS 855LIBZ_LIBS 856LIBPNG_CFLAGS 857LIBPNG_LIBS 858LIBFREETYPE_CFLAGS 859LIBFREETYPE_LIBS 860LIBRAQM_CFLAGS 861LIBRAQM_LIBS 862LIBFONTCONFIG_CFLAGS 863LIBFONTCONFIG_LIBS 864LIBJPEG_CFLAGS 865LIBJPEG_LIBS 866LIBXPM_CFLAGS 867LIBXPM_LIBS 868LIBTIFF_CFLAGS 869LIBTIFF_LIBS 870LIBWEBP_CFLAGS 871LIBWEBP_LIBS' 872 873 874# Initialize some variables set by options. 875ac_init_help= 876ac_init_version=false 877ac_unrecognized_opts= 878ac_unrecognized_sep= 879# The variables have the same names as the options, with 880# dashes changed to underlines. 881cache_file=/dev/null 882exec_prefix=NONE 883no_create= 884no_recursion= 885prefix=NONE 886program_prefix=NONE 887program_suffix=NONE 888program_transform_name=s,x,x, 889silent= 890site= 891srcdir= 892verbose= 893x_includes=NONE 894x_libraries=NONE 895 896# Installation directory options. 897# These are left unexpanded so users can "make install exec_prefix=/foo" 898# and all the variables that are supposed to be based on exec_prefix 899# by default will actually change. 900# Use braces instead of parens because sh, perl, etc. also accept them. 901# (The list follows the same order as the GNU Coding Standards.) 902bindir='${exec_prefix}/bin' 903sbindir='${exec_prefix}/sbin' 904libexecdir='${exec_prefix}/libexec' 905datarootdir='${prefix}/share' 906datadir='${datarootdir}' 907sysconfdir='${prefix}/etc' 908sharedstatedir='${prefix}/com' 909localstatedir='${prefix}/var' 910runstatedir='${localstatedir}/run' 911includedir='${prefix}/include' 912oldincludedir='/usr/include' 913docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 914infodir='${datarootdir}/info' 915htmldir='${docdir}' 916dvidir='${docdir}' 917pdfdir='${docdir}' 918psdir='${docdir}' 919libdir='${exec_prefix}/lib' 920localedir='${datarootdir}/locale' 921mandir='${datarootdir}/man' 922 923ac_prev= 924ac_dashdash= 925for ac_option 926do 927 # If the previous option needs an argument, assign it. 928 if test -n "$ac_prev"; then 929 eval $ac_prev=\$ac_option 930 ac_prev= 931 continue 932 fi 933 934 case $ac_option in 935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 936 *=) ac_optarg= ;; 937 *) ac_optarg=yes ;; 938 esac 939 940 # Accept the important Cygnus configure options, so we can diagnose typos. 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: $ac_useropt" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987"enable_$ac_useropt" 988"*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: $ac_useropt" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1164 | --runstate | --runstat | --runsta | --runst | --runs \ 1165 | --run | --ru | --r) 1166 ac_prev=runstatedir ;; 1167 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1168 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1169 | --run=* | --ru=* | --r=*) 1170 runstatedir=$ac_optarg ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: $ac_useropt" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226"with_$ac_useropt" 1227"*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: $ac_useropt" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242"with_$ac_useropt" 1243"*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1268Try \`$0 --help' for more information" 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 case $ac_envvar in #( 1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1277 esac 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1287 ;; 1288 1289 esac 1290done 1291 1292if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 as_fn_error $? "missing argument to $ac_option" 1295fi 1296 1297if test -n "$ac_unrecognized_opts"; then 1298 case $enable_option_checking in 1299 no) ;; 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1302 esac 1303fi 1304 1305# Check all directory arguments for consistency. 1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1307 datadir sysconfdir sharedstatedir localstatedir includedir \ 1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1309 libdir localedir mandir runstatedir 1310do 1311 eval ac_val=\$$ac_var 1312 # Remove trailing slashes. 1313 case $ac_val in 1314 */ ) 1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1316 eval $ac_var=\$ac_val;; 1317 esac 1318 # Be sure to have absolute directory names. 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1324done 1325 1326# There might be people who depend on the old broken behavior: `$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 elif test "x$build_alias" != "x$host_alias"; then 1338 cross_compiling=yes 1339 fi 1340fi 1341 1342ac_tool_prefix= 1343test -n "$host_alias" && ac_tool_prefix=$host_alias- 1344 1345test "$silent" = yes && exec 6>/dev/null 1346 1347 1348ac_pwd=`pwd` && test -n "$ac_pwd" && 1349ac_ls_di=`ls -di .` && 1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351 as_fn_error $? "working directory cannot be determined" 1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353 as_fn_error $? "pwd does not report name of working directory" 1354 1355 1356# Find the source files, if location was not specified. 1357if test -z "$srcdir"; then 1358 ac_srcdir_defaulted=yes 1359 # Try the directory containing this script, then the parent directory. 1360 ac_confdir=`$as_dirname -- "$as_myself" || 1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362 X"$as_myself" : 'X\(//\)[^/]' \| \ 1363 X"$as_myself" : 'X\(//\)$' \| \ 1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365$as_echo X"$as_myself" | 1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)[^/].*/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\).*/{ 1379 s//\1/ 1380 q 1381 } 1382 s/.*/./; q'` 1383 srcdir=$ac_confdir 1384 if test ! -r "$srcdir/$ac_unique_file"; then 1385 srcdir=.. 1386 fi 1387else 1388 ac_srcdir_defaulted=no 1389fi 1390if test ! -r "$srcdir/$ac_unique_file"; then 1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1397 pwd)` 1398# When building in place, set srcdir=. 1399if test "$ac_abs_confdir" = "$ac_pwd"; then 1400 srcdir=. 1401fi 1402# Remove unnecessary trailing slashes from srcdir. 1403# Double slashes in file names in object file debugging info 1404# mess up M-x gdb in Emacs. 1405case $srcdir in 1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407esac 1408for ac_var in $ac_precious_vars; do 1409 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_env_${ac_var}_value=\$${ac_var} 1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413done 1414 1415# 1416# Report the --help message. 1417# 1418if test "$ac_init_help" = "long"; then 1419 # Omit some internal or obsolete options to make the list less imposing. 1420 # This message is too long to be a string in the A/UX 3.1 sh. 1421 cat <<_ACEOF 1422\`configure' configures GD 2.3.1 to adapt to many kinds of systems. 1423 1424Usage: $0 [OPTION]... [VAR=VALUE]... 1425 1426To assign environment variables (e.g., CC, CFLAGS...), specify them as 1427VAR=VALUE. See below for descriptions of some of the useful variables. 1428 1429Defaults for the options are specified in brackets. 1430 1431Configuration: 1432 -h, --help display this help and exit 1433 --help=short display options specific to this package 1434 --help=recursive display the short help of all the included packages 1435 -V, --version display version information and exit 1436 -q, --quiet, --silent do not print \`checking ...' messages 1437 --cache-file=FILE cache test results in FILE [disabled] 1438 -C, --config-cache alias for \`--cache-file=config.cache' 1439 -n, --no-create do not create output files 1440 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1441 1442Installation directories: 1443 --prefix=PREFIX install architecture-independent files in PREFIX 1444 [$ac_default_prefix] 1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446 [PREFIX] 1447 1448By default, \`make install' will install all the files in 1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1450an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1451for instance \`--prefix=\$HOME'. 1452 1453For better control, use the options below. 1454 1455Fine tuning of the installation directories: 1456 --bindir=DIR user executables [EPREFIX/bin] 1457 --sbindir=DIR system admin executables [EPREFIX/sbin] 1458 --libexecdir=DIR program executables [EPREFIX/libexec] 1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libgd] 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480Program names: 1481 --program-prefix=PREFIX prepend PREFIX to installed program names 1482 --program-suffix=SUFFIX append SUFFIX to installed program names 1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1484 1485X features: 1486 --x-includes=DIR X include files are in DIR 1487 --x-libraries=DIR X library files are in DIR 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492_ACEOF 1493fi 1494 1495if test -n "$ac_init_help"; then 1496 case $ac_init_help in 1497 short | recursive ) echo "Configuration of GD 2.3.1:";; 1498 esac 1499 cat <<\_ACEOF 1500 1501Optional Features: 1502 --disable-option-checking ignore unrecognized --enable/--with options 1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1505 --enable-silent-rules less verbose build output (undo: "make V=1") 1506 --disable-silent-rules verbose build output (undo: "make V=0") 1507 --enable-dependency-tracking 1508 do not reject slow dependency extractors 1509 --disable-dependency-tracking 1510 speeds up one-time build 1511 --enable-shared[=PKGS] build shared libraries [default=yes] 1512 --enable-static[=PKGS] build static libraries [default=yes] 1513 --enable-fast-install[=PKGS] 1514 optimize for fast installation [default=yes] 1515 --disable-libtool-lock avoid locking (might break parallel builds) 1516 --disable-rpath do not hardcode runtime library paths 1517 --disable-gd-formats Disable support for the legacy/testing gd image 1518 formats 1519 --enable-werror treat compile warnings as errors 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-aix-soname=aix|svr4|both 1527 shared library versioning (aka "SONAME") variant to 1528 provide on AIX, [default=aix]. 1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1530 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1531 compiler's sysroot if not specified). 1532 --with-x use the X Window System 1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1534 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1535 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1536 --with-zlib[=DIR] Support zlib (optionally in DIR) 1537 --with-png[=DIR] Support png (optionally in DIR) 1538 --with-freetype[=DIR] Support freetype (optionally in DIR) 1539 --with-raqm[=DIR] Support raqm (optionally in DIR) 1540 --with-fontconfig[=DIR] Support fontconfig (optionally in DIR) 1541 --with-jpeg[=DIR] Support jpeg (optionally in DIR) 1542 --with-liq[=DIR] Support liq (optionally in DIR) 1543 --with-xpm[=DIR] Support xpm (optionally in DIR) 1544 --with-tiff[=DIR] Support tiff (optionally in DIR) 1545 --with-webp[=DIR] Support webp (optionally in DIR) 1546 1547Some influential environment variables: 1548 CC C compiler command 1549 CFLAGS C compiler flags 1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1551 nonstandard directory <lib dir> 1552 LIBS libraries to pass to the linker, e.g. -l<library> 1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1554 you have headers in a nonstandard directory <include dir> 1555 LT_SYS_LIBRARY_PATH 1556 User-defined run-time library search path. 1557 CPP C preprocessor 1558 PKG_CONFIG path to pkg-config utility 1559 PKG_CONFIG_PATH 1560 directories to add to pkg-config's search path 1561 PKG_CONFIG_LIBDIR 1562 path overriding pkg-config's built-in search path 1563 XMKMF Path to xmkmf, Makefile generator for X Window System 1564 LIBZ_CFLAGS C compiler flags for LIBZ, overriding pkg-config 1565 LIBZ_LIBS linker flags for LIBZ, overriding pkg-config 1566 LIBPNG_CFLAGS 1567 C compiler flags for LIBPNG, overriding pkg-config 1568 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config 1569 LIBFREETYPE_CFLAGS 1570 C compiler flags for LIBFREETYPE, overriding pkg-config 1571 LIBFREETYPE_LIBS 1572 linker flags for LIBFREETYPE, overriding pkg-config 1573 LIBRAQM_CFLAGS 1574 C compiler flags for LIBRAQM, overriding pkg-config 1575 LIBRAQM_LIBS 1576 linker flags for LIBRAQM, overriding pkg-config 1577 LIBFONTCONFIG_CFLAGS 1578 C compiler flags for LIBFONTCONFIG, overriding pkg-config 1579 LIBFONTCONFIG_LIBS 1580 linker flags for LIBFONTCONFIG, overriding pkg-config 1581 LIBJPEG_CFLAGS 1582 C compiler flags for LIBJPEG, overriding pkg-config 1583 LIBJPEG_LIBS 1584 linker flags for LIBJPEG, overriding pkg-config 1585 LIBXPM_CFLAGS 1586 C compiler flags for LIBXPM, overriding pkg-config 1587 LIBXPM_LIBS linker flags for LIBXPM, overriding pkg-config 1588 LIBTIFF_CFLAGS 1589 C compiler flags for LIBTIFF, overriding pkg-config 1590 LIBTIFF_LIBS 1591 linker flags for LIBTIFF, overriding pkg-config 1592 LIBWEBP_CFLAGS 1593 C compiler flags for LIBWEBP, overriding pkg-config 1594 LIBWEBP_LIBS 1595 linker flags for LIBWEBP, overriding pkg-config 1596 1597Use these variables to override the choices made by `configure' or to help 1598it to find libraries and programs with nonstandard names/locations. 1599 1600Report bugs to <https://github.com/libgd/libgd/issues>. 1601GD home page: <http://lib.gd>. 1602_ACEOF 1603ac_status=$? 1604fi 1605 1606if test "$ac_init_help" = "recursive"; then 1607 # If there are subdirs, report their specific --help. 1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1609 test -d "$ac_dir" || 1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1611 continue 1612 ac_builddir=. 1613 1614case "$ac_dir" in 1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1616*) 1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1618 # A ".." for each directory in $ac_dir_suffix. 1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1620 case $ac_top_builddir_sub in 1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1623 esac ;; 1624esac 1625ac_abs_top_builddir=$ac_pwd 1626ac_abs_builddir=$ac_pwd$ac_dir_suffix 1627# for backward compatibility: 1628ac_top_builddir=$ac_top_build_prefix 1629 1630case $srcdir in 1631 .) # We are building in place. 1632 ac_srcdir=. 1633 ac_top_srcdir=$ac_top_builddir_sub 1634 ac_abs_top_srcdir=$ac_pwd ;; 1635 [\\/]* | ?:[\\/]* ) # Absolute name. 1636 ac_srcdir=$srcdir$ac_dir_suffix; 1637 ac_top_srcdir=$srcdir 1638 ac_abs_top_srcdir=$srcdir ;; 1639 *) # Relative name. 1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1641 ac_top_srcdir=$ac_top_build_prefix$srcdir 1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1643esac 1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1645 1646 cd "$ac_dir" || { ac_status=$?; continue; } 1647 # Check for guested configure. 1648 if test -f "$ac_srcdir/configure.gnu"; then 1649 echo && 1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1651 elif test -f "$ac_srcdir/configure"; then 1652 echo && 1653 $SHELL "$ac_srcdir/configure" --help=recursive 1654 else 1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1656 fi || ac_status=$? 1657 cd "$ac_pwd" || { ac_status=$?; break; } 1658 done 1659fi 1660 1661test -n "$ac_init_help" && exit $ac_status 1662if $ac_init_version; then 1663 cat <<\_ACEOF 1664GD configure 2.3.1 1665generated by GNU Autoconf 2.69 1666 1667Copyright (C) 2012 Free Software Foundation, Inc. 1668This configure script is free software; the Free Software Foundation 1669gives unlimited permission to copy, distribute and modify it. 1670_ACEOF 1671 exit 1672fi 1673 1674## ------------------------ ## 1675## Autoconf initialization. ## 1676## ------------------------ ## 1677 1678# ac_fn_c_try_compile LINENO 1679# -------------------------- 1680# Try to compile conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_compile () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 rm -f conftest.$ac_objext 1685 if { { ac_try="$ac_compile" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_compile") 2>conftest.err 1693 ac_status=$? 1694 if test -s conftest.err; then 1695 grep -v '^ *+' conftest.err >conftest.er1 1696 cat conftest.er1 >&5 1697 mv -f conftest.er1 conftest.err 1698 fi 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { 1701 test -z "$ac_c_werror_flag" || 1702 test ! -s conftest.err 1703 } && test -s conftest.$ac_objext; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 1710fi 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_compile 1715 1716# ac_fn_c_try_link LINENO 1717# ----------------------- 1718# Try to link conftest.$ac_ext, and return whether this succeeded. 1719ac_fn_c_try_link () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 rm -f conftest.$ac_objext conftest$ac_exeext 1723 if { { ac_try="$ac_link" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_link") 2>conftest.err 1731 ac_status=$? 1732 if test -s conftest.err; then 1733 grep -v '^ *+' conftest.err >conftest.er1 1734 cat conftest.er1 >&5 1735 mv -f conftest.er1 conftest.err 1736 fi 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } && { 1739 test -z "$ac_c_werror_flag" || 1740 test ! -s conftest.err 1741 } && test -s conftest$ac_exeext && { 1742 test "$cross_compiling" = yes || 1743 test -x conftest$ac_exeext 1744 }; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1754 # interfere with the next link command; also delete a directory that is 1755 # left behind by Apple's compiler. We do this before executing the actions. 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_link 1761 1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1763# ------------------------------------------------------- 1764# Tests whether HEADER exists and can be compiled using the include files in 1765# INCLUDES, setting the cache variable VAR accordingly. 1766ac_fn_c_check_header_compile () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770$as_echo_n "checking for $2... " >&6; } 1771if eval \${$3+:} false; then : 1772 $as_echo_n "(cached) " >&6 1773else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776$4 1777#include <$2> 1778_ACEOF 1779if ac_fn_c_try_compile "$LINENO"; then : 1780 eval "$3=yes" 1781else 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788$as_echo "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_header_compile 1792 1793# ac_fn_c_try_cpp LINENO 1794# ---------------------- 1795# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1796ac_fn_c_try_cpp () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 if { { ac_try="$ac_cpp conftest.$ac_ext" 1800case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1807 ac_status=$? 1808 if test -s conftest.err; then 1809 grep -v '^ *+' conftest.err >conftest.er1 1810 cat conftest.er1 >&5 1811 mv -f conftest.er1 conftest.err 1812 fi 1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1814 test $ac_status = 0; } > conftest.i && { 1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1816 test ! -s conftest.err 1817 }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=1 1824fi 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_c_try_cpp 1829 1830# ac_fn_c_try_run LINENO 1831# ---------------------- 1832# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1833# that executables *can* be run. 1834ac_fn_c_try_run () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 if { { ac_try="$ac_link" 1838case "(($ac_try" in 1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1840 *) ac_try_echo=$ac_try;; 1841esac 1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1843$as_echo "$ac_try_echo"; } >&5 1844 (eval "$ac_link") 2>&5 1845 ac_status=$? 1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1848 { { case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851esac 1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853$as_echo "$ac_try_echo"; } >&5 1854 (eval "$ac_try") 2>&5 1855 ac_status=$? 1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1857 test $ac_status = 0; }; }; then : 1858 ac_retval=0 1859else 1860 $as_echo "$as_me: program exited with status $ac_status" >&5 1861 $as_echo "$as_me: failed program was:" >&5 1862sed 's/^/| /' conftest.$ac_ext >&5 1863 1864 ac_retval=$ac_status 1865fi 1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 as_fn_set_status $ac_retval 1869 1870} # ac_fn_c_try_run 1871 1872# ac_fn_c_check_func LINENO FUNC VAR 1873# ---------------------------------- 1874# Tests whether FUNC exists, setting the cache variable VAR accordingly 1875ac_fn_c_check_func () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1879$as_echo_n "checking for $2... " >&6; } 1880if eval \${$3+:} false; then : 1881 $as_echo_n "(cached) " >&6 1882else 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884/* end confdefs.h. */ 1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1887#define $2 innocuous_$2 1888 1889/* System header to define __stub macros and hopefully few prototypes, 1890 which can conflict with char $2 (); below. 1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1892 <limits.h> exists even on freestanding compilers. */ 1893 1894#ifdef __STDC__ 1895# include <limits.h> 1896#else 1897# include <assert.h> 1898#endif 1899 1900#undef $2 1901 1902/* Override any GCC internal prototype to avoid an error. 1903 Use char because int might match the return type of a GCC 1904 builtin and then its argument prototype would still apply. */ 1905#ifdef __cplusplus 1906extern "C" 1907#endif 1908char $2 (); 1909/* The GNU C library defines this for functions which it implements 1910 to always fail with ENOSYS. Some functions are actually named 1911 something starting with __ and the normal name is an alias. */ 1912#if defined __stub_$2 || defined __stub___$2 1913choke me 1914#endif 1915 1916int 1917main () 1918{ 1919return $2 (); 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_link "$LINENO"; then : 1925 eval "$3=yes" 1926else 1927 eval "$3=no" 1928fi 1929rm -f core conftest.err conftest.$ac_objext \ 1930 conftest$ac_exeext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_c_check_func 1938 1939# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1940# ------------------------------------------------------- 1941# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1942# the include files in INCLUDES and setting the cache variable VAR 1943# accordingly. 1944ac_fn_c_check_header_mongrel () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 if eval \${$3+:} false; then : 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1949$as_echo_n "checking for $2... " >&6; } 1950if eval \${$3+:} false; then : 1951 $as_echo_n "(cached) " >&6 1952fi 1953eval ac_res=\$$3 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1955$as_echo "$ac_res" >&6; } 1956else 1957 # Is the header compilable? 1958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1959$as_echo_n "checking $2 usability... " >&6; } 1960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1961/* end confdefs.h. */ 1962$4 1963#include <$2> 1964_ACEOF 1965if ac_fn_c_try_compile "$LINENO"; then : 1966 ac_header_compiler=yes 1967else 1968 ac_header_compiler=no 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1972$as_echo "$ac_header_compiler" >&6; } 1973 1974# Is the header present? 1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1976$as_echo_n "checking $2 presence... " >&6; } 1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978/* end confdefs.h. */ 1979#include <$2> 1980_ACEOF 1981if ac_fn_c_try_cpp "$LINENO"; then : 1982 ac_header_preproc=yes 1983else 1984 ac_header_preproc=no 1985fi 1986rm -f conftest.err conftest.i conftest.$ac_ext 1987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1988$as_echo "$ac_header_preproc" >&6; } 1989 1990# So? What about this header? 1991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1992 yes:no: ) 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1994$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1997 ;; 1998 no:yes:* ) 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2000$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2002$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2004$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2006$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2008$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2009( $as_echo "## ---------------------------------------------------- ## 2010## Report this to https://github.com/libgd/libgd/issues ## 2011## ---------------------------------------------------- ##" 2012 ) | sed "s/^/$as_me: WARNING: /" >&2 2013 ;; 2014esac 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2016$as_echo_n "checking for $2... " >&6; } 2017if eval \${$3+:} false; then : 2018 $as_echo_n "(cached) " >&6 2019else 2020 eval "$3=\$ac_header_compiler" 2021fi 2022eval ac_res=\$$3 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024$as_echo "$ac_res" >&6; } 2025fi 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_header_mongrel 2029cat >config.log <<_ACEOF 2030This file contains any messages produced by compilers while 2031running configure, to aid debugging if configure makes a mistake. 2032 2033It was created by GD $as_me 2.3.1, which was 2034generated by GNU Autoconf 2.69. Invocation command line was 2035 2036 $ $0 $@ 2037 2038_ACEOF 2039exec 5>>config.log 2040{ 2041cat <<_ASUNAME 2042## --------- ## 2043## Platform. ## 2044## --------- ## 2045 2046hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2047uname -m = `(uname -m) 2>/dev/null || echo unknown` 2048uname -r = `(uname -r) 2>/dev/null || echo unknown` 2049uname -s = `(uname -s) 2>/dev/null || echo unknown` 2050uname -v = `(uname -v) 2>/dev/null || echo unknown` 2051 2052/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2053/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2054 2055/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2056/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2057/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2058/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2059/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2060/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2061/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2062 2063_ASUNAME 2064 2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2066for as_dir in $PATH 2067do 2068 IFS=$as_save_IFS 2069 test -z "$as_dir" && as_dir=. 2070 $as_echo "PATH: $as_dir" 2071 done 2072IFS=$as_save_IFS 2073 2074} >&5 2075 2076cat >&5 <<_ACEOF 2077 2078 2079## ----------- ## 2080## Core tests. ## 2081## ----------- ## 2082 2083_ACEOF 2084 2085 2086# Keep a trace of the command line. 2087# Strip out --no-create and --no-recursion so they do not pile up. 2088# Strip out --silent because we don't want to record it for future runs. 2089# Also quote any args containing shell meta-characters. 2090# Make two passes to allow for proper duplicate-argument suppression. 2091ac_configure_args= 2092ac_configure_args0= 2093ac_configure_args1= 2094ac_must_keep_next=false 2095for ac_pass in 1 2 2096do 2097 for ac_arg 2098 do 2099 case $ac_arg in 2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2102 | -silent | --silent | --silen | --sile | --sil) 2103 continue ;; 2104 *\'*) 2105 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2106 esac 2107 case $ac_pass in 2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2109 2) 2110 as_fn_append ac_configure_args1 " '$ac_arg'" 2111 if test $ac_must_keep_next = true; then 2112 ac_must_keep_next=false # Got value, back to normal. 2113 else 2114 case $ac_arg in 2115 *=* | --config-cache | -C | -disable-* | --disable-* \ 2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2118 | -with-* | --with-* | -without-* | --without-* | --x) 2119 case "$ac_configure_args0 " in 2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2121 esac 2122 ;; 2123 -* ) ac_must_keep_next=true ;; 2124 esac 2125 fi 2126 as_fn_append ac_configure_args " '$ac_arg'" 2127 ;; 2128 esac 2129 done 2130done 2131{ ac_configure_args0=; unset ac_configure_args0;} 2132{ ac_configure_args1=; unset ac_configure_args1;} 2133 2134# When interrupted or exit'd, cleanup temporary files, and complete 2135# config.log. We remove comments because anyway the quotes in there 2136# would cause problems or look ugly. 2137# WARNING: Use '\'' to represent an apostrophe within the trap. 2138# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2139trap 'exit_status=$? 2140 # Save into config.log some information that might help in debugging. 2141 { 2142 echo 2143 2144 $as_echo "## ---------------- ## 2145## Cache variables. ## 2146## ---------------- ##" 2147 echo 2148 # The following way of writing the cache mishandles newlines in values, 2149( 2150 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in #( 2153 *${as_nl}*) 2154 case $ac_var in #( 2155 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2156$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2157 esac 2158 case $ac_var in #( 2159 _ | IFS | as_nl) ;; #( 2160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2161 *) { eval $ac_var=; unset $ac_var;} ;; 2162 esac ;; 2163 esac 2164 done 2165 (set) 2>&1 | 2166 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2167 *${as_nl}ac_space=\ *) 2168 sed -n \ 2169 "s/'\''/'\''\\\\'\'''\''/g; 2170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2171 ;; #( 2172 *) 2173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2174 ;; 2175 esac | 2176 sort 2177) 2178 echo 2179 2180 $as_echo "## ----------------- ## 2181## Output variables. ## 2182## ----------------- ##" 2183 echo 2184 for ac_var in $ac_subst_vars 2185 do 2186 eval ac_val=\$$ac_var 2187 case $ac_val in 2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2189 esac 2190 $as_echo "$ac_var='\''$ac_val'\''" 2191 done | sort 2192 echo 2193 2194 if test -n "$ac_subst_files"; then 2195 $as_echo "## ------------------- ## 2196## File substitutions. ## 2197## ------------------- ##" 2198 echo 2199 for ac_var in $ac_subst_files 2200 do 2201 eval ac_val=\$$ac_var 2202 case $ac_val in 2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2204 esac 2205 $as_echo "$ac_var='\''$ac_val'\''" 2206 done | sort 2207 echo 2208 fi 2209 2210 if test -s confdefs.h; then 2211 $as_echo "## ----------- ## 2212## confdefs.h. ## 2213## ----------- ##" 2214 echo 2215 cat confdefs.h 2216 echo 2217 fi 2218 test "$ac_signal" != 0 && 2219 $as_echo "$as_me: caught signal $ac_signal" 2220 $as_echo "$as_me: exit $exit_status" 2221 } >&5 2222 rm -f core *.core core.conftest.* && 2223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2224 exit $exit_status 2225' 0 2226for ac_signal in 1 2 13 15; do 2227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2228done 2229ac_signal=0 2230 2231# confdefs.h avoids OS command line length limits that DEFS can exceed. 2232rm -f -r conftest* confdefs.h 2233 2234$as_echo "/* confdefs.h */" > confdefs.h 2235 2236# Predefined preprocessor variables. 2237 2238cat >>confdefs.h <<_ACEOF 2239#define PACKAGE_NAME "$PACKAGE_NAME" 2240_ACEOF 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2244_ACEOF 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE_VERSION "$PACKAGE_VERSION" 2248_ACEOF 2249 2250cat >>confdefs.h <<_ACEOF 2251#define PACKAGE_STRING "$PACKAGE_STRING" 2252_ACEOF 2253 2254cat >>confdefs.h <<_ACEOF 2255#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2256_ACEOF 2257 2258cat >>confdefs.h <<_ACEOF 2259#define PACKAGE_URL "$PACKAGE_URL" 2260_ACEOF 2261 2262 2263# Let the site file select an alternate cache file if it wants to. 2264# Prefer an explicitly selected file to automatically selected ones. 2265ac_site_file1=NONE 2266ac_site_file2=NONE 2267if test -n "$CONFIG_SITE"; then 2268 # We do not want a PATH search for config.site. 2269 case $CONFIG_SITE in #(( 2270 -*) ac_site_file1=./$CONFIG_SITE;; 2271 */*) ac_site_file1=$CONFIG_SITE;; 2272 *) ac_site_file1=./$CONFIG_SITE;; 2273 esac 2274elif test "x$prefix" != xNONE; then 2275 ac_site_file1=$prefix/share/config.site 2276 ac_site_file2=$prefix/etc/config.site 2277else 2278 ac_site_file1=$ac_default_prefix/share/config.site 2279 ac_site_file2=$ac_default_prefix/etc/config.site 2280fi 2281for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2282do 2283 test "x$ac_site_file" = xNONE && continue 2284 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2286$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2287 sed 's/^/| /' "$ac_site_file" >&5 2288 . "$ac_site_file" \ 2289 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2291as_fn_error $? "failed to load site script $ac_site_file 2292See \`config.log' for more details" "$LINENO" 5; } 2293 fi 2294done 2295 2296if test -r "$cache_file"; then 2297 # Some versions of bash will fail to source /dev/null (special files 2298 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2299 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2301$as_echo "$as_me: loading cache $cache_file" >&6;} 2302 case $cache_file in 2303 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2304 *) . "./$cache_file";; 2305 esac 2306 fi 2307else 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2309$as_echo "$as_me: creating cache $cache_file" >&6;} 2310 >$cache_file 2311fi 2312 2313as_fn_append ac_header_list " dirent.h" 2314as_fn_append ac_header_list " inttypes.h" 2315as_fn_append ac_header_list " stdint.h" 2316as_fn_append ac_header_list " strings.h" 2317as_fn_append ac_header_list " unistd.h" 2318as_fn_append ac_header_list " sys/stat.h" 2319as_fn_append ac_header_list " sys/types.h" 2320# Check that the precious variables saved in the cache have kept the same 2321# value. 2322ac_cache_corrupted=false 2323for ac_var in $ac_precious_vars; do 2324 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2325 eval ac_new_set=\$ac_env_${ac_var}_set 2326 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2327 eval ac_new_val=\$ac_env_${ac_var}_value 2328 case $ac_old_set,$ac_new_set in 2329 set,) 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2331$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2332 ac_cache_corrupted=: ;; 2333 ,set) 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2335$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2336 ac_cache_corrupted=: ;; 2337 ,);; 2338 *) 2339 if test "x$ac_old_val" != "x$ac_new_val"; then 2340 # differences in whitespace do not lead to failure. 2341 ac_old_val_w=`echo x $ac_old_val` 2342 ac_new_val_w=`echo x $ac_new_val` 2343 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2345$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2346 ac_cache_corrupted=: 2347 else 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2349$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2350 eval $ac_var=\$ac_old_val 2351 fi 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2353$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2355$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2356 fi;; 2357 esac 2358 # Pass precious variables to config.status. 2359 if test "$ac_new_set" = set; then 2360 case $ac_new_val in 2361 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2362 *) ac_arg=$ac_var=$ac_new_val ;; 2363 esac 2364 case " $ac_configure_args " in 2365 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2366 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2367 esac 2368 fi 2369done 2370if $ac_cache_corrupted; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2374$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2375 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2376fi 2377## -------------------- ## 2378## Main body of script. ## 2379## -------------------- ## 2380 2381ac_ext=c 2382ac_cpp='$CPP $CPPFLAGS' 2383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2385ac_compiler_gnu=$ac_cv_c_compiler_gnu 2386 2387 2388 2389ac_aux_dir= 2390for ac_dir in config "$srcdir"/config; do 2391 if test -f "$ac_dir/install-sh"; then 2392 ac_aux_dir=$ac_dir 2393 ac_install_sh="$ac_aux_dir/install-sh -c" 2394 break 2395 elif test -f "$ac_dir/install.sh"; then 2396 ac_aux_dir=$ac_dir 2397 ac_install_sh="$ac_aux_dir/install.sh -c" 2398 break 2399 elif test -f "$ac_dir/shtool"; then 2400 ac_aux_dir=$ac_dir 2401 ac_install_sh="$ac_aux_dir/shtool install -c" 2402 break 2403 fi 2404done 2405if test -z "$ac_aux_dir"; then 2406 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2407fi 2408 2409# These three variables are undocumented and unsupported, 2410# and are intended to be withdrawn in a future Autoconf release. 2411# They can cause serious problems if a builder's source tree is in a directory 2412# whose full name contains unusual characters. 2413ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2414ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2415ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2416 2417 2418 2419# Make sure we can run config.sub. 2420$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2421 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2422 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2424$as_echo_n "checking build system type... " >&6; } 2425if ${ac_cv_build+:} false; then : 2426 $as_echo_n "(cached) " >&6 2427else 2428 ac_build_alias=$build_alias 2429test "x$ac_build_alias" = x && 2430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2431test "x$ac_build_alias" = x && 2432 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2433ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2435 2436fi 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2438$as_echo "$ac_cv_build" >&6; } 2439case $ac_cv_build in 2440*-*-*) ;; 2441*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2442esac 2443build=$ac_cv_build 2444ac_save_IFS=$IFS; IFS='-' 2445set x $ac_cv_build 2446shift 2447build_cpu=$1 2448build_vendor=$2 2449shift; shift 2450# Remember, the first character of IFS is used to create $*, 2451# except with old shells: 2452build_os=$* 2453IFS=$ac_save_IFS 2454case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2455 2456 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2458$as_echo_n "checking host system type... " >&6; } 2459if ${ac_cv_host+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 if test "x$host_alias" = x; then 2463 ac_cv_host=$ac_cv_build 2464else 2465 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2467fi 2468 2469fi 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2471$as_echo "$ac_cv_host" >&6; } 2472case $ac_cv_host in 2473*-*-*) ;; 2474*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2475esac 2476host=$ac_cv_host 2477ac_save_IFS=$IFS; IFS='-' 2478set x $ac_cv_host 2479shift 2480host_cpu=$1 2481host_vendor=$2 2482shift; shift 2483# Remember, the first character of IFS is used to create $*, 2484# except with old shells: 2485host_os=$* 2486IFS=$ac_save_IFS 2487case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2488 2489 2490 2491 2492 2493 2494 2495 2496GDLIB_LT_CURRENT=3 2497GDLIB_LT_REVISION=9 2498GDLIB_LT_AGE=0 2499 2500 2501 2502 2503 2504 2505 2506 2507am__api_version='1.15' 2508 2509# Find a good install program. We prefer a C program (faster), 2510# so one script is as good as another. But avoid the broken or 2511# incompatible versions: 2512# SysV /etc/install, /usr/sbin/install 2513# SunOS /usr/etc/install 2514# IRIX /sbin/install 2515# AIX /bin/install 2516# AmigaOS /C/install, which installs bootblocks on floppy discs 2517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2518# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2520# OS/2's system install, which has a completely different semantic 2521# ./install, which can be erroneously created by make from ./install.sh. 2522# Reject install programs that cannot install multiple files. 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2524$as_echo_n "checking for a BSD-compatible install... " >&6; } 2525if test -z "$INSTALL"; then 2526if ${ac_cv_path_install+:} false; then : 2527 $as_echo_n "(cached) " >&6 2528else 2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 # Account for people who put trailing slashes in PATH elements. 2535case $as_dir/ in #(( 2536 ./ | .// | /[cC]/* | \ 2537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2538 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2539 /usr/ucb/* ) ;; 2540 *) 2541 # OSF1 and SCO ODT 3.0 have their own names for install. 2542 # Don't use installbsd from OSF since it installs stuff as root 2543 # by default. 2544 for ac_prog in ginstall scoinst install; do 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2547 if test $ac_prog = install && 2548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2549 # AIX install. It has an incompatible calling convention. 2550 : 2551 elif test $ac_prog = install && 2552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2553 # program-specific install script used by HP pwplus--don't use. 2554 : 2555 else 2556 rm -rf conftest.one conftest.two conftest.dir 2557 echo one > conftest.one 2558 echo two > conftest.two 2559 mkdir conftest.dir 2560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2561 test -s conftest.one && test -s conftest.two && 2562 test -s conftest.dir/conftest.one && 2563 test -s conftest.dir/conftest.two 2564 then 2565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2566 break 3 2567 fi 2568 fi 2569 fi 2570 done 2571 done 2572 ;; 2573esac 2574 2575 done 2576IFS=$as_save_IFS 2577 2578rm -rf conftest.one conftest.two conftest.dir 2579 2580fi 2581 if test "${ac_cv_path_install+set}" = set; then 2582 INSTALL=$ac_cv_path_install 2583 else 2584 # As a last resort, use the slow shell script. Don't cache a 2585 # value for INSTALL within a source directory, because that will 2586 # break other packages using the cache if that directory is 2587 # removed, or if the value is a relative name. 2588 INSTALL=$ac_install_sh 2589 fi 2590fi 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2592$as_echo "$INSTALL" >&6; } 2593 2594# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2595# It thinks the first close brace ends the variable substitution. 2596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2597 2598test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2599 2600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2601 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2603$as_echo_n "checking whether build environment is sane... " >&6; } 2604# Reject unsafe characters in $srcdir or the absolute working directory 2605# name. Accept space and tab only in the latter. 2606am_lf=' 2607' 2608case `pwd` in 2609 *[\\\"\#\$\&\'\`$am_lf]*) 2610 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2611esac 2612case $srcdir in 2613 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2614 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2615esac 2616 2617# Do 'set' in a subshell so we don't clobber the current shell's 2618# arguments. Must try -L first in case configure is actually a 2619# symlink; some systems play weird games with the mod time of symlinks 2620# (eg FreeBSD returns the mod time of the symlink's containing 2621# directory). 2622if ( 2623 am_has_slept=no 2624 for am_try in 1 2; do 2625 echo "timestamp, slept: $am_has_slept" > conftest.file 2626 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2627 if test "$*" = "X"; then 2628 # -L didn't work. 2629 set X `ls -t "$srcdir/configure" conftest.file` 2630 fi 2631 if test "$*" != "X $srcdir/configure conftest.file" \ 2632 && test "$*" != "X conftest.file $srcdir/configure"; then 2633 2634 # If neither matched, then we have a broken ls. This can happen 2635 # if, for instance, CONFIG_SHELL is bash and it inherits a 2636 # broken ls alias from the environment. This has actually 2637 # happened. Such a system could not be considered "sane". 2638 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2639 alias in your environment" "$LINENO" 5 2640 fi 2641 if test "$2" = conftest.file || test $am_try -eq 2; then 2642 break 2643 fi 2644 # Just in case. 2645 sleep 1 2646 am_has_slept=yes 2647 done 2648 test "$2" = conftest.file 2649 ) 2650then 2651 # Ok. 2652 : 2653else 2654 as_fn_error $? "newly created file is older than distributed files! 2655Check your system clock" "$LINENO" 5 2656fi 2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2658$as_echo "yes" >&6; } 2659# If we didn't sleep, we still need to ensure time stamps of config.status and 2660# generated files are strictly newer. 2661am_sleep_pid= 2662if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2663 ( sleep 1 ) & 2664 am_sleep_pid=$! 2665fi 2666 2667rm -f conftest.file 2668 2669test "$program_prefix" != NONE && 2670 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2671# Use a double $ so make ignores it. 2672test "$program_suffix" != NONE && 2673 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2674# Double any \ or $. 2675# By default was `s,x,x', remove it if useless. 2676ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2677program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2678 2679# Expand $ac_aux_dir to an absolute path. 2680am_aux_dir=`cd "$ac_aux_dir" && pwd` 2681 2682if test x"${MISSING+set}" != xset; then 2683 case $am_aux_dir in 2684 *\ * | *\ *) 2685 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2686 *) 2687 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2688 esac 2689fi 2690# Use eval to expand $SHELL 2691if eval "$MISSING --is-lightweight"; then 2692 am_missing_run="$MISSING " 2693else 2694 am_missing_run= 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2696$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2697fi 2698 2699if test x"${install_sh+set}" != xset; then 2700 case $am_aux_dir in 2701 *\ * | *\ *) 2702 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2703 *) 2704 install_sh="\${SHELL} $am_aux_dir/install-sh" 2705 esac 2706fi 2707 2708# Installed binaries are usually stripped using 'strip' when the user 2709# run "make install-strip". However 'strip' might not be the right 2710# tool to use in cross-compilation environments, therefore Automake 2711# will honor the 'STRIP' environment variable to overrule this program. 2712if test "$cross_compiling" != no; then 2713 if test -n "$ac_tool_prefix"; then 2714 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2715set dummy ${ac_tool_prefix}strip; ac_word=$2 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2717$as_echo_n "checking for $ac_word... " >&6; } 2718if ${ac_cv_prog_STRIP+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 if test -n "$STRIP"; then 2722 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2731 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736 done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741STRIP=$ac_cv_prog_STRIP 2742if test -n "$STRIP"; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2744$as_echo "$STRIP" >&6; } 2745else 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2747$as_echo "no" >&6; } 2748fi 2749 2750 2751fi 2752if test -z "$ac_cv_prog_STRIP"; then 2753 ac_ct_STRIP=$STRIP 2754 # Extract the first word of "strip", so it can be a program name with args. 2755set dummy strip; ac_word=$2 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2757$as_echo_n "checking for $ac_word... " >&6; } 2758if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 if test -n "$ac_ct_STRIP"; then 2762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2771 ac_cv_prog_ac_ct_STRIP="strip" 2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2782if test -n "$ac_ct_STRIP"; then 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2784$as_echo "$ac_ct_STRIP" >&6; } 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2787$as_echo "no" >&6; } 2788fi 2789 2790 if test "x$ac_ct_STRIP" = x; then 2791 STRIP=":" 2792 else 2793 case $cross_compiling:$ac_tool_warned in 2794yes:) 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2797ac_tool_warned=yes ;; 2798esac 2799 STRIP=$ac_ct_STRIP 2800 fi 2801else 2802 STRIP="$ac_cv_prog_STRIP" 2803fi 2804 2805fi 2806INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2807 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2809$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2810if test -z "$MKDIR_P"; then 2811 if ${ac_cv_path_mkdir+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_prog in mkdir gmkdir; do 2820 for ac_exec_ext in '' $ac_executable_extensions; do 2821 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2822 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2823 'mkdir (GNU coreutils) '* | \ 2824 'mkdir (coreutils) '* | \ 2825 'mkdir (fileutils) '4.1*) 2826 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2827 break 3;; 2828 esac 2829 done 2830 done 2831 done 2832IFS=$as_save_IFS 2833 2834fi 2835 2836 test -d ./--version && rmdir ./--version 2837 if test "${ac_cv_path_mkdir+set}" = set; then 2838 MKDIR_P="$ac_cv_path_mkdir -p" 2839 else 2840 # As a last resort, use the slow shell script. Don't cache a 2841 # value for MKDIR_P within a source directory, because that will 2842 # break other packages using the cache if that directory is 2843 # removed, or if the value is a relative name. 2844 MKDIR_P="$ac_install_sh -d" 2845 fi 2846fi 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2848$as_echo "$MKDIR_P" >&6; } 2849 2850for ac_prog in gawk mawk nawk awk 2851do 2852 # Extract the first word of "$ac_prog", so it can be a program name with args. 2853set dummy $ac_prog; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_AWK+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$AWK"; then 2860 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_AWK="$ac_prog" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879AWK=$ac_cv_prog_AWK 2880if test -n "$AWK"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2882$as_echo "$AWK" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 2889 test -n "$AWK" && break 2890done 2891 2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2893$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2894set x ${MAKE-make} 2895ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2896if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 cat >conftest.make <<\_ACEOF 2900SHELL = /bin/sh 2901all: 2902 @echo '@@@%%%=$(MAKE)=@@@%%%' 2903_ACEOF 2904# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2905case `${MAKE-make} -f conftest.make 2>/dev/null` in 2906 *@@@%%%=?*=@@@%%%*) 2907 eval ac_cv_prog_make_${ac_make}_set=yes;; 2908 *) 2909 eval ac_cv_prog_make_${ac_make}_set=no;; 2910esac 2911rm -f conftest.make 2912fi 2913if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2915$as_echo "yes" >&6; } 2916 SET_MAKE= 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920 SET_MAKE="MAKE=${MAKE-make}" 2921fi 2922 2923rm -rf .tst 2>/dev/null 2924mkdir .tst 2>/dev/null 2925if test -d .tst; then 2926 am__leading_dot=. 2927else 2928 am__leading_dot=_ 2929fi 2930rmdir .tst 2>/dev/null 2931 2932# Check whether --enable-silent-rules was given. 2933if test "${enable_silent_rules+set}" = set; then : 2934 enableval=$enable_silent_rules; 2935fi 2936 2937case $enable_silent_rules in # ((( 2938 yes) AM_DEFAULT_VERBOSITY=0;; 2939 no) AM_DEFAULT_VERBOSITY=1;; 2940 *) AM_DEFAULT_VERBOSITY=1;; 2941esac 2942am_make=${MAKE-make} 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2944$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2945if ${am_cv_make_support_nested_variables+:} false; then : 2946 $as_echo_n "(cached) " >&6 2947else 2948 if $as_echo 'TRUE=$(BAR$(V)) 2949BAR0=false 2950BAR1=true 2951V=1 2952am__doit: 2953 @$(TRUE) 2954.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2955 am_cv_make_support_nested_variables=yes 2956else 2957 am_cv_make_support_nested_variables=no 2958fi 2959fi 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2961$as_echo "$am_cv_make_support_nested_variables" >&6; } 2962if test $am_cv_make_support_nested_variables = yes; then 2963 AM_V='$(V)' 2964 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2965else 2966 AM_V=$AM_DEFAULT_VERBOSITY 2967 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2968fi 2969AM_BACKSLASH='\' 2970 2971if test "`cd $srcdir && pwd`" != "`pwd`"; then 2972 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2973 # is not polluted with repeated "-I." 2974 am__isrc=' -I$(srcdir)' 2975 # test to see if srcdir already configured 2976 if test -f $srcdir/config.status; then 2977 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2978 fi 2979fi 2980 2981# test whether we have cygpath 2982if test -z "$CYGPATH_W"; then 2983 if (cygpath --version) >/dev/null 2>/dev/null; then 2984 CYGPATH_W='cygpath -w' 2985 else 2986 CYGPATH_W=echo 2987 fi 2988fi 2989 2990 2991# Define the identity of the package. 2992 PACKAGE='libgd' 2993 VERSION='2.3.1' 2994 2995 2996cat >>confdefs.h <<_ACEOF 2997#define PACKAGE "$PACKAGE" 2998_ACEOF 2999 3000 3001cat >>confdefs.h <<_ACEOF 3002#define VERSION "$VERSION" 3003_ACEOF 3004 3005# Some tools Automake needs. 3006 3007ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3008 3009 3010AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3011 3012 3013AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3014 3015 3016AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3017 3018 3019MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3020 3021# For better backward compatibility. To be removed once Automake 1.9.x 3022# dies out for good. For more background, see: 3023# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3024# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3025mkdir_p='$(MKDIR_P)' 3026 3027# We need awk for the "check" target (and possibly the TAP driver). The 3028# system "awk" is bad on some platforms. 3029# Always define AMTAR for backward compatibility. Yes, it's still used 3030# in the wild :-( We should find a proper way to deprecate it ... 3031AMTAR='$${TAR-tar}' 3032 3033 3034# We'll loop over all known methods to create a tar archive until one works. 3035_am_tools='gnutar pax cpio none' 3036 3037am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3038 3039 3040 3041 3042 3043 3044# POSIX will say in a future version that running "rm -f" with no argument 3045# is OK; and we want to be able to make that assumption in our Makefile 3046# recipes. So use an aggressive probe to check that the usage we want is 3047# actually supported "in the wild" to an acceptable degree. 3048# See automake bug#10828. 3049# To make any issue more visible, cause the running configure to be aborted 3050# by default if the 'rm' program in use doesn't match our expectations; the 3051# user can still override this though. 3052if rm -f && rm -fr && rm -rf; then : OK; else 3053 cat >&2 <<'END' 3054Oops! 3055 3056Your 'rm' program seems unable to run without file operands specified 3057on the command line, even when the '-f' option is present. This is contrary 3058to the behaviour of most rm programs out there, and not conforming with 3059the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3060 3061Please tell bug-automake@gnu.org about your system, including the value 3062of your $PATH and any error possibly output before this message. This 3063can help us improve future automake versions. 3064 3065END 3066 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3067 echo 'Configuration will proceed anyway, since you have set the' >&2 3068 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3069 echo >&2 3070 else 3071 cat >&2 <<'END' 3072Aborting the configuration process, to ensure you take notice of the issue. 3073 3074You can download and install GNU coreutils to get an 'rm' implementation 3075that behaves properly: <http://www.gnu.org/software/coreutils/>. 3076 3077If you want to complete the configuration process using your problematic 3078'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3079to "yes", and re-run configure. 3080 3081END 3082 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3083 fi 3084fi 3085 3086ac_config_headers="$ac_config_headers src/config.h:src/config.hin" 3087 3088 3089DEPDIR="${am__leading_dot}deps" 3090 3091ac_config_commands="$ac_config_commands depfiles" 3092 3093 3094am_make=${MAKE-make} 3095cat > confinc << 'END' 3096am__doit: 3097 @echo this is the am__doit target 3098.PHONY: am__doit 3099END 3100# If we don't find an include directive, just comment out the code. 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3102$as_echo_n "checking for style of include used by $am_make... " >&6; } 3103am__include="#" 3104am__quote= 3105_am_result=none 3106# First try GNU make style include. 3107echo "include confinc" > confmf 3108# Ignore all kinds of additional output from 'make'. 3109case `$am_make -s -f confmf 2> /dev/null` in #( 3110*the\ am__doit\ target*) 3111 am__include=include 3112 am__quote= 3113 _am_result=GNU 3114 ;; 3115esac 3116# Now try BSD make style include. 3117if test "$am__include" = "#"; then 3118 echo '.include "confinc"' > confmf 3119 case `$am_make -s -f confmf 2> /dev/null` in #( 3120 *the\ am__doit\ target*) 3121 am__include=.include 3122 am__quote="\"" 3123 _am_result=BSD 3124 ;; 3125 esac 3126fi 3127 3128 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3130$as_echo "$_am_result" >&6; } 3131rm -f confinc confmf 3132 3133# Check whether --enable-dependency-tracking was given. 3134if test "${enable_dependency_tracking+set}" = set; then : 3135 enableval=$enable_dependency_tracking; 3136fi 3137 3138if test "x$enable_dependency_tracking" != xno; then 3139 am_depcomp="$ac_aux_dir/depcomp" 3140 AMDEPBACKSLASH='\' 3141 am__nodep='_no' 3142fi 3143 if test "x$enable_dependency_tracking" != xno; then 3144 AMDEP_TRUE= 3145 AMDEP_FALSE='#' 3146else 3147 AMDEP_TRUE='#' 3148 AMDEP_FALSE= 3149fi 3150 3151 3152ac_ext=c 3153ac_cpp='$CPP $CPPFLAGS' 3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3156ac_compiler_gnu=$ac_cv_c_compiler_gnu 3157if test -n "$ac_tool_prefix"; then 3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3159set dummy ${ac_tool_prefix}gcc; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if ${ac_cv_prog_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3175 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195fi 3196if test -z "$ac_cv_prog_CC"; then 3197 ac_ct_CC=$CC 3198 # Extract the first word of "gcc", so it can be a program name with args. 3199set dummy gcc; ac_word=$2 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201$as_echo_n "checking for $ac_word... " >&6; } 3202if ${ac_cv_prog_ac_ct_CC+:} false; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 if test -n "$ac_ct_CC"; then 3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3207else 3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3209for as_dir in $PATH 3210do 3211 IFS=$as_save_IFS 3212 test -z "$as_dir" && as_dir=. 3213 for ac_exec_ext in '' $ac_executable_extensions; do 3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3215 ac_cv_prog_ac_ct_CC="gcc" 3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 break 2 3218 fi 3219done 3220 done 3221IFS=$as_save_IFS 3222 3223fi 3224fi 3225ac_ct_CC=$ac_cv_prog_ac_ct_CC 3226if test -n "$ac_ct_CC"; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3228$as_echo "$ac_ct_CC" >&6; } 3229else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232fi 3233 3234 if test "x$ac_ct_CC" = x; then 3235 CC="" 3236 else 3237 case $cross_compiling:$ac_tool_warned in 3238yes:) 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3241ac_tool_warned=yes ;; 3242esac 3243 CC=$ac_ct_CC 3244 fi 3245else 3246 CC="$ac_cv_prog_CC" 3247fi 3248 3249if test -z "$CC"; then 3250 if test -n "$ac_tool_prefix"; then 3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3252set dummy ${ac_tool_prefix}cc; ac_word=$2 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3254$as_echo_n "checking for $ac_word... " >&6; } 3255if ${ac_cv_prog_CC+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$CC"; then 3259 ac_cv_prog_CC="$CC" # Let the user override the test. 3260else 3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 ac_cv_prog_CC="${ac_tool_prefix}cc" 3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3270 break 2 3271 fi 3272done 3273 done 3274IFS=$as_save_IFS 3275 3276fi 3277fi 3278CC=$ac_cv_prog_CC 3279if test -n "$CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3281$as_echo "$CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288 fi 3289fi 3290if test -z "$CC"; then 3291 # Extract the first word of "cc", so it can be a program name with args. 3292set dummy cc; ac_word=$2 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3294$as_echo_n "checking for $ac_word... " >&6; } 3295if ${ac_cv_prog_CC+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 if test -n "$CC"; then 3299 ac_cv_prog_CC="$CC" # Let the user override the test. 3300else 3301 ac_prog_rejected=no 3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 for ac_exec_ext in '' $ac_executable_extensions; do 3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3310 ac_prog_rejected=yes 3311 continue 3312 fi 3313 ac_cv_prog_CC="cc" 3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3315 break 2 3316 fi 3317done 3318 done 3319IFS=$as_save_IFS 3320 3321if test $ac_prog_rejected = yes; then 3322 # We found a bogon in the path, so make sure we never use it. 3323 set dummy $ac_cv_prog_CC 3324 shift 3325 if test $# != 0; then 3326 # We chose a different compiler from the bogus one. 3327 # However, it has the same basename, so the bogon will be chosen 3328 # first if we set CC to just the basename; use the full file name. 3329 shift 3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3331 fi 3332fi 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345fi 3346if test -z "$CC"; then 3347 if test -n "$ac_tool_prefix"; then 3348 for ac_prog in cl.exe 3349 do 3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3351set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3353$as_echo_n "checking for $ac_word... " >&6; } 3354if ${ac_cv_prog_CC+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if test -n "$CC"; then 3358 ac_cv_prog_CC="$CC" # Let the user override the test. 3359else 3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375fi 3376fi 3377CC=$ac_cv_prog_CC 3378if test -n "$CC"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3380$as_echo "$CC" >&6; } 3381else 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384fi 3385 3386 3387 test -n "$CC" && break 3388 done 3389fi 3390if test -z "$CC"; then 3391 ac_ct_CC=$CC 3392 for ac_prog in cl.exe 3393do 3394 # Extract the first word of "$ac_prog", so it can be a program name with args. 3395set dummy $ac_prog; ac_word=$2 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397$as_echo_n "checking for $ac_word... " >&6; } 3398if ${ac_cv_prog_ac_ct_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 if test -n "$ac_ct_CC"; then 3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3403else 3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405for as_dir in $PATH 3406do 3407 IFS=$as_save_IFS 3408 test -z "$as_dir" && as_dir=. 3409 for ac_exec_ext in '' $ac_executable_extensions; do 3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3411 ac_cv_prog_ac_ct_CC="$ac_prog" 3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3413 break 2 3414 fi 3415done 3416 done 3417IFS=$as_save_IFS 3418 3419fi 3420fi 3421ac_ct_CC=$ac_cv_prog_ac_ct_CC 3422if test -n "$ac_ct_CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3424$as_echo "$ac_ct_CC" >&6; } 3425else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427$as_echo "no" >&6; } 3428fi 3429 3430 3431 test -n "$ac_ct_CC" && break 3432done 3433 3434 if test "x$ac_ct_CC" = x; then 3435 CC="" 3436 else 3437 case $cross_compiling:$ac_tool_warned in 3438yes:) 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3441ac_tool_warned=yes ;; 3442esac 3443 CC=$ac_ct_CC 3444 fi 3445fi 3446 3447fi 3448 3449 3450test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3452as_fn_error $? "no acceptable C compiler found in \$PATH 3453See \`config.log' for more details" "$LINENO" 5; } 3454 3455# Provide some information about the compiler. 3456$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3457set X $ac_compile 3458ac_compiler=$2 3459for ac_option in --version -v -V -qversion; do 3460 { { ac_try="$ac_compiler $ac_option >&5" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3466$as_echo "$ac_try_echo"; } >&5 3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3468 ac_status=$? 3469 if test -s conftest.err; then 3470 sed '10a\ 3471... rest of stderr output deleted ... 3472 10q' conftest.err >conftest.er1 3473 cat conftest.er1 >&5 3474 fi 3475 rm -f conftest.er1 conftest.err 3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3477 test $ac_status = 0; } 3478done 3479 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main () 3485{ 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491ac_clean_files_save=$ac_clean_files 3492ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3493# Try to create an executable without -o first, disregard a.out. 3494# It will help us diagnose broken compilers, and finding out an intuition 3495# of exeext. 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3497$as_echo_n "checking whether the C compiler works... " >&6; } 3498ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3499 3500# The possible output files: 3501ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3502 3503ac_rmfiles= 3504for ac_file in $ac_files 3505do 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3509 esac 3510done 3511rm -f $ac_rmfiles 3512 3513if { { ac_try="$ac_link_default" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_link_default") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; then : 3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3525# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3526# in a Makefile. We should not override ac_cv_exeext if it was cached, 3527# so that the user can short-circuit this test for compilers unknown to 3528# Autoconf. 3529for ac_file in $ac_files '' 3530do 3531 test -f "$ac_file" || continue 3532 case $ac_file in 3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3534 ;; 3535 [ab].out ) 3536 # We found the default executable, but exeext='' is most 3537 # certainly right. 3538 break;; 3539 *.* ) 3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3541 then :; else 3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3543 fi 3544 # We set ac_cv_exeext here because the later test for it is not 3545 # safe: cross compilers may not add the suffix if given an `-o' 3546 # argument, so we may need to know it at that point already. 3547 # Even if this section looks crufty: it has the advantage of 3548 # actually working. 3549 break;; 3550 * ) 3551 break;; 3552 esac 3553done 3554test "$ac_cv_exeext" = no && ac_cv_exeext= 3555 3556else 3557 ac_file='' 3558fi 3559if test -z "$ac_file"; then : 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3561$as_echo "no" >&6; } 3562$as_echo "$as_me: failed program was:" >&5 3563sed 's/^/| /' conftest.$ac_ext >&5 3564 3565{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3567as_fn_error 77 "C compiler cannot create executables 3568See \`config.log' for more details" "$LINENO" 5; } 3569else 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3571$as_echo "yes" >&6; } 3572fi 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3574$as_echo_n "checking for C compiler default output file name... " >&6; } 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3576$as_echo "$ac_file" >&6; } 3577ac_exeext=$ac_cv_exeext 3578 3579rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3580ac_clean_files=$ac_clean_files_save 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3582$as_echo_n "checking for suffix of executables... " >&6; } 3583if { { ac_try="$ac_link" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3589$as_echo "$ac_try_echo"; } >&5 3590 (eval "$ac_link") 2>&5 3591 ac_status=$? 3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3593 test $ac_status = 0; }; then : 3594 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3595# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3596# work properly (i.e., refer to `conftest.exe'), while it won't with 3597# `rm'. 3598for ac_file in conftest.exe conftest conftest.*; do 3599 test -f "$ac_file" || continue 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3603 break;; 3604 * ) break;; 3605 esac 3606done 3607else 3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3611See \`config.log' for more details" "$LINENO" 5; } 3612fi 3613rm -f conftest conftest$ac_cv_exeext 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3615$as_echo "$ac_cv_exeext" >&6; } 3616 3617rm -f conftest.$ac_ext 3618EXEEXT=$ac_cv_exeext 3619ac_exeext=$EXEEXT 3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622#include <stdio.h> 3623int 3624main () 3625{ 3626FILE *f = fopen ("conftest.out", "w"); 3627 return ferror (f) || fclose (f) != 0; 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633ac_clean_files="$ac_clean_files conftest.out" 3634# Check that the compiler produces executables we can run. If not, either 3635# the compiler is broken, or we cross compile. 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3637$as_echo_n "checking whether we are cross compiling... " >&6; } 3638if test "$cross_compiling" != yes; then 3639 { { ac_try="$ac_link" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_link") 2>&5 3647 ac_status=$? 3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3649 test $ac_status = 0; } 3650 if { ac_try='./conftest$ac_cv_exeext' 3651 { { case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_try") 2>&5 3658 ac_status=$? 3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3660 test $ac_status = 0; }; }; then 3661 cross_compiling=no 3662 else 3663 if test "$cross_compiling" = maybe; then 3664 cross_compiling=yes 3665 else 3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3668as_fn_error $? "cannot run C compiled programs. 3669If you meant to cross compile, use \`--host'. 3670See \`config.log' for more details" "$LINENO" 5; } 3671 fi 3672 fi 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3675$as_echo "$cross_compiling" >&6; } 3676 3677rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3678ac_clean_files=$ac_clean_files_save 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3680$as_echo_n "checking for suffix of object files... " >&6; } 3681if ${ac_cv_objext+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695rm -f conftest.o conftest.obj 3696if { { ac_try="$ac_compile" 3697case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700esac 3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3702$as_echo "$ac_try_echo"; } >&5 3703 (eval "$ac_compile") 2>&5 3704 ac_status=$? 3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3706 test $ac_status = 0; }; then : 3707 for ac_file in conftest.o conftest.obj conftest.*; do 3708 test -f "$ac_file" || continue; 3709 case $ac_file in 3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3712 break;; 3713 esac 3714done 3715else 3716 $as_echo "$as_me: failed program was:" >&5 3717sed 's/^/| /' conftest.$ac_ext >&5 3718 3719{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3721as_fn_error $? "cannot compute suffix of object files: cannot compile 3722See \`config.log' for more details" "$LINENO" 5; } 3723fi 3724rm -f conftest.$ac_cv_objext conftest.$ac_ext 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3727$as_echo "$ac_cv_objext" >&6; } 3728OBJEXT=$ac_cv_objext 3729ac_objext=$OBJEXT 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3731$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3732if ${ac_cv_c_compiler_gnu+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737 3738int 3739main () 3740{ 3741#ifndef __GNUC__ 3742 choke me 3743#endif 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749if ac_fn_c_try_compile "$LINENO"; then : 3750 ac_compiler_gnu=yes 3751else 3752 ac_compiler_gnu=no 3753fi 3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3755ac_cv_c_compiler_gnu=$ac_compiler_gnu 3756 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3759$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3760if test $ac_compiler_gnu = yes; then 3761 GCC=yes 3762else 3763 GCC= 3764fi 3765ac_test_CFLAGS=${CFLAGS+set} 3766ac_save_CFLAGS=$CFLAGS 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3768$as_echo_n "checking whether $CC accepts -g... " >&6; } 3769if ${ac_cv_prog_cc_g+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 ac_save_c_werror_flag=$ac_c_werror_flag 3773 ac_c_werror_flag=yes 3774 ac_cv_prog_cc_g=no 3775 CFLAGS="-g" 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778 3779int 3780main () 3781{ 3782 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787if ac_fn_c_try_compile "$LINENO"; then : 3788 ac_cv_prog_cc_g=yes 3789else 3790 CFLAGS="" 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main () 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802if ac_fn_c_try_compile "$LINENO"; then : 3803 3804else 3805 ac_c_werror_flag=$ac_save_c_werror_flag 3806 CFLAGS="-g" 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809 3810int 3811main () 3812{ 3813 3814 ; 3815 return 0; 3816} 3817_ACEOF 3818if ac_fn_c_try_compile "$LINENO"; then : 3819 ac_cv_prog_cc_g=yes 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822fi 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824fi 3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826 ac_c_werror_flag=$ac_save_c_werror_flag 3827fi 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3829$as_echo "$ac_cv_prog_cc_g" >&6; } 3830if test "$ac_test_CFLAGS" = set; then 3831 CFLAGS=$ac_save_CFLAGS 3832elif test $ac_cv_prog_cc_g = yes; then 3833 if test "$GCC" = yes; then 3834 CFLAGS="-g -O2" 3835 else 3836 CFLAGS="-g" 3837 fi 3838else 3839 if test "$GCC" = yes; then 3840 CFLAGS="-O2" 3841 else 3842 CFLAGS= 3843 fi 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3846$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3847if ${ac_cv_prog_cc_c89+:} false; then : 3848 $as_echo_n "(cached) " >&6 3849else 3850 ac_cv_prog_cc_c89=no 3851ac_save_CC=$CC 3852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3853/* end confdefs.h. */ 3854#include <stdarg.h> 3855#include <stdio.h> 3856struct stat; 3857/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3858struct buf { int x; }; 3859FILE * (*rcsopen) (struct buf *, struct stat *, int); 3860static char *e (p, i) 3861 char **p; 3862 int i; 3863{ 3864 return p[i]; 3865} 3866static char *f (char * (*g) (char **, int), char **p, ...) 3867{ 3868 char *s; 3869 va_list v; 3870 va_start (v,p); 3871 s = g (p, va_arg (v,int)); 3872 va_end (v); 3873 return s; 3874} 3875 3876/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3877 function prototypes and stuff, but not '\xHH' hex character constants. 3878 These don't provoke an error unfortunately, instead are silently treated 3879 as 'x'. The following induces an error, until -std is added to get 3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3881 array size at least. It's necessary to write '\x00'==0 to get something 3882 that's true only with -std. */ 3883int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3884 3885/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3886 inside strings and character constants. */ 3887#define FOO(x) 'x' 3888int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3889 3890int test (int i, double x); 3891struct s1 {int (*f) (int a);}; 3892struct s2 {int (*f) (double a);}; 3893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3894int argc; 3895char **argv; 3896int 3897main () 3898{ 3899return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3900 ; 3901 return 0; 3902} 3903_ACEOF 3904for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3906do 3907 CC="$ac_save_CC $ac_arg" 3908 if ac_fn_c_try_compile "$LINENO"; then : 3909 ac_cv_prog_cc_c89=$ac_arg 3910fi 3911rm -f core conftest.err conftest.$ac_objext 3912 test "x$ac_cv_prog_cc_c89" != "xno" && break 3913done 3914rm -f conftest.$ac_ext 3915CC=$ac_save_CC 3916 3917fi 3918# AC_CACHE_VAL 3919case "x$ac_cv_prog_cc_c89" in 3920 x) 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3922$as_echo "none needed" >&6; } ;; 3923 xno) 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3925$as_echo "unsupported" >&6; } ;; 3926 *) 3927 CC="$CC $ac_cv_prog_cc_c89" 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3929$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3930esac 3931if test "x$ac_cv_prog_cc_c89" != xno; then : 3932 3933fi 3934 3935ac_ext=c 3936ac_cpp='$CPP $CPPFLAGS' 3937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3939ac_compiler_gnu=$ac_cv_c_compiler_gnu 3940 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3947$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3948if ${am_cv_prog_cc_c_o+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953 3954int 3955main () 3956{ 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962 # Make sure it works both with $CC and with simple cc. 3963 # Following AC_PROG_CC_C_O, we do the test twice because some 3964 # compilers refuse to overwrite an existing .o file with -o, 3965 # though they will create one. 3966 am_cv_prog_cc_c_o=yes 3967 for am_i in 1 2; do 3968 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3969 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3970 ac_status=$? 3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3972 (exit $ac_status); } \ 3973 && test -f conftest2.$ac_objext; then 3974 : OK 3975 else 3976 am_cv_prog_cc_c_o=no 3977 break 3978 fi 3979 done 3980 rm -f core conftest* 3981 unset am_i 3982fi 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3984$as_echo "$am_cv_prog_cc_c_o" >&6; } 3985if test "$am_cv_prog_cc_c_o" != yes; then 3986 # Losing compiler, so override with the script. 3987 # FIXME: It is wrong to rewrite CC. 3988 # But if we don't then we get into trouble of one sort or another. 3989 # A longer-term fix would be to have automake use am__CC in this case, 3990 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3991 CC="$am_aux_dir/compile $CC" 3992fi 3993ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999 4000depcc="$CC" am_compiler_list= 4001 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4003$as_echo_n "checking dependency style of $depcc... " >&6; } 4004if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4008 # We make a subdir and do the tests there. Otherwise we can end up 4009 # making bogus files that we don't know about and never remove. For 4010 # instance it was reported that on HP-UX the gcc test will end up 4011 # making a dummy file named 'D' -- because '-MD' means "put the output 4012 # in D". 4013 rm -rf conftest.dir 4014 mkdir conftest.dir 4015 # Copy depcomp to subdir because otherwise we won't find it if we're 4016 # using a relative directory. 4017 cp "$am_depcomp" conftest.dir 4018 cd conftest.dir 4019 # We will build objects and dependencies in a subdirectory because 4020 # it helps to detect inapplicable dependency modes. For instance 4021 # both Tru64's cc and ICC support -MD to output dependencies as a 4022 # side effect of compilation, but ICC will put the dependencies in 4023 # the current directory while Tru64 will put them in the object 4024 # directory. 4025 mkdir sub 4026 4027 am_cv_CC_dependencies_compiler_type=none 4028 if test "$am_compiler_list" = ""; then 4029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4030 fi 4031 am__universal=false 4032 case " $depcc " in #( 4033 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4034 esac 4035 4036 for depmode in $am_compiler_list; do 4037 # Setup a source with many dependencies, because some compilers 4038 # like to wrap large dependency lists on column 80 (with \), and 4039 # we should not choose a depcomp mode which is confused by this. 4040 # 4041 # We need to recreate these files for each test, as the compiler may 4042 # overwrite some of them when testing with obscure command lines. 4043 # This happens at least with the AIX C compiler. 4044 : > sub/conftest.c 4045 for i in 1 2 3 4 5 6; do 4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4047 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4048 # Solaris 10 /bin/sh. 4049 echo '/* dummy */' > sub/conftst$i.h 4050 done 4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4052 4053 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4054 # mode. It turns out that the SunPro C++ compiler does not properly 4055 # handle '-M -o', and we need to detect this. Also, some Intel 4056 # versions had trouble with output in subdirs. 4057 am__obj=sub/conftest.${OBJEXT-o} 4058 am__minus_obj="-o $am__obj" 4059 case $depmode in 4060 gcc) 4061 # This depmode causes a compiler race in universal mode. 4062 test "$am__universal" = false || continue 4063 ;; 4064 nosideeffect) 4065 # After this tag, mechanisms are not by side-effect, so they'll 4066 # only be used when explicitly requested. 4067 if test "x$enable_dependency_tracking" = xyes; then 4068 continue 4069 else 4070 break 4071 fi 4072 ;; 4073 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4074 # This compiler won't grok '-c -o', but also, the minuso test has 4075 # not run yet. These depmodes are late enough in the game, and 4076 # so weak that their functioning should not be impacted. 4077 am__obj=conftest.${OBJEXT-o} 4078 am__minus_obj= 4079 ;; 4080 none) break ;; 4081 esac 4082 if depmode=$depmode \ 4083 source=sub/conftest.c object=$am__obj \ 4084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4086 >/dev/null 2>conftest.err && 4087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4091 # icc doesn't choke on unknown options, it will just issue warnings 4092 # or remarks (even with -Werror). So we grep stderr for any message 4093 # that says an option was ignored or not supported. 4094 # When given -MP, icc 7.0 and 7.1 complain thusly: 4095 # icc: Command line warning: ignoring option '-M'; no argument required 4096 # The diagnosis changed in icc 8.0: 4097 # icc: Command line remark: option '-MP' not supported 4098 if (grep 'ignoring option' conftest.err || 4099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4100 am_cv_CC_dependencies_compiler_type=$depmode 4101 break 4102 fi 4103 fi 4104 done 4105 4106 cd .. 4107 rm -rf conftest.dir 4108else 4109 am_cv_CC_dependencies_compiler_type=none 4110fi 4111 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4116 4117 if 4118 test "x$enable_dependency_tracking" != xno \ 4119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4120 am__fastdepCC_TRUE= 4121 am__fastdepCC_FALSE='#' 4122else 4123 am__fastdepCC_TRUE='#' 4124 am__fastdepCC_FALSE= 4125fi 4126 4127 4128 4129if test -n "$ac_tool_prefix"; then 4130 for ac_prog in ar lib "link -lib" 4131 do 4132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4133set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4135$as_echo_n "checking for $ac_word... " >&6; } 4136if ${ac_cv_prog_AR+:} false; then : 4137 $as_echo_n "(cached) " >&6 4138else 4139 if test -n "$AR"; then 4140 ac_cv_prog_AR="$AR" # Let the user override the test. 4141else 4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4143for as_dir in $PATH 4144do 4145 IFS=$as_save_IFS 4146 test -z "$as_dir" && as_dir=. 4147 for ac_exec_ext in '' $ac_executable_extensions; do 4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4149 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4151 break 2 4152 fi 4153done 4154 done 4155IFS=$as_save_IFS 4156 4157fi 4158fi 4159AR=$ac_cv_prog_AR 4160if test -n "$AR"; then 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4162$as_echo "$AR" >&6; } 4163else 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4165$as_echo "no" >&6; } 4166fi 4167 4168 4169 test -n "$AR" && break 4170 done 4171fi 4172if test -z "$AR"; then 4173 ac_ct_AR=$AR 4174 for ac_prog in ar lib "link -lib" 4175do 4176 # Extract the first word of "$ac_prog", so it can be a program name with args. 4177set dummy $ac_prog; ac_word=$2 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4179$as_echo_n "checking for $ac_word... " >&6; } 4180if ${ac_cv_prog_ac_ct_AR+:} false; then : 4181 $as_echo_n "(cached) " >&6 4182else 4183 if test -n "$ac_ct_AR"; then 4184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4185else 4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4187for as_dir in $PATH 4188do 4189 IFS=$as_save_IFS 4190 test -z "$as_dir" && as_dir=. 4191 for ac_exec_ext in '' $ac_executable_extensions; do 4192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4193 ac_cv_prog_ac_ct_AR="$ac_prog" 4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4195 break 2 4196 fi 4197done 4198 done 4199IFS=$as_save_IFS 4200 4201fi 4202fi 4203ac_ct_AR=$ac_cv_prog_ac_ct_AR 4204if test -n "$ac_ct_AR"; then 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4206$as_echo "$ac_ct_AR" >&6; } 4207else 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4209$as_echo "no" >&6; } 4210fi 4211 4212 4213 test -n "$ac_ct_AR" && break 4214done 4215 4216 if test "x$ac_ct_AR" = x; then 4217 AR="false" 4218 else 4219 case $cross_compiling:$ac_tool_warned in 4220yes:) 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4223ac_tool_warned=yes ;; 4224esac 4225 AR=$ac_ct_AR 4226 fi 4227fi 4228 4229: ${AR=ar} 4230 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4232$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4233if ${am_cv_ar_interface+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 ac_ext=c 4237ac_cpp='$CPP $CPPFLAGS' 4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4240ac_compiler_gnu=$ac_cv_c_compiler_gnu 4241 4242 am_cv_ar_interface=ar 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245int some_variable = 0; 4246_ACEOF 4247if ac_fn_c_try_compile "$LINENO"; then : 4248 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4250 (eval $am_ar_try) 2>&5 4251 ac_status=$? 4252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4253 test $ac_status = 0; } 4254 if test "$ac_status" -eq 0; then 4255 am_cv_ar_interface=ar 4256 else 4257 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4259 (eval $am_ar_try) 2>&5 4260 ac_status=$? 4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4262 test $ac_status = 0; } 4263 if test "$ac_status" -eq 0; then 4264 am_cv_ar_interface=lib 4265 else 4266 am_cv_ar_interface=unknown 4267 fi 4268 fi 4269 rm -f conftest.lib libconftest.a 4270 4271fi 4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4273 ac_ext=c 4274ac_cpp='$CPP $CPPFLAGS' 4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4277ac_compiler_gnu=$ac_cv_c_compiler_gnu 4278 4279fi 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4281$as_echo "$am_cv_ar_interface" >&6; } 4282 4283case $am_cv_ar_interface in 4284ar) 4285 ;; 4286lib) 4287 # Microsoft lib, so override with the ar-lib wrapper script. 4288 # FIXME: It is wrong to rewrite AR. 4289 # But if we don't then we get into trouble of one sort or another. 4290 # A longer-term fix would be to have automake use am__AR in this case, 4291 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4292 # similar. 4293 AR="$am_aux_dir/ar-lib $AR" 4294 ;; 4295unknown) 4296 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4297 ;; 4298esac 4299 4300 case $ac_cv_prog_cc_stdc in #( 4301 no) : 4302 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4303 *) : 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4305$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4306if ${ac_cv_prog_cc_c99+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 ac_cv_prog_cc_c99=no 4310ac_save_CC=$CC 4311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#include <stdarg.h> 4314#include <stdbool.h> 4315#include <stdlib.h> 4316#include <wchar.h> 4317#include <stdio.h> 4318 4319// Check varargs macros. These examples are taken from C99 6.10.3.5. 4320#define debug(...) fprintf (stderr, __VA_ARGS__) 4321#define showlist(...) puts (#__VA_ARGS__) 4322#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4323static void 4324test_varargs_macros (void) 4325{ 4326 int x = 1234; 4327 int y = 5678; 4328 debug ("Flag"); 4329 debug ("X = %d\n", x); 4330 showlist (The first, second, and third items.); 4331 report (x>y, "x is %d but y is %d", x, y); 4332} 4333 4334// Check long long types. 4335#define BIG64 18446744073709551615ull 4336#define BIG32 4294967295ul 4337#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4338#if !BIG_OK 4339 your preprocessor is broken; 4340#endif 4341#if BIG_OK 4342#else 4343 your preprocessor is broken; 4344#endif 4345static long long int bignum = -9223372036854775807LL; 4346static unsigned long long int ubignum = BIG64; 4347 4348struct incomplete_array 4349{ 4350 int datasize; 4351 double data[]; 4352}; 4353 4354struct named_init { 4355 int number; 4356 const wchar_t *name; 4357 double average; 4358}; 4359 4360typedef const char *ccp; 4361 4362static inline int 4363test_restrict (ccp restrict text) 4364{ 4365 // See if C++-style comments work. 4366 // Iterate through items via the restricted pointer. 4367 // Also check for declarations in for loops. 4368 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4369 continue; 4370 return 0; 4371} 4372 4373// Check varargs and va_copy. 4374static void 4375test_varargs (const char *format, ...) 4376{ 4377 va_list args; 4378 va_start (args, format); 4379 va_list args_copy; 4380 va_copy (args_copy, args); 4381 4382 const char *str; 4383 int number; 4384 float fnumber; 4385 4386 while (*format) 4387 { 4388 switch (*format++) 4389 { 4390 case 's': // string 4391 str = va_arg (args_copy, const char *); 4392 break; 4393 case 'd': // int 4394 number = va_arg (args_copy, int); 4395 break; 4396 case 'f': // float 4397 fnumber = va_arg (args_copy, double); 4398 break; 4399 default: 4400 break; 4401 } 4402 } 4403 va_end (args_copy); 4404 va_end (args); 4405} 4406 4407int 4408main () 4409{ 4410 4411 // Check bool. 4412 _Bool success = false; 4413 4414 // Check restrict. 4415 if (test_restrict ("String literal") == 0) 4416 success = true; 4417 char *restrict newvar = "Another string"; 4418 4419 // Check varargs. 4420 test_varargs ("s, d' f .", "string", 65, 34.234); 4421 test_varargs_macros (); 4422 4423 // Check flexible array members. 4424 struct incomplete_array *ia = 4425 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4426 ia->datasize = 10; 4427 for (int i = 0; i < ia->datasize; ++i) 4428 ia->data[i] = i * 1.234; 4429 4430 // Check named initializers. 4431 struct named_init ni = { 4432 .number = 34, 4433 .name = L"Test wide string", 4434 .average = 543.34343, 4435 }; 4436 4437 ni.number = 58; 4438 4439 int dynamic_array[ni.number]; 4440 dynamic_array[ni.number - 1] = 543; 4441 4442 // work around unused variable warnings 4443 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4444 || dynamic_array[ni.number - 1] != 543); 4445 4446 ; 4447 return 0; 4448} 4449_ACEOF 4450for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4451do 4452 CC="$ac_save_CC $ac_arg" 4453 if ac_fn_c_try_compile "$LINENO"; then : 4454 ac_cv_prog_cc_c99=$ac_arg 4455fi 4456rm -f core conftest.err conftest.$ac_objext 4457 test "x$ac_cv_prog_cc_c99" != "xno" && break 4458done 4459rm -f conftest.$ac_ext 4460CC=$ac_save_CC 4461 4462fi 4463# AC_CACHE_VAL 4464case "x$ac_cv_prog_cc_c99" in 4465 x) 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4467$as_echo "none needed" >&6; } ;; 4468 xno) 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4470$as_echo "unsupported" >&6; } ;; 4471 *) 4472 CC="$CC $ac_cv_prog_cc_c99" 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4474$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4475esac 4476if test "x$ac_cv_prog_cc_c99" != xno; then : 4477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4478else 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4480$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4481if ${ac_cv_prog_cc_c89+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 ac_cv_prog_cc_c89=no 4485ac_save_CC=$CC 4486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487/* end confdefs.h. */ 4488#include <stdarg.h> 4489#include <stdio.h> 4490struct stat; 4491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4492struct buf { int x; }; 4493FILE * (*rcsopen) (struct buf *, struct stat *, int); 4494static char *e (p, i) 4495 char **p; 4496 int i; 4497{ 4498 return p[i]; 4499} 4500static char *f (char * (*g) (char **, int), char **p, ...) 4501{ 4502 char *s; 4503 va_list v; 4504 va_start (v,p); 4505 s = g (p, va_arg (v,int)); 4506 va_end (v); 4507 return s; 4508} 4509 4510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4511 function prototypes and stuff, but not '\xHH' hex character constants. 4512 These don't provoke an error unfortunately, instead are silently treated 4513 as 'x'. The following induces an error, until -std is added to get 4514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4515 array size at least. It's necessary to write '\x00'==0 to get something 4516 that's true only with -std. */ 4517int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4518 4519/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4520 inside strings and character constants. */ 4521#define FOO(x) 'x' 4522int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4523 4524int test (int i, double x); 4525struct s1 {int (*f) (int a);}; 4526struct s2 {int (*f) (double a);}; 4527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4528int argc; 4529char **argv; 4530int 4531main () 4532{ 4533return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4534 ; 4535 return 0; 4536} 4537_ACEOF 4538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4540do 4541 CC="$ac_save_CC $ac_arg" 4542 if ac_fn_c_try_compile "$LINENO"; then : 4543 ac_cv_prog_cc_c89=$ac_arg 4544fi 4545rm -f core conftest.err conftest.$ac_objext 4546 test "x$ac_cv_prog_cc_c89" != "xno" && break 4547done 4548rm -f conftest.$ac_ext 4549CC=$ac_save_CC 4550 4551fi 4552# AC_CACHE_VAL 4553case "x$ac_cv_prog_cc_c89" in 4554 x) 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4556$as_echo "none needed" >&6; } ;; 4557 xno) 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4559$as_echo "unsupported" >&6; } ;; 4560 *) 4561 CC="$CC $ac_cv_prog_cc_c89" 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4563$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4564esac 4565if test "x$ac_cv_prog_cc_c89" != xno; then : 4566 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4567else 4568 ac_cv_prog_cc_stdc=no 4569fi 4570 4571fi 4572 ;; 4573esac 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4575$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4576 if ${ac_cv_prog_cc_stdc+:} false; then : 4577 $as_echo_n "(cached) " >&6 4578fi 4579 4580 case $ac_cv_prog_cc_stdc in #( 4581 no) : 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4583$as_echo "unsupported" >&6; } ;; #( 4584 '') : 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4586$as_echo "none needed" >&6; } ;; #( 4587 *) : 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4589$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4590esac 4591 4592 4593 4594case `pwd` in 4595 *\ * | *\ *) 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4597$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4598esac 4599 4600 4601 4602macro_version='2.4.6' 4603macro_revision='2.4.6' 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617ltmain=$ac_aux_dir/ltmain.sh 4618 4619# Backslashify metacharacters that are still active within 4620# double-quoted strings. 4621sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4622 4623# Same as above, but do not quote variable references. 4624double_quote_subst='s/\(["`\\]\)/\\\1/g' 4625 4626# Sed substitution to delay expansion of an escaped shell variable in a 4627# double_quote_subst'ed string. 4628delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4629 4630# Sed substitution to delay expansion of an escaped single quote. 4631delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4632 4633# Sed substitution to avoid accidental globbing in evaled expressions 4634no_glob_subst='s/\*/\\\*/g' 4635 4636ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4637ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4638ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4639 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4641$as_echo_n "checking how to print strings... " >&6; } 4642# Test print first, because it will be a builtin if present. 4643if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4645 ECHO='print -r --' 4646elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4647 ECHO='printf %s\n' 4648else 4649 # Use this function as a fallback that always works. 4650 func_fallback_echo () 4651 { 4652 eval 'cat <<_LTECHO_EOF 4653$1 4654_LTECHO_EOF' 4655 } 4656 ECHO='func_fallback_echo' 4657fi 4658 4659# func_echo_all arg... 4660# Invoke $ECHO with all args, space-separated. 4661func_echo_all () 4662{ 4663 $ECHO "" 4664} 4665 4666case $ECHO in 4667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4668$as_echo "printf" >&6; } ;; 4669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4670$as_echo "print -r" >&6; } ;; 4671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4672$as_echo "cat" >&6; } ;; 4673esac 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4689$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4690if ${ac_cv_path_SED+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4694 for ac_i in 1 2 3 4 5 6 7; do 4695 ac_script="$ac_script$as_nl$ac_script" 4696 done 4697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4698 { ac_script=; unset ac_script;} 4699 if test -z "$SED"; then 4700 ac_path_SED_found=false 4701 # Loop through the user's path and test for each of PROGNAME-LIST 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH 4704do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_prog in sed gsed; do 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4710 as_fn_executable_p "$ac_path_SED" || continue 4711# Check for GNU ac_path_SED and select it if it is found. 4712 # Check for GNU $ac_path_SED 4713case `"$ac_path_SED" --version 2>&1` in 4714*GNU*) 4715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4716*) 4717 ac_count=0 4718 $as_echo_n 0123456789 >"conftest.in" 4719 while : 4720 do 4721 cat "conftest.in" "conftest.in" >"conftest.tmp" 4722 mv "conftest.tmp" "conftest.in" 4723 cp "conftest.in" "conftest.nl" 4724 $as_echo '' >> "conftest.nl" 4725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4727 as_fn_arith $ac_count + 1 && ac_count=$as_val 4728 if test $ac_count -gt ${ac_path_SED_max-0}; then 4729 # Best one so far, save it but keep looking for a better one 4730 ac_cv_path_SED="$ac_path_SED" 4731 ac_path_SED_max=$ac_count 4732 fi 4733 # 10*(2^10) chars as input seems more than enough 4734 test $ac_count -gt 10 && break 4735 done 4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4737esac 4738 4739 $ac_path_SED_found && break 3 4740 done 4741 done 4742 done 4743IFS=$as_save_IFS 4744 if test -z "$ac_cv_path_SED"; then 4745 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4746 fi 4747else 4748 ac_cv_path_SED=$SED 4749fi 4750 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4753$as_echo "$ac_cv_path_SED" >&6; } 4754 SED="$ac_cv_path_SED" 4755 rm -f conftest.sed 4756 4757test -z "$SED" && SED=sed 4758Xsed="$SED -e 1s/^X//" 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4771$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4772if ${ac_cv_path_GREP+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 if test -z "$GREP"; then 4776 ac_path_GREP_found=false 4777 # Loop through the user's path and test for each of PROGNAME-LIST 4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4780do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_prog in grep ggrep; do 4784 for ac_exec_ext in '' $ac_executable_extensions; do 4785 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4786 as_fn_executable_p "$ac_path_GREP" || continue 4787# Check for GNU ac_path_GREP and select it if it is found. 4788 # Check for GNU $ac_path_GREP 4789case `"$ac_path_GREP" --version 2>&1` in 4790*GNU*) 4791 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4792*) 4793 ac_count=0 4794 $as_echo_n 0123456789 >"conftest.in" 4795 while : 4796 do 4797 cat "conftest.in" "conftest.in" >"conftest.tmp" 4798 mv "conftest.tmp" "conftest.in" 4799 cp "conftest.in" "conftest.nl" 4800 $as_echo 'GREP' >> "conftest.nl" 4801 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4803 as_fn_arith $ac_count + 1 && ac_count=$as_val 4804 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4805 # Best one so far, save it but keep looking for a better one 4806 ac_cv_path_GREP="$ac_path_GREP" 4807 ac_path_GREP_max=$ac_count 4808 fi 4809 # 10*(2^10) chars as input seems more than enough 4810 test $ac_count -gt 10 && break 4811 done 4812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4813esac 4814 4815 $ac_path_GREP_found && break 3 4816 done 4817 done 4818 done 4819IFS=$as_save_IFS 4820 if test -z "$ac_cv_path_GREP"; then 4821 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4822 fi 4823else 4824 ac_cv_path_GREP=$GREP 4825fi 4826 4827fi 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4829$as_echo "$ac_cv_path_GREP" >&6; } 4830 GREP="$ac_cv_path_GREP" 4831 4832 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4834$as_echo_n "checking for egrep... " >&6; } 4835if ${ac_cv_path_EGREP+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4839 then ac_cv_path_EGREP="$GREP -E" 4840 else 4841 if test -z "$EGREP"; then 4842 ac_path_EGREP_found=false 4843 # Loop through the user's path and test for each of PROGNAME-LIST 4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_prog in egrep; do 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4852 as_fn_executable_p "$ac_path_EGREP" || continue 4853# Check for GNU ac_path_EGREP and select it if it is found. 4854 # Check for GNU $ac_path_EGREP 4855case `"$ac_path_EGREP" --version 2>&1` in 4856*GNU*) 4857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4858*) 4859 ac_count=0 4860 $as_echo_n 0123456789 >"conftest.in" 4861 while : 4862 do 4863 cat "conftest.in" "conftest.in" >"conftest.tmp" 4864 mv "conftest.tmp" "conftest.in" 4865 cp "conftest.in" "conftest.nl" 4866 $as_echo 'EGREP' >> "conftest.nl" 4867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4869 as_fn_arith $ac_count + 1 && ac_count=$as_val 4870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4871 # Best one so far, save it but keep looking for a better one 4872 ac_cv_path_EGREP="$ac_path_EGREP" 4873 ac_path_EGREP_max=$ac_count 4874 fi 4875 # 10*(2^10) chars as input seems more than enough 4876 test $ac_count -gt 10 && break 4877 done 4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4879esac 4880 4881 $ac_path_EGREP_found && break 3 4882 done 4883 done 4884 done 4885IFS=$as_save_IFS 4886 if test -z "$ac_cv_path_EGREP"; then 4887 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4888 fi 4889else 4890 ac_cv_path_EGREP=$EGREP 4891fi 4892 4893 fi 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4896$as_echo "$ac_cv_path_EGREP" >&6; } 4897 EGREP="$ac_cv_path_EGREP" 4898 4899 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4901$as_echo_n "checking for fgrep... " >&6; } 4902if ${ac_cv_path_FGREP+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4906 then ac_cv_path_FGREP="$GREP -F" 4907 else 4908 if test -z "$FGREP"; then 4909 ac_path_FGREP_found=false 4910 # Loop through the user's path and test for each of PROGNAME-LIST 4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4913do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_prog in fgrep; do 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4919 as_fn_executable_p "$ac_path_FGREP" || continue 4920# Check for GNU ac_path_FGREP and select it if it is found. 4921 # Check for GNU $ac_path_FGREP 4922case `"$ac_path_FGREP" --version 2>&1` in 4923*GNU*) 4924 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4925*) 4926 ac_count=0 4927 $as_echo_n 0123456789 >"conftest.in" 4928 while : 4929 do 4930 cat "conftest.in" "conftest.in" >"conftest.tmp" 4931 mv "conftest.tmp" "conftest.in" 4932 cp "conftest.in" "conftest.nl" 4933 $as_echo 'FGREP' >> "conftest.nl" 4934 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4936 as_fn_arith $ac_count + 1 && ac_count=$as_val 4937 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4938 # Best one so far, save it but keep looking for a better one 4939 ac_cv_path_FGREP="$ac_path_FGREP" 4940 ac_path_FGREP_max=$ac_count 4941 fi 4942 # 10*(2^10) chars as input seems more than enough 4943 test $ac_count -gt 10 && break 4944 done 4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4946esac 4947 4948 $ac_path_FGREP_found && break 3 4949 done 4950 done 4951 done 4952IFS=$as_save_IFS 4953 if test -z "$ac_cv_path_FGREP"; then 4954 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4955 fi 4956else 4957 ac_cv_path_FGREP=$FGREP 4958fi 4959 4960 fi 4961fi 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4963$as_echo "$ac_cv_path_FGREP" >&6; } 4964 FGREP="$ac_cv_path_FGREP" 4965 4966 4967test -z "$GREP" && GREP=grep 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987# Check whether --with-gnu-ld was given. 4988if test "${with_gnu_ld+set}" = set; then : 4989 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4990else 4991 with_gnu_ld=no 4992fi 4993 4994ac_prog=ld 4995if test yes = "$GCC"; then 4996 # Check if gcc -print-prog-name=ld gives a path. 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4998$as_echo_n "checking for ld used by $CC... " >&6; } 4999 case $host in 5000 *-*-mingw*) 5001 # gcc leaves a trailing carriage return, which upsets mingw 5002 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5003 *) 5004 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5005 esac 5006 case $ac_prog in 5007 # Accept absolute paths. 5008 [\\/]* | ?:[\\/]*) 5009 re_direlt='/[^/][^/]*/\.\./' 5010 # Canonicalize the pathname of ld 5011 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5012 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5013 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5014 done 5015 test -z "$LD" && LD=$ac_prog 5016 ;; 5017 "") 5018 # If it fails, then pretend we aren't using GCC. 5019 ac_prog=ld 5020 ;; 5021 *) 5022 # If it is relative, then search for the first ld in PATH. 5023 with_gnu_ld=unknown 5024 ;; 5025 esac 5026elif test yes = "$with_gnu_ld"; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5028$as_echo_n "checking for GNU ld... " >&6; } 5029else 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5031$as_echo_n "checking for non-GNU ld... " >&6; } 5032fi 5033if ${lt_cv_path_LD+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 if test -z "$LD"; then 5037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5038 for ac_dir in $PATH; do 5039 IFS=$lt_save_ifs 5040 test -z "$ac_dir" && ac_dir=. 5041 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5042 lt_cv_path_LD=$ac_dir/$ac_prog 5043 # Check to see if the program is GNU ld. I'd rather use --version, 5044 # but apparently some variants of GNU ld only accept -v. 5045 # Break only if it was the GNU/non-GNU ld that we prefer. 5046 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5047 *GNU* | *'with BFD'*) 5048 test no != "$with_gnu_ld" && break 5049 ;; 5050 *) 5051 test yes != "$with_gnu_ld" && break 5052 ;; 5053 esac 5054 fi 5055 done 5056 IFS=$lt_save_ifs 5057else 5058 lt_cv_path_LD=$LD # Let the user override the test with a path. 5059fi 5060fi 5061 5062LD=$lt_cv_path_LD 5063if test -n "$LD"; then 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5065$as_echo "$LD" >&6; } 5066else 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5068$as_echo "no" >&6; } 5069fi 5070test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5072$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5073if ${lt_cv_prog_gnu_ld+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5077case `$LD -v 2>&1 </dev/null` in 5078*GNU* | *'with BFD'*) 5079 lt_cv_prog_gnu_ld=yes 5080 ;; 5081*) 5082 lt_cv_prog_gnu_ld=no 5083 ;; 5084esac 5085fi 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5087$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5088with_gnu_ld=$lt_cv_prog_gnu_ld 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5099$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5100if ${lt_cv_path_NM+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -n "$NM"; then 5104 # Let the user override the test. 5105 lt_cv_path_NM=$NM 5106else 5107 lt_nm_to_check=${ac_tool_prefix}nm 5108 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5109 lt_nm_to_check="$lt_nm_to_check nm" 5110 fi 5111 for lt_tmp_nm in $lt_nm_to_check; do 5112 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5113 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5114 IFS=$lt_save_ifs 5115 test -z "$ac_dir" && ac_dir=. 5116 tmp_nm=$ac_dir/$lt_tmp_nm 5117 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5118 # Check to see if the nm accepts a BSD-compat flag. 5119 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5120 # nm: unknown option "B" ignored 5121 # Tru64's nm complains that /dev/null is an invalid object file 5122 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5123 case $build_os in 5124 mingw*) lt_bad_file=conftest.nm/nofile ;; 5125 *) lt_bad_file=/dev/null ;; 5126 esac 5127 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5128 *$lt_bad_file* | *'Invalid file or object type'*) 5129 lt_cv_path_NM="$tmp_nm -B" 5130 break 2 5131 ;; 5132 *) 5133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5134 */dev/null*) 5135 lt_cv_path_NM="$tmp_nm -p" 5136 break 2 5137 ;; 5138 *) 5139 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5140 continue # so that we can try to find one that supports BSD flags 5141 ;; 5142 esac 5143 ;; 5144 esac 5145 fi 5146 done 5147 IFS=$lt_save_ifs 5148 done 5149 : ${lt_cv_path_NM=no} 5150fi 5151fi 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5153$as_echo "$lt_cv_path_NM" >&6; } 5154if test no != "$lt_cv_path_NM"; then 5155 NM=$lt_cv_path_NM 5156else 5157 # Didn't find any BSD compatible name lister, look for dumpbin. 5158 if test -n "$DUMPBIN"; then : 5159 # Let the user override the test. 5160 else 5161 if test -n "$ac_tool_prefix"; then 5162 for ac_prog in dumpbin "link -dump" 5163 do 5164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5165set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5167$as_echo_n "checking for $ac_word... " >&6; } 5168if ${ac_cv_prog_DUMPBIN+:} false; then : 5169 $as_echo_n "(cached) " >&6 5170else 5171 if test -n "$DUMPBIN"; then 5172 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5173else 5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5175for as_dir in $PATH 5176do 5177 IFS=$as_save_IFS 5178 test -z "$as_dir" && as_dir=. 5179 for ac_exec_ext in '' $ac_executable_extensions; do 5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5181 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5183 break 2 5184 fi 5185done 5186 done 5187IFS=$as_save_IFS 5188 5189fi 5190fi 5191DUMPBIN=$ac_cv_prog_DUMPBIN 5192if test -n "$DUMPBIN"; then 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5194$as_echo "$DUMPBIN" >&6; } 5195else 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5197$as_echo "no" >&6; } 5198fi 5199 5200 5201 test -n "$DUMPBIN" && break 5202 done 5203fi 5204if test -z "$DUMPBIN"; then 5205 ac_ct_DUMPBIN=$DUMPBIN 5206 for ac_prog in dumpbin "link -dump" 5207do 5208 # Extract the first word of "$ac_prog", so it can be a program name with args. 5209set dummy $ac_prog; ac_word=$2 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5211$as_echo_n "checking for $ac_word... " >&6; } 5212if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 if test -n "$ac_ct_DUMPBIN"; then 5216 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5225 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230 done 5231IFS=$as_save_IFS 5232 5233fi 5234fi 5235ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5236if test -n "$ac_ct_DUMPBIN"; then 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5238$as_echo "$ac_ct_DUMPBIN" >&6; } 5239else 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241$as_echo "no" >&6; } 5242fi 5243 5244 5245 test -n "$ac_ct_DUMPBIN" && break 5246done 5247 5248 if test "x$ac_ct_DUMPBIN" = x; then 5249 DUMPBIN=":" 5250 else 5251 case $cross_compiling:$ac_tool_warned in 5252yes:) 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5255ac_tool_warned=yes ;; 5256esac 5257 DUMPBIN=$ac_ct_DUMPBIN 5258 fi 5259fi 5260 5261 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5262 *COFF*) 5263 DUMPBIN="$DUMPBIN -symbols -headers" 5264 ;; 5265 *) 5266 DUMPBIN=: 5267 ;; 5268 esac 5269 fi 5270 5271 if test : != "$DUMPBIN"; then 5272 NM=$DUMPBIN 5273 fi 5274fi 5275test -z "$NM" && NM=nm 5276 5277 5278 5279 5280 5281 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5283$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5284if ${lt_cv_nm_interface+:} false; then : 5285 $as_echo_n "(cached) " >&6 5286else 5287 lt_cv_nm_interface="BSD nm" 5288 echo "int some_variable = 0;" > conftest.$ac_ext 5289 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5290 (eval "$ac_compile" 2>conftest.err) 5291 cat conftest.err >&5 5292 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5293 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5294 cat conftest.err >&5 5295 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5296 cat conftest.out >&5 5297 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5298 lt_cv_nm_interface="MS dumpbin" 5299 fi 5300 rm -f conftest* 5301fi 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5303$as_echo "$lt_cv_nm_interface" >&6; } 5304 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5306$as_echo_n "checking whether ln -s works... " >&6; } 5307LN_S=$as_ln_s 5308if test "$LN_S" = "ln -s"; then 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5310$as_echo "yes" >&6; } 5311else 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5313$as_echo "no, using $LN_S" >&6; } 5314fi 5315 5316# find the maximum length of command line arguments 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5318$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5319if ${lt_cv_sys_max_cmd_len+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321else 5322 i=0 5323 teststring=ABCD 5324 5325 case $build_os in 5326 msdosdjgpp*) 5327 # On DJGPP, this test can blow up pretty badly due to problems in libc 5328 # (any single argument exceeding 2000 bytes causes a buffer overrun 5329 # during glob expansion). Even if it were fixed, the result of this 5330 # check would be larger than it should be. 5331 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5332 ;; 5333 5334 gnu*) 5335 # Under GNU Hurd, this test is not required because there is 5336 # no limit to the length of command line arguments. 5337 # Libtool will interpret -1 as no limit whatsoever 5338 lt_cv_sys_max_cmd_len=-1; 5339 ;; 5340 5341 cygwin* | mingw* | cegcc*) 5342 # On Win9x/ME, this test blows up -- it succeeds, but takes 5343 # about 5 minutes as the teststring grows exponentially. 5344 # Worse, since 9x/ME are not pre-emptively multitasking, 5345 # you end up with a "frozen" computer, even though with patience 5346 # the test eventually succeeds (with a max line length of 256k). 5347 # Instead, let's just punt: use the minimum linelength reported by 5348 # all of the supported platforms: 8192 (on NT/2K/XP). 5349 lt_cv_sys_max_cmd_len=8192; 5350 ;; 5351 5352 mint*) 5353 # On MiNT this can take a long time and run out of memory. 5354 lt_cv_sys_max_cmd_len=8192; 5355 ;; 5356 5357 amigaos*) 5358 # On AmigaOS with pdksh, this test takes hours, literally. 5359 # So we just punt and use a minimum line length of 8192. 5360 lt_cv_sys_max_cmd_len=8192; 5361 ;; 5362 5363 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5364 # This has been around since 386BSD, at least. Likely further. 5365 if test -x /sbin/sysctl; then 5366 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5367 elif test -x /usr/sbin/sysctl; then 5368 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5369 else 5370 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5371 fi 5372 # And add a safety zone 5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5375 ;; 5376 5377 interix*) 5378 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5379 lt_cv_sys_max_cmd_len=196608 5380 ;; 5381 5382 os2*) 5383 # The test takes a long time on OS/2. 5384 lt_cv_sys_max_cmd_len=8192 5385 ;; 5386 5387 osf*) 5388 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5389 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5390 # nice to cause kernel panics so lets avoid the loop below. 5391 # First set a reasonable default. 5392 lt_cv_sys_max_cmd_len=16384 5393 # 5394 if test -x /sbin/sysconfig; then 5395 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5396 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5397 esac 5398 fi 5399 ;; 5400 sco3.2v5*) 5401 lt_cv_sys_max_cmd_len=102400 5402 ;; 5403 sysv5* | sco5v6* | sysv4.2uw2*) 5404 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5405 if test -n "$kargmax"; then 5406 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5407 else 5408 lt_cv_sys_max_cmd_len=32768 5409 fi 5410 ;; 5411 *) 5412 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5413 if test -n "$lt_cv_sys_max_cmd_len" && \ 5414 test undefined != "$lt_cv_sys_max_cmd_len"; then 5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5417 else 5418 # Make teststring a little bigger before we do anything with it. 5419 # a 1K string should be a reasonable start. 5420 for i in 1 2 3 4 5 6 7 8; do 5421 teststring=$teststring$teststring 5422 done 5423 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5424 # If test is not a shell built-in, we'll probably end up computing a 5425 # maximum length that is only half of the actual maximum length, but 5426 # we can't tell. 5427 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5428 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5429 test 17 != "$i" # 1/2 MB should be enough 5430 do 5431 i=`expr $i + 1` 5432 teststring=$teststring$teststring 5433 done 5434 # Only check the string length outside the loop. 5435 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5436 teststring= 5437 # Add a significant safety factor because C++ compilers can tack on 5438 # massive amounts of additional arguments before passing them to the 5439 # linker. It appears as though 1/2 is a usable value. 5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5441 fi 5442 ;; 5443 esac 5444 5445fi 5446 5447if test -n "$lt_cv_sys_max_cmd_len"; then 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5449$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5450else 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5452$as_echo "none" >&6; } 5453fi 5454max_cmd_len=$lt_cv_sys_max_cmd_len 5455 5456 5457 5458 5459 5460 5461: ${CP="cp -f"} 5462: ${MV="mv -f"} 5463: ${RM="rm -f"} 5464 5465if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5466 lt_unset=unset 5467else 5468 lt_unset=false 5469fi 5470 5471 5472 5473 5474 5475# test EBCDIC or ASCII 5476case `echo X|tr X '\101'` in 5477 A) # ASCII based system 5478 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5479 lt_SP2NL='tr \040 \012' 5480 lt_NL2SP='tr \015\012 \040\040' 5481 ;; 5482 *) # EBCDIC based system 5483 lt_SP2NL='tr \100 \n' 5484 lt_NL2SP='tr \r\n \100\100' 5485 ;; 5486esac 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5497$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5498if ${lt_cv_to_host_file_cmd+:} false; then : 5499 $as_echo_n "(cached) " >&6 5500else 5501 case $host in 5502 *-*-mingw* ) 5503 case $build in 5504 *-*-mingw* ) # actually msys 5505 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5506 ;; 5507 *-*-cygwin* ) 5508 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5509 ;; 5510 * ) # otherwise, assume *nix 5511 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5512 ;; 5513 esac 5514 ;; 5515 *-*-cygwin* ) 5516 case $build in 5517 *-*-mingw* ) # actually msys 5518 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5519 ;; 5520 *-*-cygwin* ) 5521 lt_cv_to_host_file_cmd=func_convert_file_noop 5522 ;; 5523 * ) # otherwise, assume *nix 5524 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5525 ;; 5526 esac 5527 ;; 5528 * ) # unhandled hosts (and "normal" native builds) 5529 lt_cv_to_host_file_cmd=func_convert_file_noop 5530 ;; 5531esac 5532 5533fi 5534 5535to_host_file_cmd=$lt_cv_to_host_file_cmd 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5537$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5538 5539 5540 5541 5542 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5544$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5545if ${lt_cv_to_tool_file_cmd+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547else 5548 #assume ordinary cross tools, or native build. 5549lt_cv_to_tool_file_cmd=func_convert_file_noop 5550case $host in 5551 *-*-mingw* ) 5552 case $build in 5553 *-*-mingw* ) # actually msys 5554 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5555 ;; 5556 esac 5557 ;; 5558esac 5559 5560fi 5561 5562to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5564$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5565 5566 5567 5568 5569 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5571$as_echo_n "checking for $LD option to reload object files... " >&6; } 5572if ${lt_cv_ld_reload_flag+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 lt_cv_ld_reload_flag='-r' 5576fi 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5578$as_echo "$lt_cv_ld_reload_flag" >&6; } 5579reload_flag=$lt_cv_ld_reload_flag 5580case $reload_flag in 5581"" | " "*) ;; 5582*) reload_flag=" $reload_flag" ;; 5583esac 5584reload_cmds='$LD$reload_flag -o $output$reload_objs' 5585case $host_os in 5586 cygwin* | mingw* | pw32* | cegcc*) 5587 if test yes != "$GCC"; then 5588 reload_cmds=false 5589 fi 5590 ;; 5591 darwin*) 5592 if test yes = "$GCC"; then 5593 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5594 else 5595 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5596 fi 5597 ;; 5598esac 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608if test -n "$ac_tool_prefix"; then 5609 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5610set dummy ${ac_tool_prefix}objdump; ac_word=$2 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5612$as_echo_n "checking for $ac_word... " >&6; } 5613if ${ac_cv_prog_OBJDUMP+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 if test -n "$OBJDUMP"; then 5617 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5618else 5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5620for as_dir in $PATH 5621do 5622 IFS=$as_save_IFS 5623 test -z "$as_dir" && as_dir=. 5624 for ac_exec_ext in '' $ac_executable_extensions; do 5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5626 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5628 break 2 5629 fi 5630done 5631 done 5632IFS=$as_save_IFS 5633 5634fi 5635fi 5636OBJDUMP=$ac_cv_prog_OBJDUMP 5637if test -n "$OBJDUMP"; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5639$as_echo "$OBJDUMP" >&6; } 5640else 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5642$as_echo "no" >&6; } 5643fi 5644 5645 5646fi 5647if test -z "$ac_cv_prog_OBJDUMP"; then 5648 ac_ct_OBJDUMP=$OBJDUMP 5649 # Extract the first word of "objdump", so it can be a program name with args. 5650set dummy objdump; ac_word=$2 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5652$as_echo_n "checking for $ac_word... " >&6; } 5653if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 if test -n "$ac_ct_OBJDUMP"; then 5657 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5658else 5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5660for as_dir in $PATH 5661do 5662 IFS=$as_save_IFS 5663 test -z "$as_dir" && as_dir=. 5664 for ac_exec_ext in '' $ac_executable_extensions; do 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5666 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5668 break 2 5669 fi 5670done 5671 done 5672IFS=$as_save_IFS 5673 5674fi 5675fi 5676ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5677if test -n "$ac_ct_OBJDUMP"; then 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5679$as_echo "$ac_ct_OBJDUMP" >&6; } 5680else 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5682$as_echo "no" >&6; } 5683fi 5684 5685 if test "x$ac_ct_OBJDUMP" = x; then 5686 OBJDUMP="false" 5687 else 5688 case $cross_compiling:$ac_tool_warned in 5689yes:) 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5692ac_tool_warned=yes ;; 5693esac 5694 OBJDUMP=$ac_ct_OBJDUMP 5695 fi 5696else 5697 OBJDUMP="$ac_cv_prog_OBJDUMP" 5698fi 5699 5700test -z "$OBJDUMP" && OBJDUMP=objdump 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5711$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5712if ${lt_cv_deplibs_check_method+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 lt_cv_file_magic_cmd='$MAGIC_CMD' 5716lt_cv_file_magic_test_file= 5717lt_cv_deplibs_check_method='unknown' 5718# Need to set the preceding variable on all platforms that support 5719# interlibrary dependencies. 5720# 'none' -- dependencies not supported. 5721# 'unknown' -- same as none, but documents that we really don't know. 5722# 'pass_all' -- all dependencies passed with no checks. 5723# 'test_compile' -- check by making test program. 5724# 'file_magic [[regex]]' -- check by looking for files in library path 5725# that responds to the $file_magic_cmd with a given extended regex. 5726# If you have 'file' or equivalent on your system and you're not sure 5727# whether 'pass_all' will *always* work, you probably want this one. 5728 5729case $host_os in 5730aix[4-9]*) 5731 lt_cv_deplibs_check_method=pass_all 5732 ;; 5733 5734beos*) 5735 lt_cv_deplibs_check_method=pass_all 5736 ;; 5737 5738bsdi[45]*) 5739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5740 lt_cv_file_magic_cmd='/usr/bin/file -L' 5741 lt_cv_file_magic_test_file=/shlib/libc.so 5742 ;; 5743 5744cygwin*) 5745 # func_win32_libid is a shell function defined in ltmain.sh 5746 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5747 lt_cv_file_magic_cmd='func_win32_libid' 5748 ;; 5749 5750mingw* | pw32*) 5751 # Base MSYS/MinGW do not provide the 'file' command needed by 5752 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5753 # unless we find 'file', for example because we are cross-compiling. 5754 if ( file / ) >/dev/null 2>&1; then 5755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5756 lt_cv_file_magic_cmd='func_win32_libid' 5757 else 5758 # Keep this pattern in sync with the one in func_win32_libid. 5759 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5760 lt_cv_file_magic_cmd='$OBJDUMP -f' 5761 fi 5762 ;; 5763 5764cegcc*) 5765 # use the weaker test based on 'objdump'. See mingw*. 5766 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5767 lt_cv_file_magic_cmd='$OBJDUMP -f' 5768 ;; 5769 5770darwin* | rhapsody*) 5771 lt_cv_deplibs_check_method=pass_all 5772 ;; 5773 5774freebsd* | dragonfly*) 5775 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5776 case $host_cpu in 5777 i*86 ) 5778 # Not sure whether the presence of OpenBSD here was a mistake. 5779 # Let's accept both of them until this is cleared up. 5780 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5781 lt_cv_file_magic_cmd=/usr/bin/file 5782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5783 ;; 5784 esac 5785 else 5786 lt_cv_deplibs_check_method=pass_all 5787 fi 5788 ;; 5789 5790haiku*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794hpux10.20* | hpux11*) 5795 lt_cv_file_magic_cmd=/usr/bin/file 5796 case $host_cpu in 5797 ia64*) 5798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5799 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5800 ;; 5801 hppa*64*) 5802 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]' 5803 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5804 ;; 5805 *) 5806 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5807 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5808 ;; 5809 esac 5810 ;; 5811 5812interix[3-9]*) 5813 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5815 ;; 5816 5817irix5* | irix6* | nonstopux*) 5818 case $LD in 5819 *-32|*"-32 ") libmagic=32-bit;; 5820 *-n32|*"-n32 ") libmagic=N32;; 5821 *-64|*"-64 ") libmagic=64-bit;; 5822 *) libmagic=never-match;; 5823 esac 5824 lt_cv_deplibs_check_method=pass_all 5825 ;; 5826 5827# This must be glibc/ELF. 5828linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5829 lt_cv_deplibs_check_method=pass_all 5830 ;; 5831 5832netbsd* | netbsdelf*-gnu) 5833 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5835 else 5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5837 fi 5838 ;; 5839 5840newos6*) 5841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5842 lt_cv_file_magic_cmd=/usr/bin/file 5843 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5844 ;; 5845 5846*nto* | *qnx*) 5847 lt_cv_deplibs_check_method=pass_all 5848 ;; 5849 5850openbsd* | bitrig*) 5851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5853 else 5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5855 fi 5856 ;; 5857 5858osf3* | osf4* | osf5*) 5859 lt_cv_deplibs_check_method=pass_all 5860 ;; 5861 5862rdos*) 5863 lt_cv_deplibs_check_method=pass_all 5864 ;; 5865 5866solaris*) 5867 lt_cv_deplibs_check_method=pass_all 5868 ;; 5869 5870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 5874sysv4 | sysv4.3*) 5875 case $host_vendor in 5876 motorola) 5877 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]' 5878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5879 ;; 5880 ncr) 5881 lt_cv_deplibs_check_method=pass_all 5882 ;; 5883 sequent) 5884 lt_cv_file_magic_cmd='/bin/file' 5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5886 ;; 5887 sni) 5888 lt_cv_file_magic_cmd='/bin/file' 5889 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5890 lt_cv_file_magic_test_file=/lib/libc.so 5891 ;; 5892 siemens) 5893 lt_cv_deplibs_check_method=pass_all 5894 ;; 5895 pc) 5896 lt_cv_deplibs_check_method=pass_all 5897 ;; 5898 esac 5899 ;; 5900 5901tpf*) 5902 lt_cv_deplibs_check_method=pass_all 5903 ;; 5904os2*) 5905 lt_cv_deplibs_check_method=pass_all 5906 ;; 5907esac 5908 5909fi 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5911$as_echo "$lt_cv_deplibs_check_method" >&6; } 5912 5913file_magic_glob= 5914want_nocaseglob=no 5915if test "$build" = "$host"; then 5916 case $host_os in 5917 mingw* | pw32*) 5918 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5919 want_nocaseglob=yes 5920 else 5921 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5922 fi 5923 ;; 5924 esac 5925fi 5926 5927file_magic_cmd=$lt_cv_file_magic_cmd 5928deplibs_check_method=$lt_cv_deplibs_check_method 5929test -z "$deplibs_check_method" && deplibs_check_method=unknown 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952if test -n "$ac_tool_prefix"; then 5953 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5954set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5956$as_echo_n "checking for $ac_word... " >&6; } 5957if ${ac_cv_prog_DLLTOOL+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 if test -n "$DLLTOOL"; then 5961 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5970 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974done 5975 done 5976IFS=$as_save_IFS 5977 5978fi 5979fi 5980DLLTOOL=$ac_cv_prog_DLLTOOL 5981if test -n "$DLLTOOL"; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5983$as_echo "$DLLTOOL" >&6; } 5984else 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986$as_echo "no" >&6; } 5987fi 5988 5989 5990fi 5991if test -z "$ac_cv_prog_DLLTOOL"; then 5992 ac_ct_DLLTOOL=$DLLTOOL 5993 # Extract the first word of "dlltool", so it can be a program name with args. 5994set dummy dlltool; ac_word=$2 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996$as_echo_n "checking for $ac_word... " >&6; } 5997if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -n "$ac_ct_DLLTOOL"; then 6001 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6002else 6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015 done 6016IFS=$as_save_IFS 6017 6018fi 6019fi 6020ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6021if test -n "$ac_ct_DLLTOOL"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6023$as_echo "$ac_ct_DLLTOOL" >&6; } 6024else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026$as_echo "no" >&6; } 6027fi 6028 6029 if test "x$ac_ct_DLLTOOL" = x; then 6030 DLLTOOL="false" 6031 else 6032 case $cross_compiling:$ac_tool_warned in 6033yes:) 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6036ac_tool_warned=yes ;; 6037esac 6038 DLLTOOL=$ac_ct_DLLTOOL 6039 fi 6040else 6041 DLLTOOL="$ac_cv_prog_DLLTOOL" 6042fi 6043 6044test -z "$DLLTOOL" && DLLTOOL=dlltool 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6056$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6057if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 lt_cv_sharedlib_from_linklib_cmd='unknown' 6061 6062case $host_os in 6063cygwin* | mingw* | pw32* | cegcc*) 6064 # two different shell functions defined in ltmain.sh; 6065 # decide which one to use based on capabilities of $DLLTOOL 6066 case `$DLLTOOL --help 2>&1` in 6067 *--identify-strict*) 6068 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6069 ;; 6070 *) 6071 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6072 ;; 6073 esac 6074 ;; 6075*) 6076 # fallback: assume linklib IS sharedlib 6077 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6078 ;; 6079esac 6080 6081fi 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6083$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6084sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6085test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6086 6087 6088 6089 6090 6091 6092 6093if test -n "$ac_tool_prefix"; then 6094 for ac_prog in ar 6095 do 6096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6097set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099$as_echo_n "checking for $ac_word... " >&6; } 6100if ${ac_cv_prog_AR+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 if test -n "$AR"; then 6104 ac_cv_prog_AR="$AR" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6113 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118 done 6119IFS=$as_save_IFS 6120 6121fi 6122fi 6123AR=$ac_cv_prog_AR 6124if test -n "$AR"; then 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6126$as_echo "$AR" >&6; } 6127else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6129$as_echo "no" >&6; } 6130fi 6131 6132 6133 test -n "$AR" && break 6134 done 6135fi 6136if test -z "$AR"; then 6137 ac_ct_AR=$AR 6138 for ac_prog in ar 6139do 6140 # Extract the first word of "$ac_prog", so it can be a program name with args. 6141set dummy $ac_prog; ac_word=$2 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6143$as_echo_n "checking for $ac_word... " >&6; } 6144if ${ac_cv_prog_ac_ct_AR+:} false; then : 6145 $as_echo_n "(cached) " >&6 6146else 6147 if test -n "$ac_ct_AR"; then 6148 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6149else 6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151for as_dir in $PATH 6152do 6153 IFS=$as_save_IFS 6154 test -z "$as_dir" && as_dir=. 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6157 ac_cv_prog_ac_ct_AR="$ac_prog" 6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6159 break 2 6160 fi 6161done 6162 done 6163IFS=$as_save_IFS 6164 6165fi 6166fi 6167ac_ct_AR=$ac_cv_prog_ac_ct_AR 6168if test -n "$ac_ct_AR"; then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6170$as_echo "$ac_ct_AR" >&6; } 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173$as_echo "no" >&6; } 6174fi 6175 6176 6177 test -n "$ac_ct_AR" && break 6178done 6179 6180 if test "x$ac_ct_AR" = x; then 6181 AR="false" 6182 else 6183 case $cross_compiling:$ac_tool_warned in 6184yes:) 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6187ac_tool_warned=yes ;; 6188esac 6189 AR=$ac_ct_AR 6190 fi 6191fi 6192 6193: ${AR=ar} 6194: ${AR_FLAGS=cru} 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6207$as_echo_n "checking for archiver @FILE support... " >&6; } 6208if ${lt_cv_ar_at_file+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 lt_cv_ar_at_file=no 6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213/* end confdefs.h. */ 6214 6215int 6216main () 6217{ 6218 6219 ; 6220 return 0; 6221} 6222_ACEOF 6223if ac_fn_c_try_compile "$LINENO"; then : 6224 echo conftest.$ac_objext > conftest.lst 6225 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6227 (eval $lt_ar_try) 2>&5 6228 ac_status=$? 6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6230 test $ac_status = 0; } 6231 if test 0 -eq "$ac_status"; then 6232 # Ensure the archiver fails upon bogus file names. 6233 rm -f conftest.$ac_objext libconftest.a 6234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6235 (eval $lt_ar_try) 2>&5 6236 ac_status=$? 6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6238 test $ac_status = 0; } 6239 if test 0 -ne "$ac_status"; then 6240 lt_cv_ar_at_file=@ 6241 fi 6242 fi 6243 rm -f conftest.* libconftest.a 6244 6245fi 6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6247 6248fi 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6250$as_echo "$lt_cv_ar_at_file" >&6; } 6251 6252if test no = "$lt_cv_ar_at_file"; then 6253 archiver_list_spec= 6254else 6255 archiver_list_spec=$lt_cv_ar_at_file 6256fi 6257 6258 6259 6260 6261 6262 6263 6264if test -n "$ac_tool_prefix"; then 6265 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6266set dummy ${ac_tool_prefix}strip; ac_word=$2 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268$as_echo_n "checking for $ac_word... " >&6; } 6269if ${ac_cv_prog_STRIP+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 if test -n "$STRIP"; then 6273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6274else 6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276for as_dir in $PATH 6277do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6282 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286done 6287 done 6288IFS=$as_save_IFS 6289 6290fi 6291fi 6292STRIP=$ac_cv_prog_STRIP 6293if test -n "$STRIP"; then 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6295$as_echo "$STRIP" >&6; } 6296else 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6298$as_echo "no" >&6; } 6299fi 6300 6301 6302fi 6303if test -z "$ac_cv_prog_STRIP"; then 6304 ac_ct_STRIP=$STRIP 6305 # Extract the first word of "strip", so it can be a program name with args. 6306set dummy strip; ac_word=$2 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6308$as_echo_n "checking for $ac_word... " >&6; } 6309if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 if test -n "$ac_ct_STRIP"; then 6313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 test -z "$as_dir" && as_dir=. 6320 for ac_exec_ext in '' $ac_executable_extensions; do 6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6322 ac_cv_prog_ac_ct_STRIP="strip" 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6324 break 2 6325 fi 6326done 6327 done 6328IFS=$as_save_IFS 6329 6330fi 6331fi 6332ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6333if test -n "$ac_ct_STRIP"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6335$as_echo "$ac_ct_STRIP" >&6; } 6336else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338$as_echo "no" >&6; } 6339fi 6340 6341 if test "x$ac_ct_STRIP" = x; then 6342 STRIP=":" 6343 else 6344 case $cross_compiling:$ac_tool_warned in 6345yes:) 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6348ac_tool_warned=yes ;; 6349esac 6350 STRIP=$ac_ct_STRIP 6351 fi 6352else 6353 STRIP="$ac_cv_prog_STRIP" 6354fi 6355 6356test -z "$STRIP" && STRIP=: 6357 6358 6359 6360 6361 6362 6363if test -n "$ac_tool_prefix"; then 6364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6365set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6367$as_echo_n "checking for $ac_word... " >&6; } 6368if ${ac_cv_prog_RANLIB+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 if test -n "$RANLIB"; then 6372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6373else 6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6375for as_dir in $PATH 6376do 6377 IFS=$as_save_IFS 6378 test -z "$as_dir" && as_dir=. 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi 6390fi 6391RANLIB=$ac_cv_prog_RANLIB 6392if test -n "$RANLIB"; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6394$as_echo "$RANLIB" >&6; } 6395else 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397$as_echo "no" >&6; } 6398fi 6399 6400 6401fi 6402if test -z "$ac_cv_prog_RANLIB"; then 6403 ac_ct_RANLIB=$RANLIB 6404 # Extract the first word of "ranlib", so it can be a program name with args. 6405set dummy ranlib; ac_word=$2 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6407$as_echo_n "checking for $ac_word... " >&6; } 6408if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 if test -n "$ac_ct_RANLIB"; then 6412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6413else 6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6421 ac_cv_prog_ac_ct_RANLIB="ranlib" 6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426 done 6427IFS=$as_save_IFS 6428 6429fi 6430fi 6431ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6432if test -n "$ac_ct_RANLIB"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6434$as_echo "$ac_ct_RANLIB" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 6440 if test "x$ac_ct_RANLIB" = x; then 6441 RANLIB=":" 6442 else 6443 case $cross_compiling:$ac_tool_warned in 6444yes:) 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6447ac_tool_warned=yes ;; 6448esac 6449 RANLIB=$ac_ct_RANLIB 6450 fi 6451else 6452 RANLIB="$ac_cv_prog_RANLIB" 6453fi 6454 6455test -z "$RANLIB" && RANLIB=: 6456 6457 6458 6459 6460 6461 6462# Determine commands to create old-style static archives. 6463old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6464old_postinstall_cmds='chmod 644 $oldlib' 6465old_postuninstall_cmds= 6466 6467if test -n "$RANLIB"; then 6468 case $host_os in 6469 bitrig* | openbsd*) 6470 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6471 ;; 6472 *) 6473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6474 ;; 6475 esac 6476 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6477fi 6478 6479case $host_os in 6480 darwin*) 6481 lock_old_archive_extraction=yes ;; 6482 *) 6483 lock_old_archive_extraction=no ;; 6484esac 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 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# If no C compiler was specified, use CC. 6525LTCC=${LTCC-"$CC"} 6526 6527# If no C compiler flags were specified, use CFLAGS. 6528LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6529 6530# Allow CC to be a program name with arguments. 6531compiler=$CC 6532 6533 6534# Check for command to grab the raw symbol name followed by C symbol from nm. 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6536$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6537if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6538 $as_echo_n "(cached) " >&6 6539else 6540 6541# These are sane defaults that work on at least a few old systems. 6542# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6543 6544# Character class describing NM global symbol codes. 6545symcode='[BCDEGRST]' 6546 6547# Regexp to match symbols that can be accessed directly from C. 6548sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6549 6550# Define system-specific variables. 6551case $host_os in 6552aix*) 6553 symcode='[BCDT]' 6554 ;; 6555cygwin* | mingw* | pw32* | cegcc*) 6556 symcode='[ABCDGISTW]' 6557 ;; 6558hpux*) 6559 if test ia64 = "$host_cpu"; then 6560 symcode='[ABCDEGRST]' 6561 fi 6562 ;; 6563irix* | nonstopux*) 6564 symcode='[BCDEGRST]' 6565 ;; 6566osf*) 6567 symcode='[BCDEGQRST]' 6568 ;; 6569solaris*) 6570 symcode='[BDRT]' 6571 ;; 6572sco3.2v5*) 6573 symcode='[DT]' 6574 ;; 6575sysv4.2uw2*) 6576 symcode='[DT]' 6577 ;; 6578sysv5* | sco5v6* | unixware* | OpenUNIX*) 6579 symcode='[ABDT]' 6580 ;; 6581sysv4) 6582 symcode='[DFNSTU]' 6583 ;; 6584esac 6585 6586# If we're using GNU nm, then use its standard symbol codes. 6587case `$NM -V 2>&1` in 6588*GNU* | *'with BFD'*) 6589 symcode='[ABCDGIRSTW]' ;; 6590esac 6591 6592if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6593 # Gets list of data symbols to import. 6594 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6595 # Adjust the below global symbol transforms to fixup imported variables. 6596 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6597 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6598 lt_c_name_lib_hook="\ 6599 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6600 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6601else 6602 # Disable hooks by default. 6603 lt_cv_sys_global_symbol_to_import= 6604 lt_cdecl_hook= 6605 lt_c_name_hook= 6606 lt_c_name_lib_hook= 6607fi 6608 6609# Transform an extracted symbol line into a proper C declaration. 6610# Some systems (esp. on ia64) link data and code symbols differently, 6611# so use this general approach. 6612lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6613$lt_cdecl_hook\ 6614" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6615" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6616 6617# Transform an extracted symbol line into symbol name and symbol address 6618lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6619$lt_c_name_hook\ 6620" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6621" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6622 6623# Transform an extracted symbol line into symbol name with lib prefix and 6624# symbol address. 6625lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6626$lt_c_name_lib_hook\ 6627" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6628" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6629" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6630 6631# Handle CRLF in mingw tool chain 6632opt_cr= 6633case $build_os in 6634mingw*) 6635 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6636 ;; 6637esac 6638 6639# Try without a prefix underscore, then with it. 6640for ac_symprfx in "" "_"; do 6641 6642 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6643 symxfrm="\\1 $ac_symprfx\\2 \\2" 6644 6645 # Write the raw and C identifiers. 6646 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6647 # Fake it for dumpbin and say T for any non-static function, 6648 # D for any global variable and I for any imported variable. 6649 # Also find C++ and __fastcall symbols from MSVC++, 6650 # which start with @ or ?. 6651 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6652" {last_section=section; section=\$ 3};"\ 6653" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6654" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6655" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6656" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6657" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6658" \$ 0!~/External *\|/{next};"\ 6659" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6660" {if(hide[section]) next};"\ 6661" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6662" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6663" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6664" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6665" ' prfx=^$ac_symprfx" 6666 else 6667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6668 fi 6669 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6670 6671 # Check to see that the pipe works correctly. 6672 pipe_works=no 6673 6674 rm -f conftest* 6675 cat > conftest.$ac_ext <<_LT_EOF 6676#ifdef __cplusplus 6677extern "C" { 6678#endif 6679char nm_test_var; 6680void nm_test_func(void); 6681void nm_test_func(void){} 6682#ifdef __cplusplus 6683} 6684#endif 6685int main(){nm_test_var='a';nm_test_func();return(0);} 6686_LT_EOF 6687 6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6689 (eval $ac_compile) 2>&5 6690 ac_status=$? 6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6692 test $ac_status = 0; }; then 6693 # Now try to grab the symbols. 6694 nlist=conftest.nm 6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6696 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6697 ac_status=$? 6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6699 test $ac_status = 0; } && test -s "$nlist"; then 6700 # Try sorting and uniquifying the output. 6701 if sort "$nlist" | uniq > "$nlist"T; then 6702 mv -f "$nlist"T "$nlist" 6703 else 6704 rm -f "$nlist"T 6705 fi 6706 6707 # Make sure that we snagged all the symbols we need. 6708 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6709 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6710 cat <<_LT_EOF > conftest.$ac_ext 6711/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6712#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6713/* DATA imports from DLLs on WIN32 can't be const, because runtime 6714 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6715# define LT_DLSYM_CONST 6716#elif defined __osf__ 6717/* This system does not cope well with relocations in const data. */ 6718# define LT_DLSYM_CONST 6719#else 6720# define LT_DLSYM_CONST const 6721#endif 6722 6723#ifdef __cplusplus 6724extern "C" { 6725#endif 6726 6727_LT_EOF 6728 # Now generate the symbol file. 6729 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6730 6731 cat <<_LT_EOF >> conftest.$ac_ext 6732 6733/* The mapping between symbol names and symbols. */ 6734LT_DLSYM_CONST struct { 6735 const char *name; 6736 void *address; 6737} 6738lt__PROGRAM__LTX_preloaded_symbols[] = 6739{ 6740 { "@PROGRAM@", (void *) 0 }, 6741_LT_EOF 6742 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6743 cat <<\_LT_EOF >> conftest.$ac_ext 6744 {0, (void *) 0} 6745}; 6746 6747/* This works around a problem in FreeBSD linker */ 6748#ifdef FREEBSD_WORKAROUND 6749static const void *lt_preloaded_setup() { 6750 return lt__PROGRAM__LTX_preloaded_symbols; 6751} 6752#endif 6753 6754#ifdef __cplusplus 6755} 6756#endif 6757_LT_EOF 6758 # Now try linking the two files. 6759 mv conftest.$ac_objext conftstm.$ac_objext 6760 lt_globsym_save_LIBS=$LIBS 6761 lt_globsym_save_CFLAGS=$CFLAGS 6762 LIBS=conftstm.$ac_objext 6763 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6765 (eval $ac_link) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6769 pipe_works=yes 6770 fi 6771 LIBS=$lt_globsym_save_LIBS 6772 CFLAGS=$lt_globsym_save_CFLAGS 6773 else 6774 echo "cannot find nm_test_func in $nlist" >&5 6775 fi 6776 else 6777 echo "cannot find nm_test_var in $nlist" >&5 6778 fi 6779 else 6780 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6781 fi 6782 else 6783 echo "$progname: failed program was:" >&5 6784 cat conftest.$ac_ext >&5 6785 fi 6786 rm -rf conftest* conftst* 6787 6788 # Do not use the global_symbol_pipe unless it works. 6789 if test yes = "$pipe_works"; then 6790 break 6791 else 6792 lt_cv_sys_global_symbol_pipe= 6793 fi 6794done 6795 6796fi 6797 6798if test -z "$lt_cv_sys_global_symbol_pipe"; then 6799 lt_cv_sys_global_symbol_to_cdecl= 6800fi 6801if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6803$as_echo "failed" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6806$as_echo "ok" >&6; } 6807fi 6808 6809# Response file support. 6810if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6811 nm_file_list_spec='@' 6812elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6813 nm_file_list_spec='@' 6814fi 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6853$as_echo_n "checking for sysroot... " >&6; } 6854 6855# Check whether --with-sysroot was given. 6856if test "${with_sysroot+set}" = set; then : 6857 withval=$with_sysroot; 6858else 6859 with_sysroot=no 6860fi 6861 6862 6863lt_sysroot= 6864case $with_sysroot in #( 6865 yes) 6866 if test yes = "$GCC"; then 6867 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6868 fi 6869 ;; #( 6870 /*) 6871 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6872 ;; #( 6873 no|'') 6874 ;; #( 6875 *) 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6877$as_echo "$with_sysroot" >&6; } 6878 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6879 ;; 6880esac 6881 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6883$as_echo "${lt_sysroot:-no}" >&6; } 6884 6885 6886 6887 6888 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6890$as_echo_n "checking for a working dd... " >&6; } 6891if ${ac_cv_path_lt_DD+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 printf 0123456789abcdef0123456789abcdef >conftest.i 6895cat conftest.i conftest.i >conftest2.i 6896: ${lt_DD:=$DD} 6897if test -z "$lt_DD"; then 6898 ac_path_lt_DD_found=false 6899 # Loop through the user's path and test for each of PROGNAME-LIST 6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_prog in dd; do 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6908 as_fn_executable_p "$ac_path_lt_DD" || continue 6909if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6910 cmp -s conftest.i conftest.out \ 6911 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6912fi 6913 $ac_path_lt_DD_found && break 3 6914 done 6915 done 6916 done 6917IFS=$as_save_IFS 6918 if test -z "$ac_cv_path_lt_DD"; then 6919 : 6920 fi 6921else 6922 ac_cv_path_lt_DD=$lt_DD 6923fi 6924 6925rm -f conftest.i conftest2.i conftest.out 6926fi 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6928$as_echo "$ac_cv_path_lt_DD" >&6; } 6929 6930 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6932$as_echo_n "checking how to truncate binary pipes... " >&6; } 6933if ${lt_cv_truncate_bin+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 printf 0123456789abcdef0123456789abcdef >conftest.i 6937cat conftest.i conftest.i >conftest2.i 6938lt_cv_truncate_bin= 6939if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6940 cmp -s conftest.i conftest.out \ 6941 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6942fi 6943rm -f conftest.i conftest2.i conftest.out 6944test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6945fi 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6947$as_echo "$lt_cv_truncate_bin" >&6; } 6948 6949 6950 6951 6952 6953 6954 6955# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6956func_cc_basename () 6957{ 6958 for cc_temp in $*""; do 6959 case $cc_temp in 6960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6962 \-*) ;; 6963 *) break;; 6964 esac 6965 done 6966 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6967} 6968 6969# Check whether --enable-libtool-lock was given. 6970if test "${enable_libtool_lock+set}" = set; then : 6971 enableval=$enable_libtool_lock; 6972fi 6973 6974test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6975 6976# Some flags need to be propagated to the compiler or linker for good 6977# libtool support. 6978case $host in 6979ia64-*-hpux*) 6980 # Find out what ABI is being produced by ac_compile, and set mode 6981 # options accordingly. 6982 echo 'int i;' > conftest.$ac_ext 6983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6984 (eval $ac_compile) 2>&5 6985 ac_status=$? 6986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6987 test $ac_status = 0; }; then 6988 case `/usr/bin/file conftest.$ac_objext` in 6989 *ELF-32*) 6990 HPUX_IA64_MODE=32 6991 ;; 6992 *ELF-64*) 6993 HPUX_IA64_MODE=64 6994 ;; 6995 esac 6996 fi 6997 rm -rf conftest* 6998 ;; 6999*-*-irix6*) 7000 # Find out what ABI is being produced by ac_compile, and set linker 7001 # options accordingly. 7002 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7004 (eval $ac_compile) 2>&5 7005 ac_status=$? 7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7007 test $ac_status = 0; }; then 7008 if test yes = "$lt_cv_prog_gnu_ld"; then 7009 case `/usr/bin/file conftest.$ac_objext` in 7010 *32-bit*) 7011 LD="${LD-ld} -melf32bsmip" 7012 ;; 7013 *N32*) 7014 LD="${LD-ld} -melf32bmipn32" 7015 ;; 7016 *64-bit*) 7017 LD="${LD-ld} -melf64bmip" 7018 ;; 7019 esac 7020 else 7021 case `/usr/bin/file conftest.$ac_objext` in 7022 *32-bit*) 7023 LD="${LD-ld} -32" 7024 ;; 7025 *N32*) 7026 LD="${LD-ld} -n32" 7027 ;; 7028 *64-bit*) 7029 LD="${LD-ld} -64" 7030 ;; 7031 esac 7032 fi 7033 fi 7034 rm -rf conftest* 7035 ;; 7036 7037mips64*-*linux*) 7038 # Find out what ABI is being produced by ac_compile, and set linker 7039 # options accordingly. 7040 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7042 (eval $ac_compile) 2>&5 7043 ac_status=$? 7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7045 test $ac_status = 0; }; then 7046 emul=elf 7047 case `/usr/bin/file conftest.$ac_objext` in 7048 *32-bit*) 7049 emul="${emul}32" 7050 ;; 7051 *64-bit*) 7052 emul="${emul}64" 7053 ;; 7054 esac 7055 case `/usr/bin/file conftest.$ac_objext` in 7056 *MSB*) 7057 emul="${emul}btsmip" 7058 ;; 7059 *LSB*) 7060 emul="${emul}ltsmip" 7061 ;; 7062 esac 7063 case `/usr/bin/file conftest.$ac_objext` in 7064 *N32*) 7065 emul="${emul}n32" 7066 ;; 7067 esac 7068 LD="${LD-ld} -m $emul" 7069 fi 7070 rm -rf conftest* 7071 ;; 7072 7073x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7074s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7075 # Find out what ABI is being produced by ac_compile, and set linker 7076 # options accordingly. Note that the listed cases only cover the 7077 # situations where additional linker options are needed (such as when 7078 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7079 # vice versa); the common cases where no linker options are needed do 7080 # not appear in the list. 7081 echo 'int i;' > conftest.$ac_ext 7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7083 (eval $ac_compile) 2>&5 7084 ac_status=$? 7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7086 test $ac_status = 0; }; then 7087 case `/usr/bin/file conftest.o` in 7088 *32-bit*) 7089 case $host in 7090 x86_64-*kfreebsd*-gnu) 7091 LD="${LD-ld} -m elf_i386_fbsd" 7092 ;; 7093 x86_64-*linux*) 7094 case `/usr/bin/file conftest.o` in 7095 *x86-64*) 7096 LD="${LD-ld} -m elf32_x86_64" 7097 ;; 7098 *) 7099 LD="${LD-ld} -m elf_i386" 7100 ;; 7101 esac 7102 ;; 7103 powerpc64le-*linux*) 7104 LD="${LD-ld} -m elf32lppclinux" 7105 ;; 7106 powerpc64-*linux*) 7107 LD="${LD-ld} -m elf32ppclinux" 7108 ;; 7109 s390x-*linux*) 7110 LD="${LD-ld} -m elf_s390" 7111 ;; 7112 sparc64-*linux*) 7113 LD="${LD-ld} -m elf32_sparc" 7114 ;; 7115 esac 7116 ;; 7117 *64-bit*) 7118 case $host in 7119 x86_64-*kfreebsd*-gnu) 7120 LD="${LD-ld} -m elf_x86_64_fbsd" 7121 ;; 7122 x86_64-*linux*) 7123 LD="${LD-ld} -m elf_x86_64" 7124 ;; 7125 powerpcle-*linux*) 7126 LD="${LD-ld} -m elf64lppc" 7127 ;; 7128 powerpc-*linux*) 7129 LD="${LD-ld} -m elf64ppc" 7130 ;; 7131 s390*-*linux*|s390*-*tpf*) 7132 LD="${LD-ld} -m elf64_s390" 7133 ;; 7134 sparc*-*linux*) 7135 LD="${LD-ld} -m elf64_sparc" 7136 ;; 7137 esac 7138 ;; 7139 esac 7140 fi 7141 rm -rf conftest* 7142 ;; 7143 7144*-*-sco3.2v5*) 7145 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7146 SAVE_CFLAGS=$CFLAGS 7147 CFLAGS="$CFLAGS -belf" 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7149$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7150if ${lt_cv_cc_needs_belf+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 ac_ext=c 7154ac_cpp='$CPP $CPPFLAGS' 7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7157ac_compiler_gnu=$ac_cv_c_compiler_gnu 7158 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161 7162int 7163main () 7164{ 7165 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170if ac_fn_c_try_link "$LINENO"; then : 7171 lt_cv_cc_needs_belf=yes 7172else 7173 lt_cv_cc_needs_belf=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext \ 7176 conftest$ac_exeext conftest.$ac_ext 7177 ac_ext=c 7178ac_cpp='$CPP $CPPFLAGS' 7179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7181ac_compiler_gnu=$ac_cv_c_compiler_gnu 7182 7183fi 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7185$as_echo "$lt_cv_cc_needs_belf" >&6; } 7186 if test yes != "$lt_cv_cc_needs_belf"; then 7187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7188 CFLAGS=$SAVE_CFLAGS 7189 fi 7190 ;; 7191*-*solaris*) 7192 # Find out what ABI is being produced by ac_compile, and set linker 7193 # options accordingly. 7194 echo 'int i;' > conftest.$ac_ext 7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7196 (eval $ac_compile) 2>&5 7197 ac_status=$? 7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7199 test $ac_status = 0; }; then 7200 case `/usr/bin/file conftest.o` in 7201 *64-bit*) 7202 case $lt_cv_prog_gnu_ld in 7203 yes*) 7204 case $host in 7205 i?86-*-solaris*|x86_64-*-solaris*) 7206 LD="${LD-ld} -m elf_x86_64" 7207 ;; 7208 sparc*-*-solaris*) 7209 LD="${LD-ld} -m elf64_sparc" 7210 ;; 7211 esac 7212 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7213 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7214 LD=${LD-ld}_sol2 7215 fi 7216 ;; 7217 *) 7218 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7219 LD="${LD-ld} -64" 7220 fi 7221 ;; 7222 esac 7223 ;; 7224 esac 7225 fi 7226 rm -rf conftest* 7227 ;; 7228esac 7229 7230need_locks=$enable_libtool_lock 7231 7232if test -n "$ac_tool_prefix"; then 7233 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7234set dummy ${ac_tool_prefix}mt; ac_word=$2 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7236$as_echo_n "checking for $ac_word... " >&6; } 7237if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 if test -n "$MANIFEST_TOOL"; then 7241 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7242else 7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7244for as_dir in $PATH 7245do 7246 IFS=$as_save_IFS 7247 test -z "$as_dir" && as_dir=. 7248 for ac_exec_ext in '' $ac_executable_extensions; do 7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7250 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7252 break 2 7253 fi 7254done 7255 done 7256IFS=$as_save_IFS 7257 7258fi 7259fi 7260MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7261if test -n "$MANIFEST_TOOL"; then 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7263$as_echo "$MANIFEST_TOOL" >&6; } 7264else 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7266$as_echo "no" >&6; } 7267fi 7268 7269 7270fi 7271if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7272 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7273 # Extract the first word of "mt", so it can be a program name with args. 7274set dummy mt; ac_word=$2 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7276$as_echo_n "checking for $ac_word... " >&6; } 7277if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7278 $as_echo_n "(cached) " >&6 7279else 7280 if test -n "$ac_ct_MANIFEST_TOOL"; then 7281 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7282else 7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7284for as_dir in $PATH 7285do 7286 IFS=$as_save_IFS 7287 test -z "$as_dir" && as_dir=. 7288 for ac_exec_ext in '' $ac_executable_extensions; do 7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7290 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7292 break 2 7293 fi 7294done 7295 done 7296IFS=$as_save_IFS 7297 7298fi 7299fi 7300ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7301if test -n "$ac_ct_MANIFEST_TOOL"; then 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7303$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7304else 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7306$as_echo "no" >&6; } 7307fi 7308 7309 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7310 MANIFEST_TOOL=":" 7311 else 7312 case $cross_compiling:$ac_tool_warned in 7313yes:) 7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7316ac_tool_warned=yes ;; 7317esac 7318 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7319 fi 7320else 7321 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7322fi 7323 7324test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7326$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7327if ${lt_cv_path_mainfest_tool+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 lt_cv_path_mainfest_tool=no 7331 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7332 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7333 cat conftest.err >&5 7334 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7335 lt_cv_path_mainfest_tool=yes 7336 fi 7337 rm -f conftest* 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7340$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7341if test yes != "$lt_cv_path_mainfest_tool"; then 7342 MANIFEST_TOOL=: 7343fi 7344 7345 7346 7347 7348 7349 7350 case $host_os in 7351 rhapsody* | darwin*) 7352 if test -n "$ac_tool_prefix"; then 7353 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7354set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7356$as_echo_n "checking for $ac_word... " >&6; } 7357if ${ac_cv_prog_DSYMUTIL+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 if test -n "$DSYMUTIL"; then 7361 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7362else 7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7364for as_dir in $PATH 7365do 7366 IFS=$as_save_IFS 7367 test -z "$as_dir" && as_dir=. 7368 for ac_exec_ext in '' $ac_executable_extensions; do 7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7370 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7372 break 2 7373 fi 7374done 7375 done 7376IFS=$as_save_IFS 7377 7378fi 7379fi 7380DSYMUTIL=$ac_cv_prog_DSYMUTIL 7381if test -n "$DSYMUTIL"; then 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7383$as_echo "$DSYMUTIL" >&6; } 7384else 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7386$as_echo "no" >&6; } 7387fi 7388 7389 7390fi 7391if test -z "$ac_cv_prog_DSYMUTIL"; then 7392 ac_ct_DSYMUTIL=$DSYMUTIL 7393 # Extract the first word of "dsymutil", so it can be a program name with args. 7394set dummy dsymutil; ac_word=$2 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7396$as_echo_n "checking for $ac_word... " >&6; } 7397if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7398 $as_echo_n "(cached) " >&6 7399else 7400 if test -n "$ac_ct_DSYMUTIL"; then 7401 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7402else 7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404for as_dir in $PATH 7405do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414done 7415 done 7416IFS=$as_save_IFS 7417 7418fi 7419fi 7420ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7421if test -n "$ac_ct_DSYMUTIL"; then 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7423$as_echo "$ac_ct_DSYMUTIL" >&6; } 7424else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426$as_echo "no" >&6; } 7427fi 7428 7429 if test "x$ac_ct_DSYMUTIL" = x; then 7430 DSYMUTIL=":" 7431 else 7432 case $cross_compiling:$ac_tool_warned in 7433yes:) 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7436ac_tool_warned=yes ;; 7437esac 7438 DSYMUTIL=$ac_ct_DSYMUTIL 7439 fi 7440else 7441 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7442fi 7443 7444 if test -n "$ac_tool_prefix"; then 7445 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7446set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7448$as_echo_n "checking for $ac_word... " >&6; } 7449if ${ac_cv_prog_NMEDIT+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 if test -n "$NMEDIT"; then 7453 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7454else 7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7456for as_dir in $PATH 7457do 7458 IFS=$as_save_IFS 7459 test -z "$as_dir" && as_dir=. 7460 for ac_exec_ext in '' $ac_executable_extensions; do 7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7462 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7464 break 2 7465 fi 7466done 7467 done 7468IFS=$as_save_IFS 7469 7470fi 7471fi 7472NMEDIT=$ac_cv_prog_NMEDIT 7473if test -n "$NMEDIT"; then 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7475$as_echo "$NMEDIT" >&6; } 7476else 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7478$as_echo "no" >&6; } 7479fi 7480 7481 7482fi 7483if test -z "$ac_cv_prog_NMEDIT"; then 7484 ac_ct_NMEDIT=$NMEDIT 7485 # Extract the first word of "nmedit", so it can be a program name with args. 7486set dummy nmedit; ac_word=$2 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7488$as_echo_n "checking for $ac_word... " >&6; } 7489if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 if test -n "$ac_ct_NMEDIT"; then 7493 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7494else 7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496for as_dir in $PATH 7497do 7498 IFS=$as_save_IFS 7499 test -z "$as_dir" && as_dir=. 7500 for ac_exec_ext in '' $ac_executable_extensions; do 7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7502 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7504 break 2 7505 fi 7506done 7507 done 7508IFS=$as_save_IFS 7509 7510fi 7511fi 7512ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7513if test -n "$ac_ct_NMEDIT"; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7515$as_echo "$ac_ct_NMEDIT" >&6; } 7516else 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518$as_echo "no" >&6; } 7519fi 7520 7521 if test "x$ac_ct_NMEDIT" = x; then 7522 NMEDIT=":" 7523 else 7524 case $cross_compiling:$ac_tool_warned in 7525yes:) 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7528ac_tool_warned=yes ;; 7529esac 7530 NMEDIT=$ac_ct_NMEDIT 7531 fi 7532else 7533 NMEDIT="$ac_cv_prog_NMEDIT" 7534fi 7535 7536 if test -n "$ac_tool_prefix"; then 7537 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7538set dummy ${ac_tool_prefix}lipo; ac_word=$2 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7540$as_echo_n "checking for $ac_word... " >&6; } 7541if ${ac_cv_prog_LIPO+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 if test -n "$LIPO"; then 7545 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7546else 7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548for as_dir in $PATH 7549do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7554 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558done 7559 done 7560IFS=$as_save_IFS 7561 7562fi 7563fi 7564LIPO=$ac_cv_prog_LIPO 7565if test -n "$LIPO"; then 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7567$as_echo "$LIPO" >&6; } 7568else 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7570$as_echo "no" >&6; } 7571fi 7572 7573 7574fi 7575if test -z "$ac_cv_prog_LIPO"; then 7576 ac_ct_LIPO=$LIPO 7577 # Extract the first word of "lipo", so it can be a program name with args. 7578set dummy lipo; ac_word=$2 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7580$as_echo_n "checking for $ac_word... " >&6; } 7581if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 if test -n "$ac_ct_LIPO"; then 7585 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7586else 7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588for as_dir in $PATH 7589do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7594 ac_cv_prog_ac_ct_LIPO="lipo" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598done 7599 done 7600IFS=$as_save_IFS 7601 7602fi 7603fi 7604ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7605if test -n "$ac_ct_LIPO"; then 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7607$as_echo "$ac_ct_LIPO" >&6; } 7608else 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7610$as_echo "no" >&6; } 7611fi 7612 7613 if test "x$ac_ct_LIPO" = x; then 7614 LIPO=":" 7615 else 7616 case $cross_compiling:$ac_tool_warned in 7617yes:) 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7620ac_tool_warned=yes ;; 7621esac 7622 LIPO=$ac_ct_LIPO 7623 fi 7624else 7625 LIPO="$ac_cv_prog_LIPO" 7626fi 7627 7628 if test -n "$ac_tool_prefix"; then 7629 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7630set dummy ${ac_tool_prefix}otool; ac_word=$2 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7632$as_echo_n "checking for $ac_word... " >&6; } 7633if ${ac_cv_prog_OTOOL+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 if test -n "$OTOOL"; then 7637 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7638else 7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7640for as_dir in $PATH 7641do 7642 IFS=$as_save_IFS 7643 test -z "$as_dir" && as_dir=. 7644 for ac_exec_ext in '' $ac_executable_extensions; do 7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7646 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7648 break 2 7649 fi 7650done 7651 done 7652IFS=$as_save_IFS 7653 7654fi 7655fi 7656OTOOL=$ac_cv_prog_OTOOL 7657if test -n "$OTOOL"; then 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7659$as_echo "$OTOOL" >&6; } 7660else 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7662$as_echo "no" >&6; } 7663fi 7664 7665 7666fi 7667if test -z "$ac_cv_prog_OTOOL"; then 7668 ac_ct_OTOOL=$OTOOL 7669 # Extract the first word of "otool", so it can be a program name with args. 7670set dummy otool; ac_word=$2 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672$as_echo_n "checking for $ac_word... " >&6; } 7673if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 if test -n "$ac_ct_OTOOL"; then 7677 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7678else 7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7680for as_dir in $PATH 7681do 7682 IFS=$as_save_IFS 7683 test -z "$as_dir" && as_dir=. 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7686 ac_cv_prog_ac_ct_OTOOL="otool" 7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7688 break 2 7689 fi 7690done 7691 done 7692IFS=$as_save_IFS 7693 7694fi 7695fi 7696ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7697if test -n "$ac_ct_OTOOL"; then 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7699$as_echo "$ac_ct_OTOOL" >&6; } 7700else 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7702$as_echo "no" >&6; } 7703fi 7704 7705 if test "x$ac_ct_OTOOL" = x; then 7706 OTOOL=":" 7707 else 7708 case $cross_compiling:$ac_tool_warned in 7709yes:) 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7712ac_tool_warned=yes ;; 7713esac 7714 OTOOL=$ac_ct_OTOOL 7715 fi 7716else 7717 OTOOL="$ac_cv_prog_OTOOL" 7718fi 7719 7720 if test -n "$ac_tool_prefix"; then 7721 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7722set dummy ${ac_tool_prefix}otool64; ac_word=$2 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7724$as_echo_n "checking for $ac_word... " >&6; } 7725if ${ac_cv_prog_OTOOL64+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 if test -n "$OTOOL64"; then 7729 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7730else 7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7732for as_dir in $PATH 7733do 7734 IFS=$as_save_IFS 7735 test -z "$as_dir" && as_dir=. 7736 for ac_exec_ext in '' $ac_executable_extensions; do 7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7738 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7740 break 2 7741 fi 7742done 7743 done 7744IFS=$as_save_IFS 7745 7746fi 7747fi 7748OTOOL64=$ac_cv_prog_OTOOL64 7749if test -n "$OTOOL64"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7751$as_echo "$OTOOL64" >&6; } 7752else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755fi 7756 7757 7758fi 7759if test -z "$ac_cv_prog_OTOOL64"; then 7760 ac_ct_OTOOL64=$OTOOL64 7761 # Extract the first word of "otool64", so it can be a program name with args. 7762set dummy otool64; ac_word=$2 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7764$as_echo_n "checking for $ac_word... " >&6; } 7765if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 if test -n "$ac_ct_OTOOL64"; then 7769 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7770else 7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7772for as_dir in $PATH 7773do 7774 IFS=$as_save_IFS 7775 test -z "$as_dir" && as_dir=. 7776 for ac_exec_ext in '' $ac_executable_extensions; do 7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7778 ac_cv_prog_ac_ct_OTOOL64="otool64" 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7780 break 2 7781 fi 7782done 7783 done 7784IFS=$as_save_IFS 7785 7786fi 7787fi 7788ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7789if test -n "$ac_ct_OTOOL64"; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7791$as_echo "$ac_ct_OTOOL64" >&6; } 7792else 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794$as_echo "no" >&6; } 7795fi 7796 7797 if test "x$ac_ct_OTOOL64" = x; then 7798 OTOOL64=":" 7799 else 7800 case $cross_compiling:$ac_tool_warned in 7801yes:) 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7804ac_tool_warned=yes ;; 7805esac 7806 OTOOL64=$ac_ct_OTOOL64 7807 fi 7808else 7809 OTOOL64="$ac_cv_prog_OTOOL64" 7810fi 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7839$as_echo_n "checking for -single_module linker flag... " >&6; } 7840if ${lt_cv_apple_cc_single_mod+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 lt_cv_apple_cc_single_mod=no 7844 if test -z "$LT_MULTI_MODULE"; then 7845 # By default we will add the -single_module flag. You can override 7846 # by either setting the environment variable LT_MULTI_MODULE 7847 # non-empty at configure time, or by adding -multi_module to the 7848 # link flags. 7849 rm -rf libconftest.dylib* 7850 echo "int foo(void){return 1;}" > conftest.c 7851 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7852-dynamiclib -Wl,-single_module conftest.c" >&5 7853 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7854 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7855 _lt_result=$? 7856 # If there is a non-empty error log, and "single_module" 7857 # appears in it, assume the flag caused a linker warning 7858 if test -s conftest.err && $GREP single_module conftest.err; then 7859 cat conftest.err >&5 7860 # Otherwise, if the output was created with a 0 exit code from 7861 # the compiler, it worked. 7862 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7863 lt_cv_apple_cc_single_mod=yes 7864 else 7865 cat conftest.err >&5 7866 fi 7867 rm -rf libconftest.dylib* 7868 rm -f conftest.* 7869 fi 7870fi 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7872$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7873 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7875$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7876if ${lt_cv_ld_exported_symbols_list+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 lt_cv_ld_exported_symbols_list=no 7880 save_LDFLAGS=$LDFLAGS 7881 echo "_main" > conftest.sym 7882 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884/* end confdefs.h. */ 7885 7886int 7887main () 7888{ 7889 7890 ; 7891 return 0; 7892} 7893_ACEOF 7894if ac_fn_c_try_link "$LINENO"; then : 7895 lt_cv_ld_exported_symbols_list=yes 7896else 7897 lt_cv_ld_exported_symbols_list=no 7898fi 7899rm -f core conftest.err conftest.$ac_objext \ 7900 conftest$ac_exeext conftest.$ac_ext 7901 LDFLAGS=$save_LDFLAGS 7902 7903fi 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7905$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7906 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7908$as_echo_n "checking for -force_load linker flag... " >&6; } 7909if ${lt_cv_ld_force_load+:} false; then : 7910 $as_echo_n "(cached) " >&6 7911else 7912 lt_cv_ld_force_load=no 7913 cat > conftest.c << _LT_EOF 7914int forced_loaded() { return 2;} 7915_LT_EOF 7916 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7917 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7918 echo "$AR cru libconftest.a conftest.o" >&5 7919 $AR cru libconftest.a conftest.o 2>&5 7920 echo "$RANLIB libconftest.a" >&5 7921 $RANLIB libconftest.a 2>&5 7922 cat > conftest.c << _LT_EOF 7923int main() { return 0;} 7924_LT_EOF 7925 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7926 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7927 _lt_result=$? 7928 if test -s conftest.err && $GREP force_load conftest.err; then 7929 cat conftest.err >&5 7930 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7931 lt_cv_ld_force_load=yes 7932 else 7933 cat conftest.err >&5 7934 fi 7935 rm -f conftest.err libconftest.a conftest conftest.c 7936 rm -rf conftest.dSYM 7937 7938fi 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7940$as_echo "$lt_cv_ld_force_load" >&6; } 7941 case $host_os in 7942 rhapsody* | darwin1.[012]) 7943 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7944 darwin1.*) 7945 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7946 darwin*) # darwin 5.x on 7947 # if running on 10.5 or later, the deployment target defaults 7948 # to the OS version, if on x86, and 10.4, the deployment 7949 # target defaults to 10.4. Don't you love it? 7950 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7951 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7952 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7953 10.[012][,.]*) 7954 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7955 10.*) 7956 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7957 esac 7958 ;; 7959 esac 7960 if test yes = "$lt_cv_apple_cc_single_mod"; then 7961 _lt_dar_single_mod='$single_module' 7962 fi 7963 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7964 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7965 else 7966 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7967 fi 7968 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7969 _lt_dsymutil='~$DSYMUTIL $lib || :' 7970 else 7971 _lt_dsymutil= 7972 fi 7973 ;; 7974 esac 7975 7976# func_munge_path_list VARIABLE PATH 7977# ----------------------------------- 7978# VARIABLE is name of variable containing _space_ separated list of 7979# directories to be munged by the contents of PATH, which is string 7980# having a format: 7981# "DIR[:DIR]:" 7982# string "DIR[ DIR]" will be prepended to VARIABLE 7983# ":DIR[:DIR]" 7984# string "DIR[ DIR]" will be appended to VARIABLE 7985# "DIRP[:DIRP]::[DIRA:]DIRA" 7986# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7987# "DIRA[ DIRA]" will be appended to VARIABLE 7988# "DIR[:DIR]" 7989# VARIABLE will be replaced by "DIR[ DIR]" 7990func_munge_path_list () 7991{ 7992 case x$2 in 7993 x) 7994 ;; 7995 *:) 7996 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7997 ;; 7998 x:*) 7999 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8000 ;; 8001 *::*) 8002 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8003 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8004 ;; 8005 *) 8006 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8007 ;; 8008 esac 8009} 8010 8011ac_ext=c 8012ac_cpp='$CPP $CPPFLAGS' 8013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8015ac_compiler_gnu=$ac_cv_c_compiler_gnu 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8017$as_echo_n "checking how to run the C preprocessor... " >&6; } 8018# On Suns, sometimes $CPP names a directory. 8019if test -n "$CPP" && test -d "$CPP"; then 8020 CPP= 8021fi 8022if test -z "$CPP"; then 8023 if ${ac_cv_prog_CPP+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 # Double quotes because CPP needs to be expanded 8027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8028 do 8029 ac_preproc_ok=false 8030for ac_c_preproc_warn_flag in '' yes 8031do 8032 # Use a header file that comes with gcc, so configuring glibc 8033 # with a fresh cross-compiler works. 8034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8035 # <limits.h> exists even on freestanding compilers. 8036 # On the NeXT, cc -E runs the code through the compiler's parser, 8037 # not just through cpp. "Syntax error" is here to catch this case. 8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040#ifdef __STDC__ 8041# include <limits.h> 8042#else 8043# include <assert.h> 8044#endif 8045 Syntax error 8046_ACEOF 8047if ac_fn_c_try_cpp "$LINENO"; then : 8048 8049else 8050 # Broken: fails on valid input. 8051continue 8052fi 8053rm -f conftest.err conftest.i conftest.$ac_ext 8054 8055 # OK, works on sane cases. Now check whether nonexistent headers 8056 # can be detected and how. 8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8058/* end confdefs.h. */ 8059#include <ac_nonexistent.h> 8060_ACEOF 8061if ac_fn_c_try_cpp "$LINENO"; then : 8062 # Broken: success on invalid input. 8063continue 8064else 8065 # Passes both tests. 8066ac_preproc_ok=: 8067break 8068fi 8069rm -f conftest.err conftest.i conftest.$ac_ext 8070 8071done 8072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8073rm -f conftest.i conftest.err conftest.$ac_ext 8074if $ac_preproc_ok; then : 8075 break 8076fi 8077 8078 done 8079 ac_cv_prog_CPP=$CPP 8080 8081fi 8082 CPP=$ac_cv_prog_CPP 8083else 8084 ac_cv_prog_CPP=$CPP 8085fi 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8087$as_echo "$CPP" >&6; } 8088ac_preproc_ok=false 8089for ac_c_preproc_warn_flag in '' yes 8090do 8091 # Use a header file that comes with gcc, so configuring glibc 8092 # with a fresh cross-compiler works. 8093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8094 # <limits.h> exists even on freestanding compilers. 8095 # On the NeXT, cc -E runs the code through the compiler's parser, 8096 # not just through cpp. "Syntax error" is here to catch this case. 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099#ifdef __STDC__ 8100# include <limits.h> 8101#else 8102# include <assert.h> 8103#endif 8104 Syntax error 8105_ACEOF 8106if ac_fn_c_try_cpp "$LINENO"; then : 8107 8108else 8109 # Broken: fails on valid input. 8110continue 8111fi 8112rm -f conftest.err conftest.i conftest.$ac_ext 8113 8114 # OK, works on sane cases. Now check whether nonexistent headers 8115 # can be detected and how. 8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118#include <ac_nonexistent.h> 8119_ACEOF 8120if ac_fn_c_try_cpp "$LINENO"; then : 8121 # Broken: success on invalid input. 8122continue 8123else 8124 # Passes both tests. 8125ac_preproc_ok=: 8126break 8127fi 8128rm -f conftest.err conftest.i conftest.$ac_ext 8129 8130done 8131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8132rm -f conftest.i conftest.err conftest.$ac_ext 8133if $ac_preproc_ok; then : 8134 8135else 8136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8138as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8139See \`config.log' for more details" "$LINENO" 5; } 8140fi 8141 8142ac_ext=c 8143ac_cpp='$CPP $CPPFLAGS' 8144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8146ac_compiler_gnu=$ac_cv_c_compiler_gnu 8147 8148 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8150$as_echo_n "checking for ANSI C header files... " >&6; } 8151if ${ac_cv_header_stdc+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153else 8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155/* end confdefs.h. */ 8156#include <stdlib.h> 8157#include <stdarg.h> 8158#include <string.h> 8159#include <float.h> 8160 8161int 8162main () 8163{ 8164 8165 ; 8166 return 0; 8167} 8168_ACEOF 8169if ac_fn_c_try_compile "$LINENO"; then : 8170 ac_cv_header_stdc=yes 8171else 8172 ac_cv_header_stdc=no 8173fi 8174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8175 8176if test $ac_cv_header_stdc = yes; then 8177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8179/* end confdefs.h. */ 8180#include <string.h> 8181 8182_ACEOF 8183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8184 $EGREP "memchr" >/dev/null 2>&1; then : 8185 8186else 8187 ac_cv_header_stdc=no 8188fi 8189rm -f conftest* 8190 8191fi 8192 8193if test $ac_cv_header_stdc = yes; then 8194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8196/* end confdefs.h. */ 8197#include <stdlib.h> 8198 8199_ACEOF 8200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8201 $EGREP "free" >/dev/null 2>&1; then : 8202 8203else 8204 ac_cv_header_stdc=no 8205fi 8206rm -f conftest* 8207 8208fi 8209 8210if test $ac_cv_header_stdc = yes; then 8211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8212 if test "$cross_compiling" = yes; then : 8213 : 8214else 8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217#include <ctype.h> 8218#include <stdlib.h> 8219#if ((' ' & 0x0FF) == 0x020) 8220# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8221# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8222#else 8223# define ISLOWER(c) \ 8224 (('a' <= (c) && (c) <= 'i') \ 8225 || ('j' <= (c) && (c) <= 'r') \ 8226 || ('s' <= (c) && (c) <= 'z')) 8227# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8228#endif 8229 8230#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8231int 8232main () 8233{ 8234 int i; 8235 for (i = 0; i < 256; i++) 8236 if (XOR (islower (i), ISLOWER (i)) 8237 || toupper (i) != TOUPPER (i)) 8238 return 2; 8239 return 0; 8240} 8241_ACEOF 8242if ac_fn_c_try_run "$LINENO"; then : 8243 8244else 8245 ac_cv_header_stdc=no 8246fi 8247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8248 conftest.$ac_objext conftest.beam conftest.$ac_ext 8249fi 8250 8251fi 8252fi 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8254$as_echo "$ac_cv_header_stdc" >&6; } 8255if test $ac_cv_header_stdc = yes; then 8256 8257$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8258 8259fi 8260 8261# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8263 inttypes.h stdint.h unistd.h 8264do : 8265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8266ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8267" 8268if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8269 cat >>confdefs.h <<_ACEOF 8270#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8271_ACEOF 8272 8273fi 8274 8275done 8276 8277 8278for ac_header in dlfcn.h 8279do : 8280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8281" 8282if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8283 cat >>confdefs.h <<_ACEOF 8284#define HAVE_DLFCN_H 1 8285_ACEOF 8286 8287fi 8288 8289done 8290 8291 8292 8293 8294 8295# Set options 8296 8297 8298 8299 enable_dlopen=no 8300 8301 8302 enable_win32_dll=no 8303 8304 8305 # Check whether --enable-shared was given. 8306if test "${enable_shared+set}" = set; then : 8307 enableval=$enable_shared; p=${PACKAGE-default} 8308 case $enableval in 8309 yes) enable_shared=yes ;; 8310 no) enable_shared=no ;; 8311 *) 8312 enable_shared=no 8313 # Look at the argument we got. We use all the common list separators. 8314 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8315 for pkg in $enableval; do 8316 IFS=$lt_save_ifs 8317 if test "X$pkg" = "X$p"; then 8318 enable_shared=yes 8319 fi 8320 done 8321 IFS=$lt_save_ifs 8322 ;; 8323 esac 8324else 8325 enable_shared=yes 8326fi 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 # Check whether --enable-static was given. 8337if test "${enable_static+set}" = set; then : 8338 enableval=$enable_static; p=${PACKAGE-default} 8339 case $enableval in 8340 yes) enable_static=yes ;; 8341 no) enable_static=no ;; 8342 *) 8343 enable_static=no 8344 # Look at the argument we got. We use all the common list separators. 8345 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8346 for pkg in $enableval; do 8347 IFS=$lt_save_ifs 8348 if test "X$pkg" = "X$p"; then 8349 enable_static=yes 8350 fi 8351 done 8352 IFS=$lt_save_ifs 8353 ;; 8354 esac 8355else 8356 enable_static=yes 8357fi 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368# Check whether --with-pic was given. 8369if test "${with_pic+set}" = set; then : 8370 withval=$with_pic; lt_p=${PACKAGE-default} 8371 case $withval in 8372 yes|no) pic_mode=$withval ;; 8373 *) 8374 pic_mode=default 8375 # Look at the argument we got. We use all the common list separators. 8376 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8377 for lt_pkg in $withval; do 8378 IFS=$lt_save_ifs 8379 if test "X$lt_pkg" = "X$lt_p"; then 8380 pic_mode=yes 8381 fi 8382 done 8383 IFS=$lt_save_ifs 8384 ;; 8385 esac 8386else 8387 pic_mode=default 8388fi 8389 8390 8391 8392 8393 8394 8395 8396 8397 # Check whether --enable-fast-install was given. 8398if test "${enable_fast_install+set}" = set; then : 8399 enableval=$enable_fast_install; p=${PACKAGE-default} 8400 case $enableval in 8401 yes) enable_fast_install=yes ;; 8402 no) enable_fast_install=no ;; 8403 *) 8404 enable_fast_install=no 8405 # Look at the argument we got. We use all the common list separators. 8406 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8407 for pkg in $enableval; do 8408 IFS=$lt_save_ifs 8409 if test "X$pkg" = "X$p"; then 8410 enable_fast_install=yes 8411 fi 8412 done 8413 IFS=$lt_save_ifs 8414 ;; 8415 esac 8416else 8417 enable_fast_install=yes 8418fi 8419 8420 8421 8422 8423 8424 8425 8426 8427 shared_archive_member_spec= 8428case $host,$enable_shared in 8429power*-*-aix[5-9]*,yes) 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8431$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8432 8433# Check whether --with-aix-soname was given. 8434if test "${with_aix_soname+set}" = set; then : 8435 withval=$with_aix_soname; case $withval in 8436 aix|svr4|both) 8437 ;; 8438 *) 8439 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8440 ;; 8441 esac 8442 lt_cv_with_aix_soname=$with_aix_soname 8443else 8444 if ${lt_cv_with_aix_soname+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 lt_cv_with_aix_soname=aix 8448fi 8449 8450 with_aix_soname=$lt_cv_with_aix_soname 8451fi 8452 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8454$as_echo "$with_aix_soname" >&6; } 8455 if test aix != "$with_aix_soname"; then 8456 # For the AIX way of multilib, we name the shared archive member 8457 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8458 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8459 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8460 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8461 if test 64 = "${OBJECT_MODE-32}"; then 8462 shared_archive_member_spec=shr_64 8463 else 8464 shared_archive_member_spec=shr 8465 fi 8466 fi 8467 ;; 8468*) 8469 with_aix_soname=aix 8470 ;; 8471esac 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482# This can be used to rebuild libtool when needed 8483LIBTOOL_DEPS=$ltmain 8484 8485# Always use our own libtool. 8486LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517test -z "$LN_S" && LN_S="ln -s" 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532if test -n "${ZSH_VERSION+set}"; then 8533 setopt NO_GLOB_SUBST 8534fi 8535 8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8537$as_echo_n "checking for objdir... " >&6; } 8538if ${lt_cv_objdir+:} false; then : 8539 $as_echo_n "(cached) " >&6 8540else 8541 rm -f .libs 2>/dev/null 8542mkdir .libs 2>/dev/null 8543if test -d .libs; then 8544 lt_cv_objdir=.libs 8545else 8546 # MS-DOS does not allow filenames that begin with a dot. 8547 lt_cv_objdir=_libs 8548fi 8549rmdir .libs 2>/dev/null 8550fi 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8552$as_echo "$lt_cv_objdir" >&6; } 8553objdir=$lt_cv_objdir 8554 8555 8556 8557 8558 8559cat >>confdefs.h <<_ACEOF 8560#define LT_OBJDIR "$lt_cv_objdir/" 8561_ACEOF 8562 8563 8564 8565 8566case $host_os in 8567aix3*) 8568 # AIX sometimes has problems with the GCC collect2 program. For some 8569 # reason, if we set the COLLECT_NAMES environment variable, the problems 8570 # vanish in a puff of smoke. 8571 if test set != "${COLLECT_NAMES+set}"; then 8572 COLLECT_NAMES= 8573 export COLLECT_NAMES 8574 fi 8575 ;; 8576esac 8577 8578# Global variables: 8579ofile=libtool 8580can_build_shared=yes 8581 8582# All known linkers require a '.a' archive for static linking (except MSVC, 8583# which needs '.lib'). 8584libext=a 8585 8586with_gnu_ld=$lt_cv_prog_gnu_ld 8587 8588old_CC=$CC 8589old_CFLAGS=$CFLAGS 8590 8591# Set sane defaults for various variables 8592test -z "$CC" && CC=cc 8593test -z "$LTCC" && LTCC=$CC 8594test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8595test -z "$LD" && LD=ld 8596test -z "$ac_objext" && ac_objext=o 8597 8598func_cc_basename $compiler 8599cc_basename=$func_cc_basename_result 8600 8601 8602# Only perform the check for file, if the check method requires it 8603test -z "$MAGIC_CMD" && MAGIC_CMD=file 8604case $deplibs_check_method in 8605file_magic*) 8606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8609if ${lt_cv_path_MAGIC_CMD+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 case $MAGIC_CMD in 8613[\\/*] | ?:[\\/]*) 8614 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8615 ;; 8616*) 8617 lt_save_MAGIC_CMD=$MAGIC_CMD 8618 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8620 for ac_dir in $ac_dummy; do 8621 IFS=$lt_save_ifs 8622 test -z "$ac_dir" && ac_dir=. 8623 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8624 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8625 if test -n "$file_magic_test_file"; then 8626 case $deplibs_check_method in 8627 "file_magic "*) 8628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8629 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8631 $EGREP "$file_magic_regex" > /dev/null; then 8632 : 8633 else 8634 cat <<_LT_EOF 1>&2 8635 8636*** Warning: the command libtool uses to detect shared libraries, 8637*** $file_magic_cmd, produces output that libtool cannot recognize. 8638*** The result is that libtool may fail to recognize shared libraries 8639*** as such. This will affect the creation of libtool libraries that 8640*** depend on shared libraries, but programs linked with such libtool 8641*** libraries will work regardless of this problem. Nevertheless, you 8642*** may want to report the problem to your system manager and/or to 8643*** bug-libtool@gnu.org 8644 8645_LT_EOF 8646 fi ;; 8647 esac 8648 fi 8649 break 8650 fi 8651 done 8652 IFS=$lt_save_ifs 8653 MAGIC_CMD=$lt_save_MAGIC_CMD 8654 ;; 8655esac 8656fi 8657 8658MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8659if test -n "$MAGIC_CMD"; then 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8661$as_echo "$MAGIC_CMD" >&6; } 8662else 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8664$as_echo "no" >&6; } 8665fi 8666 8667 8668 8669 8670 8671if test -z "$lt_cv_path_MAGIC_CMD"; then 8672 if test -n "$ac_tool_prefix"; then 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8674$as_echo_n "checking for file... " >&6; } 8675if ${lt_cv_path_MAGIC_CMD+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 case $MAGIC_CMD in 8679[\\/*] | ?:[\\/]*) 8680 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8681 ;; 8682*) 8683 lt_save_MAGIC_CMD=$MAGIC_CMD 8684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8686 for ac_dir in $ac_dummy; do 8687 IFS=$lt_save_ifs 8688 test -z "$ac_dir" && ac_dir=. 8689 if test -f "$ac_dir/file"; then 8690 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8691 if test -n "$file_magic_test_file"; then 8692 case $deplibs_check_method in 8693 "file_magic "*) 8694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8695 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8697 $EGREP "$file_magic_regex" > /dev/null; then 8698 : 8699 else 8700 cat <<_LT_EOF 1>&2 8701 8702*** Warning: the command libtool uses to detect shared libraries, 8703*** $file_magic_cmd, produces output that libtool cannot recognize. 8704*** The result is that libtool may fail to recognize shared libraries 8705*** as such. This will affect the creation of libtool libraries that 8706*** depend on shared libraries, but programs linked with such libtool 8707*** libraries will work regardless of this problem. Nevertheless, you 8708*** may want to report the problem to your system manager and/or to 8709*** bug-libtool@gnu.org 8710 8711_LT_EOF 8712 fi ;; 8713 esac 8714 fi 8715 break 8716 fi 8717 done 8718 IFS=$lt_save_ifs 8719 MAGIC_CMD=$lt_save_MAGIC_CMD 8720 ;; 8721esac 8722fi 8723 8724MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8725if test -n "$MAGIC_CMD"; then 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8727$as_echo "$MAGIC_CMD" >&6; } 8728else 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8730$as_echo "no" >&6; } 8731fi 8732 8733 8734 else 8735 MAGIC_CMD=: 8736 fi 8737fi 8738 8739 fi 8740 ;; 8741esac 8742 8743# Use C for the default configuration in the libtool script 8744 8745lt_save_CC=$CC 8746ac_ext=c 8747ac_cpp='$CPP $CPPFLAGS' 8748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8750ac_compiler_gnu=$ac_cv_c_compiler_gnu 8751 8752 8753# Source file extension for C test sources. 8754ac_ext=c 8755 8756# Object file extension for compiled C test sources. 8757objext=o 8758objext=$objext 8759 8760# Code to be used in simple compile tests 8761lt_simple_compile_test_code="int some_variable = 0;" 8762 8763# Code to be used in simple link tests 8764lt_simple_link_test_code='int main(){return(0);}' 8765 8766 8767 8768 8769 8770 8771 8772# If no C compiler was specified, use CC. 8773LTCC=${LTCC-"$CC"} 8774 8775# If no C compiler flags were specified, use CFLAGS. 8776LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8777 8778# Allow CC to be a program name with arguments. 8779compiler=$CC 8780 8781# Save the default compiler, since it gets overwritten when the other 8782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8783compiler_DEFAULT=$CC 8784 8785# save warnings/boilerplate of simple test code 8786ac_outfile=conftest.$ac_objext 8787echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8789_lt_compiler_boilerplate=`cat conftest.err` 8790$RM conftest* 8791 8792ac_outfile=conftest.$ac_objext 8793echo "$lt_simple_link_test_code" >conftest.$ac_ext 8794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8795_lt_linker_boilerplate=`cat conftest.err` 8796$RM -r conftest* 8797 8798 8799## CAVEAT EMPTOR: 8800## There is no encapsulation within the following macros, do not change 8801## the running order or otherwise move them around unless you know exactly 8802## what you are doing... 8803if test -n "$compiler"; then 8804 8805lt_prog_compiler_no_builtin_flag= 8806 8807if test yes = "$GCC"; then 8808 case $cc_basename in 8809 nvcc*) 8810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8811 *) 8812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8813 esac 8814 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8816$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8817if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8818 $as_echo_n "(cached) " >&6 8819else 8820 lt_cv_prog_compiler_rtti_exceptions=no 8821 ac_outfile=conftest.$ac_objext 8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8823 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8824 # Insert the option either (1) after the last *FLAGS variable, or 8825 # (2) before a word containing "conftest.", or (3) at the end. 8826 # Note that $ac_compile itself does not contain backslashes and begins 8827 # with a dollar sign (not a hyphen), so the echo should work correctly. 8828 # The option is referenced via a variable to avoid confusing sed. 8829 lt_compile=`echo "$ac_compile" | $SED \ 8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8832 -e 's:$: $lt_compiler_flag:'` 8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8834 (eval "$lt_compile" 2>conftest.err) 8835 ac_status=$? 8836 cat conftest.err >&5 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 if (exit $ac_status) && test -s "$ac_outfile"; then 8839 # The compiler can only warn and ignore the option if not recognized 8840 # So say no if there are warnings other than the usual output. 8841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8844 lt_cv_prog_compiler_rtti_exceptions=yes 8845 fi 8846 fi 8847 $RM conftest* 8848 8849fi 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8851$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8852 8853if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8855else 8856 : 8857fi 8858 8859fi 8860 8861 8862 8863 8864 8865 8866 lt_prog_compiler_wl= 8867lt_prog_compiler_pic= 8868lt_prog_compiler_static= 8869 8870 8871 if test yes = "$GCC"; then 8872 lt_prog_compiler_wl='-Wl,' 8873 lt_prog_compiler_static='-static' 8874 8875 case $host_os in 8876 aix*) 8877 # All AIX code is PIC. 8878 if test ia64 = "$host_cpu"; then 8879 # AIX 5 now supports IA64 processor 8880 lt_prog_compiler_static='-Bstatic' 8881 fi 8882 lt_prog_compiler_pic='-fPIC' 8883 ;; 8884 8885 amigaos*) 8886 case $host_cpu in 8887 powerpc) 8888 # see comment about AmigaOS4 .so support 8889 lt_prog_compiler_pic='-fPIC' 8890 ;; 8891 m68k) 8892 # FIXME: we need at least 68020 code to build shared libraries, but 8893 # adding the '-m68020' flag to GCC prevents building anything better, 8894 # like '-m68040'. 8895 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8896 ;; 8897 esac 8898 ;; 8899 8900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8901 # PIC is the default for these OSes. 8902 ;; 8903 8904 mingw* | cygwin* | pw32* | os2* | cegcc*) 8905 # This hack is so that the source file can tell whether it is being 8906 # built for inclusion in a dll (and should export symbols for example). 8907 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8908 # (--disable-auto-import) libraries 8909 lt_prog_compiler_pic='-DDLL_EXPORT' 8910 case $host_os in 8911 os2*) 8912 lt_prog_compiler_static='$wl-static' 8913 ;; 8914 esac 8915 ;; 8916 8917 darwin* | rhapsody*) 8918 # PIC is the default on this platform 8919 # Common symbols not allowed in MH_DYLIB files 8920 lt_prog_compiler_pic='-fno-common' 8921 ;; 8922 8923 haiku*) 8924 # PIC is the default for Haiku. 8925 # The "-static" flag exists, but is broken. 8926 lt_prog_compiler_static= 8927 ;; 8928 8929 hpux*) 8930 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8931 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8932 # sets the default TLS model and affects inlining. 8933 case $host_cpu in 8934 hppa*64*) 8935 # +Z the default 8936 ;; 8937 *) 8938 lt_prog_compiler_pic='-fPIC' 8939 ;; 8940 esac 8941 ;; 8942 8943 interix[3-9]*) 8944 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8945 # Instead, we relocate shared libraries at runtime. 8946 ;; 8947 8948 msdosdjgpp*) 8949 # Just because we use GCC doesn't mean we suddenly get shared libraries 8950 # on systems that don't support them. 8951 lt_prog_compiler_can_build_shared=no 8952 enable_shared=no 8953 ;; 8954 8955 *nto* | *qnx*) 8956 # QNX uses GNU C++, but need to define -shared option too, otherwise 8957 # it will coredump. 8958 lt_prog_compiler_pic='-fPIC -shared' 8959 ;; 8960 8961 sysv4*MP*) 8962 if test -d /usr/nec; then 8963 lt_prog_compiler_pic=-Kconform_pic 8964 fi 8965 ;; 8966 8967 *) 8968 lt_prog_compiler_pic='-fPIC' 8969 ;; 8970 esac 8971 8972 case $cc_basename in 8973 nvcc*) # Cuda Compiler Driver 2.2 8974 lt_prog_compiler_wl='-Xlinker ' 8975 if test -n "$lt_prog_compiler_pic"; then 8976 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8977 fi 8978 ;; 8979 esac 8980 else 8981 # PORTME Check for flag to pass linker flags through the system compiler. 8982 case $host_os in 8983 aix*) 8984 lt_prog_compiler_wl='-Wl,' 8985 if test ia64 = "$host_cpu"; then 8986 # AIX 5 now supports IA64 processor 8987 lt_prog_compiler_static='-Bstatic' 8988 else 8989 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8990 fi 8991 ;; 8992 8993 darwin* | rhapsody*) 8994 # PIC is the default on this platform 8995 # Common symbols not allowed in MH_DYLIB files 8996 lt_prog_compiler_pic='-fno-common' 8997 case $cc_basename in 8998 nagfor*) 8999 # NAG Fortran compiler 9000 lt_prog_compiler_wl='-Wl,-Wl,,' 9001 lt_prog_compiler_pic='-PIC' 9002 lt_prog_compiler_static='-Bstatic' 9003 ;; 9004 esac 9005 ;; 9006 9007 mingw* | cygwin* | pw32* | os2* | cegcc*) 9008 # This hack is so that the source file can tell whether it is being 9009 # built for inclusion in a dll (and should export symbols for example). 9010 lt_prog_compiler_pic='-DDLL_EXPORT' 9011 case $host_os in 9012 os2*) 9013 lt_prog_compiler_static='$wl-static' 9014 ;; 9015 esac 9016 ;; 9017 9018 hpux9* | hpux10* | hpux11*) 9019 lt_prog_compiler_wl='-Wl,' 9020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9021 # not for PA HP-UX. 9022 case $host_cpu in 9023 hppa*64*|ia64*) 9024 # +Z the default 9025 ;; 9026 *) 9027 lt_prog_compiler_pic='+Z' 9028 ;; 9029 esac 9030 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9031 lt_prog_compiler_static='$wl-a ${wl}archive' 9032 ;; 9033 9034 irix5* | irix6* | nonstopux*) 9035 lt_prog_compiler_wl='-Wl,' 9036 # PIC (with -KPIC) is the default. 9037 lt_prog_compiler_static='-non_shared' 9038 ;; 9039 9040 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9041 case $cc_basename in 9042 # old Intel for x86_64, which still supported -KPIC. 9043 ecc*) 9044 lt_prog_compiler_wl='-Wl,' 9045 lt_prog_compiler_pic='-KPIC' 9046 lt_prog_compiler_static='-static' 9047 ;; 9048 # icc used to be incompatible with GCC. 9049 # ICC 10 doesn't accept -KPIC any more. 9050 icc* | ifort*) 9051 lt_prog_compiler_wl='-Wl,' 9052 lt_prog_compiler_pic='-fPIC' 9053 lt_prog_compiler_static='-static' 9054 ;; 9055 # Lahey Fortran 8.1. 9056 lf95*) 9057 lt_prog_compiler_wl='-Wl,' 9058 lt_prog_compiler_pic='--shared' 9059 lt_prog_compiler_static='--static' 9060 ;; 9061 nagfor*) 9062 # NAG Fortran compiler 9063 lt_prog_compiler_wl='-Wl,-Wl,,' 9064 lt_prog_compiler_pic='-PIC' 9065 lt_prog_compiler_static='-Bstatic' 9066 ;; 9067 tcc*) 9068 # Fabrice Bellard et al's Tiny C Compiler 9069 lt_prog_compiler_wl='-Wl,' 9070 lt_prog_compiler_pic='-fPIC' 9071 lt_prog_compiler_static='-static' 9072 ;; 9073 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9074 # Portland Group compilers (*not* the Pentium gcc compiler, 9075 # which looks to be a dead project) 9076 lt_prog_compiler_wl='-Wl,' 9077 lt_prog_compiler_pic='-fpic' 9078 lt_prog_compiler_static='-Bstatic' 9079 ;; 9080 ccc*) 9081 lt_prog_compiler_wl='-Wl,' 9082 # All Alpha code is PIC. 9083 lt_prog_compiler_static='-non_shared' 9084 ;; 9085 xl* | bgxl* | bgf* | mpixl*) 9086 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9087 lt_prog_compiler_wl='-Wl,' 9088 lt_prog_compiler_pic='-qpic' 9089 lt_prog_compiler_static='-qstaticlink' 9090 ;; 9091 *) 9092 case `$CC -V 2>&1 | sed 5q` in 9093 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9094 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9095 lt_prog_compiler_pic='-KPIC' 9096 lt_prog_compiler_static='-Bstatic' 9097 lt_prog_compiler_wl='' 9098 ;; 9099 *Sun\ F* | *Sun*Fortran*) 9100 lt_prog_compiler_pic='-KPIC' 9101 lt_prog_compiler_static='-Bstatic' 9102 lt_prog_compiler_wl='-Qoption ld ' 9103 ;; 9104 *Sun\ C*) 9105 # Sun C 5.9 9106 lt_prog_compiler_pic='-KPIC' 9107 lt_prog_compiler_static='-Bstatic' 9108 lt_prog_compiler_wl='-Wl,' 9109 ;; 9110 *Intel*\ [CF]*Compiler*) 9111 lt_prog_compiler_wl='-Wl,' 9112 lt_prog_compiler_pic='-fPIC' 9113 lt_prog_compiler_static='-static' 9114 ;; 9115 *Portland\ Group*) 9116 lt_prog_compiler_wl='-Wl,' 9117 lt_prog_compiler_pic='-fpic' 9118 lt_prog_compiler_static='-Bstatic' 9119 ;; 9120 esac 9121 ;; 9122 esac 9123 ;; 9124 9125 newsos6) 9126 lt_prog_compiler_pic='-KPIC' 9127 lt_prog_compiler_static='-Bstatic' 9128 ;; 9129 9130 *nto* | *qnx*) 9131 # QNX uses GNU C++, but need to define -shared option too, otherwise 9132 # it will coredump. 9133 lt_prog_compiler_pic='-fPIC -shared' 9134 ;; 9135 9136 osf3* | osf4* | osf5*) 9137 lt_prog_compiler_wl='-Wl,' 9138 # All OSF/1 code is PIC. 9139 lt_prog_compiler_static='-non_shared' 9140 ;; 9141 9142 rdos*) 9143 lt_prog_compiler_static='-non_shared' 9144 ;; 9145 9146 solaris*) 9147 lt_prog_compiler_pic='-KPIC' 9148 lt_prog_compiler_static='-Bstatic' 9149 case $cc_basename in 9150 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9151 lt_prog_compiler_wl='-Qoption ld ';; 9152 *) 9153 lt_prog_compiler_wl='-Wl,';; 9154 esac 9155 ;; 9156 9157 sunos4*) 9158 lt_prog_compiler_wl='-Qoption ld ' 9159 lt_prog_compiler_pic='-PIC' 9160 lt_prog_compiler_static='-Bstatic' 9161 ;; 9162 9163 sysv4 | sysv4.2uw2* | sysv4.3*) 9164 lt_prog_compiler_wl='-Wl,' 9165 lt_prog_compiler_pic='-KPIC' 9166 lt_prog_compiler_static='-Bstatic' 9167 ;; 9168 9169 sysv4*MP*) 9170 if test -d /usr/nec; then 9171 lt_prog_compiler_pic='-Kconform_pic' 9172 lt_prog_compiler_static='-Bstatic' 9173 fi 9174 ;; 9175 9176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9177 lt_prog_compiler_wl='-Wl,' 9178 lt_prog_compiler_pic='-KPIC' 9179 lt_prog_compiler_static='-Bstatic' 9180 ;; 9181 9182 unicos*) 9183 lt_prog_compiler_wl='-Wl,' 9184 lt_prog_compiler_can_build_shared=no 9185 ;; 9186 9187 uts4*) 9188 lt_prog_compiler_pic='-pic' 9189 lt_prog_compiler_static='-Bstatic' 9190 ;; 9191 9192 *) 9193 lt_prog_compiler_can_build_shared=no 9194 ;; 9195 esac 9196 fi 9197 9198case $host_os in 9199 # For platforms that do not support PIC, -DPIC is meaningless: 9200 *djgpp*) 9201 lt_prog_compiler_pic= 9202 ;; 9203 *) 9204 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9205 ;; 9206esac 9207 9208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9209$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9210if ${lt_cv_prog_compiler_pic+:} false; then : 9211 $as_echo_n "(cached) " >&6 9212else 9213 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9214fi 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9216$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9217lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9218 9219# 9220# Check to make sure the PIC flag actually works. 9221# 9222if test -n "$lt_prog_compiler_pic"; then 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9224$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9225if ${lt_cv_prog_compiler_pic_works+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227else 9228 lt_cv_prog_compiler_pic_works=no 9229 ac_outfile=conftest.$ac_objext 9230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9231 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9232 # Insert the option either (1) after the last *FLAGS variable, or 9233 # (2) before a word containing "conftest.", or (3) at the end. 9234 # Note that $ac_compile itself does not contain backslashes and begins 9235 # with a dollar sign (not a hyphen), so the echo should work correctly. 9236 # The option is referenced via a variable to avoid confusing sed. 9237 lt_compile=`echo "$ac_compile" | $SED \ 9238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9240 -e 's:$: $lt_compiler_flag:'` 9241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9242 (eval "$lt_compile" 2>conftest.err) 9243 ac_status=$? 9244 cat conftest.err >&5 9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9246 if (exit $ac_status) && test -s "$ac_outfile"; then 9247 # The compiler can only warn and ignore the option if not recognized 9248 # So say no if there are warnings other than the usual output. 9249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9252 lt_cv_prog_compiler_pic_works=yes 9253 fi 9254 fi 9255 $RM conftest* 9256 9257fi 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9259$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9260 9261if test yes = "$lt_cv_prog_compiler_pic_works"; then 9262 case $lt_prog_compiler_pic in 9263 "" | " "*) ;; 9264 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9265 esac 9266else 9267 lt_prog_compiler_pic= 9268 lt_prog_compiler_can_build_shared=no 9269fi 9270 9271fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283# 9284# Check to make sure the static flag actually works. 9285# 9286wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9288$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9289if ${lt_cv_prog_compiler_static_works+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291else 9292 lt_cv_prog_compiler_static_works=no 9293 save_LDFLAGS=$LDFLAGS 9294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9295 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9297 # The linker can only warn and ignore the option if not recognized 9298 # So say no if there are warnings 9299 if test -s conftest.err; then 9300 # Append any errors to the config.log. 9301 cat conftest.err 1>&5 9302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9304 if diff conftest.exp conftest.er2 >/dev/null; then 9305 lt_cv_prog_compiler_static_works=yes 9306 fi 9307 else 9308 lt_cv_prog_compiler_static_works=yes 9309 fi 9310 fi 9311 $RM -r conftest* 9312 LDFLAGS=$save_LDFLAGS 9313 9314fi 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9316$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9317 9318if test yes = "$lt_cv_prog_compiler_static_works"; then 9319 : 9320else 9321 lt_prog_compiler_static= 9322fi 9323 9324 9325 9326 9327 9328 9329 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9331$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9332if ${lt_cv_prog_compiler_c_o+:} false; then : 9333 $as_echo_n "(cached) " >&6 9334else 9335 lt_cv_prog_compiler_c_o=no 9336 $RM -r conftest 2>/dev/null 9337 mkdir conftest 9338 cd conftest 9339 mkdir out 9340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9341 9342 lt_compiler_flag="-o out/conftest2.$ac_objext" 9343 # Insert the option either (1) after the last *FLAGS variable, or 9344 # (2) before a word containing "conftest.", or (3) at the end. 9345 # Note that $ac_compile itself does not contain backslashes and begins 9346 # with a dollar sign (not a hyphen), so the echo should work correctly. 9347 lt_compile=`echo "$ac_compile" | $SED \ 9348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9350 -e 's:$: $lt_compiler_flag:'` 9351 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9352 (eval "$lt_compile" 2>out/conftest.err) 9353 ac_status=$? 9354 cat out/conftest.err >&5 9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9356 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9357 then 9358 # The compiler can only warn and ignore the option if not recognized 9359 # So say no if there are warnings 9360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9363 lt_cv_prog_compiler_c_o=yes 9364 fi 9365 fi 9366 chmod u+w . 2>&5 9367 $RM conftest* 9368 # SGI C++ compiler will create directory out/ii_files/ for 9369 # template instantiation 9370 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9371 $RM out/* && rmdir out 9372 cd .. 9373 $RM -r conftest 9374 $RM conftest* 9375 9376fi 9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9378$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9379 9380 9381 9382 9383 9384 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9386$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9387if ${lt_cv_prog_compiler_c_o+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 lt_cv_prog_compiler_c_o=no 9391 $RM -r conftest 2>/dev/null 9392 mkdir conftest 9393 cd conftest 9394 mkdir out 9395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9396 9397 lt_compiler_flag="-o out/conftest2.$ac_objext" 9398 # Insert the option either (1) after the last *FLAGS variable, or 9399 # (2) before a word containing "conftest.", or (3) at the end. 9400 # Note that $ac_compile itself does not contain backslashes and begins 9401 # with a dollar sign (not a hyphen), so the echo should work correctly. 9402 lt_compile=`echo "$ac_compile" | $SED \ 9403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9405 -e 's:$: $lt_compiler_flag:'` 9406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9407 (eval "$lt_compile" 2>out/conftest.err) 9408 ac_status=$? 9409 cat out/conftest.err >&5 9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9411 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9412 then 9413 # The compiler can only warn and ignore the option if not recognized 9414 # So say no if there are warnings 9415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9418 lt_cv_prog_compiler_c_o=yes 9419 fi 9420 fi 9421 chmod u+w . 2>&5 9422 $RM conftest* 9423 # SGI C++ compiler will create directory out/ii_files/ for 9424 # template instantiation 9425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9426 $RM out/* && rmdir out 9427 cd .. 9428 $RM -r conftest 9429 $RM conftest* 9430 9431fi 9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9433$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9434 9435 9436 9437 9438hard_links=nottested 9439if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9440 # do not overwrite the value of need_locks provided by the user 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9442$as_echo_n "checking if we can lock with hard links... " >&6; } 9443 hard_links=yes 9444 $RM conftest* 9445 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9446 touch conftest.a 9447 ln conftest.a conftest.b 2>&5 || hard_links=no 9448 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9450$as_echo "$hard_links" >&6; } 9451 if test no = "$hard_links"; then 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9453$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9454 need_locks=warn 9455 fi 9456else 9457 need_locks=no 9458fi 9459 9460 9461 9462 9463 9464 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9466$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9467 9468 runpath_var= 9469 allow_undefined_flag= 9470 always_export_symbols=no 9471 archive_cmds= 9472 archive_expsym_cmds= 9473 compiler_needs_object=no 9474 enable_shared_with_static_runtimes=no 9475 export_dynamic_flag_spec= 9476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9477 hardcode_automatic=no 9478 hardcode_direct=no 9479 hardcode_direct_absolute=no 9480 hardcode_libdir_flag_spec= 9481 hardcode_libdir_separator= 9482 hardcode_minus_L=no 9483 hardcode_shlibpath_var=unsupported 9484 inherit_rpath=no 9485 link_all_deplibs=unknown 9486 module_cmds= 9487 module_expsym_cmds= 9488 old_archive_from_new_cmds= 9489 old_archive_from_expsyms_cmds= 9490 thread_safe_flag_spec= 9491 whole_archive_flag_spec= 9492 # include_expsyms should be a list of space-separated symbols to be *always* 9493 # included in the symbol list 9494 include_expsyms= 9495 # exclude_expsyms can be an extended regexp of symbols to exclude 9496 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9497 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9498 # as well as any symbol that contains 'd'. 9499 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9501 # platforms (ab)use it in PIC code, but their linkers get confused if 9502 # the symbol is explicitly referenced. Since portable code cannot 9503 # rely on this symbol name, it's probably fine to never include it in 9504 # preloaded symbol tables. 9505 # Exclude shared library initialization/finalization symbols. 9506 extract_expsyms_cmds= 9507 9508 case $host_os in 9509 cygwin* | mingw* | pw32* | cegcc*) 9510 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9511 # When not using gcc, we currently assume that we are using 9512 # Microsoft Visual C++. 9513 if test yes != "$GCC"; then 9514 with_gnu_ld=no 9515 fi 9516 ;; 9517 interix*) 9518 # we just hope/assume this is gcc and not c89 (= MSVC++) 9519 with_gnu_ld=yes 9520 ;; 9521 openbsd* | bitrig*) 9522 with_gnu_ld=no 9523 ;; 9524 linux* | k*bsd*-gnu | gnu*) 9525 link_all_deplibs=no 9526 ;; 9527 esac 9528 9529 ld_shlibs=yes 9530 9531 # On some targets, GNU ld is compatible enough with the native linker 9532 # that we're better off using the native interface for both. 9533 lt_use_gnu_ld_interface=no 9534 if test yes = "$with_gnu_ld"; then 9535 case $host_os in 9536 aix*) 9537 # The AIX port of GNU ld has always aspired to compatibility 9538 # with the native linker. However, as the warning in the GNU ld 9539 # block says, versions before 2.19.5* couldn't really create working 9540 # shared libraries, regardless of the interface used. 9541 case `$LD -v 2>&1` in 9542 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9543 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9544 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9545 *) 9546 lt_use_gnu_ld_interface=yes 9547 ;; 9548 esac 9549 ;; 9550 *) 9551 lt_use_gnu_ld_interface=yes 9552 ;; 9553 esac 9554 fi 9555 9556 if test yes = "$lt_use_gnu_ld_interface"; then 9557 # If archive_cmds runs LD, not CC, wlarc should be empty 9558 wlarc='$wl' 9559 9560 # Set some defaults for GNU ld with shared library support. These 9561 # are reset later if shared libraries are not supported. Putting them 9562 # here allows them to be overridden if necessary. 9563 runpath_var=LD_RUN_PATH 9564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9565 export_dynamic_flag_spec='$wl--export-dynamic' 9566 # ancient GNU ld didn't support --whole-archive et. al. 9567 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9568 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9569 else 9570 whole_archive_flag_spec= 9571 fi 9572 supports_anon_versioning=no 9573 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9574 *GNU\ gold*) supports_anon_versioning=yes ;; 9575 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9576 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9577 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9578 *\ 2.11.*) ;; # other 2.11 versions 9579 *) supports_anon_versioning=yes ;; 9580 esac 9581 9582 # See if GNU ld supports shared libraries. 9583 case $host_os in 9584 aix[3-9]*) 9585 # On AIX/PPC, the GNU linker is very broken 9586 if test ia64 != "$host_cpu"; then 9587 ld_shlibs=no 9588 cat <<_LT_EOF 1>&2 9589 9590*** Warning: the GNU linker, at least up to release 2.19, is reported 9591*** to be unable to reliably create shared libraries on AIX. 9592*** Therefore, libtool is disabling shared libraries support. If you 9593*** really care for shared libraries, you may want to install binutils 9594*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9595*** You will then need to restart the configuration process. 9596 9597_LT_EOF 9598 fi 9599 ;; 9600 9601 amigaos*) 9602 case $host_cpu in 9603 powerpc) 9604 # see comment about AmigaOS4 .so support 9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9606 archive_expsym_cmds='' 9607 ;; 9608 m68k) 9609 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)' 9610 hardcode_libdir_flag_spec='-L$libdir' 9611 hardcode_minus_L=yes 9612 ;; 9613 esac 9614 ;; 9615 9616 beos*) 9617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9618 allow_undefined_flag=unsupported 9619 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9620 # support --undefined. This deserves some investigation. FIXME 9621 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9622 else 9623 ld_shlibs=no 9624 fi 9625 ;; 9626 9627 cygwin* | mingw* | pw32* | cegcc*) 9628 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9629 # as there is no search path for DLLs. 9630 hardcode_libdir_flag_spec='-L$libdir' 9631 export_dynamic_flag_spec='$wl--export-all-symbols' 9632 allow_undefined_flag=unsupported 9633 always_export_symbols=no 9634 enable_shared_with_static_runtimes=yes 9635 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' 9636 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9637 9638 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9640 # If the export-symbols file already is a .def file, use it as 9641 # is; otherwise, prepend EXPORTS... 9642 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9643 cp $export_symbols $output_objdir/$soname.def; 9644 else 9645 echo EXPORTS > $output_objdir/$soname.def; 9646 cat $export_symbols >> $output_objdir/$soname.def; 9647 fi~ 9648 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9649 else 9650 ld_shlibs=no 9651 fi 9652 ;; 9653 9654 haiku*) 9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9656 link_all_deplibs=yes 9657 ;; 9658 9659 os2*) 9660 hardcode_libdir_flag_spec='-L$libdir' 9661 hardcode_minus_L=yes 9662 allow_undefined_flag=unsupported 9663 shrext_cmds=.dll 9664 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9667 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9668 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9669 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9670 emximp -o $lib $output_objdir/$libname.def' 9671 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9672 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9673 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9674 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9675 prefix_cmds="$SED"~ 9676 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9677 prefix_cmds="$prefix_cmds -e 1d"; 9678 fi~ 9679 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9680 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9681 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9682 emximp -o $lib $output_objdir/$libname.def' 9683 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9684 enable_shared_with_static_runtimes=yes 9685 ;; 9686 9687 interix[3-9]*) 9688 hardcode_direct=no 9689 hardcode_shlibpath_var=no 9690 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9691 export_dynamic_flag_spec='$wl-E' 9692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9693 # Instead, shared libraries are loaded at an image base (0x10000000 by 9694 # default) and relocated if they conflict, which is a slow very memory 9695 # consuming and fragmenting process. To avoid this, we pick a random, 9696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9697 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9698 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9699 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' 9700 ;; 9701 9702 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9703 tmp_diet=no 9704 if test linux-dietlibc = "$host_os"; then 9705 case $cc_basename in 9706 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9707 esac 9708 fi 9709 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9710 && test no = "$tmp_diet" 9711 then 9712 tmp_addflag=' $pic_flag' 9713 tmp_sharedflag='-shared' 9714 case $cc_basename,$host_cpu in 9715 pgcc*) # Portland Group C compiler 9716 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' 9717 tmp_addflag=' $pic_flag' 9718 ;; 9719 pgf77* | pgf90* | pgf95* | pgfortran*) 9720 # Portland Group f77 and f90 compilers 9721 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' 9722 tmp_addflag=' $pic_flag -Mnomain' ;; 9723 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9724 tmp_addflag=' -i_dynamic' ;; 9725 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9726 tmp_addflag=' -i_dynamic -nofor_main' ;; 9727 ifc* | ifort*) # Intel Fortran compiler 9728 tmp_addflag=' -nofor_main' ;; 9729 lf95*) # Lahey Fortran 8.1 9730 whole_archive_flag_spec= 9731 tmp_sharedflag='--shared' ;; 9732 nagfor*) # NAGFOR 5.3 9733 tmp_sharedflag='-Wl,-shared' ;; 9734 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9735 tmp_sharedflag='-qmkshrobj' 9736 tmp_addflag= ;; 9737 nvcc*) # Cuda Compiler Driver 2.2 9738 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' 9739 compiler_needs_object=yes 9740 ;; 9741 esac 9742 case `$CC -V 2>&1 | sed 5q` in 9743 *Sun\ C*) # Sun C 5.9 9744 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' 9745 compiler_needs_object=yes 9746 tmp_sharedflag='-G' ;; 9747 *Sun\ F*) # Sun Fortran 8.3 9748 tmp_sharedflag='-G' ;; 9749 esac 9750 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9751 9752 if test yes = "$supports_anon_versioning"; then 9753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9755 echo "local: *; };" >> $output_objdir/$libname.ver~ 9756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9757 fi 9758 9759 case $cc_basename in 9760 tcc*) 9761 export_dynamic_flag_spec='-rdynamic' 9762 ;; 9763 xlf* | bgf* | bgxlf* | mpixlf*) 9764 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9765 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9767 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9768 if test yes = "$supports_anon_versioning"; then 9769 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9771 echo "local: *; };" >> $output_objdir/$libname.ver~ 9772 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9773 fi 9774 ;; 9775 esac 9776 else 9777 ld_shlibs=no 9778 fi 9779 ;; 9780 9781 netbsd* | netbsdelf*-gnu) 9782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9783 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9784 wlarc= 9785 else 9786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9787 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9788 fi 9789 ;; 9790 9791 solaris*) 9792 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9793 ld_shlibs=no 9794 cat <<_LT_EOF 1>&2 9795 9796*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9797*** create shared libraries on Solaris systems. Therefore, libtool 9798*** is disabling shared libraries support. We urge you to upgrade GNU 9799*** binutils to release 2.9.1 or newer. Another option is to modify 9800*** your PATH or compiler configuration so that the native linker is 9801*** used, and then restart. 9802 9803_LT_EOF 9804 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9806 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9807 else 9808 ld_shlibs=no 9809 fi 9810 ;; 9811 9812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9813 case `$LD -v 2>&1` in 9814 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9815 ld_shlibs=no 9816 cat <<_LT_EOF 1>&2 9817 9818*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9819*** reliably create shared libraries on SCO systems. Therefore, libtool 9820*** is disabling shared libraries support. We urge you to upgrade GNU 9821*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9822*** your PATH or compiler configuration so that the native linker is 9823*** used, and then restart. 9824 9825_LT_EOF 9826 ;; 9827 *) 9828 # For security reasons, it is highly recommended that you always 9829 # use absolute paths for naming shared libraries, and exclude the 9830 # DT_RUNPATH tag from executables and libraries. But doing so 9831 # requires that you compile everything twice, which is a pain. 9832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9836 else 9837 ld_shlibs=no 9838 fi 9839 ;; 9840 esac 9841 ;; 9842 9843 sunos4*) 9844 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9845 wlarc= 9846 hardcode_direct=yes 9847 hardcode_shlibpath_var=no 9848 ;; 9849 9850 *) 9851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9853 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9854 else 9855 ld_shlibs=no 9856 fi 9857 ;; 9858 esac 9859 9860 if test no = "$ld_shlibs"; then 9861 runpath_var= 9862 hardcode_libdir_flag_spec= 9863 export_dynamic_flag_spec= 9864 whole_archive_flag_spec= 9865 fi 9866 else 9867 # PORTME fill in a description of your system's linker (not GNU ld) 9868 case $host_os in 9869 aix3*) 9870 allow_undefined_flag=unsupported 9871 always_export_symbols=yes 9872 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' 9873 # Note: this linker hardcodes the directories in LIBPATH if there 9874 # are no directories specified by -L. 9875 hardcode_minus_L=yes 9876 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9877 # Neither direct hardcoding nor static linking is supported with a 9878 # broken collect2. 9879 hardcode_direct=unsupported 9880 fi 9881 ;; 9882 9883 aix[4-9]*) 9884 if test ia64 = "$host_cpu"; then 9885 # On IA64, the linker does run time linking by default, so we don't 9886 # have to do anything special. 9887 aix_use_runtimelinking=no 9888 exp_sym_flag='-Bexport' 9889 no_entry_flag= 9890 else 9891 # If we're using GNU nm, then we don't want the "-C" option. 9892 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9893 # Without the "-l" option, or with the "-B" option, AIX nm treats 9894 # weak defined symbols like other global defined symbols, whereas 9895 # GNU nm marks them as "W". 9896 # While the 'weak' keyword is ignored in the Export File, we need 9897 # it in the Import File for the 'aix-soname' feature, so we have 9898 # to replace the "-B" option with "-P" for AIX nm. 9899 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9900 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' 9901 else 9902 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' 9903 fi 9904 aix_use_runtimelinking=no 9905 9906 # Test if we are trying to use run time linking or normal 9907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9908 # have runtime linking enabled, and use it for executables. 9909 # For shared libraries, we enable/disable runtime linking 9910 # depending on the kind of the shared library created - 9911 # when "with_aix_soname,aix_use_runtimelinking" is: 9912 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9913 # "aix,yes" lib.so shared, rtl:yes, for executables 9914 # lib.a static archive 9915 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9916 # lib.a(lib.so.V) shared, rtl:no, for executables 9917 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9918 # lib.a(lib.so.V) shared, rtl:no 9919 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9920 # lib.a static archive 9921 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9922 for ld_flag in $LDFLAGS; do 9923 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9924 aix_use_runtimelinking=yes 9925 break 9926 fi 9927 done 9928 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9929 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9930 # so we don't have lib.a shared libs to link our executables. 9931 # We have to force runtime linking in this case. 9932 aix_use_runtimelinking=yes 9933 LDFLAGS="$LDFLAGS -Wl,-brtl" 9934 fi 9935 ;; 9936 esac 9937 9938 exp_sym_flag='-bexport' 9939 no_entry_flag='-bnoentry' 9940 fi 9941 9942 # When large executables or shared objects are built, AIX ld can 9943 # have problems creating the table of contents. If linking a library 9944 # or program results in "error TOC overflow" add -mminimal-toc to 9945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9947 9948 archive_cmds='' 9949 hardcode_direct=yes 9950 hardcode_direct_absolute=yes 9951 hardcode_libdir_separator=':' 9952 link_all_deplibs=yes 9953 file_list_spec='$wl-f,' 9954 case $with_aix_soname,$aix_use_runtimelinking in 9955 aix,*) ;; # traditional, no import file 9956 svr4,* | *,yes) # use import file 9957 # The Import File defines what to hardcode. 9958 hardcode_direct=no 9959 hardcode_direct_absolute=no 9960 ;; 9961 esac 9962 9963 if test yes = "$GCC"; then 9964 case $host_os in aix4.[012]|aix4.[012].*) 9965 # We only want to do this on AIX 4.2 and lower, the check 9966 # below for broken collect2 doesn't work under 4.3+ 9967 collect2name=`$CC -print-prog-name=collect2` 9968 if test -f "$collect2name" && 9969 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9970 then 9971 # We have reworked collect2 9972 : 9973 else 9974 # We have old collect2 9975 hardcode_direct=unsupported 9976 # It fails to find uninstalled libraries when the uninstalled 9977 # path is not listed in the libpath. Setting hardcode_minus_L 9978 # to unsupported forces relinking 9979 hardcode_minus_L=yes 9980 hardcode_libdir_flag_spec='-L$libdir' 9981 hardcode_libdir_separator= 9982 fi 9983 ;; 9984 esac 9985 shared_flag='-shared' 9986 if test yes = "$aix_use_runtimelinking"; then 9987 shared_flag="$shared_flag "'$wl-G' 9988 fi 9989 # Need to ensure runtime linking is disabled for the traditional 9990 # shared library, or the linker may eventually find shared libraries 9991 # /with/ Import File - we do not want to mix them. 9992 shared_flag_aix='-shared' 9993 shared_flag_svr4='-shared $wl-G' 9994 else 9995 # not using gcc 9996 if test ia64 = "$host_cpu"; then 9997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9998 # chokes on -Wl,-G. The following line is correct: 9999 shared_flag='-G' 10000 else 10001 if test yes = "$aix_use_runtimelinking"; then 10002 shared_flag='$wl-G' 10003 else 10004 shared_flag='$wl-bM:SRE' 10005 fi 10006 shared_flag_aix='$wl-bM:SRE' 10007 shared_flag_svr4='$wl-G' 10008 fi 10009 fi 10010 10011 export_dynamic_flag_spec='$wl-bexpall' 10012 # It seems that -bexpall does not export symbols beginning with 10013 # underscore (_), so it is better to generate a list of symbols to export. 10014 always_export_symbols=yes 10015 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10016 # Warning - without using the other runtime loading flags (-brtl), 10017 # -berok will link without error, but may produce a broken library. 10018 allow_undefined_flag='-berok' 10019 # Determine the default libpath from the value encoded in an 10020 # empty executable. 10021 if test set = "${lt_cv_aix_libpath+set}"; then 10022 aix_libpath=$lt_cv_aix_libpath 10023else 10024 if ${lt_cv_aix_libpath_+:} false; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10028/* end confdefs.h. */ 10029 10030int 10031main () 10032{ 10033 10034 ; 10035 return 0; 10036} 10037_ACEOF 10038if ac_fn_c_try_link "$LINENO"; then : 10039 10040 lt_aix_libpath_sed=' 10041 /Import File Strings/,/^$/ { 10042 /^0/ { 10043 s/^0 *\([^ ]*\) *$/\1/ 10044 p 10045 } 10046 }' 10047 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10048 # Check for a 64-bit object if we didn't find anything. 10049 if test -z "$lt_cv_aix_libpath_"; then 10050 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10051 fi 10052fi 10053rm -f core conftest.err conftest.$ac_objext \ 10054 conftest$ac_exeext conftest.$ac_ext 10055 if test -z "$lt_cv_aix_libpath_"; then 10056 lt_cv_aix_libpath_=/usr/lib:/lib 10057 fi 10058 10059fi 10060 10061 aix_libpath=$lt_cv_aix_libpath_ 10062fi 10063 10064 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10065 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 10066 else 10067 if test ia64 = "$host_cpu"; then 10068 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10069 allow_undefined_flag="-z nodefs" 10070 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" 10071 else 10072 # Determine the default libpath from the value encoded in an 10073 # empty executable. 10074 if test set = "${lt_cv_aix_libpath+set}"; then 10075 aix_libpath=$lt_cv_aix_libpath 10076else 10077 if ${lt_cv_aix_libpath_+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079else 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081/* end confdefs.h. */ 10082 10083int 10084main () 10085{ 10086 10087 ; 10088 return 0; 10089} 10090_ACEOF 10091if ac_fn_c_try_link "$LINENO"; then : 10092 10093 lt_aix_libpath_sed=' 10094 /Import File Strings/,/^$/ { 10095 /^0/ { 10096 s/^0 *\([^ ]*\) *$/\1/ 10097 p 10098 } 10099 }' 10100 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10101 # Check for a 64-bit object if we didn't find anything. 10102 if test -z "$lt_cv_aix_libpath_"; then 10103 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10104 fi 10105fi 10106rm -f core conftest.err conftest.$ac_objext \ 10107 conftest$ac_exeext conftest.$ac_ext 10108 if test -z "$lt_cv_aix_libpath_"; then 10109 lt_cv_aix_libpath_=/usr/lib:/lib 10110 fi 10111 10112fi 10113 10114 aix_libpath=$lt_cv_aix_libpath_ 10115fi 10116 10117 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10118 # Warning - without using the other run time loading flags, 10119 # -berok will link without error, but may produce a broken library. 10120 no_undefined_flag=' $wl-bernotok' 10121 allow_undefined_flag=' $wl-berok' 10122 if test yes = "$with_gnu_ld"; then 10123 # We only use this code for GNU lds that support --whole-archive. 10124 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10125 else 10126 # Exported symbols can be pulled into shared objects from archives 10127 whole_archive_flag_spec='$convenience' 10128 fi 10129 archive_cmds_need_lc=yes 10130 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10131 # -brtl affects multiple linker settings, -berok does not and is overridden later 10132 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10133 if test svr4 != "$with_aix_soname"; then 10134 # This is similar to how AIX traditionally builds its shared libraries. 10135 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' 10136 fi 10137 if test aix != "$with_aix_soname"; then 10138 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' 10139 else 10140 # used by -dlpreopen to get the symbols 10141 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10142 fi 10143 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10144 fi 10145 fi 10146 ;; 10147 10148 amigaos*) 10149 case $host_cpu in 10150 powerpc) 10151 # see comment about AmigaOS4 .so support 10152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10153 archive_expsym_cmds='' 10154 ;; 10155 m68k) 10156 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)' 10157 hardcode_libdir_flag_spec='-L$libdir' 10158 hardcode_minus_L=yes 10159 ;; 10160 esac 10161 ;; 10162 10163 bsdi[45]*) 10164 export_dynamic_flag_spec=-rdynamic 10165 ;; 10166 10167 cygwin* | mingw* | pw32* | cegcc*) 10168 # When not using gcc, we currently assume that we are using 10169 # Microsoft Visual C++. 10170 # hardcode_libdir_flag_spec is actually meaningless, as there is 10171 # no search path for DLLs. 10172 case $cc_basename in 10173 cl*) 10174 # Native MSVC 10175 hardcode_libdir_flag_spec=' ' 10176 allow_undefined_flag=unsupported 10177 always_export_symbols=yes 10178 file_list_spec='@' 10179 # Tell ltmain to make .lib files, not .a files. 10180 libext=lib 10181 # Tell ltmain to make .dll files, not .so files. 10182 shrext_cmds=.dll 10183 # FIXME: Setting linknames here is a bad hack. 10184 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10185 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10186 cp "$export_symbols" "$output_objdir/$soname.def"; 10187 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10188 else 10189 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10190 fi~ 10191 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10192 linknames=' 10193 # The linker will not automatically build a static lib if we build a DLL. 10194 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10195 enable_shared_with_static_runtimes=yes 10196 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10197 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10198 # Don't use ranlib 10199 old_postinstall_cmds='chmod 644 $oldlib' 10200 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10201 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10202 case $lt_outputfile in 10203 *.exe|*.EXE) ;; 10204 *) 10205 lt_outputfile=$lt_outputfile.exe 10206 lt_tool_outputfile=$lt_tool_outputfile.exe 10207 ;; 10208 esac~ 10209 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10210 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10211 $RM "$lt_outputfile.manifest"; 10212 fi' 10213 ;; 10214 *) 10215 # Assume MSVC wrapper 10216 hardcode_libdir_flag_spec=' ' 10217 allow_undefined_flag=unsupported 10218 # Tell ltmain to make .lib files, not .a files. 10219 libext=lib 10220 # Tell ltmain to make .dll files, not .so files. 10221 shrext_cmds=.dll 10222 # FIXME: Setting linknames here is a bad hack. 10223 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10224 # The linker will automatically build a .lib file if we build a DLL. 10225 old_archive_from_new_cmds='true' 10226 # FIXME: Should let the user specify the lib program. 10227 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10228 enable_shared_with_static_runtimes=yes 10229 ;; 10230 esac 10231 ;; 10232 10233 darwin* | rhapsody*) 10234 10235 10236 archive_cmds_need_lc=no 10237 hardcode_direct=no 10238 hardcode_automatic=yes 10239 hardcode_shlibpath_var=unsupported 10240 if test yes = "$lt_cv_ld_force_load"; then 10241 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\"`' 10242 10243 else 10244 whole_archive_flag_spec='' 10245 fi 10246 link_all_deplibs=yes 10247 allow_undefined_flag=$_lt_dar_allow_undefined 10248 case $cc_basename in 10249 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10250 *) _lt_dar_can_shared=$GCC ;; 10251 esac 10252 if test yes = "$_lt_dar_can_shared"; then 10253 output_verbose_link_cmd=func_echo_all 10254 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10255 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10256 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" 10257 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" 10258 10259 else 10260 ld_shlibs=no 10261 fi 10262 10263 ;; 10264 10265 dgux*) 10266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10267 hardcode_libdir_flag_spec='-L$libdir' 10268 hardcode_shlibpath_var=no 10269 ;; 10270 10271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10272 # support. Future versions do this automatically, but an explicit c++rt0.o 10273 # does not break anything, and helps significantly (at the cost of a little 10274 # extra space). 10275 freebsd2.2*) 10276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10277 hardcode_libdir_flag_spec='-R$libdir' 10278 hardcode_direct=yes 10279 hardcode_shlibpath_var=no 10280 ;; 10281 10282 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10283 freebsd2.*) 10284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10285 hardcode_direct=yes 10286 hardcode_minus_L=yes 10287 hardcode_shlibpath_var=no 10288 ;; 10289 10290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10291 freebsd* | dragonfly*) 10292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10293 hardcode_libdir_flag_spec='-R$libdir' 10294 hardcode_direct=yes 10295 hardcode_shlibpath_var=no 10296 ;; 10297 10298 hpux9*) 10299 if test yes = "$GCC"; then 10300 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' 10301 else 10302 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' 10303 fi 10304 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10305 hardcode_libdir_separator=: 10306 hardcode_direct=yes 10307 10308 # hardcode_minus_L: Not really in the search PATH, 10309 # but as the default location of the library. 10310 hardcode_minus_L=yes 10311 export_dynamic_flag_spec='$wl-E' 10312 ;; 10313 10314 hpux10*) 10315 if test yes,no = "$GCC,$with_gnu_ld"; then 10316 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10317 else 10318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10319 fi 10320 if test no = "$with_gnu_ld"; then 10321 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10322 hardcode_libdir_separator=: 10323 hardcode_direct=yes 10324 hardcode_direct_absolute=yes 10325 export_dynamic_flag_spec='$wl-E' 10326 # hardcode_minus_L: Not really in the search PATH, 10327 # but as the default location of the library. 10328 hardcode_minus_L=yes 10329 fi 10330 ;; 10331 10332 hpux11*) 10333 if test yes,no = "$GCC,$with_gnu_ld"; then 10334 case $host_cpu in 10335 hppa*64*) 10336 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10337 ;; 10338 ia64*) 10339 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10340 ;; 10341 *) 10342 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10343 ;; 10344 esac 10345 else 10346 case $host_cpu in 10347 hppa*64*) 10348 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10349 ;; 10350 ia64*) 10351 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10352 ;; 10353 *) 10354 10355 # Older versions of the 11.00 compiler do not understand -b yet 10356 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10358$as_echo_n "checking if $CC understands -b... " >&6; } 10359if ${lt_cv_prog_compiler__b+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361else 10362 lt_cv_prog_compiler__b=no 10363 save_LDFLAGS=$LDFLAGS 10364 LDFLAGS="$LDFLAGS -b" 10365 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10367 # The linker can only warn and ignore the option if not recognized 10368 # So say no if there are warnings 10369 if test -s conftest.err; then 10370 # Append any errors to the config.log. 10371 cat conftest.err 1>&5 10372 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10374 if diff conftest.exp conftest.er2 >/dev/null; then 10375 lt_cv_prog_compiler__b=yes 10376 fi 10377 else 10378 lt_cv_prog_compiler__b=yes 10379 fi 10380 fi 10381 $RM -r conftest* 10382 LDFLAGS=$save_LDFLAGS 10383 10384fi 10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10386$as_echo "$lt_cv_prog_compiler__b" >&6; } 10387 10388if test yes = "$lt_cv_prog_compiler__b"; then 10389 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10390else 10391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10392fi 10393 10394 ;; 10395 esac 10396 fi 10397 if test no = "$with_gnu_ld"; then 10398 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10399 hardcode_libdir_separator=: 10400 10401 case $host_cpu in 10402 hppa*64*|ia64*) 10403 hardcode_direct=no 10404 hardcode_shlibpath_var=no 10405 ;; 10406 *) 10407 hardcode_direct=yes 10408 hardcode_direct_absolute=yes 10409 export_dynamic_flag_spec='$wl-E' 10410 10411 # hardcode_minus_L: Not really in the search PATH, 10412 # but as the default location of the library. 10413 hardcode_minus_L=yes 10414 ;; 10415 esac 10416 fi 10417 ;; 10418 10419 irix5* | irix6* | nonstopux*) 10420 if test yes = "$GCC"; then 10421 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' 10422 # Try to use the -exported_symbol ld option, if it does not 10423 # work, assume that -exports_file does not work either and 10424 # implicitly export all symbols. 10425 # This should be the same for all languages, so no per-tag cache variable. 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10427$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10428if ${lt_cv_irix_exported_symbol+:} false; then : 10429 $as_echo_n "(cached) " >&6 10430else 10431 save_LDFLAGS=$LDFLAGS 10432 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435int foo (void) { return 0; } 10436_ACEOF 10437if ac_fn_c_try_link "$LINENO"; then : 10438 lt_cv_irix_exported_symbol=yes 10439else 10440 lt_cv_irix_exported_symbol=no 10441fi 10442rm -f core conftest.err conftest.$ac_objext \ 10443 conftest$ac_exeext conftest.$ac_ext 10444 LDFLAGS=$save_LDFLAGS 10445fi 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10447$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10448 if test yes = "$lt_cv_irix_exported_symbol"; then 10449 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' 10450 fi 10451 link_all_deplibs=no 10452 else 10453 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' 10454 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' 10455 fi 10456 archive_cmds_need_lc='no' 10457 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10458 hardcode_libdir_separator=: 10459 inherit_rpath=yes 10460 link_all_deplibs=yes 10461 ;; 10462 10463 linux*) 10464 case $cc_basename in 10465 tcc*) 10466 # Fabrice Bellard et al's Tiny C Compiler 10467 ld_shlibs=yes 10468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10469 ;; 10470 esac 10471 ;; 10472 10473 netbsd* | netbsdelf*-gnu) 10474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10476 else 10477 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10478 fi 10479 hardcode_libdir_flag_spec='-R$libdir' 10480 hardcode_direct=yes 10481 hardcode_shlibpath_var=no 10482 ;; 10483 10484 newsos6) 10485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10486 hardcode_direct=yes 10487 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10488 hardcode_libdir_separator=: 10489 hardcode_shlibpath_var=no 10490 ;; 10491 10492 *nto* | *qnx*) 10493 ;; 10494 10495 openbsd* | bitrig*) 10496 if test -f /usr/libexec/ld.so; then 10497 hardcode_direct=yes 10498 hardcode_shlibpath_var=no 10499 hardcode_direct_absolute=yes 10500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10502 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10503 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10504 export_dynamic_flag_spec='$wl-E' 10505 else 10506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10507 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10508 fi 10509 else 10510 ld_shlibs=no 10511 fi 10512 ;; 10513 10514 os2*) 10515 hardcode_libdir_flag_spec='-L$libdir' 10516 hardcode_minus_L=yes 10517 allow_undefined_flag=unsupported 10518 shrext_cmds=.dll 10519 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10520 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10521 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10522 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10523 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10524 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10525 emximp -o $lib $output_objdir/$libname.def' 10526 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10527 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10528 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10529 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10530 prefix_cmds="$SED"~ 10531 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10532 prefix_cmds="$prefix_cmds -e 1d"; 10533 fi~ 10534 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10535 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10537 emximp -o $lib $output_objdir/$libname.def' 10538 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10539 enable_shared_with_static_runtimes=yes 10540 ;; 10541 10542 osf3*) 10543 if test yes = "$GCC"; then 10544 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10545 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' 10546 else 10547 allow_undefined_flag=' -expect_unresolved \*' 10548 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' 10549 fi 10550 archive_cmds_need_lc='no' 10551 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10552 hardcode_libdir_separator=: 10553 ;; 10554 10555 osf4* | osf5*) # as osf3* with the addition of -msym flag 10556 if test yes = "$GCC"; then 10557 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10558 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' 10559 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10560 else 10561 allow_undefined_flag=' -expect_unresolved \*' 10562 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' 10563 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~ 10564 $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' 10565 10566 # Both c and cxx compiler support -rpath directly 10567 hardcode_libdir_flag_spec='-rpath $libdir' 10568 fi 10569 archive_cmds_need_lc='no' 10570 hardcode_libdir_separator=: 10571 ;; 10572 10573 solaris*) 10574 no_undefined_flag=' -z defs' 10575 if test yes = "$GCC"; then 10576 wlarc='$wl' 10577 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10579 $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' 10580 else 10581 case `$CC -V 2>&1` in 10582 *"Compilers 5.0"*) 10583 wlarc='' 10584 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10586 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10587 ;; 10588 *) 10589 wlarc='$wl' 10590 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10592 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10593 ;; 10594 esac 10595 fi 10596 hardcode_libdir_flag_spec='-R$libdir' 10597 hardcode_shlibpath_var=no 10598 case $host_os in 10599 solaris2.[0-5] | solaris2.[0-5].*) ;; 10600 *) 10601 # The compiler driver will combine and reorder linker options, 10602 # but understands '-z linker_flag'. GCC discards it without '$wl', 10603 # but is careful enough not to reorder. 10604 # Supported since Solaris 2.6 (maybe 2.5.1?) 10605 if test yes = "$GCC"; then 10606 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10607 else 10608 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10609 fi 10610 ;; 10611 esac 10612 link_all_deplibs=yes 10613 ;; 10614 10615 sunos4*) 10616 if test sequent = "$host_vendor"; then 10617 # Use $CC to link under sequent, because it throws in some extra .o 10618 # files that make .init and .fini sections work. 10619 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10620 else 10621 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10622 fi 10623 hardcode_libdir_flag_spec='-L$libdir' 10624 hardcode_direct=yes 10625 hardcode_minus_L=yes 10626 hardcode_shlibpath_var=no 10627 ;; 10628 10629 sysv4) 10630 case $host_vendor in 10631 sni) 10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10633 hardcode_direct=yes # is this really true??? 10634 ;; 10635 siemens) 10636 ## LD is ld it makes a PLAMLIB 10637 ## CC just makes a GrossModule. 10638 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10639 reload_cmds='$CC -r -o $output$reload_objs' 10640 hardcode_direct=no 10641 ;; 10642 motorola) 10643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10644 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10645 ;; 10646 esac 10647 runpath_var='LD_RUN_PATH' 10648 hardcode_shlibpath_var=no 10649 ;; 10650 10651 sysv4.3*) 10652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10653 hardcode_shlibpath_var=no 10654 export_dynamic_flag_spec='-Bexport' 10655 ;; 10656 10657 sysv4*MP*) 10658 if test -d /usr/nec; then 10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10660 hardcode_shlibpath_var=no 10661 runpath_var=LD_RUN_PATH 10662 hardcode_runpath_var=yes 10663 ld_shlibs=yes 10664 fi 10665 ;; 10666 10667 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10668 no_undefined_flag='$wl-z,text' 10669 archive_cmds_need_lc=no 10670 hardcode_shlibpath_var=no 10671 runpath_var='LD_RUN_PATH' 10672 10673 if test yes = "$GCC"; then 10674 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10675 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10676 else 10677 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10678 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10679 fi 10680 ;; 10681 10682 sysv5* | sco3.2v5* | sco5v6*) 10683 # Note: We CANNOT use -z defs as we might desire, because we do not 10684 # link with -lc, and that would cause any symbols used from libc to 10685 # always be unresolved, which means just about no library would 10686 # ever link correctly. If we're not using GNU ld we use -z text 10687 # though, which does catch some bad symbols but isn't as heavy-handed 10688 # as -z defs. 10689 no_undefined_flag='$wl-z,text' 10690 allow_undefined_flag='$wl-z,nodefs' 10691 archive_cmds_need_lc=no 10692 hardcode_shlibpath_var=no 10693 hardcode_libdir_flag_spec='$wl-R,$libdir' 10694 hardcode_libdir_separator=':' 10695 link_all_deplibs=yes 10696 export_dynamic_flag_spec='$wl-Bexport' 10697 runpath_var='LD_RUN_PATH' 10698 10699 if test yes = "$GCC"; then 10700 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10701 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10702 else 10703 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10704 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10705 fi 10706 ;; 10707 10708 uts4*) 10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10710 hardcode_libdir_flag_spec='-L$libdir' 10711 hardcode_shlibpath_var=no 10712 ;; 10713 10714 *) 10715 ld_shlibs=no 10716 ;; 10717 esac 10718 10719 if test sni = "$host_vendor"; then 10720 case $host in 10721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10722 export_dynamic_flag_spec='$wl-Blargedynsym' 10723 ;; 10724 esac 10725 fi 10726 fi 10727 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10729$as_echo "$ld_shlibs" >&6; } 10730test no = "$ld_shlibs" && can_build_shared=no 10731 10732with_gnu_ld=$with_gnu_ld 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748# 10749# Do we need to explicitly link libc? 10750# 10751case "x$archive_cmds_need_lc" in 10752x|xyes) 10753 # Assume -lc should be added 10754 archive_cmds_need_lc=yes 10755 10756 if test yes,yes = "$GCC,$enable_shared"; then 10757 case $archive_cmds in 10758 *'~'*) 10759 # FIXME: we may have to deal with multi-command sequences. 10760 ;; 10761 '$CC '*) 10762 # Test whether the compiler implicitly links with -lc since on some 10763 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10764 # to ld, don't add -lc before -lgcc. 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10766$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10767if ${lt_cv_archive_cmds_need_lc+:} false; then : 10768 $as_echo_n "(cached) " >&6 10769else 10770 $RM conftest* 10771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10772 10773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10774 (eval $ac_compile) 2>&5 10775 ac_status=$? 10776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10777 test $ac_status = 0; } 2>conftest.err; then 10778 soname=conftest 10779 lib=conftest 10780 libobjs=conftest.$ac_objext 10781 deplibs= 10782 wl=$lt_prog_compiler_wl 10783 pic_flag=$lt_prog_compiler_pic 10784 compiler_flags=-v 10785 linker_flags=-v 10786 verstring= 10787 output_objdir=. 10788 libname=conftest 10789 lt_save_allow_undefined_flag=$allow_undefined_flag 10790 allow_undefined_flag= 10791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10792 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10793 ac_status=$? 10794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10795 test $ac_status = 0; } 10796 then 10797 lt_cv_archive_cmds_need_lc=no 10798 else 10799 lt_cv_archive_cmds_need_lc=yes 10800 fi 10801 allow_undefined_flag=$lt_save_allow_undefined_flag 10802 else 10803 cat conftest.err 1>&5 10804 fi 10805 $RM conftest* 10806 10807fi 10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10809$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10810 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10811 ;; 10812 esac 10813 fi 10814 ;; 10815esac 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 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10969$as_echo_n "checking dynamic linker characteristics... " >&6; } 10970 10971if test yes = "$GCC"; then 10972 case $host_os in 10973 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10974 *) lt_awk_arg='/^libraries:/' ;; 10975 esac 10976 case $host_os in 10977 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10978 *) lt_sed_strip_eq='s|=/|/|g' ;; 10979 esac 10980 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10981 case $lt_search_path_spec in 10982 *\;*) 10983 # if the path contains ";" then we assume it to be the separator 10984 # otherwise default to the standard path separator (i.e. ":") - it is 10985 # assumed that no part of a normal pathname contains ";" but that should 10986 # okay in the real world where ";" in dirpaths is itself problematic. 10987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10988 ;; 10989 *) 10990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10991 ;; 10992 esac 10993 # Ok, now we have the path, separated by spaces, we can step through it 10994 # and add multilib dir if necessary... 10995 lt_tmp_lt_search_path_spec= 10996 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10997 # ...but if some path component already ends with the multilib dir we assume 10998 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10999 case "$lt_multi_os_dir; $lt_search_path_spec " in 11000 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11001 lt_multi_os_dir= 11002 ;; 11003 esac 11004 for lt_sys_path in $lt_search_path_spec; do 11005 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11007 elif test -n "$lt_multi_os_dir"; then 11008 test -d "$lt_sys_path" && \ 11009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11010 fi 11011 done 11012 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11013BEGIN {RS = " "; FS = "/|\n";} { 11014 lt_foo = ""; 11015 lt_count = 0; 11016 for (lt_i = NF; lt_i > 0; lt_i--) { 11017 if ($lt_i != "" && $lt_i != ".") { 11018 if ($lt_i == "..") { 11019 lt_count++; 11020 } else { 11021 if (lt_count == 0) { 11022 lt_foo = "/" $lt_i lt_foo; 11023 } else { 11024 lt_count--; 11025 } 11026 } 11027 } 11028 } 11029 if (lt_foo != "") { lt_freq[lt_foo]++; } 11030 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11031}'` 11032 # AWK program above erroneously prepends '/' to C:/dos/paths 11033 # for these hosts. 11034 case $host_os in 11035 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11036 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11037 esac 11038 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11039else 11040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11041fi 11042library_names_spec= 11043libname_spec='lib$name' 11044soname_spec= 11045shrext_cmds=.so 11046postinstall_cmds= 11047postuninstall_cmds= 11048finish_cmds= 11049finish_eval= 11050shlibpath_var= 11051shlibpath_overrides_runpath=unknown 11052version_type=none 11053dynamic_linker="$host_os ld.so" 11054sys_lib_dlsearch_path_spec="/lib /usr/lib" 11055need_lib_prefix=unknown 11056hardcode_into_libs=no 11057 11058# when you set need_version to no, make sure it does not cause -set_version 11059# flags to be left without arguments 11060need_version=unknown 11061 11062 11063 11064case $host_os in 11065aix3*) 11066 version_type=linux # correct to gnu/linux during the next big refactor 11067 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11068 shlibpath_var=LIBPATH 11069 11070 # AIX 3 has no versioning support, so we append a major version to the name. 11071 soname_spec='$libname$release$shared_ext$major' 11072 ;; 11073 11074aix[4-9]*) 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 need_lib_prefix=no 11077 need_version=no 11078 hardcode_into_libs=yes 11079 if test ia64 = "$host_cpu"; then 11080 # AIX 5 supports IA64 11081 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11082 shlibpath_var=LD_LIBRARY_PATH 11083 else 11084 # With GCC up to 2.95.x, collect2 would create an import file 11085 # for dependence libraries. The import file would start with 11086 # the line '#! .'. This would cause the generated library to 11087 # depend on '.', always an invalid library. This was fixed in 11088 # development snapshots of GCC prior to 3.0. 11089 case $host_os in 11090 aix4 | aix4.[01] | aix4.[01].*) 11091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11092 echo ' yes ' 11093 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11094 : 11095 else 11096 can_build_shared=no 11097 fi 11098 ;; 11099 esac 11100 # Using Import Files as archive members, it is possible to support 11101 # filename-based versioning of shared library archives on AIX. While 11102 # this would work for both with and without runtime linking, it will 11103 # prevent static linking of such archives. So we do filename-based 11104 # shared library versioning with .so extension only, which is used 11105 # when both runtime linking and shared linking is enabled. 11106 # Unfortunately, runtime linking may impact performance, so we do 11107 # not want this to be the default eventually. Also, we use the 11108 # versioned .so libs for executables only if there is the -brtl 11109 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11110 # To allow for filename-based versioning support, we need to create 11111 # libNAME.so.V as an archive file, containing: 11112 # *) an Import File, referring to the versioned filename of the 11113 # archive as well as the shared archive member, telling the 11114 # bitwidth (32 or 64) of that shared object, and providing the 11115 # list of exported symbols of that shared object, eventually 11116 # decorated with the 'weak' keyword 11117 # *) the shared object with the F_LOADONLY flag set, to really avoid 11118 # it being seen by the linker. 11119 # At run time we better use the real file rather than another symlink, 11120 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11121 11122 case $with_aix_soname,$aix_use_runtimelinking in 11123 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11124 # soname into executable. Probably we can add versioning support to 11125 # collect2, so additional links can be useful in future. 11126 aix,yes) # traditional libtool 11127 dynamic_linker='AIX unversionable lib.so' 11128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11129 # instead of lib<name>.a to let people know that these are not 11130 # typical AIX shared libraries. 11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11132 ;; 11133 aix,no) # traditional AIX only 11134 dynamic_linker='AIX lib.a(lib.so.V)' 11135 # We preserve .a as extension for shared libraries through AIX4.2 11136 # and later when we are not doing run time linking. 11137 library_names_spec='$libname$release.a $libname.a' 11138 soname_spec='$libname$release$shared_ext$major' 11139 ;; 11140 svr4,*) # full svr4 only 11141 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11142 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11143 # We do not specify a path in Import Files, so LIBPATH fires. 11144 shlibpath_overrides_runpath=yes 11145 ;; 11146 *,yes) # both, prefer svr4 11147 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11148 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11149 # unpreferred sharedlib libNAME.a needs extra handling 11150 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"' 11151 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"' 11152 # We do not specify a path in Import Files, so LIBPATH fires. 11153 shlibpath_overrides_runpath=yes 11154 ;; 11155 *,no) # both, prefer aix 11156 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11157 library_names_spec='$libname$release.a $libname.a' 11158 soname_spec='$libname$release$shared_ext$major' 11159 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11160 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)' 11161 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"' 11162 ;; 11163 esac 11164 shlibpath_var=LIBPATH 11165 fi 11166 ;; 11167 11168amigaos*) 11169 case $host_cpu in 11170 powerpc) 11171 # Since July 2007 AmigaOS4 officially supports .so libraries. 11172 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11174 ;; 11175 m68k) 11176 library_names_spec='$libname.ixlibrary $libname.a' 11177 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11178 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' 11179 ;; 11180 esac 11181 ;; 11182 11183beos*) 11184 library_names_spec='$libname$shared_ext' 11185 dynamic_linker="$host_os ld.so" 11186 shlibpath_var=LIBRARY_PATH 11187 ;; 11188 11189bsdi[45]*) 11190 version_type=linux # correct to gnu/linux during the next big refactor 11191 need_version=no 11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11193 soname_spec='$libname$release$shared_ext$major' 11194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11195 shlibpath_var=LD_LIBRARY_PATH 11196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11198 # the default ld.so.conf also contains /usr/contrib/lib and 11199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11200 # libtool to hard-code these into programs 11201 ;; 11202 11203cygwin* | mingw* | pw32* | cegcc*) 11204 version_type=windows 11205 shrext_cmds=.dll 11206 need_version=no 11207 need_lib_prefix=no 11208 11209 case $GCC,$cc_basename in 11210 yes,*) 11211 # gcc 11212 library_names_spec='$libname.dll.a' 11213 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11214 postinstall_cmds='base_file=`basename \$file`~ 11215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11216 dldir=$destdir/`dirname \$dlpath`~ 11217 test -d \$dldir || mkdir -p \$dldir~ 11218 $install_prog $dir/$dlname \$dldir/$dlname~ 11219 chmod a+x \$dldir/$dlname~ 11220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11222 fi' 11223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11224 dlpath=$dir/\$dldll~ 11225 $RM \$dlpath' 11226 shlibpath_overrides_runpath=yes 11227 11228 case $host_os in 11229 cygwin*) 11230 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11231 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11232 11233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11234 ;; 11235 mingw* | cegcc*) 11236 # MinGW DLLs use traditional 'lib' prefix 11237 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11238 ;; 11239 pw32*) 11240 # pw32 DLLs use 'pw' prefix rather than 'lib' 11241 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11242 ;; 11243 esac 11244 dynamic_linker='Win32 ld.exe' 11245 ;; 11246 11247 *,cl*) 11248 # Native MSVC 11249 libname_spec='$name' 11250 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11251 library_names_spec='$libname.dll.lib' 11252 11253 case $build_os in 11254 mingw*) 11255 sys_lib_search_path_spec= 11256 lt_save_ifs=$IFS 11257 IFS=';' 11258 for lt_path in $LIB 11259 do 11260 IFS=$lt_save_ifs 11261 # Let DOS variable expansion print the short 8.3 style file name. 11262 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11263 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11264 done 11265 IFS=$lt_save_ifs 11266 # Convert to MSYS style. 11267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11268 ;; 11269 cygwin*) 11270 # Convert to unix form, then to dos form, then back to unix form 11271 # but this time dos style (no spaces!) so that the unix form looks 11272 # like /cygdrive/c/PROGRA~1:/cygdr... 11273 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11274 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11275 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11276 ;; 11277 *) 11278 sys_lib_search_path_spec=$LIB 11279 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11280 # It is most probably a Windows format PATH. 11281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11282 else 11283 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11284 fi 11285 # FIXME: find the short name or the path components, as spaces are 11286 # common. (e.g. "Program Files" -> "PROGRA~1") 11287 ;; 11288 esac 11289 11290 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11291 postinstall_cmds='base_file=`basename \$file`~ 11292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11293 dldir=$destdir/`dirname \$dlpath`~ 11294 test -d \$dldir || mkdir -p \$dldir~ 11295 $install_prog $dir/$dlname \$dldir/$dlname' 11296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11297 dlpath=$dir/\$dldll~ 11298 $RM \$dlpath' 11299 shlibpath_overrides_runpath=yes 11300 dynamic_linker='Win32 link.exe' 11301 ;; 11302 11303 *) 11304 # Assume MSVC wrapper 11305 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11306 dynamic_linker='Win32 ld.exe' 11307 ;; 11308 esac 11309 # FIXME: first we should search . and the directory the executable is in 11310 shlibpath_var=PATH 11311 ;; 11312 11313darwin* | rhapsody*) 11314 dynamic_linker="$host_os dyld" 11315 version_type=darwin 11316 need_lib_prefix=no 11317 need_version=no 11318 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11319 soname_spec='$libname$release$major$shared_ext' 11320 shlibpath_overrides_runpath=yes 11321 shlibpath_var=DYLD_LIBRARY_PATH 11322 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11323 11324 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11326 ;; 11327 11328dgux*) 11329 version_type=linux # correct to gnu/linux during the next big refactor 11330 need_lib_prefix=no 11331 need_version=no 11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11333 soname_spec='$libname$release$shared_ext$major' 11334 shlibpath_var=LD_LIBRARY_PATH 11335 ;; 11336 11337freebsd* | dragonfly*) 11338 # DragonFly does not have aout. When/if they implement a new 11339 # versioning mechanism, adjust this. 11340 if test -x /usr/bin/objformat; then 11341 objformat=`/usr/bin/objformat` 11342 else 11343 case $host_os in 11344 freebsd[23].*) objformat=aout ;; 11345 *) objformat=elf ;; 11346 esac 11347 fi 11348 version_type=freebsd-$objformat 11349 case $version_type in 11350 freebsd-elf*) 11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11352 soname_spec='$libname$release$shared_ext$major' 11353 need_version=no 11354 need_lib_prefix=no 11355 ;; 11356 freebsd-*) 11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11358 need_version=yes 11359 ;; 11360 esac 11361 shlibpath_var=LD_LIBRARY_PATH 11362 case $host_os in 11363 freebsd2.*) 11364 shlibpath_overrides_runpath=yes 11365 ;; 11366 freebsd3.[01]* | freebsdelf3.[01]*) 11367 shlibpath_overrides_runpath=yes 11368 hardcode_into_libs=yes 11369 ;; 11370 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11371 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11372 shlibpath_overrides_runpath=no 11373 hardcode_into_libs=yes 11374 ;; 11375 *) # from 4.6 on, and DragonFly 11376 shlibpath_overrides_runpath=yes 11377 hardcode_into_libs=yes 11378 ;; 11379 esac 11380 ;; 11381 11382haiku*) 11383 version_type=linux # correct to gnu/linux during the next big refactor 11384 need_lib_prefix=no 11385 need_version=no 11386 dynamic_linker="$host_os runtime_loader" 11387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11388 soname_spec='$libname$release$shared_ext$major' 11389 shlibpath_var=LIBRARY_PATH 11390 shlibpath_overrides_runpath=no 11391 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11392 hardcode_into_libs=yes 11393 ;; 11394 11395hpux9* | hpux10* | hpux11*) 11396 # Give a soname corresponding to the major version so that dld.sl refuses to 11397 # link against other versions. 11398 version_type=sunos 11399 need_lib_prefix=no 11400 need_version=no 11401 case $host_cpu in 11402 ia64*) 11403 shrext_cmds='.so' 11404 hardcode_into_libs=yes 11405 dynamic_linker="$host_os dld.so" 11406 shlibpath_var=LD_LIBRARY_PATH 11407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11409 soname_spec='$libname$release$shared_ext$major' 11410 if test 32 = "$HPUX_IA64_MODE"; then 11411 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11412 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11413 else 11414 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11415 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11416 fi 11417 ;; 11418 hppa*64*) 11419 shrext_cmds='.sl' 11420 hardcode_into_libs=yes 11421 dynamic_linker="$host_os dld.sl" 11422 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11425 soname_spec='$libname$release$shared_ext$major' 11426 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11428 ;; 11429 *) 11430 shrext_cmds='.sl' 11431 dynamic_linker="$host_os dld.sl" 11432 shlibpath_var=SHLIB_PATH 11433 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11435 soname_spec='$libname$release$shared_ext$major' 11436 ;; 11437 esac 11438 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11439 postinstall_cmds='chmod 555 $lib' 11440 # or fails outright, so override atomically: 11441 install_override_mode=555 11442 ;; 11443 11444interix[3-9]*) 11445 version_type=linux # correct to gnu/linux during the next big refactor 11446 need_lib_prefix=no 11447 need_version=no 11448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11449 soname_spec='$libname$release$shared_ext$major' 11450 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11451 shlibpath_var=LD_LIBRARY_PATH 11452 shlibpath_overrides_runpath=no 11453 hardcode_into_libs=yes 11454 ;; 11455 11456irix5* | irix6* | nonstopux*) 11457 case $host_os in 11458 nonstopux*) version_type=nonstopux ;; 11459 *) 11460 if test yes = "$lt_cv_prog_gnu_ld"; then 11461 version_type=linux # correct to gnu/linux during the next big refactor 11462 else 11463 version_type=irix 11464 fi ;; 11465 esac 11466 need_lib_prefix=no 11467 need_version=no 11468 soname_spec='$libname$release$shared_ext$major' 11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11470 case $host_os in 11471 irix5* | nonstopux*) 11472 libsuff= shlibsuff= 11473 ;; 11474 *) 11475 case $LD in # libtool.m4 will add one of these switches to LD 11476 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11477 libsuff= shlibsuff= libmagic=32-bit;; 11478 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11479 libsuff=32 shlibsuff=N32 libmagic=N32;; 11480 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11481 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11482 *) libsuff= shlibsuff= libmagic=never-match;; 11483 esac 11484 ;; 11485 esac 11486 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11487 shlibpath_overrides_runpath=no 11488 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11489 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11490 hardcode_into_libs=yes 11491 ;; 11492 11493# No shared lib support for Linux oldld, aout, or coff. 11494linux*oldld* | linux*aout* | linux*coff*) 11495 dynamic_linker=no 11496 ;; 11497 11498linux*android*) 11499 version_type=none # Android doesn't support versioned libraries. 11500 need_lib_prefix=no 11501 need_version=no 11502 library_names_spec='$libname$release$shared_ext' 11503 soname_spec='$libname$release$shared_ext' 11504 finish_cmds= 11505 shlibpath_var=LD_LIBRARY_PATH 11506 shlibpath_overrides_runpath=yes 11507 11508 # This implies no fast_install, which is unacceptable. 11509 # Some rework will be needed to allow for fast_install 11510 # before this can be enabled. 11511 hardcode_into_libs=yes 11512 11513 dynamic_linker='Android linker' 11514 # Don't embed -rpath directories since the linker doesn't support them. 11515 hardcode_libdir_flag_spec='-L$libdir' 11516 ;; 11517 11518# This must be glibc/ELF. 11519linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11520 version_type=linux # correct to gnu/linux during the next big refactor 11521 need_lib_prefix=no 11522 need_version=no 11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11524 soname_spec='$libname$release$shared_ext$major' 11525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11526 shlibpath_var=LD_LIBRARY_PATH 11527 shlibpath_overrides_runpath=no 11528 11529 # Some binutils ld are patched to set DT_RUNPATH 11530 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11531 $as_echo_n "(cached) " >&6 11532else 11533 lt_cv_shlibpath_overrides_runpath=no 11534 save_LDFLAGS=$LDFLAGS 11535 save_libdir=$libdir 11536 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11537 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11539/* end confdefs.h. */ 11540 11541int 11542main () 11543{ 11544 11545 ; 11546 return 0; 11547} 11548_ACEOF 11549if ac_fn_c_try_link "$LINENO"; then : 11550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11551 lt_cv_shlibpath_overrides_runpath=yes 11552fi 11553fi 11554rm -f core conftest.err conftest.$ac_objext \ 11555 conftest$ac_exeext conftest.$ac_ext 11556 LDFLAGS=$save_LDFLAGS 11557 libdir=$save_libdir 11558 11559fi 11560 11561 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11562 11563 # This implies no fast_install, which is unacceptable. 11564 # Some rework will be needed to allow for fast_install 11565 # before this can be enabled. 11566 hardcode_into_libs=yes 11567 11568 # Ideally, we could use ldconfig to report *all* directores which are 11569 # searched for libraries, however this is still not possible. Aside from not 11570 # being certain /sbin/ldconfig is available, command 11571 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11572 # even though it is searched at run-time. Try to do the best guess by 11573 # appending ld.so.conf contents (and includes) to the search path. 11574 if test -f /etc/ld.so.conf; then 11575 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' ' '` 11576 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11577 fi 11578 11579 # We used to test for /lib/ld.so.1 and disable shared libraries on 11580 # powerpc, because MkLinux only supported shared libraries with the 11581 # GNU dynamic linker. Since this was broken with cross compilers, 11582 # most powerpc-linux boxes support dynamic linking these days and 11583 # people can always --disable-shared, the test was removed, and we 11584 # assume the GNU/Linux dynamic linker is in use. 11585 dynamic_linker='GNU/Linux ld.so' 11586 ;; 11587 11588netbsdelf*-gnu) 11589 version_type=linux 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='NetBSD ld.elf_so' 11598 ;; 11599 11600netbsd*) 11601 version_type=sunos 11602 need_lib_prefix=no 11603 need_version=no 11604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11607 dynamic_linker='NetBSD (a.out) ld.so' 11608 else 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11610 soname_spec='$libname$release$shared_ext$major' 11611 dynamic_linker='NetBSD ld.elf_so' 11612 fi 11613 shlibpath_var=LD_LIBRARY_PATH 11614 shlibpath_overrides_runpath=yes 11615 hardcode_into_libs=yes 11616 ;; 11617 11618newsos6) 11619 version_type=linux # correct to gnu/linux during the next big refactor 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11621 shlibpath_var=LD_LIBRARY_PATH 11622 shlibpath_overrides_runpath=yes 11623 ;; 11624 11625*nto* | *qnx*) 11626 version_type=qnx 11627 need_lib_prefix=no 11628 need_version=no 11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11630 soname_spec='$libname$release$shared_ext$major' 11631 shlibpath_var=LD_LIBRARY_PATH 11632 shlibpath_overrides_runpath=no 11633 hardcode_into_libs=yes 11634 dynamic_linker='ldqnx.so' 11635 ;; 11636 11637openbsd* | bitrig*) 11638 version_type=sunos 11639 sys_lib_dlsearch_path_spec=/usr/lib 11640 need_lib_prefix=no 11641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11642 need_version=no 11643 else 11644 need_version=yes 11645 fi 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 shlibpath_overrides_runpath=yes 11650 ;; 11651 11652os2*) 11653 libname_spec='$name' 11654 version_type=windows 11655 shrext_cmds=.dll 11656 need_version=no 11657 need_lib_prefix=no 11658 # OS/2 can only load a DLL with a base name of 8 characters or less. 11659 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11660 v=$($ECHO $release$versuffix | tr -d .-); 11661 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11662 $ECHO $n$v`$shared_ext' 11663 library_names_spec='${libname}_dll.$libext' 11664 dynamic_linker='OS/2 ld.exe' 11665 shlibpath_var=BEGINLIBPATH 11666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11668 postinstall_cmds='base_file=`basename \$file`~ 11669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11670 dldir=$destdir/`dirname \$dlpath`~ 11671 test -d \$dldir || mkdir -p \$dldir~ 11672 $install_prog $dir/$dlname \$dldir/$dlname~ 11673 chmod a+x \$dldir/$dlname~ 11674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11676 fi' 11677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11678 dlpath=$dir/\$dldll~ 11679 $RM \$dlpath' 11680 ;; 11681 11682osf3* | osf4* | osf5*) 11683 version_type=osf 11684 need_lib_prefix=no 11685 need_version=no 11686 soname_spec='$libname$release$shared_ext$major' 11687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11688 shlibpath_var=LD_LIBRARY_PATH 11689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11691 ;; 11692 11693rdos*) 11694 dynamic_linker=no 11695 ;; 11696 11697solaris*) 11698 version_type=linux # correct to gnu/linux during the next big refactor 11699 need_lib_prefix=no 11700 need_version=no 11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11702 soname_spec='$libname$release$shared_ext$major' 11703 shlibpath_var=LD_LIBRARY_PATH 11704 shlibpath_overrides_runpath=yes 11705 hardcode_into_libs=yes 11706 # ldd complains unless libraries are executable 11707 postinstall_cmds='chmod +x $lib' 11708 ;; 11709 11710sunos4*) 11711 version_type=sunos 11712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11714 shlibpath_var=LD_LIBRARY_PATH 11715 shlibpath_overrides_runpath=yes 11716 if test yes = "$with_gnu_ld"; then 11717 need_lib_prefix=no 11718 fi 11719 need_version=yes 11720 ;; 11721 11722sysv4 | sysv4.3*) 11723 version_type=linux # correct to gnu/linux during the next big refactor 11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11725 soname_spec='$libname$release$shared_ext$major' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 case $host_vendor in 11728 sni) 11729 shlibpath_overrides_runpath=no 11730 need_lib_prefix=no 11731 runpath_var=LD_RUN_PATH 11732 ;; 11733 siemens) 11734 need_lib_prefix=no 11735 ;; 11736 motorola) 11737 need_lib_prefix=no 11738 need_version=no 11739 shlibpath_overrides_runpath=no 11740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11741 ;; 11742 esac 11743 ;; 11744 11745sysv4*MP*) 11746 if test -d /usr/nec; then 11747 version_type=linux # correct to gnu/linux during the next big refactor 11748 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11749 soname_spec='$libname$shared_ext.$major' 11750 shlibpath_var=LD_LIBRARY_PATH 11751 fi 11752 ;; 11753 11754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11755 version_type=sco 11756 need_lib_prefix=no 11757 need_version=no 11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11759 soname_spec='$libname$release$shared_ext$major' 11760 shlibpath_var=LD_LIBRARY_PATH 11761 shlibpath_overrides_runpath=yes 11762 hardcode_into_libs=yes 11763 if test yes = "$with_gnu_ld"; then 11764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11765 else 11766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11767 case $host_os in 11768 sco3.2v5*) 11769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11770 ;; 11771 esac 11772 fi 11773 sys_lib_dlsearch_path_spec='/usr/lib' 11774 ;; 11775 11776tpf*) 11777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11778 version_type=linux # correct to gnu/linux during the next big refactor 11779 need_lib_prefix=no 11780 need_version=no 11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11782 shlibpath_var=LD_LIBRARY_PATH 11783 shlibpath_overrides_runpath=no 11784 hardcode_into_libs=yes 11785 ;; 11786 11787uts4*) 11788 version_type=linux # correct to gnu/linux during the next big refactor 11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11790 soname_spec='$libname$release$shared_ext$major' 11791 shlibpath_var=LD_LIBRARY_PATH 11792 ;; 11793 11794*) 11795 dynamic_linker=no 11796 ;; 11797esac 11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11799$as_echo "$dynamic_linker" >&6; } 11800test no = "$dynamic_linker" && can_build_shared=no 11801 11802variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11803if test yes = "$GCC"; then 11804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11805fi 11806 11807if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11808 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11809fi 11810 11811if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11812 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11813fi 11814 11815# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11816configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11817 11818# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11819func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11820 11821# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11822configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11921$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11922hardcode_action= 11923if test -n "$hardcode_libdir_flag_spec" || 11924 test -n "$runpath_var" || 11925 test yes = "$hardcode_automatic"; then 11926 11927 # We can hardcode non-existent directories. 11928 if test no != "$hardcode_direct" && 11929 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11930 # have to relink, otherwise we might link with an installed library 11931 # when we should be linking with a yet-to-be-installed one 11932 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11933 test no != "$hardcode_minus_L"; then 11934 # Linking always hardcodes the temporary library directory. 11935 hardcode_action=relink 11936 else 11937 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11938 hardcode_action=immediate 11939 fi 11940else 11941 # We cannot hardcode anything, or else we can only hardcode existing 11942 # directories. 11943 hardcode_action=unsupported 11944fi 11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11946$as_echo "$hardcode_action" >&6; } 11947 11948if test relink = "$hardcode_action" || 11949 test yes = "$inherit_rpath"; then 11950 # Fast installation is not supported 11951 enable_fast_install=no 11952elif test yes = "$shlibpath_overrides_runpath" || 11953 test no = "$enable_shared"; then 11954 # Fast installation is not necessary 11955 enable_fast_install=needless 11956fi 11957 11958 11959 11960 11961 11962 11963 if test yes != "$enable_dlopen"; then 11964 enable_dlopen=unknown 11965 enable_dlopen_self=unknown 11966 enable_dlopen_self_static=unknown 11967else 11968 lt_cv_dlopen=no 11969 lt_cv_dlopen_libs= 11970 11971 case $host_os in 11972 beos*) 11973 lt_cv_dlopen=load_add_on 11974 lt_cv_dlopen_libs= 11975 lt_cv_dlopen_self=yes 11976 ;; 11977 11978 mingw* | pw32* | cegcc*) 11979 lt_cv_dlopen=LoadLibrary 11980 lt_cv_dlopen_libs= 11981 ;; 11982 11983 cygwin*) 11984 lt_cv_dlopen=dlopen 11985 lt_cv_dlopen_libs= 11986 ;; 11987 11988 darwin*) 11989 # if libdl is installed we need to link against it 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11991$as_echo_n "checking for dlopen in -ldl... " >&6; } 11992if ${ac_cv_lib_dl_dlopen+:} false; then : 11993 $as_echo_n "(cached) " >&6 11994else 11995 ac_check_lib_save_LIBS=$LIBS 11996LIBS="-ldl $LIBS" 11997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11998/* end confdefs.h. */ 11999 12000/* Override any GCC internal prototype to avoid an error. 12001 Use char because int might match the return type of a GCC 12002 builtin and then its argument prototype would still apply. */ 12003#ifdef __cplusplus 12004extern "C" 12005#endif 12006char dlopen (); 12007int 12008main () 12009{ 12010return dlopen (); 12011 ; 12012 return 0; 12013} 12014_ACEOF 12015if ac_fn_c_try_link "$LINENO"; then : 12016 ac_cv_lib_dl_dlopen=yes 12017else 12018 ac_cv_lib_dl_dlopen=no 12019fi 12020rm -f core conftest.err conftest.$ac_objext \ 12021 conftest$ac_exeext conftest.$ac_ext 12022LIBS=$ac_check_lib_save_LIBS 12023fi 12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12025$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12026if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12028else 12029 12030 lt_cv_dlopen=dyld 12031 lt_cv_dlopen_libs= 12032 lt_cv_dlopen_self=yes 12033 12034fi 12035 12036 ;; 12037 12038 tpf*) 12039 # Don't try to run any link tests for TPF. We know it's impossible 12040 # because TPF is a cross-compiler, and we know how we open DSOs. 12041 lt_cv_dlopen=dlopen 12042 lt_cv_dlopen_libs= 12043 lt_cv_dlopen_self=no 12044 ;; 12045 12046 *) 12047 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12048if test "x$ac_cv_func_shl_load" = xyes; then : 12049 lt_cv_dlopen=shl_load 12050else 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12052$as_echo_n "checking for shl_load in -ldld... " >&6; } 12053if ${ac_cv_lib_dld_shl_load+:} false; then : 12054 $as_echo_n "(cached) " >&6 12055else 12056 ac_check_lib_save_LIBS=$LIBS 12057LIBS="-ldld $LIBS" 12058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12059/* end confdefs.h. */ 12060 12061/* Override any GCC internal prototype to avoid an error. 12062 Use char because int might match the return type of a GCC 12063 builtin and then its argument prototype would still apply. */ 12064#ifdef __cplusplus 12065extern "C" 12066#endif 12067char shl_load (); 12068int 12069main () 12070{ 12071return shl_load (); 12072 ; 12073 return 0; 12074} 12075_ACEOF 12076if ac_fn_c_try_link "$LINENO"; then : 12077 ac_cv_lib_dld_shl_load=yes 12078else 12079 ac_cv_lib_dld_shl_load=no 12080fi 12081rm -f core conftest.err conftest.$ac_objext \ 12082 conftest$ac_exeext conftest.$ac_ext 12083LIBS=$ac_check_lib_save_LIBS 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12086$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12087if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12088 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12089else 12090 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12091if test "x$ac_cv_func_dlopen" = xyes; then : 12092 lt_cv_dlopen=dlopen 12093else 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12095$as_echo_n "checking for dlopen in -ldl... " >&6; } 12096if ${ac_cv_lib_dl_dlopen+:} false; then : 12097 $as_echo_n "(cached) " >&6 12098else 12099 ac_check_lib_save_LIBS=$LIBS 12100LIBS="-ldl $LIBS" 12101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12102/* end confdefs.h. */ 12103 12104/* Override any GCC internal prototype to avoid an error. 12105 Use char because int might match the return type of a GCC 12106 builtin and then its argument prototype would still apply. */ 12107#ifdef __cplusplus 12108extern "C" 12109#endif 12110char dlopen (); 12111int 12112main () 12113{ 12114return dlopen (); 12115 ; 12116 return 0; 12117} 12118_ACEOF 12119if ac_fn_c_try_link "$LINENO"; then : 12120 ac_cv_lib_dl_dlopen=yes 12121else 12122 ac_cv_lib_dl_dlopen=no 12123fi 12124rm -f core conftest.err conftest.$ac_objext \ 12125 conftest$ac_exeext conftest.$ac_ext 12126LIBS=$ac_check_lib_save_LIBS 12127fi 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12129$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12130if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12131 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12132else 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12134$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12135if ${ac_cv_lib_svld_dlopen+:} false; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 ac_check_lib_save_LIBS=$LIBS 12139LIBS="-lsvld $LIBS" 12140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12141/* end confdefs.h. */ 12142 12143/* Override any GCC internal prototype to avoid an error. 12144 Use char because int might match the return type of a GCC 12145 builtin and then its argument prototype would still apply. */ 12146#ifdef __cplusplus 12147extern "C" 12148#endif 12149char dlopen (); 12150int 12151main () 12152{ 12153return dlopen (); 12154 ; 12155 return 0; 12156} 12157_ACEOF 12158if ac_fn_c_try_link "$LINENO"; then : 12159 ac_cv_lib_svld_dlopen=yes 12160else 12161 ac_cv_lib_svld_dlopen=no 12162fi 12163rm -f core conftest.err conftest.$ac_objext \ 12164 conftest$ac_exeext conftest.$ac_ext 12165LIBS=$ac_check_lib_save_LIBS 12166fi 12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12168$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12169if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12170 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12171else 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12173$as_echo_n "checking for dld_link in -ldld... " >&6; } 12174if ${ac_cv_lib_dld_dld_link+:} false; then : 12175 $as_echo_n "(cached) " >&6 12176else 12177 ac_check_lib_save_LIBS=$LIBS 12178LIBS="-ldld $LIBS" 12179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181 12182/* Override any GCC internal prototype to avoid an error. 12183 Use char because int might match the return type of a GCC 12184 builtin and then its argument prototype would still apply. */ 12185#ifdef __cplusplus 12186extern "C" 12187#endif 12188char dld_link (); 12189int 12190main () 12191{ 12192return dld_link (); 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197if ac_fn_c_try_link "$LINENO"; then : 12198 ac_cv_lib_dld_dld_link=yes 12199else 12200 ac_cv_lib_dld_dld_link=no 12201fi 12202rm -f core conftest.err conftest.$ac_objext \ 12203 conftest$ac_exeext conftest.$ac_ext 12204LIBS=$ac_check_lib_save_LIBS 12205fi 12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12207$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12208if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12209 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12210fi 12211 12212 12213fi 12214 12215 12216fi 12217 12218 12219fi 12220 12221 12222fi 12223 12224 12225fi 12226 12227 ;; 12228 esac 12229 12230 if test no = "$lt_cv_dlopen"; then 12231 enable_dlopen=no 12232 else 12233 enable_dlopen=yes 12234 fi 12235 12236 case $lt_cv_dlopen in 12237 dlopen) 12238 save_CPPFLAGS=$CPPFLAGS 12239 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12240 12241 save_LDFLAGS=$LDFLAGS 12242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12243 12244 save_LIBS=$LIBS 12245 LIBS="$lt_cv_dlopen_libs $LIBS" 12246 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12248$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12249if ${lt_cv_dlopen_self+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 if test yes = "$cross_compiling"; then : 12253 lt_cv_dlopen_self=cross 12254else 12255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12256 lt_status=$lt_dlunknown 12257 cat > conftest.$ac_ext <<_LT_EOF 12258#line $LINENO "configure" 12259#include "confdefs.h" 12260 12261#if HAVE_DLFCN_H 12262#include <dlfcn.h> 12263#endif 12264 12265#include <stdio.h> 12266 12267#ifdef RTLD_GLOBAL 12268# define LT_DLGLOBAL RTLD_GLOBAL 12269#else 12270# ifdef DL_GLOBAL 12271# define LT_DLGLOBAL DL_GLOBAL 12272# else 12273# define LT_DLGLOBAL 0 12274# endif 12275#endif 12276 12277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12278 find out it does not work in some platform. */ 12279#ifndef LT_DLLAZY_OR_NOW 12280# ifdef RTLD_LAZY 12281# define LT_DLLAZY_OR_NOW RTLD_LAZY 12282# else 12283# ifdef DL_LAZY 12284# define LT_DLLAZY_OR_NOW DL_LAZY 12285# else 12286# ifdef RTLD_NOW 12287# define LT_DLLAZY_OR_NOW RTLD_NOW 12288# else 12289# ifdef DL_NOW 12290# define LT_DLLAZY_OR_NOW DL_NOW 12291# else 12292# define LT_DLLAZY_OR_NOW 0 12293# endif 12294# endif 12295# endif 12296# endif 12297#endif 12298 12299/* When -fvisibility=hidden is used, assume the code has been annotated 12300 correspondingly for the symbols needed. */ 12301#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12302int fnord () __attribute__((visibility("default"))); 12303#endif 12304 12305int fnord () { return 42; } 12306int main () 12307{ 12308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12309 int status = $lt_dlunknown; 12310 12311 if (self) 12312 { 12313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12314 else 12315 { 12316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12317 else puts (dlerror ()); 12318 } 12319 /* dlclose (self); */ 12320 } 12321 else 12322 puts (dlerror ()); 12323 12324 return status; 12325} 12326_LT_EOF 12327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12328 (eval $ac_link) 2>&5 12329 ac_status=$? 12330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12331 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12332 (./conftest; exit; ) >&5 2>/dev/null 12333 lt_status=$? 12334 case x$lt_status in 12335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12338 esac 12339 else : 12340 # compilation failed 12341 lt_cv_dlopen_self=no 12342 fi 12343fi 12344rm -fr conftest* 12345 12346 12347fi 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12349$as_echo "$lt_cv_dlopen_self" >&6; } 12350 12351 if test yes = "$lt_cv_dlopen_self"; then 12352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12354$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12355if ${lt_cv_dlopen_self_static+:} false; then : 12356 $as_echo_n "(cached) " >&6 12357else 12358 if test yes = "$cross_compiling"; then : 12359 lt_cv_dlopen_self_static=cross 12360else 12361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12362 lt_status=$lt_dlunknown 12363 cat > conftest.$ac_ext <<_LT_EOF 12364#line $LINENO "configure" 12365#include "confdefs.h" 12366 12367#if HAVE_DLFCN_H 12368#include <dlfcn.h> 12369#endif 12370 12371#include <stdio.h> 12372 12373#ifdef RTLD_GLOBAL 12374# define LT_DLGLOBAL RTLD_GLOBAL 12375#else 12376# ifdef DL_GLOBAL 12377# define LT_DLGLOBAL DL_GLOBAL 12378# else 12379# define LT_DLGLOBAL 0 12380# endif 12381#endif 12382 12383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12384 find out it does not work in some platform. */ 12385#ifndef LT_DLLAZY_OR_NOW 12386# ifdef RTLD_LAZY 12387# define LT_DLLAZY_OR_NOW RTLD_LAZY 12388# else 12389# ifdef DL_LAZY 12390# define LT_DLLAZY_OR_NOW DL_LAZY 12391# else 12392# ifdef RTLD_NOW 12393# define LT_DLLAZY_OR_NOW RTLD_NOW 12394# else 12395# ifdef DL_NOW 12396# define LT_DLLAZY_OR_NOW DL_NOW 12397# else 12398# define LT_DLLAZY_OR_NOW 0 12399# endif 12400# endif 12401# endif 12402# endif 12403#endif 12404 12405/* When -fvisibility=hidden is used, assume the code has been annotated 12406 correspondingly for the symbols needed. */ 12407#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12408int fnord () __attribute__((visibility("default"))); 12409#endif 12410 12411int fnord () { return 42; } 12412int main () 12413{ 12414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12415 int status = $lt_dlunknown; 12416 12417 if (self) 12418 { 12419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12420 else 12421 { 12422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12423 else puts (dlerror ()); 12424 } 12425 /* dlclose (self); */ 12426 } 12427 else 12428 puts (dlerror ()); 12429 12430 return status; 12431} 12432_LT_EOF 12433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12434 (eval $ac_link) 2>&5 12435 ac_status=$? 12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12437 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12438 (./conftest; exit; ) >&5 2>/dev/null 12439 lt_status=$? 12440 case x$lt_status in 12441 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12442 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12443 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12444 esac 12445 else : 12446 # compilation failed 12447 lt_cv_dlopen_self_static=no 12448 fi 12449fi 12450rm -fr conftest* 12451 12452 12453fi 12454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12455$as_echo "$lt_cv_dlopen_self_static" >&6; } 12456 fi 12457 12458 CPPFLAGS=$save_CPPFLAGS 12459 LDFLAGS=$save_LDFLAGS 12460 LIBS=$save_LIBS 12461 ;; 12462 esac 12463 12464 case $lt_cv_dlopen_self in 12465 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12466 *) enable_dlopen_self=unknown ;; 12467 esac 12468 12469 case $lt_cv_dlopen_self_static in 12470 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12471 *) enable_dlopen_self_static=unknown ;; 12472 esac 12473fi 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491striplib= 12492old_striplib= 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12494$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12495if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12497 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12499$as_echo "yes" >&6; } 12500else 12501# FIXME - insert some real tests, host_os isn't really good enough 12502 case $host_os in 12503 darwin*) 12504 if test -n "$STRIP"; then 12505 striplib="$STRIP -x" 12506 old_striplib="$STRIP -S" 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12508$as_echo "yes" >&6; } 12509 else 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12511$as_echo "no" >&6; } 12512 fi 12513 ;; 12514 *) 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12516$as_echo "no" >&6; } 12517 ;; 12518 esac 12519fi 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 # Report what library types will actually be built 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12534$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12536$as_echo "$can_build_shared" >&6; } 12537 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12539$as_echo_n "checking whether to build shared libraries... " >&6; } 12540 test no = "$can_build_shared" && enable_shared=no 12541 12542 # On AIX, shared libraries and static libraries use the same namespace, and 12543 # are all built from PIC. 12544 case $host_os in 12545 aix3*) 12546 test yes = "$enable_shared" && enable_static=no 12547 if test -n "$RANLIB"; then 12548 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12549 postinstall_cmds='$RANLIB $lib' 12550 fi 12551 ;; 12552 12553 aix[4-9]*) 12554 if test ia64 != "$host_cpu"; then 12555 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12556 yes,aix,yes) ;; # shared object as lib.so file only 12557 yes,svr4,*) ;; # shared object as lib.so archive member only 12558 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12559 esac 12560 fi 12561 ;; 12562 esac 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12564$as_echo "$enable_shared" >&6; } 12565 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12567$as_echo_n "checking whether to build static libraries... " >&6; } 12568 # Make sure either enable_shared or enable_static is yes. 12569 test yes = "$enable_shared" || enable_static=yes 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12571$as_echo "$enable_static" >&6; } 12572 12573 12574 12575 12576fi 12577ac_ext=c 12578ac_cpp='$CPP $CPPFLAGS' 12579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12581ac_compiler_gnu=$ac_cv_c_compiler_gnu 12582 12583CC=$lt_save_CC 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 ac_config_commands="$ac_config_commands libtool" 12600 12601 12602 12603 12604# Only expand once: 12605 12606 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12608$as_echo_n "checking whether ln -s works... " >&6; } 12609LN_S=$as_ln_s 12610if test "$LN_S" = "ln -s"; then 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12612$as_echo "yes" >&6; } 12613else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12615$as_echo "no, using $LN_S" >&6; } 12616fi 12617 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12619$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12620set x ${MAKE-make} 12621ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12622if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 cat >conftest.make <<\_ACEOF 12626SHELL = /bin/sh 12627all: 12628 @echo '@@@%%%=$(MAKE)=@@@%%%' 12629_ACEOF 12630# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12631case `${MAKE-make} -f conftest.make 2>/dev/null` in 12632 *@@@%%%=?*=@@@%%%*) 12633 eval ac_cv_prog_make_${ac_make}_set=yes;; 12634 *) 12635 eval ac_cv_prog_make_${ac_make}_set=no;; 12636esac 12637rm -f conftest.make 12638fi 12639if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12641$as_echo "yes" >&6; } 12642 SET_MAKE= 12643else 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12645$as_echo "no" >&6; } 12646 SET_MAKE="MAKE=${MAKE-make}" 12647fi 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12658 if test -n "$ac_tool_prefix"; then 12659 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12660set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12662$as_echo_n "checking for $ac_word... " >&6; } 12663if ${ac_cv_path_PKG_CONFIG+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 case $PKG_CONFIG in 12667 [\\/]* | ?:[\\/]*) 12668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12669 ;; 12670 *) 12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12672for as_dir in $PATH 12673do 12674 IFS=$as_save_IFS 12675 test -z "$as_dir" && as_dir=. 12676 for ac_exec_ext in '' $ac_executable_extensions; do 12677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12680 break 2 12681 fi 12682done 12683 done 12684IFS=$as_save_IFS 12685 12686 ;; 12687esac 12688fi 12689PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12690if test -n "$PKG_CONFIG"; then 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12692$as_echo "$PKG_CONFIG" >&6; } 12693else 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12695$as_echo "no" >&6; } 12696fi 12697 12698 12699fi 12700if test -z "$ac_cv_path_PKG_CONFIG"; then 12701 ac_pt_PKG_CONFIG=$PKG_CONFIG 12702 # Extract the first word of "pkg-config", so it can be a program name with args. 12703set dummy pkg-config; ac_word=$2 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12705$as_echo_n "checking for $ac_word... " >&6; } 12706if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12707 $as_echo_n "(cached) " >&6 12708else 12709 case $ac_pt_PKG_CONFIG in 12710 [\\/]* | ?:[\\/]*) 12711 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12712 ;; 12713 *) 12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12715for as_dir in $PATH 12716do 12717 IFS=$as_save_IFS 12718 test -z "$as_dir" && as_dir=. 12719 for ac_exec_ext in '' $ac_executable_extensions; do 12720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12721 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12723 break 2 12724 fi 12725done 12726 done 12727IFS=$as_save_IFS 12728 12729 ;; 12730esac 12731fi 12732ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12733if test -n "$ac_pt_PKG_CONFIG"; then 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12735$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12736else 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12738$as_echo "no" >&6; } 12739fi 12740 12741 if test "x$ac_pt_PKG_CONFIG" = x; then 12742 PKG_CONFIG="" 12743 else 12744 case $cross_compiling:$ac_tool_warned in 12745yes:) 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12748ac_tool_warned=yes ;; 12749esac 12750 PKG_CONFIG=$ac_pt_PKG_CONFIG 12751 fi 12752else 12753 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12754fi 12755 12756fi 12757if test -n "$PKG_CONFIG"; then 12758 _pkg_min_version=0.9.0 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12760$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12761 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12763$as_echo "yes" >&6; } 12764 else 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12766$as_echo "no" >&6; } 12767 PKG_CONFIG="" 12768 fi 12769fi 12770 12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 12772$as_echo_n "checking for X... " >&6; } 12773 12774 12775# Check whether --with-x was given. 12776if test "${with_x+set}" = set; then : 12777 withval=$with_x; 12778fi 12779 12780# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 12781if test "x$with_x" = xno; then 12782 # The user explicitly disabled X. 12783 have_x=disabled 12784else 12785 case $x_includes,$x_libraries in #( 12786 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 12787 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 12788 $as_echo_n "(cached) " >&6 12789else 12790 # One or both of the vars are not set, and there is no cached value. 12791ac_x_includes=no ac_x_libraries=no 12792rm -f -r conftest.dir 12793if mkdir conftest.dir; then 12794 cd conftest.dir 12795 cat >Imakefile <<'_ACEOF' 12796incroot: 12797 @echo incroot='${INCROOT}' 12798usrlibdir: 12799 @echo usrlibdir='${USRLIBDIR}' 12800libdir: 12801 @echo libdir='${LIBDIR}' 12802_ACEOF 12803 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 12804 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12805 for ac_var in incroot usrlibdir libdir; do 12806 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 12807 done 12808 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 12809 for ac_extension in a so sl dylib la dll; do 12810 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 12811 test -f "$ac_im_libdir/libX11.$ac_extension"; then 12812 ac_im_usrlibdir=$ac_im_libdir; break 12813 fi 12814 done 12815 # Screen out bogus values from the imake configuration. They are 12816 # bogus both because they are the default anyway, and because 12817 # using them would break gcc on systems where it needs fixed includes. 12818 case $ac_im_incroot in 12819 /usr/include) ac_x_includes= ;; 12820 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 12821 esac 12822 case $ac_im_usrlibdir in 12823 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 12824 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 12825 esac 12826 fi 12827 cd .. 12828 rm -f -r conftest.dir 12829fi 12830 12831# Standard set of common directories for X headers. 12832# Check X11 before X11Rn because it is often a symlink to the current release. 12833ac_x_header_dirs=' 12834/usr/X11/include 12835/usr/X11R7/include 12836/usr/X11R6/include 12837/usr/X11R5/include 12838/usr/X11R4/include 12839 12840/usr/include/X11 12841/usr/include/X11R7 12842/usr/include/X11R6 12843/usr/include/X11R5 12844/usr/include/X11R4 12845 12846/usr/local/X11/include 12847/usr/local/X11R7/include 12848/usr/local/X11R6/include 12849/usr/local/X11R5/include 12850/usr/local/X11R4/include 12851 12852/usr/local/include/X11 12853/usr/local/include/X11R7 12854/usr/local/include/X11R6 12855/usr/local/include/X11R5 12856/usr/local/include/X11R4 12857 12858/usr/X386/include 12859/usr/x386/include 12860/usr/XFree86/include/X11 12861 12862/usr/include 12863/usr/local/include 12864/usr/unsupported/include 12865/usr/athena/include 12866/usr/local/x11r5/include 12867/usr/lpp/Xamples/include 12868 12869/usr/openwin/include 12870/usr/openwin/share/include' 12871 12872if test "$ac_x_includes" = no; then 12873 # Guess where to find include files, by looking for Xlib.h. 12874 # First, try using that file with no special directory specified. 12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12876/* end confdefs.h. */ 12877#include <X11/Xlib.h> 12878_ACEOF 12879if ac_fn_c_try_cpp "$LINENO"; then : 12880 # We can compile using X headers with no special include directory. 12881ac_x_includes= 12882else 12883 for ac_dir in $ac_x_header_dirs; do 12884 if test -r "$ac_dir/X11/Xlib.h"; then 12885 ac_x_includes=$ac_dir 12886 break 12887 fi 12888done 12889fi 12890rm -f conftest.err conftest.i conftest.$ac_ext 12891fi # $ac_x_includes = no 12892 12893if test "$ac_x_libraries" = no; then 12894 # Check for the libraries. 12895 # See if we find them without any special options. 12896 # Don't add to $LIBS permanently. 12897 ac_save_LIBS=$LIBS 12898 LIBS="-lX11 $LIBS" 12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12900/* end confdefs.h. */ 12901#include <X11/Xlib.h> 12902int 12903main () 12904{ 12905XrmInitialize () 12906 ; 12907 return 0; 12908} 12909_ACEOF 12910if ac_fn_c_try_link "$LINENO"; then : 12911 LIBS=$ac_save_LIBS 12912# We can link X programs with no special library path. 12913ac_x_libraries= 12914else 12915 LIBS=$ac_save_LIBS 12916for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 12917do 12918 # Don't even attempt the hair of trying to link an X program! 12919 for ac_extension in a so sl dylib la dll; do 12920 if test -r "$ac_dir/libX11.$ac_extension"; then 12921 ac_x_libraries=$ac_dir 12922 break 2 12923 fi 12924 done 12925done 12926fi 12927rm -f core conftest.err conftest.$ac_objext \ 12928 conftest$ac_exeext conftest.$ac_ext 12929fi # $ac_x_libraries = no 12930 12931case $ac_x_includes,$ac_x_libraries in #( 12932 no,* | *,no | *\'*) 12933 # Didn't find X, or a directory has "'" in its name. 12934 ac_cv_have_x="have_x=no";; #( 12935 *) 12936 # Record where we found X for the cache. 12937 ac_cv_have_x="have_x=yes\ 12938 ac_x_includes='$ac_x_includes'\ 12939 ac_x_libraries='$ac_x_libraries'" 12940esac 12941fi 12942;; #( 12943 *) have_x=yes;; 12944 esac 12945 eval "$ac_cv_have_x" 12946fi # $with_x != no 12947 12948if test "$have_x" != yes; then 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 12950$as_echo "$have_x" >&6; } 12951 no_x=yes 12952else 12953 # If each of the values was on the command line, it overrides each guess. 12954 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 12955 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 12956 # Update the cache value to reflect the command line values. 12957 ac_cv_have_x="have_x=yes\ 12958 ac_x_includes='$x_includes'\ 12959 ac_x_libraries='$x_libraries'" 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 12961$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 12962fi 12963 12964 12965if test -n "$x_includes" && test "x$x_includes" != xNONE ; then 12966 CFLAGS="$CFLAGS -I$x_includes" 12967fi 12968if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then 12969 LDFLAGS="$LDFLAGS -L$x_libraries" 12970fi 12971 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12973$as_echo_n "checking for ANSI C header files... " >&6; } 12974if ${ac_cv_header_stdc+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979#include <stdlib.h> 12980#include <stdarg.h> 12981#include <string.h> 12982#include <float.h> 12983 12984int 12985main () 12986{ 12987 12988 ; 12989 return 0; 12990} 12991_ACEOF 12992if ac_fn_c_try_compile "$LINENO"; then : 12993 ac_cv_header_stdc=yes 12994else 12995 ac_cv_header_stdc=no 12996fi 12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12998 12999if test $ac_cv_header_stdc = yes; then 13000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13002/* end confdefs.h. */ 13003#include <string.h> 13004 13005_ACEOF 13006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13007 $EGREP "memchr" >/dev/null 2>&1; then : 13008 13009else 13010 ac_cv_header_stdc=no 13011fi 13012rm -f conftest* 13013 13014fi 13015 13016if test $ac_cv_header_stdc = yes; then 13017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019/* end confdefs.h. */ 13020#include <stdlib.h> 13021 13022_ACEOF 13023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13024 $EGREP "free" >/dev/null 2>&1; then : 13025 13026else 13027 ac_cv_header_stdc=no 13028fi 13029rm -f conftest* 13030 13031fi 13032 13033if test $ac_cv_header_stdc = yes; then 13034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13035 if test "$cross_compiling" = yes; then : 13036 : 13037else 13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039/* end confdefs.h. */ 13040#include <ctype.h> 13041#include <stdlib.h> 13042#if ((' ' & 0x0FF) == 0x020) 13043# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13044# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13045#else 13046# define ISLOWER(c) \ 13047 (('a' <= (c) && (c) <= 'i') \ 13048 || ('j' <= (c) && (c) <= 'r') \ 13049 || ('s' <= (c) && (c) <= 'z')) 13050# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13051#endif 13052 13053#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13054int 13055main () 13056{ 13057 int i; 13058 for (i = 0; i < 256; i++) 13059 if (XOR (islower (i), ISLOWER (i)) 13060 || toupper (i) != TOUPPER (i)) 13061 return 2; 13062 return 0; 13063} 13064_ACEOF 13065if ac_fn_c_try_run "$LINENO"; then : 13066 13067else 13068 ac_cv_header_stdc=no 13069fi 13070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13071 conftest.$ac_objext conftest.beam conftest.$ac_ext 13072fi 13073 13074fi 13075fi 13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13077$as_echo "$ac_cv_header_stdc" >&6; } 13078if test $ac_cv_header_stdc = yes; then 13079 13080$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13081 13082fi 13083 13084 13085 13086 13087 for ac_header in $ac_header_list 13088do : 13089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13090ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13091" 13092if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13093 cat >>confdefs.h <<_ACEOF 13094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13095_ACEOF 13096 13097fi 13098 13099done 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 if test "X$prefix" = "XNONE"; then 13120 acl_final_prefix="$ac_default_prefix" 13121 else 13122 acl_final_prefix="$prefix" 13123 fi 13124 if test "X$exec_prefix" = "XNONE"; then 13125 acl_final_exec_prefix='${prefix}' 13126 else 13127 acl_final_exec_prefix="$exec_prefix" 13128 fi 13129 acl_save_prefix="$prefix" 13130 prefix="$acl_final_prefix" 13131 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13132 prefix="$acl_save_prefix" 13133 13134 13135 13136# Check whether --with-gnu-ld was given. 13137if test "${with_gnu_ld+set}" = set; then : 13138 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13139else 13140 with_gnu_ld=no 13141fi 13142 13143# Prepare PATH_SEPARATOR. 13144# The user is always right. 13145if test "${PATH_SEPARATOR+set}" != set; then 13146 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13147 # contains only /bin. Note that ksh looks also at the FPATH variable, 13148 # so we have to set that as well for the test. 13149 PATH_SEPARATOR=: 13150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13151 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13152 || PATH_SEPARATOR=';' 13153 } 13154fi 13155 13156ac_prog=ld 13157if test "$GCC" = yes; then 13158 # Check if gcc -print-prog-name=ld gives a path. 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13160$as_echo_n "checking for ld used by $CC... " >&6; } 13161 case $host in 13162 *-*-mingw*) 13163 # gcc leaves a trailing carriage return which upsets mingw 13164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13165 *) 13166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13167 esac 13168 case $ac_prog in 13169 # Accept absolute paths. 13170 [\\/]* | ?:[\\/]*) 13171 re_direlt='/[^/][^/]*/\.\./' 13172 # Canonicalize the pathname of ld 13173 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 13174 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 13175 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13176 done 13177 test -z "$LD" && LD="$ac_prog" 13178 ;; 13179 "") 13180 # If it fails, then pretend we aren't using GCC. 13181 ac_prog=ld 13182 ;; 13183 *) 13184 # If it is relative, then search for the first ld in PATH. 13185 with_gnu_ld=unknown 13186 ;; 13187 esac 13188elif test "$with_gnu_ld" = yes; then 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13190$as_echo_n "checking for GNU ld... " >&6; } 13191else 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13193$as_echo_n "checking for non-GNU ld... " >&6; } 13194fi 13195if ${acl_cv_path_LD+:} false; then : 13196 $as_echo_n "(cached) " >&6 13197else 13198 if test -z "$LD"; then 13199 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13200 for ac_dir in $PATH; do 13201 IFS="$acl_save_ifs" 13202 test -z "$ac_dir" && ac_dir=. 13203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13204 acl_cv_path_LD="$ac_dir/$ac_prog" 13205 # Check to see if the program is GNU ld. I'd rather use --version, 13206 # but apparently some variants of GNU ld only accept -v. 13207 # Break only if it was the GNU/non-GNU ld that we prefer. 13208 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 13209 *GNU* | *'with BFD'*) 13210 test "$with_gnu_ld" != no && break 13211 ;; 13212 *) 13213 test "$with_gnu_ld" != yes && break 13214 ;; 13215 esac 13216 fi 13217 done 13218 IFS="$acl_save_ifs" 13219else 13220 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13221fi 13222fi 13223 13224LD="$acl_cv_path_LD" 13225if test -n "$LD"; then 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13227$as_echo "$LD" >&6; } 13228else 13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13230$as_echo "no" >&6; } 13231fi 13232test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13234$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13235if ${acl_cv_prog_gnu_ld+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13239case `$LD -v 2>&1 </dev/null` in 13240*GNU* | *'with BFD'*) 13241 acl_cv_prog_gnu_ld=yes 13242 ;; 13243*) 13244 acl_cv_prog_gnu_ld=no 13245 ;; 13246esac 13247fi 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13249$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13250with_gnu_ld=$acl_cv_prog_gnu_ld 13251 13252 13253 13254 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13256$as_echo_n "checking for shared library run path origin... " >&6; } 13257if ${acl_cv_rpath+:} false; then : 13258 $as_echo_n "(cached) " >&6 13259else 13260 13261 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13262 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13263 . ./conftest.sh 13264 rm -f ./conftest.sh 13265 acl_cv_rpath=done 13266 13267fi 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13269$as_echo "$acl_cv_rpath" >&6; } 13270 wl="$acl_cv_wl" 13271 acl_libext="$acl_cv_libext" 13272 acl_shlibext="$acl_cv_shlibext" 13273 acl_libname_spec="$acl_cv_libname_spec" 13274 acl_library_names_spec="$acl_cv_library_names_spec" 13275 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13276 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13277 acl_hardcode_direct="$acl_cv_hardcode_direct" 13278 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13279 # Check whether --enable-rpath was given. 13280if test "${enable_rpath+set}" = set; then : 13281 enableval=$enable_rpath; : 13282else 13283 enable_rpath=yes 13284fi 13285 13286 13287 13288 13289 acl_libdirstem=lib 13290 acl_libdirstem2= 13291 case "$host_os" in 13292 solaris*) 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 13294$as_echo_n "checking for 64-bit host... " >&6; } 13295if ${gl_cv_solaris_64bit+:} false; then : 13296 $as_echo_n "(cached) " >&6 13297else 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300 13301#ifdef _LP64 13302sixtyfour bits 13303#endif 13304 13305_ACEOF 13306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13307 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 13308 gl_cv_solaris_64bit=yes 13309else 13310 gl_cv_solaris_64bit=no 13311fi 13312rm -f conftest* 13313 13314 13315fi 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 13317$as_echo "$gl_cv_solaris_64bit" >&6; } 13318 if test $gl_cv_solaris_64bit = yes; then 13319 acl_libdirstem=lib/64 13320 case "$host_cpu" in 13321 sparc*) acl_libdirstem2=lib/sparcv9 ;; 13322 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 13323 esac 13324 fi 13325 ;; 13326 *) 13327 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13328 if test -n "$searchpath"; then 13329 acl_save_IFS="${IFS= }"; IFS=":" 13330 for searchdir in $searchpath; do 13331 if test -d "$searchdir"; then 13332 case "$searchdir" in 13333 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13334 */../ | */.. ) 13335 # Better ignore directories of this form. They are misleading. 13336 ;; 13337 *) searchdir=`cd "$searchdir" && pwd` 13338 case "$searchdir" in 13339 */lib64 ) acl_libdirstem=lib64 ;; 13340 esac ;; 13341 esac 13342 fi 13343 done 13344 IFS="$acl_save_IFS" 13345 fi 13346 ;; 13347 esac 13348 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 use_additional=yes 13362 13363 acl_save_prefix="$prefix" 13364 prefix="$acl_final_prefix" 13365 acl_save_exec_prefix="$exec_prefix" 13366 exec_prefix="$acl_final_exec_prefix" 13367 13368 eval additional_includedir=\"$includedir\" 13369 eval additional_libdir=\"$libdir\" 13370 13371 exec_prefix="$acl_save_exec_prefix" 13372 prefix="$acl_save_prefix" 13373 13374 13375# Check whether --with-libiconv-prefix was given. 13376if test "${with_libiconv_prefix+set}" = set; then : 13377 withval=$with_libiconv_prefix; 13378 if test "X$withval" = "Xno"; then 13379 use_additional=no 13380 else 13381 if test "X$withval" = "X"; then 13382 13383 acl_save_prefix="$prefix" 13384 prefix="$acl_final_prefix" 13385 acl_save_exec_prefix="$exec_prefix" 13386 exec_prefix="$acl_final_exec_prefix" 13387 13388 eval additional_includedir=\"$includedir\" 13389 eval additional_libdir=\"$libdir\" 13390 13391 exec_prefix="$acl_save_exec_prefix" 13392 prefix="$acl_save_prefix" 13393 13394 else 13395 additional_includedir="$withval/include" 13396 additional_libdir="$withval/$acl_libdirstem" 13397 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13398 && ! test -d "$withval/$acl_libdirstem"; then 13399 additional_libdir="$withval/$acl_libdirstem2" 13400 fi 13401 fi 13402 fi 13403 13404fi 13405 13406 LIBICONV= 13407 LTLIBICONV= 13408 INCICONV= 13409 LIBICONV_PREFIX= 13410 HAVE_LIBICONV= 13411 rpathdirs= 13412 ltrpathdirs= 13413 names_already_handled= 13414 names_next_round='iconv ' 13415 while test -n "$names_next_round"; do 13416 names_this_round="$names_next_round" 13417 names_next_round= 13418 for name in $names_this_round; do 13419 already_handled= 13420 for n in $names_already_handled; do 13421 if test "$n" = "$name"; then 13422 already_handled=yes 13423 break 13424 fi 13425 done 13426 if test -z "$already_handled"; then 13427 names_already_handled="$names_already_handled $name" 13428 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13429 eval value=\"\$HAVE_LIB$uppername\" 13430 if test -n "$value"; then 13431 if test "$value" = yes; then 13432 eval value=\"\$LIB$uppername\" 13433 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13434 eval value=\"\$LTLIB$uppername\" 13435 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13436 else 13437 : 13438 fi 13439 else 13440 found_dir= 13441 found_la= 13442 found_so= 13443 found_a= 13444 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13445 if test -n "$acl_shlibext"; then 13446 shrext=".$acl_shlibext" # typically: shrext=.so 13447 else 13448 shrext= 13449 fi 13450 if test $use_additional = yes; then 13451 dir="$additional_libdir" 13452 if test -n "$acl_shlibext"; then 13453 if test -f "$dir/$libname$shrext"; then 13454 found_dir="$dir" 13455 found_so="$dir/$libname$shrext" 13456 else 13457 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13458 ver=`(cd "$dir" && \ 13459 for f in "$libname$shrext".*; do echo "$f"; done \ 13460 | sed -e "s,^$libname$shrext\\\\.,," \ 13461 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13462 | sed 1q ) 2>/dev/null` 13463 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13464 found_dir="$dir" 13465 found_so="$dir/$libname$shrext.$ver" 13466 fi 13467 else 13468 eval library_names=\"$acl_library_names_spec\" 13469 for f in $library_names; do 13470 if test -f "$dir/$f"; then 13471 found_dir="$dir" 13472 found_so="$dir/$f" 13473 break 13474 fi 13475 done 13476 fi 13477 fi 13478 fi 13479 if test "X$found_dir" = "X"; then 13480 if test -f "$dir/$libname.$acl_libext"; then 13481 found_dir="$dir" 13482 found_a="$dir/$libname.$acl_libext" 13483 fi 13484 fi 13485 if test "X$found_dir" != "X"; then 13486 if test -f "$dir/$libname.la"; then 13487 found_la="$dir/$libname.la" 13488 fi 13489 fi 13490 fi 13491 if test "X$found_dir" = "X"; then 13492 for x in $LDFLAGS $LTLIBICONV; do 13493 13494 acl_save_prefix="$prefix" 13495 prefix="$acl_final_prefix" 13496 acl_save_exec_prefix="$exec_prefix" 13497 exec_prefix="$acl_final_exec_prefix" 13498 eval x=\"$x\" 13499 exec_prefix="$acl_save_exec_prefix" 13500 prefix="$acl_save_prefix" 13501 13502 case "$x" in 13503 -L*) 13504 dir=`echo "X$x" | sed -e 's/^X-L//'` 13505 if test -n "$acl_shlibext"; then 13506 if test -f "$dir/$libname$shrext"; then 13507 found_dir="$dir" 13508 found_so="$dir/$libname$shrext" 13509 else 13510 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13511 ver=`(cd "$dir" && \ 13512 for f in "$libname$shrext".*; do echo "$f"; done \ 13513 | sed -e "s,^$libname$shrext\\\\.,," \ 13514 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13515 | sed 1q ) 2>/dev/null` 13516 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13517 found_dir="$dir" 13518 found_so="$dir/$libname$shrext.$ver" 13519 fi 13520 else 13521 eval library_names=\"$acl_library_names_spec\" 13522 for f in $library_names; do 13523 if test -f "$dir/$f"; then 13524 found_dir="$dir" 13525 found_so="$dir/$f" 13526 break 13527 fi 13528 done 13529 fi 13530 fi 13531 fi 13532 if test "X$found_dir" = "X"; then 13533 if test -f "$dir/$libname.$acl_libext"; then 13534 found_dir="$dir" 13535 found_a="$dir/$libname.$acl_libext" 13536 fi 13537 fi 13538 if test "X$found_dir" != "X"; then 13539 if test -f "$dir/$libname.la"; then 13540 found_la="$dir/$libname.la" 13541 fi 13542 fi 13543 ;; 13544 esac 13545 if test "X$found_dir" != "X"; then 13546 break 13547 fi 13548 done 13549 fi 13550 if test "X$found_dir" != "X"; then 13551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13552 if test "X$found_so" != "X"; then 13553 if test "$enable_rpath" = no \ 13554 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13555 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13557 else 13558 haveit= 13559 for x in $ltrpathdirs; do 13560 if test "X$x" = "X$found_dir"; then 13561 haveit=yes 13562 break 13563 fi 13564 done 13565 if test -z "$haveit"; then 13566 ltrpathdirs="$ltrpathdirs $found_dir" 13567 fi 13568 if test "$acl_hardcode_direct" = yes; then 13569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13570 else 13571 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13572 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13573 haveit= 13574 for x in $rpathdirs; do 13575 if test "X$x" = "X$found_dir"; then 13576 haveit=yes 13577 break 13578 fi 13579 done 13580 if test -z "$haveit"; then 13581 rpathdirs="$rpathdirs $found_dir" 13582 fi 13583 else 13584 haveit= 13585 for x in $LDFLAGS $LIBICONV; do 13586 13587 acl_save_prefix="$prefix" 13588 prefix="$acl_final_prefix" 13589 acl_save_exec_prefix="$exec_prefix" 13590 exec_prefix="$acl_final_exec_prefix" 13591 eval x=\"$x\" 13592 exec_prefix="$acl_save_exec_prefix" 13593 prefix="$acl_save_prefix" 13594 13595 if test "X$x" = "X-L$found_dir"; then 13596 haveit=yes 13597 break 13598 fi 13599 done 13600 if test -z "$haveit"; then 13601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13602 fi 13603 if test "$acl_hardcode_minus_L" != no; then 13604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13605 else 13606 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13607 fi 13608 fi 13609 fi 13610 fi 13611 else 13612 if test "X$found_a" != "X"; then 13613 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13614 else 13615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13616 fi 13617 fi 13618 additional_includedir= 13619 case "$found_dir" in 13620 */$acl_libdirstem | */$acl_libdirstem/) 13621 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13622 if test "$name" = 'iconv'; then 13623 LIBICONV_PREFIX="$basedir" 13624 fi 13625 additional_includedir="$basedir/include" 13626 ;; 13627 */$acl_libdirstem2 | */$acl_libdirstem2/) 13628 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13629 if test "$name" = 'iconv'; then 13630 LIBICONV_PREFIX="$basedir" 13631 fi 13632 additional_includedir="$basedir/include" 13633 ;; 13634 esac 13635 if test "X$additional_includedir" != "X"; then 13636 if test "X$additional_includedir" != "X/usr/include"; then 13637 haveit= 13638 if test "X$additional_includedir" = "X/usr/local/include"; then 13639 if test -n "$GCC"; then 13640 case $host_os in 13641 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13642 esac 13643 fi 13644 fi 13645 if test -z "$haveit"; then 13646 for x in $CPPFLAGS $INCICONV; do 13647 13648 acl_save_prefix="$prefix" 13649 prefix="$acl_final_prefix" 13650 acl_save_exec_prefix="$exec_prefix" 13651 exec_prefix="$acl_final_exec_prefix" 13652 eval x=\"$x\" 13653 exec_prefix="$acl_save_exec_prefix" 13654 prefix="$acl_save_prefix" 13655 13656 if test "X$x" = "X-I$additional_includedir"; then 13657 haveit=yes 13658 break 13659 fi 13660 done 13661 if test -z "$haveit"; then 13662 if test -d "$additional_includedir"; then 13663 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13664 fi 13665 fi 13666 fi 13667 fi 13668 fi 13669 if test -n "$found_la"; then 13670 save_libdir="$libdir" 13671 case "$found_la" in 13672 */* | *\\*) . "$found_la" ;; 13673 *) . "./$found_la" ;; 13674 esac 13675 libdir="$save_libdir" 13676 for dep in $dependency_libs; do 13677 case "$dep" in 13678 -L*) 13679 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13680 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13681 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13682 haveit= 13683 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13684 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13685 if test -n "$GCC"; then 13686 case $host_os in 13687 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13688 esac 13689 fi 13690 fi 13691 if test -z "$haveit"; then 13692 haveit= 13693 for x in $LDFLAGS $LIBICONV; do 13694 13695 acl_save_prefix="$prefix" 13696 prefix="$acl_final_prefix" 13697 acl_save_exec_prefix="$exec_prefix" 13698 exec_prefix="$acl_final_exec_prefix" 13699 eval x=\"$x\" 13700 exec_prefix="$acl_save_exec_prefix" 13701 prefix="$acl_save_prefix" 13702 13703 if test "X$x" = "X-L$additional_libdir"; then 13704 haveit=yes 13705 break 13706 fi 13707 done 13708 if test -z "$haveit"; then 13709 if test -d "$additional_libdir"; then 13710 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13711 fi 13712 fi 13713 haveit= 13714 for x in $LDFLAGS $LTLIBICONV; do 13715 13716 acl_save_prefix="$prefix" 13717 prefix="$acl_final_prefix" 13718 acl_save_exec_prefix="$exec_prefix" 13719 exec_prefix="$acl_final_exec_prefix" 13720 eval x=\"$x\" 13721 exec_prefix="$acl_save_exec_prefix" 13722 prefix="$acl_save_prefix" 13723 13724 if test "X$x" = "X-L$additional_libdir"; then 13725 haveit=yes 13726 break 13727 fi 13728 done 13729 if test -z "$haveit"; then 13730 if test -d "$additional_libdir"; then 13731 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13732 fi 13733 fi 13734 fi 13735 fi 13736 ;; 13737 -R*) 13738 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13739 if test "$enable_rpath" != no; then 13740 haveit= 13741 for x in $rpathdirs; do 13742 if test "X$x" = "X$dir"; then 13743 haveit=yes 13744 break 13745 fi 13746 done 13747 if test -z "$haveit"; then 13748 rpathdirs="$rpathdirs $dir" 13749 fi 13750 haveit= 13751 for x in $ltrpathdirs; do 13752 if test "X$x" = "X$dir"; then 13753 haveit=yes 13754 break 13755 fi 13756 done 13757 if test -z "$haveit"; then 13758 ltrpathdirs="$ltrpathdirs $dir" 13759 fi 13760 fi 13761 ;; 13762 -l*) 13763 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13764 ;; 13765 *.la) 13766 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13767 ;; 13768 *) 13769 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13771 ;; 13772 esac 13773 done 13774 fi 13775 else 13776 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13777 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13778 fi 13779 fi 13780 fi 13781 done 13782 done 13783 if test "X$rpathdirs" != "X"; then 13784 if test -n "$acl_hardcode_libdir_separator"; then 13785 alldirs= 13786 for found_dir in $rpathdirs; do 13787 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 13788 done 13789 acl_save_libdir="$libdir" 13790 libdir="$alldirs" 13791 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13792 libdir="$acl_save_libdir" 13793 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13794 else 13795 for found_dir in $rpathdirs; do 13796 acl_save_libdir="$libdir" 13797 libdir="$found_dir" 13798 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13799 libdir="$acl_save_libdir" 13800 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13801 done 13802 fi 13803 fi 13804 if test "X$ltrpathdirs" != "X"; then 13805 for found_dir in $ltrpathdirs; do 13806 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13807 done 13808 fi 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 am_save_CPPFLAGS="$CPPFLAGS" 13822 13823 for element in $INCICONV; do 13824 haveit= 13825 for x in $CPPFLAGS; do 13826 13827 acl_save_prefix="$prefix" 13828 prefix="$acl_final_prefix" 13829 acl_save_exec_prefix="$exec_prefix" 13830 exec_prefix="$acl_final_exec_prefix" 13831 eval x=\"$x\" 13832 exec_prefix="$acl_save_exec_prefix" 13833 prefix="$acl_save_prefix" 13834 13835 if test "X$x" = "X$element"; then 13836 haveit=yes 13837 break 13838 fi 13839 done 13840 if test -z "$haveit"; then 13841 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13842 fi 13843 done 13844 13845 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 13847$as_echo_n "checking for iconv... " >&6; } 13848if ${am_cv_func_iconv+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850else 13851 13852 am_cv_func_iconv="no, consider installing GNU libiconv" 13853 am_cv_lib_iconv=no 13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13855/* end confdefs.h. */ 13856 13857#include <stdlib.h> 13858#include <iconv.h> 13859 13860int 13861main () 13862{ 13863iconv_t cd = iconv_open("",""); 13864 iconv(cd,NULL,NULL,NULL,NULL); 13865 iconv_close(cd); 13866 ; 13867 return 0; 13868} 13869_ACEOF 13870if ac_fn_c_try_link "$LINENO"; then : 13871 am_cv_func_iconv=yes 13872fi 13873rm -f core conftest.err conftest.$ac_objext \ 13874 conftest$ac_exeext conftest.$ac_ext 13875 if test "$am_cv_func_iconv" != yes; then 13876 am_save_LIBS="$LIBS" 13877 LIBS="$LIBS $LIBICONV" 13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13879/* end confdefs.h. */ 13880 13881#include <stdlib.h> 13882#include <iconv.h> 13883 13884int 13885main () 13886{ 13887iconv_t cd = iconv_open("",""); 13888 iconv(cd,NULL,NULL,NULL,NULL); 13889 iconv_close(cd); 13890 ; 13891 return 0; 13892} 13893_ACEOF 13894if ac_fn_c_try_link "$LINENO"; then : 13895 am_cv_lib_iconv=yes 13896 am_cv_func_iconv=yes 13897fi 13898rm -f core conftest.err conftest.$ac_objext \ 13899 conftest$ac_exeext conftest.$ac_ext 13900 LIBS="$am_save_LIBS" 13901 fi 13902 13903fi 13904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13905$as_echo "$am_cv_func_iconv" >&6; } 13906 if test "$am_cv_func_iconv" = yes; then 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 13908$as_echo_n "checking for working iconv... " >&6; } 13909if ${am_cv_func_iconv_works+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 13913 am_save_LIBS="$LIBS" 13914 if test $am_cv_lib_iconv = yes; then 13915 LIBS="$LIBS $LIBICONV" 13916 fi 13917 am_cv_func_iconv_works=no 13918 for ac_iconv_const in '' 'const'; do 13919 if test "$cross_compiling" = yes; then : 13920 case "$host_os" in 13921 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 13922 *) am_cv_func_iconv_works="guessing yes" ;; 13923 esac 13924else 13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927 13928#include <iconv.h> 13929#include <string.h> 13930 13931#ifndef ICONV_CONST 13932# define ICONV_CONST $ac_iconv_const 13933#endif 13934 13935int 13936main () 13937{ 13938int result = 0; 13939 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 13940 returns. */ 13941 { 13942 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 13943 if (cd_utf8_to_88591 != (iconv_t)(-1)) 13944 { 13945 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 13946 char buf[10]; 13947 ICONV_CONST char *inptr = input; 13948 size_t inbytesleft = strlen (input); 13949 char *outptr = buf; 13950 size_t outbytesleft = sizeof (buf); 13951 size_t res = iconv (cd_utf8_to_88591, 13952 &inptr, &inbytesleft, 13953 &outptr, &outbytesleft); 13954 if (res == 0) 13955 result |= 1; 13956 iconv_close (cd_utf8_to_88591); 13957 } 13958 } 13959 /* Test against Solaris 10 bug: Failures are not distinguishable from 13960 successful returns. */ 13961 { 13962 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 13963 if (cd_ascii_to_88591 != (iconv_t)(-1)) 13964 { 13965 static ICONV_CONST char input[] = "\263"; 13966 char buf[10]; 13967 ICONV_CONST char *inptr = input; 13968 size_t inbytesleft = strlen (input); 13969 char *outptr = buf; 13970 size_t outbytesleft = sizeof (buf); 13971 size_t res = iconv (cd_ascii_to_88591, 13972 &inptr, &inbytesleft, 13973 &outptr, &outbytesleft); 13974 if (res == 0) 13975 result |= 2; 13976 iconv_close (cd_ascii_to_88591); 13977 } 13978 } 13979 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 13980 { 13981 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 13982 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13983 { 13984 static ICONV_CONST char input[] = "\304"; 13985 static char buf[2] = { (char)0xDE, (char)0xAD }; 13986 ICONV_CONST char *inptr = input; 13987 size_t inbytesleft = 1; 13988 char *outptr = buf; 13989 size_t outbytesleft = 1; 13990 size_t res = iconv (cd_88591_to_utf8, 13991 &inptr, &inbytesleft, 13992 &outptr, &outbytesleft); 13993 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 13994 result |= 4; 13995 iconv_close (cd_88591_to_utf8); 13996 } 13997 } 13998#if 0 /* This bug could be worked around by the caller. */ 13999 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 14000 { 14001 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 14002 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14003 { 14004 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 14005 char buf[50]; 14006 ICONV_CONST char *inptr = input; 14007 size_t inbytesleft = strlen (input); 14008 char *outptr = buf; 14009 size_t outbytesleft = sizeof (buf); 14010 size_t res = iconv (cd_88591_to_utf8, 14011 &inptr, &inbytesleft, 14012 &outptr, &outbytesleft); 14013 if ((int)res > 0) 14014 result |= 8; 14015 iconv_close (cd_88591_to_utf8); 14016 } 14017 } 14018#endif 14019 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 14020 provided. */ 14021 if (/* Try standardized names. */ 14022 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 14023 /* Try IRIX, OSF/1 names. */ 14024 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 14025 /* Try AIX names. */ 14026 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 14027 /* Try HP-UX names. */ 14028 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 14029 result |= 16; 14030 return result; 14031 14032 ; 14033 return 0; 14034} 14035_ACEOF 14036if ac_fn_c_try_run "$LINENO"; then : 14037 am_cv_func_iconv_works=yes 14038fi 14039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14040 conftest.$ac_objext conftest.beam conftest.$ac_ext 14041fi 14042 14043 test "$am_cv_func_iconv_works" = no || break 14044 done 14045 LIBS="$am_save_LIBS" 14046 14047fi 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 14049$as_echo "$am_cv_func_iconv_works" >&6; } 14050 case "$am_cv_func_iconv_works" in 14051 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 14052 *) am_func_iconv=yes ;; 14053 esac 14054 else 14055 am_func_iconv=no am_cv_lib_iconv=no 14056 fi 14057 if test "$am_func_iconv" = yes; then 14058 14059$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14060 14061 fi 14062 if test "$am_cv_lib_iconv" = yes; then 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14064$as_echo_n "checking how to link with libiconv... " >&6; } 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14066$as_echo "$LIBICONV" >&6; } 14067 else 14068 CPPFLAGS="$am_save_CPPFLAGS" 14069 LIBICONV= 14070 LTLIBICONV= 14071 fi 14072 14073 14074 14075 if test "$am_cv_func_iconv" = yes; then 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 14077$as_echo_n "checking for iconv declaration... " >&6; } 14078 if ${am_cv_proto_iconv+:} false; then : 14079 $as_echo_n "(cached) " >&6 14080else 14081 14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14083/* end confdefs.h. */ 14084 14085#include <stdlib.h> 14086#include <iconv.h> 14087extern 14088#ifdef __cplusplus 14089"C" 14090#endif 14091#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 14092size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 14093#else 14094size_t iconv(); 14095#endif 14096 14097int 14098main () 14099{ 14100 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_compile "$LINENO"; then : 14106 am_cv_proto_iconv_arg1="" 14107else 14108 am_cv_proto_iconv_arg1="const" 14109fi 14110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14111 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);" 14112fi 14113 14114 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 14116 $am_cv_proto_iconv" >&5 14117$as_echo " 14118 $am_cv_proto_iconv" >&6; } 14119 14120cat >>confdefs.h <<_ACEOF 14121#define ICONV_CONST $am_cv_proto_iconv_arg1 14122_ACEOF 14123 14124 14125 fi 14126 14127# if test -n "$LIBICONV" ; then 14128# LIBS="$LIBS $LIBICONV" 14129# fi 14130 14131for ac_header in iconv.h 14132do : 14133 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 14134if test "x$ac_cv_header_iconv_h" = xyes; then : 14135 cat >>confdefs.h <<_ACEOF 14136#define HAVE_ICONV_H 1 14137_ACEOF 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv.h defines iconv_t" >&5 14139$as_echo_n "checking whether iconv.h defines iconv_t... " >&6; } 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142#include <iconv.h> 14143 14144_ACEOF 14145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14146 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then : 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14148$as_echo "yes" >&6; } 14149 14150$as_echo "#define HAVE_ICONV_T_DEF 1" >>confdefs.h 14151 14152else 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14154$as_echo "no" >&6; } 14155fi 14156rm -f conftest* 14157 14158fi 14159 14160done 14161 14162 14163# Checks for typedefs, structures, and compiler characteristics. 14164#AC_TYPE_SIZE_T 14165 14166# Checks for library functions. 14167#AC_FUNC_ERROR_AT_LINE 14168#AC_FUNC_MALLOC 14169#AC_FUNC_REALLOC 14170#AC_CHECK_FUNCS([floor memset sqrt strchr strdup strtol]) 14171 14172ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" 14173if test "x$ac_cv_func_sin" = xyes; then : 14174 14175else 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 14177$as_echo_n "checking for sin in -lm... " >&6; } 14178if ${ac_cv_lib_m_sin+:} false; then : 14179 $as_echo_n "(cached) " >&6 14180else 14181 ac_check_lib_save_LIBS=$LIBS 14182LIBS="-lm $LIBS" 14183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14184/* end confdefs.h. */ 14185 14186/* Override any GCC internal prototype to avoid an error. 14187 Use char because int might match the return type of a GCC 14188 builtin and then its argument prototype would still apply. */ 14189#ifdef __cplusplus 14190extern "C" 14191#endif 14192char sin (); 14193int 14194main () 14195{ 14196return sin (); 14197 ; 14198 return 0; 14199} 14200_ACEOF 14201if ac_fn_c_try_link "$LINENO"; then : 14202 ac_cv_lib_m_sin=yes 14203else 14204 ac_cv_lib_m_sin=no 14205fi 14206rm -f core conftest.err conftest.$ac_objext \ 14207 conftest$ac_exeext conftest.$ac_ext 14208LIBS=$ac_check_lib_save_LIBS 14209fi 14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 14211$as_echo "$ac_cv_lib_m_sin" >&6; } 14212if test "x$ac_cv_lib_m_sin" = xyes; then : 14213 cat >>confdefs.h <<_ACEOF 14214#define HAVE_LIBM 1 14215_ACEOF 14216 14217 LIBS="-lm $LIBS" 14218 14219fi 14220 14221fi 14222 14223 14224 14225 14226 14227 14228ac_ext=c 14229ac_cpp='$CPP $CPPFLAGS' 14230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14232ac_compiler_gnu=$ac_cv_c_compiler_gnu 14233 14234ax_pthread_ok=no 14235 14236# We used to check for pthread.h first, but this fails if pthread.h 14237# requires special compiler flags (e.g. on Tru64 or Sequent). 14238# It gets checked for in the link test anyway. 14239 14240# First of all, check if the user has set any of the PTHREAD_LIBS, 14241# etcetera environment variables, and if threads linking works using 14242# them: 14243if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 14244 ax_pthread_save_CC="$CC" 14245 ax_pthread_save_CFLAGS="$CFLAGS" 14246 ax_pthread_save_LIBS="$LIBS" 14247 if test "x$PTHREAD_CC" != "x"; then : 14248 CC="$PTHREAD_CC" 14249fi 14250 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14251 LIBS="$PTHREAD_LIBS $LIBS" 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 14253$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14255/* end confdefs.h. */ 14256 14257/* Override any GCC internal prototype to avoid an error. 14258 Use char because int might match the return type of a GCC 14259 builtin and then its argument prototype would still apply. */ 14260#ifdef __cplusplus 14261extern "C" 14262#endif 14263char pthread_join (); 14264int 14265main () 14266{ 14267return pthread_join (); 14268 ; 14269 return 0; 14270} 14271_ACEOF 14272if ac_fn_c_try_link "$LINENO"; then : 14273 ax_pthread_ok=yes 14274fi 14275rm -f core conftest.err conftest.$ac_objext \ 14276 conftest$ac_exeext conftest.$ac_ext 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14278$as_echo "$ax_pthread_ok" >&6; } 14279 if test "x$ax_pthread_ok" = "xno"; then 14280 PTHREAD_LIBS="" 14281 PTHREAD_CFLAGS="" 14282 fi 14283 CC="$ax_pthread_save_CC" 14284 CFLAGS="$ax_pthread_save_CFLAGS" 14285 LIBS="$ax_pthread_save_LIBS" 14286fi 14287 14288# We must check for the threads library under a number of different 14289# names; the ordering is very important because some systems 14290# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14291# libraries is broken (non-POSIX). 14292 14293# Create a list of thread flags to try. Items starting with a "-" are 14294# C compiler flags, and other items are library names, except for "none" 14295# which indicates that we try without any flags at all, and "pthread-config" 14296# which is a program returning the flags for the Pth emulation library. 14297 14298ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 14299 14300# The ordering *is* (sometimes) important. Some notes on the 14301# individual items follow: 14302 14303# pthreads: AIX (must check this before -lpthread) 14304# none: in case threads are in libc; should be tried before -Kthread and 14305# other compiler flags to prevent continual compiler warnings 14306# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 14307# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 14308# (Note: HP C rejects this with "bad form for `-t' option") 14309# -pthreads: Solaris/gcc (Note: HP C also rejects) 14310# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 14311# doesn't hurt to check since this sometimes defines pthreads and 14312# -D_REENTRANT too), HP C (must be checked before -lpthread, which 14313# is present but should not be used directly; and before -mthreads, 14314# because the compiler interprets this as "-mt" + "-hreads") 14315# -mthreads: Mingw32/gcc, Lynx/gcc 14316# pthread: Linux, etcetera 14317# --thread-safe: KAI C++ 14318# pthread-config: use pthread-config program (for GNU Pth library) 14319 14320case $host_os in 14321 14322 freebsd*) 14323 14324 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 14325 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 14326 14327 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 14328 ;; 14329 14330 hpux*) 14331 14332 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 14333 # multi-threading and also sets -lpthread." 14334 14335 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 14336 ;; 14337 14338 openedition*) 14339 14340 # IBM z/OS requires a feature-test macro to be defined in order to 14341 # enable POSIX threads at all, so give the user a hint if this is 14342 # not set. (We don't define these ourselves, as they can affect 14343 # other portions of the system API in unpredictable ways.) 14344 14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14346/* end confdefs.h. */ 14347 14348# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 14349 AX_PTHREAD_ZOS_MISSING 14350# endif 14351 14352_ACEOF 14353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14354 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 14356$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 14357fi 14358rm -f conftest* 14359 14360 ;; 14361 14362 solaris*) 14363 14364 # On Solaris (at least, for some versions), libc contains stubbed 14365 # (non-functional) versions of the pthreads routines, so link-based 14366 # tests will erroneously succeed. (N.B.: The stubs are missing 14367 # pthread_cleanup_push, or rather a function called by this macro, 14368 # so we could check for that, but who knows whether they'll stub 14369 # that too in a future libc.) So we'll check first for the 14370 # standard Solaris way of linking pthreads (-mt -lpthread). 14371 14372 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 14373 ;; 14374esac 14375 14376# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 14377 14378if test "x$GCC" = "xyes"; then : 14379 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 14380fi 14381 14382# The presence of a feature test macro requesting re-entrant function 14383# definitions is, on some systems, a strong hint that pthreads support is 14384# correctly enabled 14385 14386case $host_os in 14387 darwin* | hpux* | linux* | osf* | solaris*) 14388 ax_pthread_check_macro="_REENTRANT" 14389 ;; 14390 14391 aix*) 14392 ax_pthread_check_macro="_THREAD_SAFE" 14393 ;; 14394 14395 *) 14396 ax_pthread_check_macro="--" 14397 ;; 14398esac 14399if test "x$ax_pthread_check_macro" = "x--"; then : 14400 ax_pthread_check_cond=0 14401else 14402 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 14403fi 14404 14405# Are we compiling with Clang? 14406 14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 14408$as_echo_n "checking whether $CC is Clang... " >&6; } 14409if ${ax_cv_PTHREAD_CLANG+:} false; then : 14410 $as_echo_n "(cached) " >&6 14411else 14412 ax_cv_PTHREAD_CLANG=no 14413 # Note that Autoconf sets GCC=yes for Clang as well as GCC 14414 if test "x$GCC" = "xyes"; then 14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14416/* end confdefs.h. */ 14417/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 14418# if defined(__clang__) && defined(__llvm__) 14419 AX_PTHREAD_CC_IS_CLANG 14420# endif 14421 14422_ACEOF 14423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14424 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 14425 ax_cv_PTHREAD_CLANG=yes 14426fi 14427rm -f conftest* 14428 14429 fi 14430 14431fi 14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 14433$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 14434ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 14435 14436ax_pthread_clang_warning=no 14437 14438# Clang needs special handling, because older versions handle the -pthread 14439# option in a rather... idiosyncratic way 14440 14441if test "x$ax_pthread_clang" = "xyes"; then 14442 14443 # Clang takes -pthread; it has never supported any other flag 14444 14445 # (Note 1: This will need to be revisited if a system that Clang 14446 # supports has POSIX threads in a separate library. This tends not 14447 # to be the way of modern systems, but it's conceivable.) 14448 14449 # (Note 2: On some systems, notably Darwin, -pthread is not needed 14450 # to get POSIX threads support; the API is always present and 14451 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 14452 # -pthread does define _REENTRANT, and while the Darwin headers 14453 # ignore this macro, third-party headers might not.) 14454 14455 PTHREAD_CFLAGS="-pthread" 14456 PTHREAD_LIBS= 14457 14458 ax_pthread_ok=yes 14459 14460 # However, older versions of Clang make a point of warning the user 14461 # that, in an invocation where only linking and no compilation is 14462 # taking place, the -pthread option has no effect ("argument unused 14463 # during compilation"). They expect -pthread to be passed in only 14464 # when source code is being compiled. 14465 # 14466 # Problem is, this is at odds with the way Automake and most other 14467 # C build frameworks function, which is that the same flags used in 14468 # compilation (CFLAGS) are also used in linking. Many systems 14469 # supported by AX_PTHREAD require exactly this for POSIX threads 14470 # support, and in fact it is often not straightforward to specify a 14471 # flag that is used only in the compilation phase and not in 14472 # linking. Such a scenario is extremely rare in practice. 14473 # 14474 # Even though use of the -pthread flag in linking would only print 14475 # a warning, this can be a nuisance for well-run software projects 14476 # that build with -Werror. So if the active version of Clang has 14477 # this misfeature, we search for an option to squash it. 14478 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 14480$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 14481if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 14482 $as_echo_n "(cached) " >&6 14483else 14484 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 14485 # Create an alternate version of $ac_link that compiles and 14486 # links in two steps (.c -> .o, .o -> exe) instead of one 14487 # (.c -> exe), because the warning occurs only in the second 14488 # step 14489 ax_pthread_save_ac_link="$ac_link" 14490 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 14491 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 14492 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 14493 ax_pthread_save_CFLAGS="$CFLAGS" 14494 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 14495 if test "x$ax_pthread_try" = "xunknown"; then : 14496 break 14497fi 14498 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 14499 ac_link="$ax_pthread_save_ac_link" 14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14501/* end confdefs.h. */ 14502int main(void){return 0;} 14503_ACEOF 14504if ac_fn_c_try_link "$LINENO"; then : 14505 ac_link="$ax_pthread_2step_ac_link" 14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14507/* end confdefs.h. */ 14508int main(void){return 0;} 14509_ACEOF 14510if ac_fn_c_try_link "$LINENO"; then : 14511 break 14512fi 14513rm -f core conftest.err conftest.$ac_objext \ 14514 conftest$ac_exeext conftest.$ac_ext 14515 14516fi 14517rm -f core conftest.err conftest.$ac_objext \ 14518 conftest$ac_exeext conftest.$ac_ext 14519 done 14520 ac_link="$ax_pthread_save_ac_link" 14521 CFLAGS="$ax_pthread_save_CFLAGS" 14522 if test "x$ax_pthread_try" = "x"; then : 14523 ax_pthread_try=no 14524fi 14525 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 14526 14527fi 14528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 14529$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 14530 14531 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 14532 no | unknown) ;; 14533 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 14534 esac 14535 14536fi # $ax_pthread_clang = yes 14537 14538if test "x$ax_pthread_ok" = "xno"; then 14539for ax_pthread_try_flag in $ax_pthread_flags; do 14540 14541 case $ax_pthread_try_flag in 14542 none) 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 14544$as_echo_n "checking whether pthreads work without any flags... " >&6; } 14545 ;; 14546 14547 -mt,pthread) 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 14549$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 14550 PTHREAD_CFLAGS="-mt" 14551 PTHREAD_LIBS="-lpthread" 14552 ;; 14553 14554 -*) 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 14556$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 14557 PTHREAD_CFLAGS="$ax_pthread_try_flag" 14558 ;; 14559 14560 pthread-config) 14561 # Extract the first word of "pthread-config", so it can be a program name with args. 14562set dummy pthread-config; ac_word=$2 14563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14564$as_echo_n "checking for $ac_word... " >&6; } 14565if ${ac_cv_prog_ax_pthread_config+:} false; then : 14566 $as_echo_n "(cached) " >&6 14567else 14568 if test -n "$ax_pthread_config"; then 14569 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 14570else 14571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14572for as_dir in $PATH 14573do 14574 IFS=$as_save_IFS 14575 test -z "$as_dir" && as_dir=. 14576 for ac_exec_ext in '' $ac_executable_extensions; do 14577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14578 ac_cv_prog_ax_pthread_config="yes" 14579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14580 break 2 14581 fi 14582done 14583 done 14584IFS=$as_save_IFS 14585 14586 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 14587fi 14588fi 14589ax_pthread_config=$ac_cv_prog_ax_pthread_config 14590if test -n "$ax_pthread_config"; then 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 14592$as_echo "$ax_pthread_config" >&6; } 14593else 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14595$as_echo "no" >&6; } 14596fi 14597 14598 14599 if test "x$ax_pthread_config" = "xno"; then : 14600 continue 14601fi 14602 PTHREAD_CFLAGS="`pthread-config --cflags`" 14603 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 14604 ;; 14605 14606 *) 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 14608$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 14609 PTHREAD_LIBS="-l$ax_pthread_try_flag" 14610 ;; 14611 esac 14612 14613 ax_pthread_save_CFLAGS="$CFLAGS" 14614 ax_pthread_save_LIBS="$LIBS" 14615 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14616 LIBS="$PTHREAD_LIBS $LIBS" 14617 14618 # Check for various functions. We must include pthread.h, 14619 # since some functions may be macros. (On the Sequent, we 14620 # need a special flag -Kthread to make this header compile.) 14621 # We check for pthread_join because it is in -lpthread on IRIX 14622 # while pthread_create is in libc. We check for pthread_attr_init 14623 # due to DEC craziness with -lpthreads. We check for 14624 # pthread_cleanup_push because it is one of the few pthread 14625 # functions on Solaris that doesn't have a non-functional libc stub. 14626 # We try pthread_create on general principles. 14627 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630#include <pthread.h> 14631# if $ax_pthread_check_cond 14632# error "$ax_pthread_check_macro must be defined" 14633# endif 14634 static void routine(void *a) { a = 0; } 14635 static void *start_routine(void *a) { return a; } 14636int 14637main () 14638{ 14639pthread_t th; pthread_attr_t attr; 14640 pthread_create(&th, 0, start_routine, 0); 14641 pthread_join(th, 0); 14642 pthread_attr_init(&attr); 14643 pthread_cleanup_push(routine, 0); 14644 pthread_cleanup_pop(0) /* ; */ 14645 ; 14646 return 0; 14647} 14648_ACEOF 14649if ac_fn_c_try_link "$LINENO"; then : 14650 ax_pthread_ok=yes 14651fi 14652rm -f core conftest.err conftest.$ac_objext \ 14653 conftest$ac_exeext conftest.$ac_ext 14654 14655 CFLAGS="$ax_pthread_save_CFLAGS" 14656 LIBS="$ax_pthread_save_LIBS" 14657 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14659$as_echo "$ax_pthread_ok" >&6; } 14660 if test "x$ax_pthread_ok" = "xyes"; then : 14661 break 14662fi 14663 14664 PTHREAD_LIBS="" 14665 PTHREAD_CFLAGS="" 14666done 14667fi 14668 14669# Various other checks: 14670if test "x$ax_pthread_ok" = "xyes"; then 14671 ax_pthread_save_CFLAGS="$CFLAGS" 14672 ax_pthread_save_LIBS="$LIBS" 14673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14674 LIBS="$PTHREAD_LIBS $LIBS" 14675 14676 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 14678$as_echo_n "checking for joinable pthread attribute... " >&6; } 14679if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 14680 $as_echo_n "(cached) " >&6 14681else 14682 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 14683 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14685/* end confdefs.h. */ 14686#include <pthread.h> 14687int 14688main () 14689{ 14690int attr = $ax_pthread_attr; return attr /* ; */ 14691 ; 14692 return 0; 14693} 14694_ACEOF 14695if ac_fn_c_try_link "$LINENO"; then : 14696 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 14697fi 14698rm -f core conftest.err conftest.$ac_objext \ 14699 conftest$ac_exeext conftest.$ac_ext 14700 done 14701 14702fi 14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 14704$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 14705 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 14706 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 14707 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 14708 14709cat >>confdefs.h <<_ACEOF 14710#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 14711_ACEOF 14712 14713 ax_pthread_joinable_attr_defined=yes 14714 14715fi 14716 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 14718$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 14719if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 14720 $as_echo_n "(cached) " >&6 14721else 14722 ax_cv_PTHREAD_SPECIAL_FLAGS=no 14723 case $host_os in 14724 solaris*) 14725 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 14726 ;; 14727 esac 14728 14729fi 14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 14731$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 14732 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 14733 test "x$ax_pthread_special_flags_added" != "xyes"; then : 14734 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 14735 ax_pthread_special_flags_added=yes 14736fi 14737 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 14739$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 14740if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 14741 $as_echo_n "(cached) " >&6 14742else 14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745#include <pthread.h> 14746int 14747main () 14748{ 14749int i = PTHREAD_PRIO_INHERIT; 14750 ; 14751 return 0; 14752} 14753_ACEOF 14754if ac_fn_c_try_link "$LINENO"; then : 14755 ax_cv_PTHREAD_PRIO_INHERIT=yes 14756else 14757 ax_cv_PTHREAD_PRIO_INHERIT=no 14758fi 14759rm -f core conftest.err conftest.$ac_objext \ 14760 conftest$ac_exeext conftest.$ac_ext 14761 14762fi 14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 14764$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 14765 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 14766 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 14767 14768$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 14769 14770 ax_pthread_prio_inherit_defined=yes 14771 14772fi 14773 14774 CFLAGS="$ax_pthread_save_CFLAGS" 14775 LIBS="$ax_pthread_save_LIBS" 14776 14777 # More AIX lossage: compile with *_r variant 14778 if test "x$GCC" != "xyes"; then 14779 case $host_os in 14780 aix*) 14781 case "x/$CC" in #( 14782 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 14783 #handle absolute path differently from PATH based program lookup 14784 case "x$CC" in #( 14785 x/*) : 14786 if as_fn_executable_p ${CC}_r; then : 14787 PTHREAD_CC="${CC}_r" 14788fi ;; #( 14789 *) : 14790 for ac_prog in ${CC}_r 14791do 14792 # Extract the first word of "$ac_prog", so it can be a program name with args. 14793set dummy $ac_prog; ac_word=$2 14794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14795$as_echo_n "checking for $ac_word... " >&6; } 14796if ${ac_cv_prog_PTHREAD_CC+:} false; then : 14797 $as_echo_n "(cached) " >&6 14798else 14799 if test -n "$PTHREAD_CC"; then 14800 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 14801else 14802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14803for as_dir in $PATH 14804do 14805 IFS=$as_save_IFS 14806 test -z "$as_dir" && as_dir=. 14807 for ac_exec_ext in '' $ac_executable_extensions; do 14808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14809 ac_cv_prog_PTHREAD_CC="$ac_prog" 14810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14811 break 2 14812 fi 14813done 14814 done 14815IFS=$as_save_IFS 14816 14817fi 14818fi 14819PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 14820if test -n "$PTHREAD_CC"; then 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 14822$as_echo "$PTHREAD_CC" >&6; } 14823else 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14825$as_echo "no" >&6; } 14826fi 14827 14828 14829 test -n "$PTHREAD_CC" && break 14830done 14831test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 14832 ;; 14833esac ;; #( 14834 *) : 14835 ;; 14836esac 14837 ;; 14838 esac 14839 fi 14840fi 14841 14842test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 14843 14844 14845 14846 14847 14848# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14849if test "x$ax_pthread_ok" = "xyes"; then 14850 14851$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 14852 14853 : 14854else 14855 ax_pthread_ok=no 14856 14857fi 14858ac_ext=c 14859ac_cpp='$CPP $CPPFLAGS' 14860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14862ac_compiler_gnu=$ac_cv_c_compiler_gnu 14863 14864 14865 14866 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5 14868$as_echo_n "checking for OpenMP flag of C compiler... " >&6; } 14869if ${ax_cv_c_openmp+:} false; then : 14870 $as_echo_n "(cached) " >&6 14871else 14872 saveCFLAGS=$CFLAGS 14873ax_cv_c_openmp=unknown 14874# Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), 14875# -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none 14876ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none" 14877if test "x$OPENMP_CFLAGS" != x; then 14878 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags" 14879fi 14880for ax_openmp_flag in $ax_openmp_flags; do 14881 case $ax_openmp_flag in 14882 none) CFLAGS=$saveC ;; 14883 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;; 14884 esac 14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14886/* end confdefs.h. */ 14887#ifdef __cplusplus 14888extern "C" 14889#endif 14890void omp_set_num_threads(int); 14891int 14892main () 14893{ 14894const int N = 100000; 14895 int i, arr[N]; 14896 14897 omp_set_num_threads(2); 14898 14899 #pragma omp parallel for 14900 for (i = 0; i < N; i++) { 14901 arr[i] = i; 14902 } 14903 ; 14904 return 0; 14905} 14906_ACEOF 14907if ac_fn_c_try_link "$LINENO"; then : 14908 ax_cv_c_openmp=$ax_openmp_flag; break 14909fi 14910rm -f core conftest.err conftest.$ac_objext \ 14911 conftest$ac_exeext conftest.$ac_ext 14912done 14913CFLAGS=$saveCFLAGS 14914 14915fi 14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5 14917$as_echo "$ax_cv_c_openmp" >&6; } 14918if test "x$ax_cv_c_openmp" = "xunknown"; then 14919 : 14920else 14921 if test "x$ax_cv_c_openmp" != "xnone"; then 14922 OPENMP_CFLAGS=$ax_cv_c_openmp 14923 fi 14924 14925$as_echo "#define HAVE_OPENMP 1" >>confdefs.h 14926 14927fi 14928 14929 14930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gd image formats" >&5 14931$as_echo_n "checking whether to support gd image formats... " >&6; } 14932# Check whether --enable-gd-formats was given. 14933if test "${enable_gd_formats+set}" = set; then : 14934 enableval=$enable_gd_formats; gd_enable_gd_formats=$enableval 14935else 14936 gd_enable_gd_formats=yes 14937fi 14938 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_enable_gd_formats" >&5 14940$as_echo "$gd_enable_gd_formats" >&6; } 14941if test "$gd_enable_gd_formats" = yes; then 14942 gd_ac_value=1 14943else 14944 gd_ac_value=0 14945fi 14946 14947cat >>confdefs.h <<_ACEOF 14948#define ENABLE_GD_FORMATS $gd_ac_value 14949_ACEOF 14950 14951 if test "$gd_enable_gd_formats" = yes; then 14952 ENABLE_GD_FORMATS_TRUE= 14953 ENABLE_GD_FORMATS_FALSE='#' 14954else 14955 ENABLE_GD_FORMATS_TRUE='#' 14956 ENABLE_GD_FORMATS_FALSE= 14957fi 14958 14959 14960 14961 14962 14963 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support zlib" >&5 14965$as_echo_n "checking whether to support zlib... " >&6; } 14966 14967# Check whether --with-zlib was given. 14968if test "${with_zlib+set}" = set; then : 14969 withval=$with_zlib; gd_with_lib=$withval 14970else 14971 gd_with_lib=auto 14972fi 14973 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 14975$as_echo "$gd_with_lib" >&6; } 14976 14977 gd_found_lib=no 14978 gd_require_pkg_name="" 14979 if test "$gd_with_lib" != "no"; then 14980 save_CPPFLAGS=$CPPFLAGS 14981 save_LDFLAGS=$LDFLAGS 14982 gd_lib_ldflags= 14983 gd_lib_cflags= 14984 case $gd_with_lib in 14985 yes|no|auto|"") ;; 14986 *) 14987 if test -d "$gd_with_lib/lib"; then 14988 gd_lib_ldflags="-L$gd_with_lib/lib" 14989 as_fn_append LDFLAGS " $gd_lib_ldflags" 14990 fi 14991 if test -d "$gd_with_lib/include"; then 14992 gd_lib_cflags="-I$gd_with_lib/include" 14993 as_fn_append CPPFLAGS " $gd_lib_cflags" 14994 fi 14995 ;; 14996 esac 14997 14998pkg_failed=no 14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBZ" >&5 15000$as_echo_n "checking for LIBZ... " >&6; } 15001 15002if test -n "$LIBZ_CFLAGS"; then 15003 pkg_cv_LIBZ_CFLAGS="$LIBZ_CFLAGS" 15004 elif test -n "$PKG_CONFIG"; then 15005 if test -n "$PKG_CONFIG" && \ 15006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 15007 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 15008 ac_status=$? 15009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15010 test $ac_status = 0; }; then 15011 pkg_cv_LIBZ_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 15012 test "x$?" != "x0" && pkg_failed=yes 15013else 15014 pkg_failed=yes 15015fi 15016 else 15017 pkg_failed=untried 15018fi 15019if test -n "$LIBZ_LIBS"; then 15020 pkg_cv_LIBZ_LIBS="$LIBZ_LIBS" 15021 elif test -n "$PKG_CONFIG"; then 15022 if test -n "$PKG_CONFIG" && \ 15023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 15024 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 15025 ac_status=$? 15026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15027 test $ac_status = 0; }; then 15028 pkg_cv_LIBZ_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 15029 test "x$?" != "x0" && pkg_failed=yes 15030else 15031 pkg_failed=yes 15032fi 15033 else 15034 pkg_failed=untried 15035fi 15036 15037 15038 15039if test $pkg_failed = yes; then 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15041$as_echo "no" >&6; } 15042 15043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15044 _pkg_short_errors_supported=yes 15045else 15046 _pkg_short_errors_supported=no 15047fi 15048 if test $_pkg_short_errors_supported = yes; then 15049 LIBZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 15050 else 15051 LIBZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 15052 fi 15053 # Put the nasty error message in config.log where it belongs 15054 echo "$LIBZ_PKG_ERRORS" >&5 15055 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 15057$as_echo_n "checking for deflate in -lz... " >&6; } 15058if ${ac_cv_lib_z_deflate+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060else 15061 ac_check_lib_save_LIBS=$LIBS 15062LIBS="-lz $LIBS" 15063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15064/* end confdefs.h. */ 15065 15066/* Override any GCC internal prototype to avoid an error. 15067 Use char because int might match the return type of a GCC 15068 builtin and then its argument prototype would still apply. */ 15069#ifdef __cplusplus 15070extern "C" 15071#endif 15072char deflate (); 15073int 15074main () 15075{ 15076return deflate (); 15077 ; 15078 return 0; 15079} 15080_ACEOF 15081if ac_fn_c_try_link "$LINENO"; then : 15082 ac_cv_lib_z_deflate=yes 15083else 15084 ac_cv_lib_z_deflate=no 15085fi 15086rm -f core conftest.err conftest.$ac_objext \ 15087 conftest$ac_exeext conftest.$ac_ext 15088LIBS=$ac_check_lib_save_LIBS 15089fi 15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 15091$as_echo "$ac_cv_lib_z_deflate" >&6; } 15092if test "x$ac_cv_lib_z_deflate" = xyes; then : 15093 as_fn_append LIBZ_LIBS " -lz" 15094 gd_found_lib=yes 15095 15096fi 15097 15098 15099elif test $pkg_failed = untried; then 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15101$as_echo "no" >&6; } 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 15103$as_echo_n "checking for deflate in -lz... " >&6; } 15104if ${ac_cv_lib_z_deflate+:} false; then : 15105 $as_echo_n "(cached) " >&6 15106else 15107 ac_check_lib_save_LIBS=$LIBS 15108LIBS="-lz $LIBS" 15109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15110/* end confdefs.h. */ 15111 15112/* Override any GCC internal prototype to avoid an error. 15113 Use char because int might match the return type of a GCC 15114 builtin and then its argument prototype would still apply. */ 15115#ifdef __cplusplus 15116extern "C" 15117#endif 15118char deflate (); 15119int 15120main () 15121{ 15122return deflate (); 15123 ; 15124 return 0; 15125} 15126_ACEOF 15127if ac_fn_c_try_link "$LINENO"; then : 15128 ac_cv_lib_z_deflate=yes 15129else 15130 ac_cv_lib_z_deflate=no 15131fi 15132rm -f core conftest.err conftest.$ac_objext \ 15133 conftest$ac_exeext conftest.$ac_ext 15134LIBS=$ac_check_lib_save_LIBS 15135fi 15136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 15137$as_echo "$ac_cv_lib_z_deflate" >&6; } 15138if test "x$ac_cv_lib_z_deflate" = xyes; then : 15139 as_fn_append LIBZ_LIBS " -lz" 15140 gd_found_lib=yes 15141 15142fi 15143 15144 15145else 15146 LIBZ_CFLAGS=$pkg_cv_LIBZ_CFLAGS 15147 LIBZ_LIBS=$pkg_cv_LIBZ_LIBS 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15149$as_echo "yes" >&6; } 15150 gd_found_lib=yes gd_require_pkg_name="zlib" 15151fi 15152 15153 CPPFLAGS=$save_CPPFLAGS 15154 LDFLAGS=$save_LDFLAGS 15155 15156 if test "$gd_found_lib" = "yes"; then 15157 15158$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 15159 15160 LIBZ_LIBS="$gd_lib_ldflags $LIBZ_LIBS" 15161 LIBZ_CFLAGS="$gd_lib_cflags $LIBZ_CFLAGS" 15162 as_fn_append LIBS " $LIBZ_LIBS" 15163 as_fn_append CPPFLAGS " $LIBZ_CFLAGS" 15164 if test -z "$gd_require_pkg_name"; then 15165 as_fn_append LIBS_PRIVATES " $LIBZ_LIBS" 15166 else 15167 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 15168 fi 15169 elif test "$gd_with_lib" = "yes"; then 15170 as_fn_error $? "zlib requested but not found" "$LINENO" 5 15171 else 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for zlib" >&5 15173$as_echo "$as_me: Disabling support for zlib" >&6;} 15174 fi 15175 fi 15176 if test "$gd_found_lib" = yes; then 15177 HAVE_LIBZ_TRUE= 15178 HAVE_LIBZ_FALSE='#' 15179else 15180 HAVE_LIBZ_TRUE='#' 15181 HAVE_LIBZ_FALSE= 15182fi 15183 15184 gd_with_LIBZ=$gd_found_lib 15185 15186 15187 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support png" >&5 15189$as_echo_n "checking whether to support png... " >&6; } 15190 15191# Check whether --with-png was given. 15192if test "${with_png+set}" = set; then : 15193 withval=$with_png; gd_with_lib=$withval 15194else 15195 gd_with_lib=auto 15196fi 15197 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 15199$as_echo "$gd_with_lib" >&6; } 15200 15201 gd_found_lib=no 15202 gd_require_pkg_name="" 15203 if test "$gd_with_lib" != "no"; then 15204 save_CPPFLAGS=$CPPFLAGS 15205 save_LDFLAGS=$LDFLAGS 15206 gd_lib_ldflags= 15207 gd_lib_cflags= 15208 case $gd_with_lib in 15209 yes|no|auto|"") ;; 15210 *) 15211 if test -d "$gd_with_lib/lib"; then 15212 gd_lib_ldflags="-L$gd_with_lib/lib" 15213 as_fn_append LDFLAGS " $gd_lib_ldflags" 15214 fi 15215 if test -d "$gd_with_lib/include"; then 15216 gd_lib_cflags="-I$gd_with_lib/include" 15217 as_fn_append CPPFLAGS " $gd_lib_cflags" 15218 fi 15219 ;; 15220 esac 15221 15222pkg_failed=no 15223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5 15224$as_echo_n "checking for LIBPNG... " >&6; } 15225 15226if test -n "$LIBPNG_CFLAGS"; then 15227 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS" 15228 elif test -n "$PKG_CONFIG"; then 15229 if test -n "$PKG_CONFIG" && \ 15230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 15231 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 15232 ac_status=$? 15233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15234 test $ac_status = 0; }; then 15235 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 15236 test "x$?" != "x0" && pkg_failed=yes 15237else 15238 pkg_failed=yes 15239fi 15240 else 15241 pkg_failed=untried 15242fi 15243if test -n "$LIBPNG_LIBS"; then 15244 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS" 15245 elif test -n "$PKG_CONFIG"; then 15246 if test -n "$PKG_CONFIG" && \ 15247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 15248 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 15249 ac_status=$? 15250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15251 test $ac_status = 0; }; then 15252 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 15253 test "x$?" != "x0" && pkg_failed=yes 15254else 15255 pkg_failed=yes 15256fi 15257 else 15258 pkg_failed=untried 15259fi 15260 15261 15262 15263if test $pkg_failed = yes; then 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15265$as_echo "no" >&6; } 15266 15267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15268 _pkg_short_errors_supported=yes 15269else 15270 _pkg_short_errors_supported=no 15271fi 15272 if test $_pkg_short_errors_supported = yes; then 15273 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1` 15274 else 15275 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1` 15276 fi 15277 # Put the nasty error message in config.log where it belongs 15278 echo "$LIBPNG_PKG_ERRORS" >&5 15279 15280 15281 LIBPNG_CONFIG=$gd_with_lib/bin/libpng-config 15282 if test -e "$LIBPNG_CONFIG"; then 15283 LIBPNG_CFLAGS=`$LIBPNG_CONFIG --cflags` 15284 LIBPNG_LIBS=`$LIBPNG_CONFIG --ldflags` 15285 gd_found_lib=yes 15286 fi 15287 15288elif test $pkg_failed = untried; then 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15290$as_echo "no" >&6; } 15291 15292 LIBPNG_CONFIG=$gd_with_lib/bin/libpng-config 15293 if test -e "$LIBPNG_CONFIG"; then 15294 LIBPNG_CFLAGS=`$LIBPNG_CONFIG --cflags` 15295 LIBPNG_LIBS=`$LIBPNG_CONFIG --ldflags` 15296 gd_found_lib=yes 15297 fi 15298 15299else 15300 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS 15301 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15303$as_echo "yes" >&6; } 15304 gd_found_lib=yes gd_require_pkg_name="libpng" 15305fi 15306 15307 CPPFLAGS=$save_CPPFLAGS 15308 LDFLAGS=$save_LDFLAGS 15309 15310 if test "$gd_found_lib" = "yes"; then 15311 15312$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h 15313 15314 LIBPNG_LIBS="$gd_lib_ldflags $LIBPNG_LIBS" 15315 LIBPNG_CFLAGS="$gd_lib_cflags $LIBPNG_CFLAGS" 15316 as_fn_append LIBS " $LIBPNG_LIBS" 15317 as_fn_append CPPFLAGS " $LIBPNG_CFLAGS" 15318 if test -z "$gd_require_pkg_name"; then 15319 as_fn_append LIBS_PRIVATES " $LIBPNG_LIBS" 15320 else 15321 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 15322 fi 15323 elif test "$gd_with_lib" = "yes"; then 15324 as_fn_error $? "png requested but not found" "$LINENO" 5 15325 else 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for png" >&5 15327$as_echo "$as_me: Disabling support for png" >&6;} 15328 fi 15329 fi 15330 if test "$gd_found_lib" = yes; then 15331 HAVE_LIBPNG_TRUE= 15332 HAVE_LIBPNG_FALSE='#' 15333else 15334 HAVE_LIBPNG_TRUE='#' 15335 HAVE_LIBPNG_FALSE= 15336fi 15337 15338 gd_with_LIBPNG=$gd_found_lib 15339 15340 15341 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support freetype" >&5 15343$as_echo_n "checking whether to support freetype... " >&6; } 15344 15345# Check whether --with-freetype was given. 15346if test "${with_freetype+set}" = set; then : 15347 withval=$with_freetype; gd_with_lib=$withval 15348else 15349 gd_with_lib=auto 15350fi 15351 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 15353$as_echo "$gd_with_lib" >&6; } 15354 15355 gd_found_lib=no 15356 gd_require_pkg_name="" 15357 if test "$gd_with_lib" != "no"; then 15358 save_CPPFLAGS=$CPPFLAGS 15359 save_LDFLAGS=$LDFLAGS 15360 gd_lib_ldflags= 15361 gd_lib_cflags= 15362 case $gd_with_lib in 15363 yes|no|auto|"") ;; 15364 *) 15365 if test -d "$gd_with_lib/lib"; then 15366 gd_lib_ldflags="-L$gd_with_lib/lib" 15367 as_fn_append LDFLAGS " $gd_lib_ldflags" 15368 fi 15369 if test -d "$gd_with_lib/include"; then 15370 gd_lib_cflags="-I$gd_with_lib/include" 15371 as_fn_append CPPFLAGS " $gd_lib_cflags" 15372 fi 15373 ;; 15374 esac 15375 15376pkg_failed=no 15377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFREETYPE" >&5 15378$as_echo_n "checking for LIBFREETYPE... " >&6; } 15379 15380if test -n "$LIBFREETYPE_CFLAGS"; then 15381 pkg_cv_LIBFREETYPE_CFLAGS="$LIBFREETYPE_CFLAGS" 15382 elif test -n "$PKG_CONFIG"; then 15383 if test -n "$PKG_CONFIG" && \ 15384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8.3\""; } >&5 15385 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8.3") 2>&5 15386 ac_status=$? 15387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15388 test $ac_status = 0; }; then 15389 pkg_cv_LIBFREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.8.3" 2>/dev/null` 15390 test "x$?" != "x0" && pkg_failed=yes 15391else 15392 pkg_failed=yes 15393fi 15394 else 15395 pkg_failed=untried 15396fi 15397if test -n "$LIBFREETYPE_LIBS"; then 15398 pkg_cv_LIBFREETYPE_LIBS="$LIBFREETYPE_LIBS" 15399 elif test -n "$PKG_CONFIG"; then 15400 if test -n "$PKG_CONFIG" && \ 15401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8.3\""; } >&5 15402 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8.3") 2>&5 15403 ac_status=$? 15404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15405 test $ac_status = 0; }; then 15406 pkg_cv_LIBFREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.8.3" 2>/dev/null` 15407 test "x$?" != "x0" && pkg_failed=yes 15408else 15409 pkg_failed=yes 15410fi 15411 else 15412 pkg_failed=untried 15413fi 15414 15415 15416 15417if test $pkg_failed = yes; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15419$as_echo "no" >&6; } 15420 15421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15422 _pkg_short_errors_supported=yes 15423else 15424 _pkg_short_errors_supported=no 15425fi 15426 if test $_pkg_short_errors_supported = yes; then 15427 LIBFREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 9.8.3" 2>&1` 15428 else 15429 LIBFREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 9.8.3" 2>&1` 15430 fi 15431 # Put the nasty error message in config.log where it belongs 15432 echo "$LIBFREETYPE_PKG_ERRORS" >&5 15433 15434 15435 FREETYPE_CONFIG=$gd_with_lib/bin/freetype-config 15436 if test -e "$FREETYPE_CONFIG"; then 15437 LIBFREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags` 15438 LIBFREETYPE_LIBS=`$FREETYPE_CONFIG --libs` 15439 gd_found_lib=yes 15440 fi 15441 15442elif test $pkg_failed = untried; then 15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15444$as_echo "no" >&6; } 15445 15446 FREETYPE_CONFIG=$gd_with_lib/bin/freetype-config 15447 if test -e "$FREETYPE_CONFIG"; then 15448 LIBFREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags` 15449 LIBFREETYPE_LIBS=`$FREETYPE_CONFIG --libs` 15450 gd_found_lib=yes 15451 fi 15452 15453else 15454 LIBFREETYPE_CFLAGS=$pkg_cv_LIBFREETYPE_CFLAGS 15455 LIBFREETYPE_LIBS=$pkg_cv_LIBFREETYPE_LIBS 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15457$as_echo "yes" >&6; } 15458 gd_found_lib=yes gd_require_pkg_name="freetype2 >= 9.8.3" 15459fi 15460 15461 CPPFLAGS=$save_CPPFLAGS 15462 LDFLAGS=$save_LDFLAGS 15463 15464 if test "$gd_found_lib" = "yes"; then 15465 15466$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h 15467 15468 LIBFREETYPE_LIBS="$gd_lib_ldflags $LIBFREETYPE_LIBS" 15469 LIBFREETYPE_CFLAGS="$gd_lib_cflags $LIBFREETYPE_CFLAGS" 15470 as_fn_append LIBS " $LIBFREETYPE_LIBS" 15471 as_fn_append CPPFLAGS " $LIBFREETYPE_CFLAGS" 15472 if test -z "$gd_require_pkg_name"; then 15473 as_fn_append LIBS_PRIVATES " $LIBFREETYPE_LIBS" 15474 else 15475 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 15476 fi 15477 elif test "$gd_with_lib" = "yes"; then 15478 as_fn_error $? "freetype requested but not found" "$LINENO" 5 15479 else 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for freetype" >&5 15481$as_echo "$as_me: Disabling support for freetype" >&6;} 15482 fi 15483 fi 15484 if test "$gd_found_lib" = yes; then 15485 HAVE_LIBFREETYPE_TRUE= 15486 HAVE_LIBFREETYPE_FALSE='#' 15487else 15488 HAVE_LIBFREETYPE_TRUE='#' 15489 HAVE_LIBFREETYPE_FALSE= 15490fi 15491 15492 gd_with_LIBFREETYPE=$gd_found_lib 15493 15494 15495if test "$gd_with_LIBFREETYPE" = "yes"; then 15496 15497$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h 15498 15499fi 15500 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support raqm" >&5 15502$as_echo_n "checking whether to support raqm... " >&6; } 15503 15504# Check whether --with-raqm was given. 15505if test "${with_raqm+set}" = set; then : 15506 withval=$with_raqm; gd_with_lib=$withval 15507else 15508 gd_with_lib=auto 15509fi 15510 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 15512$as_echo "$gd_with_lib" >&6; } 15513 15514 gd_found_lib=no 15515 gd_require_pkg_name="" 15516 if test "$gd_with_lib" != "no"; then 15517 save_CPPFLAGS=$CPPFLAGS 15518 save_LDFLAGS=$LDFLAGS 15519 gd_lib_ldflags= 15520 gd_lib_cflags= 15521 case $gd_with_lib in 15522 yes|no|auto|"") ;; 15523 *) 15524 if test -d "$gd_with_lib/lib"; then 15525 gd_lib_ldflags="-L$gd_with_lib/lib" 15526 as_fn_append LDFLAGS " $gd_lib_ldflags" 15527 fi 15528 if test -d "$gd_with_lib/include"; then 15529 gd_lib_cflags="-I$gd_with_lib/include" 15530 as_fn_append CPPFLAGS " $gd_lib_cflags" 15531 fi 15532 ;; 15533 esac 15534 15535pkg_failed=no 15536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRAQM" >&5 15537$as_echo_n "checking for LIBRAQM... " >&6; } 15538 15539if test -n "$LIBRAQM_CFLAGS"; then 15540 pkg_cv_LIBRAQM_CFLAGS="$LIBRAQM_CFLAGS" 15541 elif test -n "$PKG_CONFIG"; then 15542 if test -n "$PKG_CONFIG" && \ 15543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5 15544 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5 15545 ac_status=$? 15546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15547 test $ac_status = 0; }; then 15548 pkg_cv_LIBRAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null` 15549 test "x$?" != "x0" && pkg_failed=yes 15550else 15551 pkg_failed=yes 15552fi 15553 else 15554 pkg_failed=untried 15555fi 15556if test -n "$LIBRAQM_LIBS"; then 15557 pkg_cv_LIBRAQM_LIBS="$LIBRAQM_LIBS" 15558 elif test -n "$PKG_CONFIG"; then 15559 if test -n "$PKG_CONFIG" && \ 15560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5 15561 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5 15562 ac_status=$? 15563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15564 test $ac_status = 0; }; then 15565 pkg_cv_LIBRAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null` 15566 test "x$?" != "x0" && pkg_failed=yes 15567else 15568 pkg_failed=yes 15569fi 15570 else 15571 pkg_failed=untried 15572fi 15573 15574 15575 15576if test $pkg_failed = yes; then 15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15578$as_echo "no" >&6; } 15579 15580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15581 _pkg_short_errors_supported=yes 15582else 15583 _pkg_short_errors_supported=no 15584fi 15585 if test $_pkg_short_errors_supported = yes; then 15586 LIBRAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1` 15587 else 15588 LIBRAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1` 15589 fi 15590 # Put the nasty error message in config.log where it belongs 15591 echo "$LIBRAQM_PKG_ERRORS" >&5 15592 15593 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm_create in -lraqm" >&5 15595$as_echo_n "checking for raqm_create in -lraqm... " >&6; } 15596if ${ac_cv_lib_raqm_raqm_create+:} false; then : 15597 $as_echo_n "(cached) " >&6 15598else 15599 ac_check_lib_save_LIBS=$LIBS 15600LIBS="-lraqm $LIBS" 15601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603 15604/* Override any GCC internal prototype to avoid an error. 15605 Use char because int might match the return type of a GCC 15606 builtin and then its argument prototype would still apply. */ 15607#ifdef __cplusplus 15608extern "C" 15609#endif 15610char raqm_create (); 15611int 15612main () 15613{ 15614return raqm_create (); 15615 ; 15616 return 0; 15617} 15618_ACEOF 15619if ac_fn_c_try_link "$LINENO"; then : 15620 ac_cv_lib_raqm_raqm_create=yes 15621else 15622 ac_cv_lib_raqm_raqm_create=no 15623fi 15624rm -f core conftest.err conftest.$ac_objext \ 15625 conftest$ac_exeext conftest.$ac_ext 15626LIBS=$ac_check_lib_save_LIBS 15627fi 15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raqm_raqm_create" >&5 15629$as_echo "$ac_cv_lib_raqm_raqm_create" >&6; } 15630if test "x$ac_cv_lib_raqm_raqm_create" = xyes; then : 15631 as_fn_append LIBRAQM_LIBS " -lraqm -lfreetype" 15632 gd_found_lib=yes 15633 15634fi 15635 15636 15637elif test $pkg_failed = untried; then 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15639$as_echo "no" >&6; } 15640 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm_create in -lraqm" >&5 15642$as_echo_n "checking for raqm_create in -lraqm... " >&6; } 15643if ${ac_cv_lib_raqm_raqm_create+:} false; then : 15644 $as_echo_n "(cached) " >&6 15645else 15646 ac_check_lib_save_LIBS=$LIBS 15647LIBS="-lraqm $LIBS" 15648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15649/* end confdefs.h. */ 15650 15651/* Override any GCC internal prototype to avoid an error. 15652 Use char because int might match the return type of a GCC 15653 builtin and then its argument prototype would still apply. */ 15654#ifdef __cplusplus 15655extern "C" 15656#endif 15657char raqm_create (); 15658int 15659main () 15660{ 15661return raqm_create (); 15662 ; 15663 return 0; 15664} 15665_ACEOF 15666if ac_fn_c_try_link "$LINENO"; then : 15667 ac_cv_lib_raqm_raqm_create=yes 15668else 15669 ac_cv_lib_raqm_raqm_create=no 15670fi 15671rm -f core conftest.err conftest.$ac_objext \ 15672 conftest$ac_exeext conftest.$ac_ext 15673LIBS=$ac_check_lib_save_LIBS 15674fi 15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raqm_raqm_create" >&5 15676$as_echo "$ac_cv_lib_raqm_raqm_create" >&6; } 15677if test "x$ac_cv_lib_raqm_raqm_create" = xyes; then : 15678 as_fn_append LIBRAQM_LIBS " -lraqm -lfreetype" 15679 gd_found_lib=yes 15680 15681fi 15682 15683 15684else 15685 LIBRAQM_CFLAGS=$pkg_cv_LIBRAQM_CFLAGS 15686 LIBRAQM_LIBS=$pkg_cv_LIBRAQM_LIBS 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15688$as_echo "yes" >&6; } 15689 gd_found_lib=yes gd_require_pkg_name="raqm" 15690fi 15691 15692 CPPFLAGS=$save_CPPFLAGS 15693 LDFLAGS=$save_LDFLAGS 15694 15695 if test "$gd_found_lib" = "yes"; then 15696 15697$as_echo "#define HAVE_LIBRAQM 1" >>confdefs.h 15698 15699 LIBRAQM_LIBS="$gd_lib_ldflags $LIBRAQM_LIBS" 15700 LIBRAQM_CFLAGS="$gd_lib_cflags $LIBRAQM_CFLAGS" 15701 as_fn_append LIBS " $LIBRAQM_LIBS" 15702 as_fn_append CPPFLAGS " $LIBRAQM_CFLAGS" 15703 if test -z "$gd_require_pkg_name"; then 15704 as_fn_append LIBS_PRIVATES " $LIBRAQM_LIBS" 15705 else 15706 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 15707 fi 15708 elif test "$gd_with_lib" = "yes"; then 15709 as_fn_error $? "raqm requested but not found" "$LINENO" 5 15710 else 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for raqm" >&5 15712$as_echo "$as_me: Disabling support for raqm" >&6;} 15713 fi 15714 fi 15715 if test "$gd_found_lib" = yes; then 15716 HAVE_LIBRAQM_TRUE= 15717 HAVE_LIBRAQM_FALSE='#' 15718else 15719 HAVE_LIBRAQM_TRUE='#' 15720 HAVE_LIBRAQM_FALSE= 15721fi 15722 15723 gd_with_LIBRAQM=$gd_found_lib 15724 15725 15726 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support fontconfig" >&5 15728$as_echo_n "checking whether to support fontconfig... " >&6; } 15729 15730# Check whether --with-fontconfig was given. 15731if test "${with_fontconfig+set}" = set; then : 15732 withval=$with_fontconfig; gd_with_lib=$withval 15733else 15734 gd_with_lib=auto 15735fi 15736 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 15738$as_echo "$gd_with_lib" >&6; } 15739 15740 gd_found_lib=no 15741 gd_require_pkg_name="" 15742 if test "$gd_with_lib" != "no"; then 15743 save_CPPFLAGS=$CPPFLAGS 15744 save_LDFLAGS=$LDFLAGS 15745 gd_lib_ldflags= 15746 gd_lib_cflags= 15747 case $gd_with_lib in 15748 yes|no|auto|"") ;; 15749 *) 15750 if test -d "$gd_with_lib/lib"; then 15751 gd_lib_ldflags="-L$gd_with_lib/lib" 15752 as_fn_append LDFLAGS " $gd_lib_ldflags" 15753 fi 15754 if test -d "$gd_with_lib/include"; then 15755 gd_lib_cflags="-I$gd_with_lib/include" 15756 as_fn_append CPPFLAGS " $gd_lib_cflags" 15757 fi 15758 ;; 15759 esac 15760 15761pkg_failed=no 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFONTCONFIG" >&5 15763$as_echo_n "checking for LIBFONTCONFIG... " >&6; } 15764 15765if test -n "$LIBFONTCONFIG_CFLAGS"; then 15766 pkg_cv_LIBFONTCONFIG_CFLAGS="$LIBFONTCONFIG_CFLAGS" 15767 elif test -n "$PKG_CONFIG"; then 15768 if test -n "$PKG_CONFIG" && \ 15769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5 15770 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5 15771 ac_status=$? 15772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15773 test $ac_status = 0; }; then 15774 pkg_cv_LIBFONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null` 15775 test "x$?" != "x0" && pkg_failed=yes 15776else 15777 pkg_failed=yes 15778fi 15779 else 15780 pkg_failed=untried 15781fi 15782if test -n "$LIBFONTCONFIG_LIBS"; then 15783 pkg_cv_LIBFONTCONFIG_LIBS="$LIBFONTCONFIG_LIBS" 15784 elif test -n "$PKG_CONFIG"; then 15785 if test -n "$PKG_CONFIG" && \ 15786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5 15787 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5 15788 ac_status=$? 15789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15790 test $ac_status = 0; }; then 15791 pkg_cv_LIBFONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null` 15792 test "x$?" != "x0" && pkg_failed=yes 15793else 15794 pkg_failed=yes 15795fi 15796 else 15797 pkg_failed=untried 15798fi 15799 15800 15801 15802if test $pkg_failed = yes; then 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15804$as_echo "no" >&6; } 15805 15806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15807 _pkg_short_errors_supported=yes 15808else 15809 _pkg_short_errors_supported=no 15810fi 15811 if test $_pkg_short_errors_supported = yes; then 15812 LIBFONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1` 15813 else 15814 LIBFONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1` 15815 fi 15816 # Put the nasty error message in config.log where it belongs 15817 echo "$LIBFONTCONFIG_PKG_ERRORS" >&5 15818 15819 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5 15821$as_echo_n "checking for FcInit in -lfontconfig... " >&6; } 15822if ${ac_cv_lib_fontconfig_FcInit+:} false; then : 15823 $as_echo_n "(cached) " >&6 15824else 15825 ac_check_lib_save_LIBS=$LIBS 15826LIBS="-lfontconfig $LIBS" 15827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829 15830/* Override any GCC internal prototype to avoid an error. 15831 Use char because int might match the return type of a GCC 15832 builtin and then its argument prototype would still apply. */ 15833#ifdef __cplusplus 15834extern "C" 15835#endif 15836char FcInit (); 15837int 15838main () 15839{ 15840return FcInit (); 15841 ; 15842 return 0; 15843} 15844_ACEOF 15845if ac_fn_c_try_link "$LINENO"; then : 15846 ac_cv_lib_fontconfig_FcInit=yes 15847else 15848 ac_cv_lib_fontconfig_FcInit=no 15849fi 15850rm -f core conftest.err conftest.$ac_objext \ 15851 conftest$ac_exeext conftest.$ac_ext 15852LIBS=$ac_check_lib_save_LIBS 15853fi 15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5 15855$as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; } 15856if test "x$ac_cv_lib_fontconfig_FcInit" = xyes; then : 15857 as_fn_append LIBFONTCONFIG_LIBS " -lfontconfig" 15858 gd_found_lib=yes 15859 15860fi 15861 15862 15863elif test $pkg_failed = untried; then 15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15865$as_echo "no" >&6; } 15866 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcInit in -lfontconfig" >&5 15868$as_echo_n "checking for FcInit in -lfontconfig... " >&6; } 15869if ${ac_cv_lib_fontconfig_FcInit+:} false; then : 15870 $as_echo_n "(cached) " >&6 15871else 15872 ac_check_lib_save_LIBS=$LIBS 15873LIBS="-lfontconfig $LIBS" 15874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15875/* end confdefs.h. */ 15876 15877/* Override any GCC internal prototype to avoid an error. 15878 Use char because int might match the return type of a GCC 15879 builtin and then its argument prototype would still apply. */ 15880#ifdef __cplusplus 15881extern "C" 15882#endif 15883char FcInit (); 15884int 15885main () 15886{ 15887return FcInit (); 15888 ; 15889 return 0; 15890} 15891_ACEOF 15892if ac_fn_c_try_link "$LINENO"; then : 15893 ac_cv_lib_fontconfig_FcInit=yes 15894else 15895 ac_cv_lib_fontconfig_FcInit=no 15896fi 15897rm -f core conftest.err conftest.$ac_objext \ 15898 conftest$ac_exeext conftest.$ac_ext 15899LIBS=$ac_check_lib_save_LIBS 15900fi 15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcInit" >&5 15902$as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; } 15903if test "x$ac_cv_lib_fontconfig_FcInit" = xyes; then : 15904 as_fn_append LIBFONTCONFIG_LIBS " -lfontconfig" 15905 gd_found_lib=yes 15906 15907fi 15908 15909 15910else 15911 LIBFONTCONFIG_CFLAGS=$pkg_cv_LIBFONTCONFIG_CFLAGS 15912 LIBFONTCONFIG_LIBS=$pkg_cv_LIBFONTCONFIG_LIBS 15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15914$as_echo "yes" >&6; } 15915 gd_found_lib=yes gd_require_pkg_name="fontconfig" 15916fi 15917 15918 CPPFLAGS=$save_CPPFLAGS 15919 LDFLAGS=$save_LDFLAGS 15920 15921 if test "$gd_found_lib" = "yes"; then 15922 15923$as_echo "#define HAVE_LIBFONTCONFIG 1" >>confdefs.h 15924 15925 LIBFONTCONFIG_LIBS="$gd_lib_ldflags $LIBFONTCONFIG_LIBS" 15926 LIBFONTCONFIG_CFLAGS="$gd_lib_cflags $LIBFONTCONFIG_CFLAGS" 15927 as_fn_append LIBS " $LIBFONTCONFIG_LIBS" 15928 as_fn_append CPPFLAGS " $LIBFONTCONFIG_CFLAGS" 15929 if test -z "$gd_require_pkg_name"; then 15930 as_fn_append LIBS_PRIVATES " $LIBFONTCONFIG_LIBS" 15931 else 15932 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 15933 fi 15934 elif test "$gd_with_lib" = "yes"; then 15935 as_fn_error $? "fontconfig requested but not found" "$LINENO" 5 15936 else 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for fontconfig" >&5 15938$as_echo "$as_me: Disabling support for fontconfig" >&6;} 15939 fi 15940 fi 15941 if test "$gd_found_lib" = yes; then 15942 HAVE_LIBFONTCONFIG_TRUE= 15943 HAVE_LIBFONTCONFIG_FALSE='#' 15944else 15945 HAVE_LIBFONTCONFIG_TRUE='#' 15946 HAVE_LIBFONTCONFIG_FALSE= 15947fi 15948 15949 gd_with_LIBFONTCONFIG=$gd_found_lib 15950 15951 15952 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support jpeg" >&5 15954$as_echo_n "checking whether to support jpeg... " >&6; } 15955 15956# Check whether --with-jpeg was given. 15957if test "${with_jpeg+set}" = set; then : 15958 withval=$with_jpeg; gd_with_lib=$withval 15959else 15960 gd_with_lib=auto 15961fi 15962 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 15964$as_echo "$gd_with_lib" >&6; } 15965 15966 gd_found_lib=no 15967 gd_require_pkg_name="" 15968 if test "$gd_with_lib" != "no"; then 15969 save_CPPFLAGS=$CPPFLAGS 15970 save_LDFLAGS=$LDFLAGS 15971 gd_lib_ldflags= 15972 gd_lib_cflags= 15973 case $gd_with_lib in 15974 yes|no|auto|"") ;; 15975 *) 15976 if test -d "$gd_with_lib/lib"; then 15977 gd_lib_ldflags="-L$gd_with_lib/lib" 15978 as_fn_append LDFLAGS " $gd_lib_ldflags" 15979 fi 15980 if test -d "$gd_with_lib/include"; then 15981 gd_lib_cflags="-I$gd_with_lib/include" 15982 as_fn_append CPPFLAGS " $gd_lib_cflags" 15983 fi 15984 ;; 15985 esac 15986 15987pkg_failed=no 15988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJPEG" >&5 15989$as_echo_n "checking for LIBJPEG... " >&6; } 15990 15991if test -n "$LIBJPEG_CFLAGS"; then 15992 pkg_cv_LIBJPEG_CFLAGS="$LIBJPEG_CFLAGS" 15993 elif test -n "$PKG_CONFIG"; then 15994 if test -n "$PKG_CONFIG" && \ 15995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 15996 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 15997 ac_status=$? 15998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15999 test $ac_status = 0; }; then 16000 pkg_cv_LIBJPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg" 2>/dev/null` 16001 test "x$?" != "x0" && pkg_failed=yes 16002else 16003 pkg_failed=yes 16004fi 16005 else 16006 pkg_failed=untried 16007fi 16008if test -n "$LIBJPEG_LIBS"; then 16009 pkg_cv_LIBJPEG_LIBS="$LIBJPEG_LIBS" 16010 elif test -n "$PKG_CONFIG"; then 16011 if test -n "$PKG_CONFIG" && \ 16012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 16013 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 16014 ac_status=$? 16015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16016 test $ac_status = 0; }; then 16017 pkg_cv_LIBJPEG_LIBS=`$PKG_CONFIG --libs "libjpeg" 2>/dev/null` 16018 test "x$?" != "x0" && pkg_failed=yes 16019else 16020 pkg_failed=yes 16021fi 16022 else 16023 pkg_failed=untried 16024fi 16025 16026 16027 16028if test $pkg_failed = yes; then 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16030$as_echo "no" >&6; } 16031 16032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16033 _pkg_short_errors_supported=yes 16034else 16035 _pkg_short_errors_supported=no 16036fi 16037 if test $_pkg_short_errors_supported = yes; then 16038 LIBJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg" 2>&1` 16039 else 16040 LIBJPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg" 2>&1` 16041 fi 16042 # Put the nasty error message in config.log where it belongs 16043 echo "$LIBJPEG_PKG_ERRORS" >&5 16044 16045 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5 16047$as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; } 16048if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then : 16049 $as_echo_n "(cached) " >&6 16050else 16051 ac_check_lib_save_LIBS=$LIBS 16052LIBS="-ljpeg $LIBS" 16053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16054/* end confdefs.h. */ 16055 16056/* Override any GCC internal prototype to avoid an error. 16057 Use char because int might match the return type of a GCC 16058 builtin and then its argument prototype would still apply. */ 16059#ifdef __cplusplus 16060extern "C" 16061#endif 16062char jpeg_set_defaults (); 16063int 16064main () 16065{ 16066return jpeg_set_defaults (); 16067 ; 16068 return 0; 16069} 16070_ACEOF 16071if ac_fn_c_try_link "$LINENO"; then : 16072 ac_cv_lib_jpeg_jpeg_set_defaults=yes 16073else 16074 ac_cv_lib_jpeg_jpeg_set_defaults=no 16075fi 16076rm -f core conftest.err conftest.$ac_objext \ 16077 conftest$ac_exeext conftest.$ac_ext 16078LIBS=$ac_check_lib_save_LIBS 16079fi 16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5 16081$as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; } 16082if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then : 16083 as_fn_append LIBJPEG_LIBS " -ljpeg" 16084 gd_found_lib=yes 16085 16086fi 16087 16088 16089elif test $pkg_failed = untried; then 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16091$as_echo "no" >&6; } 16092 16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5 16094$as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; } 16095if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then : 16096 $as_echo_n "(cached) " >&6 16097else 16098 ac_check_lib_save_LIBS=$LIBS 16099LIBS="-ljpeg $LIBS" 16100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101/* end confdefs.h. */ 16102 16103/* Override any GCC internal prototype to avoid an error. 16104 Use char because int might match the return type of a GCC 16105 builtin and then its argument prototype would still apply. */ 16106#ifdef __cplusplus 16107extern "C" 16108#endif 16109char jpeg_set_defaults (); 16110int 16111main () 16112{ 16113return jpeg_set_defaults (); 16114 ; 16115 return 0; 16116} 16117_ACEOF 16118if ac_fn_c_try_link "$LINENO"; then : 16119 ac_cv_lib_jpeg_jpeg_set_defaults=yes 16120else 16121 ac_cv_lib_jpeg_jpeg_set_defaults=no 16122fi 16123rm -f core conftest.err conftest.$ac_objext \ 16124 conftest$ac_exeext conftest.$ac_ext 16125LIBS=$ac_check_lib_save_LIBS 16126fi 16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5 16128$as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; } 16129if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then : 16130 as_fn_append LIBJPEG_LIBS " -ljpeg" 16131 gd_found_lib=yes 16132 16133fi 16134 16135 16136else 16137 LIBJPEG_CFLAGS=$pkg_cv_LIBJPEG_CFLAGS 16138 LIBJPEG_LIBS=$pkg_cv_LIBJPEG_LIBS 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16140$as_echo "yes" >&6; } 16141 gd_found_lib=yes gd_require_pkg_name="libjpeg" 16142fi 16143 16144 CPPFLAGS=$save_CPPFLAGS 16145 LDFLAGS=$save_LDFLAGS 16146 16147 if test "$gd_found_lib" = "yes"; then 16148 16149$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h 16150 16151 LIBJPEG_LIBS="$gd_lib_ldflags $LIBJPEG_LIBS" 16152 LIBJPEG_CFLAGS="$gd_lib_cflags $LIBJPEG_CFLAGS" 16153 as_fn_append LIBS " $LIBJPEG_LIBS" 16154 as_fn_append CPPFLAGS " $LIBJPEG_CFLAGS" 16155 if test -z "$gd_require_pkg_name"; then 16156 as_fn_append LIBS_PRIVATES " $LIBJPEG_LIBS" 16157 else 16158 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 16159 fi 16160 elif test "$gd_with_lib" = "yes"; then 16161 as_fn_error $? "jpeg requested but not found" "$LINENO" 5 16162 else 16163 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for jpeg" >&5 16164$as_echo "$as_me: Disabling support for jpeg" >&6;} 16165 fi 16166 fi 16167 if test "$gd_found_lib" = yes; then 16168 HAVE_LIBJPEG_TRUE= 16169 HAVE_LIBJPEG_FALSE='#' 16170else 16171 HAVE_LIBJPEG_TRUE='#' 16172 HAVE_LIBJPEG_FALSE= 16173fi 16174 16175 gd_with_LIBJPEG=$gd_found_lib 16176 16177 16178 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support liq" >&5 16180$as_echo_n "checking whether to support liq... " >&6; } 16181 16182# Check whether --with-liq was given. 16183if test "${with_liq+set}" = set; then : 16184 withval=$with_liq; gd_with_lib=$withval 16185else 16186 gd_with_lib=auto 16187fi 16188 16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 16190$as_echo "$gd_with_lib" >&6; } 16191 16192 gd_found_lib=no 16193 gd_require_pkg_name="" 16194 if test "$gd_with_lib" != "no"; then 16195 save_CPPFLAGS=$CPPFLAGS 16196 save_LDFLAGS=$LDFLAGS 16197 gd_lib_ldflags= 16198 gd_lib_cflags= 16199 case $gd_with_lib in 16200 yes|no|auto|"") ;; 16201 *) 16202 if test -d "$gd_with_lib/lib"; then 16203 gd_lib_ldflags="-L$gd_with_lib/lib" 16204 as_fn_append LDFLAGS " $gd_lib_ldflags" 16205 fi 16206 if test -d "$gd_with_lib/include"; then 16207 gd_lib_cflags="-I$gd_with_lib/include" 16208 as_fn_append CPPFLAGS " $gd_lib_cflags" 16209 fi 16210 ;; 16211 esac 16212 16213 ac_fn_c_check_header_mongrel "$LINENO" "libimagequant.h" "ac_cv_header_libimagequant_h" "$ac_includes_default" 16214if test "x$ac_cv_header_libimagequant_h" = xyes; then : 16215 16216 save_CFLAGS=$CFLAGS 16217 CFLAGS="$CFLAGS $OPENMP_CFLAGS" 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liq_attr_create_with_allocator in -limagequant" >&5 16219$as_echo_n "checking for liq_attr_create_with_allocator in -limagequant... " >&6; } 16220if ${ac_cv_lib_imagequant_liq_attr_create_with_allocator+:} false; then : 16221 $as_echo_n "(cached) " >&6 16222else 16223 ac_check_lib_save_LIBS=$LIBS 16224LIBS="-limagequant $LIBS" 16225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16226/* end confdefs.h. */ 16227 16228/* Override any GCC internal prototype to avoid an error. 16229 Use char because int might match the return type of a GCC 16230 builtin and then its argument prototype would still apply. */ 16231#ifdef __cplusplus 16232extern "C" 16233#endif 16234char liq_attr_create_with_allocator (); 16235int 16236main () 16237{ 16238return liq_attr_create_with_allocator (); 16239 ; 16240 return 0; 16241} 16242_ACEOF 16243if ac_fn_c_try_link "$LINENO"; then : 16244 ac_cv_lib_imagequant_liq_attr_create_with_allocator=yes 16245else 16246 ac_cv_lib_imagequant_liq_attr_create_with_allocator=no 16247fi 16248rm -f core conftest.err conftest.$ac_objext \ 16249 conftest$ac_exeext conftest.$ac_ext 16250LIBS=$ac_check_lib_save_LIBS 16251fi 16252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagequant_liq_attr_create_with_allocator" >&5 16253$as_echo "$ac_cv_lib_imagequant_liq_attr_create_with_allocator" >&6; } 16254if test "x$ac_cv_lib_imagequant_liq_attr_create_with_allocator" = xyes; then : 16255 as_fn_append LIBIMAGEQUANT_LIBS " -limagequant $OPENMP_CFLAGS" 16256 gd_found_lib=yes 16257 16258fi 16259 16260 CFLAGS=$save_CFLAGS 16261 16262fi 16263 16264 16265 16266 CPPFLAGS=$save_CPPFLAGS 16267 LDFLAGS=$save_LDFLAGS 16268 16269 if test "$gd_found_lib" = "yes"; then 16270 16271$as_echo "#define HAVE_LIBIMAGEQUANT 1" >>confdefs.h 16272 16273 LIBIMAGEQUANT_LIBS="$gd_lib_ldflags $LIBIMAGEQUANT_LIBS" 16274 LIBIMAGEQUANT_CFLAGS="$gd_lib_cflags $LIBIMAGEQUANT_CFLAGS" 16275 as_fn_append LIBS " $LIBIMAGEQUANT_LIBS" 16276 as_fn_append CPPFLAGS " $LIBIMAGEQUANT_CFLAGS" 16277 if test -z "$gd_require_pkg_name"; then 16278 as_fn_append LIBS_PRIVATES " $LIBIMAGEQUANT_LIBS" 16279 else 16280 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 16281 fi 16282 elif test "$gd_with_lib" = "yes"; then 16283 as_fn_error $? "liq requested but not found" "$LINENO" 5 16284 else 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for liq" >&5 16286$as_echo "$as_me: Disabling support for liq" >&6;} 16287 fi 16288 fi 16289 if test "$gd_found_lib" = yes; then 16290 HAVE_LIBIMAGEQUANT_TRUE= 16291 HAVE_LIBIMAGEQUANT_FALSE='#' 16292else 16293 HAVE_LIBIMAGEQUANT_TRUE='#' 16294 HAVE_LIBIMAGEQUANT_FALSE= 16295fi 16296 16297 gd_with_LIBIMAGEQUANT=$gd_found_lib 16298 16299 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support xpm" >&5 16301$as_echo_n "checking whether to support xpm... " >&6; } 16302 16303# Check whether --with-xpm was given. 16304if test "${with_xpm+set}" = set; then : 16305 withval=$with_xpm; gd_with_lib=$withval 16306else 16307 gd_with_lib=auto 16308fi 16309 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 16311$as_echo "$gd_with_lib" >&6; } 16312 16313 gd_found_lib=no 16314 gd_require_pkg_name="" 16315 if test "$gd_with_lib" != "no"; then 16316 save_CPPFLAGS=$CPPFLAGS 16317 save_LDFLAGS=$LDFLAGS 16318 gd_lib_ldflags= 16319 gd_lib_cflags= 16320 case $gd_with_lib in 16321 yes|no|auto|"") ;; 16322 *) 16323 if test -d "$gd_with_lib/lib"; then 16324 gd_lib_ldflags="-L$gd_with_lib/lib" 16325 as_fn_append LDFLAGS " $gd_lib_ldflags" 16326 fi 16327 if test -d "$gd_with_lib/include"; then 16328 gd_lib_cflags="-I$gd_with_lib/include" 16329 as_fn_append CPPFLAGS " $gd_lib_cflags" 16330 fi 16331 ;; 16332 esac 16333 16334pkg_failed=no 16335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXPM" >&5 16336$as_echo_n "checking for LIBXPM... " >&6; } 16337 16338if test -n "$LIBXPM_CFLAGS"; then 16339 pkg_cv_LIBXPM_CFLAGS="$LIBXPM_CFLAGS" 16340 elif test -n "$PKG_CONFIG"; then 16341 if test -n "$PKG_CONFIG" && \ 16342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 16343 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 16344 ac_status=$? 16345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16346 test $ac_status = 0; }; then 16347 pkg_cv_LIBXPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` 16348 test "x$?" != "x0" && pkg_failed=yes 16349else 16350 pkg_failed=yes 16351fi 16352 else 16353 pkg_failed=untried 16354fi 16355if test -n "$LIBXPM_LIBS"; then 16356 pkg_cv_LIBXPM_LIBS="$LIBXPM_LIBS" 16357 elif test -n "$PKG_CONFIG"; then 16358 if test -n "$PKG_CONFIG" && \ 16359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 16360 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 16361 ac_status=$? 16362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16363 test $ac_status = 0; }; then 16364 pkg_cv_LIBXPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` 16365 test "x$?" != "x0" && pkg_failed=yes 16366else 16367 pkg_failed=yes 16368fi 16369 else 16370 pkg_failed=untried 16371fi 16372 16373 16374 16375if test $pkg_failed = yes; then 16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16377$as_echo "no" >&6; } 16378 16379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16380 _pkg_short_errors_supported=yes 16381else 16382 _pkg_short_errors_supported=no 16383fi 16384 if test $_pkg_short_errors_supported = yes; then 16385 LIBXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1` 16386 else 16387 LIBXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1` 16388 fi 16389 # Put the nasty error message in config.log where it belongs 16390 echo "$LIBXPM_PKG_ERRORS" >&5 16391 16392 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5 16394$as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; } 16395if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then : 16396 $as_echo_n "(cached) " >&6 16397else 16398 ac_check_lib_save_LIBS=$LIBS 16399LIBS="-lXpm $LIBS" 16400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402 16403/* Override any GCC internal prototype to avoid an error. 16404 Use char because int might match the return type of a GCC 16405 builtin and then its argument prototype would still apply. */ 16406#ifdef __cplusplus 16407extern "C" 16408#endif 16409char XpmReadFileToXpmImage (); 16410int 16411main () 16412{ 16413return XpmReadFileToXpmImage (); 16414 ; 16415 return 0; 16416} 16417_ACEOF 16418if ac_fn_c_try_link "$LINENO"; then : 16419 ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes 16420else 16421 ac_cv_lib_Xpm_XpmReadFileToXpmImage=no 16422fi 16423rm -f core conftest.err conftest.$ac_objext \ 16424 conftest$ac_exeext conftest.$ac_ext 16425LIBS=$ac_check_lib_save_LIBS 16426fi 16427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5 16428$as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; } 16429if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then : 16430 as_fn_append LIBXPM_LIBS " -lXpm" 16431 gd_found_lib=yes 16432 16433fi 16434 16435 16436elif test $pkg_failed = untried; then 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16438$as_echo "no" >&6; } 16439 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5 16441$as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; } 16442if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then : 16443 $as_echo_n "(cached) " >&6 16444else 16445 ac_check_lib_save_LIBS=$LIBS 16446LIBS="-lXpm $LIBS" 16447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449 16450/* Override any GCC internal prototype to avoid an error. 16451 Use char because int might match the return type of a GCC 16452 builtin and then its argument prototype would still apply. */ 16453#ifdef __cplusplus 16454extern "C" 16455#endif 16456char XpmReadFileToXpmImage (); 16457int 16458main () 16459{ 16460return XpmReadFileToXpmImage (); 16461 ; 16462 return 0; 16463} 16464_ACEOF 16465if ac_fn_c_try_link "$LINENO"; then : 16466 ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes 16467else 16468 ac_cv_lib_Xpm_XpmReadFileToXpmImage=no 16469fi 16470rm -f core conftest.err conftest.$ac_objext \ 16471 conftest$ac_exeext conftest.$ac_ext 16472LIBS=$ac_check_lib_save_LIBS 16473fi 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5 16475$as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; } 16476if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then : 16477 as_fn_append LIBXPM_LIBS " -lXpm" 16478 gd_found_lib=yes 16479 16480fi 16481 16482 16483else 16484 LIBXPM_CFLAGS=$pkg_cv_LIBXPM_CFLAGS 16485 LIBXPM_LIBS=$pkg_cv_LIBXPM_LIBS 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16487$as_echo "yes" >&6; } 16488 gd_found_lib=yes gd_require_pkg_name="xpm" 16489fi 16490 16491 CPPFLAGS=$save_CPPFLAGS 16492 LDFLAGS=$save_LDFLAGS 16493 16494 if test "$gd_found_lib" = "yes"; then 16495 16496$as_echo "#define HAVE_LIBXPM 1" >>confdefs.h 16497 16498 LIBXPM_LIBS="$gd_lib_ldflags $LIBXPM_LIBS" 16499 LIBXPM_CFLAGS="$gd_lib_cflags $LIBXPM_CFLAGS" 16500 as_fn_append LIBS " $LIBXPM_LIBS" 16501 as_fn_append CPPFLAGS " $LIBXPM_CFLAGS" 16502 if test -z "$gd_require_pkg_name"; then 16503 as_fn_append LIBS_PRIVATES " $LIBXPM_LIBS" 16504 else 16505 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 16506 fi 16507 elif test "$gd_with_lib" = "yes"; then 16508 as_fn_error $? "xpm requested but not found" "$LINENO" 5 16509 else 16510 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for xpm" >&5 16511$as_echo "$as_me: Disabling support for xpm" >&6;} 16512 fi 16513 fi 16514 if test "$gd_found_lib" = yes; then 16515 HAVE_LIBXPM_TRUE= 16516 HAVE_LIBXPM_FALSE='#' 16517else 16518 HAVE_LIBXPM_TRUE='#' 16519 HAVE_LIBXPM_FALSE= 16520fi 16521 16522 gd_with_LIBXPM=$gd_found_lib 16523 16524 16525 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tiff" >&5 16527$as_echo_n "checking whether to support tiff... " >&6; } 16528 16529# Check whether --with-tiff was given. 16530if test "${with_tiff+set}" = set; then : 16531 withval=$with_tiff; gd_with_lib=$withval 16532else 16533 gd_with_lib=auto 16534fi 16535 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 16537$as_echo "$gd_with_lib" >&6; } 16538 16539 gd_found_lib=no 16540 gd_require_pkg_name="" 16541 if test "$gd_with_lib" != "no"; then 16542 save_CPPFLAGS=$CPPFLAGS 16543 save_LDFLAGS=$LDFLAGS 16544 gd_lib_ldflags= 16545 gd_lib_cflags= 16546 case $gd_with_lib in 16547 yes|no|auto|"") ;; 16548 *) 16549 if test -d "$gd_with_lib/lib"; then 16550 gd_lib_ldflags="-L$gd_with_lib/lib" 16551 as_fn_append LDFLAGS " $gd_lib_ldflags" 16552 fi 16553 if test -d "$gd_with_lib/include"; then 16554 gd_lib_cflags="-I$gd_with_lib/include" 16555 as_fn_append CPPFLAGS " $gd_lib_cflags" 16556 fi 16557 ;; 16558 esac 16559 16560pkg_failed=no 16561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTIFF" >&5 16562$as_echo_n "checking for LIBTIFF... " >&6; } 16563 16564if test -n "$LIBTIFF_CFLAGS"; then 16565 pkg_cv_LIBTIFF_CFLAGS="$LIBTIFF_CFLAGS" 16566 elif test -n "$PKG_CONFIG"; then 16567 if test -n "$PKG_CONFIG" && \ 16568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5 16569 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5 16570 ac_status=$? 16571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16572 test $ac_status = 0; }; then 16573 pkg_cv_LIBTIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4" 2>/dev/null` 16574 test "x$?" != "x0" && pkg_failed=yes 16575else 16576 pkg_failed=yes 16577fi 16578 else 16579 pkg_failed=untried 16580fi 16581if test -n "$LIBTIFF_LIBS"; then 16582 pkg_cv_LIBTIFF_LIBS="$LIBTIFF_LIBS" 16583 elif test -n "$PKG_CONFIG"; then 16584 if test -n "$PKG_CONFIG" && \ 16585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4\""; } >&5 16586 ($PKG_CONFIG --exists --print-errors "libtiff-4") 2>&5 16587 ac_status=$? 16588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16589 test $ac_status = 0; }; then 16590 pkg_cv_LIBTIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4" 2>/dev/null` 16591 test "x$?" != "x0" && pkg_failed=yes 16592else 16593 pkg_failed=yes 16594fi 16595 else 16596 pkg_failed=untried 16597fi 16598 16599 16600 16601if test $pkg_failed = yes; then 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16603$as_echo "no" >&6; } 16604 16605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16606 _pkg_short_errors_supported=yes 16607else 16608 _pkg_short_errors_supported=no 16609fi 16610 if test $_pkg_short_errors_supported = yes; then 16611 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4" 2>&1` 16612 else 16613 LIBTIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4" 2>&1` 16614 fi 16615 # Put the nasty error message in config.log where it belongs 16616 echo "$LIBTIFF_PKG_ERRORS" >&5 16617 16618 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 16620$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 16621if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 16622 $as_echo_n "(cached) " >&6 16623else 16624 ac_check_lib_save_LIBS=$LIBS 16625LIBS="-ltiff $LIBS" 16626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628 16629/* Override any GCC internal prototype to avoid an error. 16630 Use char because int might match the return type of a GCC 16631 builtin and then its argument prototype would still apply. */ 16632#ifdef __cplusplus 16633extern "C" 16634#endif 16635char TIFFClientOpen (); 16636int 16637main () 16638{ 16639return TIFFClientOpen (); 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644if ac_fn_c_try_link "$LINENO"; then : 16645 ac_cv_lib_tiff_TIFFClientOpen=yes 16646else 16647 ac_cv_lib_tiff_TIFFClientOpen=no 16648fi 16649rm -f core conftest.err conftest.$ac_objext \ 16650 conftest$ac_exeext conftest.$ac_ext 16651LIBS=$ac_check_lib_save_LIBS 16652fi 16653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 16654$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 16655if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 16656 as_fn_append LIBTIFF_LIBS " -ltiff" 16657 gd_found_lib=yes 16658 16659fi 16660 16661 16662elif test $pkg_failed = untried; then 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16664$as_echo "no" >&6; } 16665 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 16667$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 16668if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 16669 $as_echo_n "(cached) " >&6 16670else 16671 ac_check_lib_save_LIBS=$LIBS 16672LIBS="-ltiff $LIBS" 16673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16674/* end confdefs.h. */ 16675 16676/* Override any GCC internal prototype to avoid an error. 16677 Use char because int might match the return type of a GCC 16678 builtin and then its argument prototype would still apply. */ 16679#ifdef __cplusplus 16680extern "C" 16681#endif 16682char TIFFClientOpen (); 16683int 16684main () 16685{ 16686return TIFFClientOpen (); 16687 ; 16688 return 0; 16689} 16690_ACEOF 16691if ac_fn_c_try_link "$LINENO"; then : 16692 ac_cv_lib_tiff_TIFFClientOpen=yes 16693else 16694 ac_cv_lib_tiff_TIFFClientOpen=no 16695fi 16696rm -f core conftest.err conftest.$ac_objext \ 16697 conftest$ac_exeext conftest.$ac_ext 16698LIBS=$ac_check_lib_save_LIBS 16699fi 16700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 16701$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 16702if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 16703 as_fn_append LIBTIFF_LIBS " -ltiff" 16704 gd_found_lib=yes 16705 16706fi 16707 16708 16709else 16710 LIBTIFF_CFLAGS=$pkg_cv_LIBTIFF_CFLAGS 16711 LIBTIFF_LIBS=$pkg_cv_LIBTIFF_LIBS 16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16713$as_echo "yes" >&6; } 16714 gd_found_lib=yes gd_require_pkg_name="libtiff-4" 16715fi 16716 16717 CPPFLAGS=$save_CPPFLAGS 16718 LDFLAGS=$save_LDFLAGS 16719 16720 if test "$gd_found_lib" = "yes"; then 16721 16722$as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h 16723 16724 LIBTIFF_LIBS="$gd_lib_ldflags $LIBTIFF_LIBS" 16725 LIBTIFF_CFLAGS="$gd_lib_cflags $LIBTIFF_CFLAGS" 16726 as_fn_append LIBS " $LIBTIFF_LIBS" 16727 as_fn_append CPPFLAGS " $LIBTIFF_CFLAGS" 16728 if test -z "$gd_require_pkg_name"; then 16729 as_fn_append LIBS_PRIVATES " $LIBTIFF_LIBS" 16730 else 16731 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 16732 fi 16733 elif test "$gd_with_lib" = "yes"; then 16734 as_fn_error $? "tiff requested but not found" "$LINENO" 5 16735 else 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for tiff" >&5 16737$as_echo "$as_me: Disabling support for tiff" >&6;} 16738 fi 16739 fi 16740 if test "$gd_found_lib" = yes; then 16741 HAVE_LIBTIFF_TRUE= 16742 HAVE_LIBTIFF_FALSE='#' 16743else 16744 HAVE_LIBTIFF_TRUE='#' 16745 HAVE_LIBTIFF_FALSE= 16746fi 16747 16748 gd_with_LIBTIFF=$gd_found_lib 16749 16750 16751 16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support webp" >&5 16753$as_echo_n "checking whether to support webp... " >&6; } 16754 16755# Check whether --with-webp was given. 16756if test "${with_webp+set}" = set; then : 16757 withval=$with_webp; gd_with_lib=$withval 16758else 16759 gd_with_lib=auto 16760fi 16761 16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gd_with_lib" >&5 16763$as_echo "$gd_with_lib" >&6; } 16764 16765 gd_found_lib=no 16766 gd_require_pkg_name="" 16767 if test "$gd_with_lib" != "no"; then 16768 save_CPPFLAGS=$CPPFLAGS 16769 save_LDFLAGS=$LDFLAGS 16770 gd_lib_ldflags= 16771 gd_lib_cflags= 16772 case $gd_with_lib in 16773 yes|no|auto|"") ;; 16774 *) 16775 if test -d "$gd_with_lib/lib"; then 16776 gd_lib_ldflags="-L$gd_with_lib/lib" 16777 as_fn_append LDFLAGS " $gd_lib_ldflags" 16778 fi 16779 if test -d "$gd_with_lib/include"; then 16780 gd_lib_cflags="-I$gd_with_lib/include" 16781 as_fn_append CPPFLAGS " $gd_lib_cflags" 16782 fi 16783 ;; 16784 esac 16785 16786pkg_failed=no 16787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWEBP" >&5 16788$as_echo_n "checking for LIBWEBP... " >&6; } 16789 16790if test -n "$LIBWEBP_CFLAGS"; then 16791 pkg_cv_LIBWEBP_CFLAGS="$LIBWEBP_CFLAGS" 16792 elif test -n "$PKG_CONFIG"; then 16793 if test -n "$PKG_CONFIG" && \ 16794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 16795 ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 16796 ac_status=$? 16797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16798 test $ac_status = 0; }; then 16799 pkg_cv_LIBWEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null` 16800 test "x$?" != "x0" && pkg_failed=yes 16801else 16802 pkg_failed=yes 16803fi 16804 else 16805 pkg_failed=untried 16806fi 16807if test -n "$LIBWEBP_LIBS"; then 16808 pkg_cv_LIBWEBP_LIBS="$LIBWEBP_LIBS" 16809 elif test -n "$PKG_CONFIG"; then 16810 if test -n "$PKG_CONFIG" && \ 16811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 16812 ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 16813 ac_status=$? 16814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16815 test $ac_status = 0; }; then 16816 pkg_cv_LIBWEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null` 16817 test "x$?" != "x0" && pkg_failed=yes 16818else 16819 pkg_failed=yes 16820fi 16821 else 16822 pkg_failed=untried 16823fi 16824 16825 16826 16827if test $pkg_failed = yes; then 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16829$as_echo "no" >&6; } 16830 16831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16832 _pkg_short_errors_supported=yes 16833else 16834 _pkg_short_errors_supported=no 16835fi 16836 if test $_pkg_short_errors_supported = yes; then 16837 LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1` 16838 else 16839 LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1` 16840 fi 16841 # Put the nasty error message in config.log where it belongs 16842 echo "$LIBWEBP_PKG_ERRORS" >&5 16843 16844 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetInfo in -lwebp" >&5 16846$as_echo_n "checking for WebPGetInfo in -lwebp... " >&6; } 16847if ${ac_cv_lib_webp_WebPGetInfo+:} false; then : 16848 $as_echo_n "(cached) " >&6 16849else 16850 ac_check_lib_save_LIBS=$LIBS 16851LIBS="-lwebp $LIBS" 16852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16853/* end confdefs.h. */ 16854 16855/* Override any GCC internal prototype to avoid an error. 16856 Use char because int might match the return type of a GCC 16857 builtin and then its argument prototype would still apply. */ 16858#ifdef __cplusplus 16859extern "C" 16860#endif 16861char WebPGetInfo (); 16862int 16863main () 16864{ 16865return WebPGetInfo (); 16866 ; 16867 return 0; 16868} 16869_ACEOF 16870if ac_fn_c_try_link "$LINENO"; then : 16871 ac_cv_lib_webp_WebPGetInfo=yes 16872else 16873 ac_cv_lib_webp_WebPGetInfo=no 16874fi 16875rm -f core conftest.err conftest.$ac_objext \ 16876 conftest$ac_exeext conftest.$ac_ext 16877LIBS=$ac_check_lib_save_LIBS 16878fi 16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetInfo" >&5 16880$as_echo "$ac_cv_lib_webp_WebPGetInfo" >&6; } 16881if test "x$ac_cv_lib_webp_WebPGetInfo" = xyes; then : 16882 as_fn_append LIBWEBP_LIBS " -lwebp" 16883 gd_found_lib=yes 16884 16885fi 16886 16887 16888elif test $pkg_failed = untried; then 16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16890$as_echo "no" >&6; } 16891 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetInfo in -lwebp" >&5 16893$as_echo_n "checking for WebPGetInfo in -lwebp... " >&6; } 16894if ${ac_cv_lib_webp_WebPGetInfo+:} false; then : 16895 $as_echo_n "(cached) " >&6 16896else 16897 ac_check_lib_save_LIBS=$LIBS 16898LIBS="-lwebp $LIBS" 16899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16900/* end confdefs.h. */ 16901 16902/* Override any GCC internal prototype to avoid an error. 16903 Use char because int might match the return type of a GCC 16904 builtin and then its argument prototype would still apply. */ 16905#ifdef __cplusplus 16906extern "C" 16907#endif 16908char WebPGetInfo (); 16909int 16910main () 16911{ 16912return WebPGetInfo (); 16913 ; 16914 return 0; 16915} 16916_ACEOF 16917if ac_fn_c_try_link "$LINENO"; then : 16918 ac_cv_lib_webp_WebPGetInfo=yes 16919else 16920 ac_cv_lib_webp_WebPGetInfo=no 16921fi 16922rm -f core conftest.err conftest.$ac_objext \ 16923 conftest$ac_exeext conftest.$ac_ext 16924LIBS=$ac_check_lib_save_LIBS 16925fi 16926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetInfo" >&5 16927$as_echo "$ac_cv_lib_webp_WebPGetInfo" >&6; } 16928if test "x$ac_cv_lib_webp_WebPGetInfo" = xyes; then : 16929 as_fn_append LIBWEBP_LIBS " -lwebp" 16930 gd_found_lib=yes 16931 16932fi 16933 16934 16935else 16936 LIBWEBP_CFLAGS=$pkg_cv_LIBWEBP_CFLAGS 16937 LIBWEBP_LIBS=$pkg_cv_LIBWEBP_LIBS 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16939$as_echo "yes" >&6; } 16940 gd_found_lib=yes gd_require_pkg_name="libwebp" 16941fi 16942 16943 CPPFLAGS=$save_CPPFLAGS 16944 LDFLAGS=$save_LDFLAGS 16945 16946 if test "$gd_found_lib" = "yes"; then 16947 16948$as_echo "#define HAVE_LIBWEBP 1" >>confdefs.h 16949 16950 LIBWEBP_LIBS="$gd_lib_ldflags $LIBWEBP_LIBS" 16951 LIBWEBP_CFLAGS="$gd_lib_cflags $LIBWEBP_CFLAGS" 16952 as_fn_append LIBS " $LIBWEBP_LIBS" 16953 as_fn_append CPPFLAGS " $LIBWEBP_CFLAGS" 16954 if test -z "$gd_require_pkg_name"; then 16955 as_fn_append LIBS_PRIVATES " $LIBWEBP_LIBS" 16956 else 16957 as_fn_append PKG_REQUIRES_PRIVATES " $gd_require_pkg_name" 16958 fi 16959 elif test "$gd_with_lib" = "yes"; then 16960 as_fn_error $? "webp requested but not found" "$LINENO" 5 16961 else 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling support for webp" >&5 16963$as_echo "$as_me: Disabling support for webp" >&6;} 16964 fi 16965 fi 16966 if test "$gd_found_lib" = yes; then 16967 HAVE_LIBWEBP_TRUE= 16968 HAVE_LIBWEBP_FALSE='#' 16969else 16970 HAVE_LIBWEBP_TRUE='#' 16971 HAVE_LIBWEBP_FALSE= 16972fi 16973 16974 gd_with_LIBWEBP=$gd_found_lib 16975 16976 16977 16978 16979 16980 CFLAG_VISIBILITY= 16981 HAVE_VISIBILITY=0 16982 if test -n "$GCC"; then 16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 16984$as_echo_n "checking for simple visibility declarations... " >&6; } 16985 if ${gl_cv_cc_visibility+:} false; then : 16986 $as_echo_n "(cached) " >&6 16987else 16988 16989 gl_save_CFLAGS="$CFLAGS" 16990 CFLAGS="$CFLAGS -fvisibility=hidden" 16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16992/* end confdefs.h. */ 16993extern __attribute__((__visibility__("hidden"))) int hiddenvar; 16994 extern __attribute__((__visibility__("default"))) int exportedvar; 16995 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 16996 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 16997int 16998main () 16999{ 17000 17001 ; 17002 return 0; 17003} 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO"; then : 17006 gl_cv_cc_visibility=yes 17007else 17008 gl_cv_cc_visibility=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17011 CFLAGS="$gl_save_CFLAGS" 17012fi 17013 17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 17015$as_echo "$gl_cv_cc_visibility" >&6; } 17016 if test $gl_cv_cc_visibility = yes; then 17017 CFLAG_VISIBILITY="-fvisibility=hidden" 17018 HAVE_VISIBILITY=1 17019 fi 17020 fi 17021 17022 17023 17024cat >>confdefs.h <<_ACEOF 17025#define HAVE_VISIBILITY $HAVE_VISIBILITY 17026_ACEOF 17027 17028 17029CFLAGS="$CFLAGS $CFLAG_VISIBILITY" 17030 17031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5 17032$as_echo_n "checking whether we are building for a Win32 host... " >&6; } 17033if ${mingw_cv_win32_host+:} false; then : 17034 $as_echo_n "(cached) " >&6 17035else 17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037/* end confdefs.h. */ 17038 17039#ifdef _WIN32 17040 choke me 17041#endif 17042_ACEOF 17043if ac_fn_c_try_compile "$LINENO"; then : 17044 mingw_cv_win32_host=no 17045else 17046 mingw_cv_win32_host=yes 17047fi 17048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17049fi 17050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mingw_cv_win32_host" >&5 17051$as_echo "$mingw_cv_win32_host" >&6; } 17052 17053if test "$mingw_cv_win32_host" = yes; then 17054 17055$as_echo "#define BGDWIN32 /**/" >>confdefs.h 17056 17057fi 17058 17059ac_ext=c 17060ac_cpp='$CPP $CPPFLAGS' 17061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17063ac_compiler_gnu=$ac_cv_c_compiler_gnu 17064 17065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 17066$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 17067if ${ac_cv_cflags_warn_all+:} false; then : 17068 $as_echo_n "(cached) " >&6 17069else 17070 ac_cv_cflags_warn_all="no, unknown" 17071ac_save_CFLAGS="$CFLAGS" 17072for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 17073do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17075/* end confdefs.h. */ 17076 17077int 17078main () 17079{ 17080 17081 ; 17082 return 0; 17083} 17084_ACEOF 17085if ac_fn_c_try_compile "$LINENO"; then : 17086 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 17087fi 17088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17089done 17090CFLAGS="$ac_save_CFLAGS" 17091 17092fi 17093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 17094$as_echo "$ac_cv_cflags_warn_all" >&6; } 17095 17096 17097case ".$ac_cv_cflags_warn_all" in 17098 .ok|.ok,*) ;; 17099 .|.no|.no,*) ;; 17100 *) 17101if ${CFLAGS+:} false; then : 17102 17103 case " $CFLAGS " in #( 17104 *" $ac_cv_cflags_warn_all "*) : 17105 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 17106 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 17107 ac_status=$? 17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17109 test $ac_status = 0; } ;; #( 17110 *) : 17111 17112 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 17113 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 17114 (: CFLAGS="$CFLAGS") 2>&5 17115 ac_status=$? 17116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17117 test $ac_status = 0; } 17118 ;; 17119esac 17120 17121else 17122 17123 CFLAGS=$ac_cv_cflags_warn_all 17124 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 17125 (: CFLAGS="$CFLAGS") 2>&5 17126 ac_status=$? 17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17128 test $ac_status = 0; } 17129 17130fi 17131 ;; 17132esac 17133 17134ac_ext=c 17135ac_cpp='$CPP $CPPFLAGS' 17136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17138ac_compiler_gnu=$ac_cv_c_compiler_gnu 17139 17140 17141 17142# Check whether --enable-werror was given. 17143if test "${enable_werror+set}" = set; then : 17144 enableval=$enable_werror; 17145fi 17146 17147if test "$enable_werror" = "yes" || \ 17148 test "$GCC" = "yes" -a "$enable_werror" != "no" -a -d "$srcdir/.git"; then 17149 CFLAGS="-Werror $CFLAGS" 17150 CXXFLAGS="-Werror $CXXFLAGS" 17151fi 17152 17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 17154** Configuration summary for $PACKAGE $VERSION: 17155 17156 Support for gd/gd2 images: $gd_enable_gd_formats 17157 Support for Zlib: $gd_with_LIBZ 17158 Support for PNG library: $gd_with_LIBPNG 17159 Support for JPEG library: $gd_with_LIBJPEG 17160 Support for WebP library: $gd_with_LIBWEBP 17161 Support for TIFF library: $gd_with_LIBTIFF 17162 Support for Freetype 2.x library: $gd_with_LIBFREETYPE 17163 Support for Fontconfig library: $gd_with_LIBFONTCONFIG 17164 Support for Xpm library: $gd_with_LIBXPM 17165 Support for liq library: $gd_with_LIBIMAGEQUANT 17166 Support for complex text: $gd_with_LIBRAQM 17167 Support for pthreads: $ax_pthread_ok 17168" >&5 17169$as_echo " 17170** Configuration summary for $PACKAGE $VERSION: 17171 17172 Support for gd/gd2 images: $gd_enable_gd_formats 17173 Support for Zlib: $gd_with_LIBZ 17174 Support for PNG library: $gd_with_LIBPNG 17175 Support for JPEG library: $gd_with_LIBJPEG 17176 Support for WebP library: $gd_with_LIBWEBP 17177 Support for TIFF library: $gd_with_LIBTIFF 17178 Support for Freetype 2.x library: $gd_with_LIBFREETYPE 17179 Support for Fontconfig library: $gd_with_LIBFONTCONFIG 17180 Support for Xpm library: $gd_with_LIBXPM 17181 Support for liq library: $gd_with_LIBIMAGEQUANT 17182 Support for complex text: $gd_with_LIBRAQM 17183 Support for pthreads: $ax_pthread_ok 17184" >&6; } 17185 17186ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile config/Makefile config/gdlib.pc" 17187 17188 17189cat >confcache <<\_ACEOF 17190# This file is a shell script that caches the results of configure 17191# tests run on this system so they can be shared between configure 17192# scripts and configure runs, see configure's option --config-cache. 17193# It is not useful on other systems. If it contains results you don't 17194# want to keep, you may remove or edit it. 17195# 17196# config.status only pays attention to the cache file if you give it 17197# the --recheck option to rerun configure. 17198# 17199# `ac_cv_env_foo' variables (set or unset) will be overridden when 17200# loading this file, other *unset* `ac_cv_foo' will be assigned the 17201# following values. 17202 17203_ACEOF 17204 17205# The following way of writing the cache mishandles newlines in values, 17206# but we know of no workaround that is simple, portable, and efficient. 17207# So, we kill variables containing newlines. 17208# Ultrix sh set writes to stderr and can't be redirected directly, 17209# and sets the high bit in the cache file unless we assign to the vars. 17210( 17211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17212 eval ac_val=\$$ac_var 17213 case $ac_val in #( 17214 *${as_nl}*) 17215 case $ac_var in #( 17216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17217$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17218 esac 17219 case $ac_var in #( 17220 _ | IFS | as_nl) ;; #( 17221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17222 *) { eval $ac_var=; unset $ac_var;} ;; 17223 esac ;; 17224 esac 17225 done 17226 17227 (set) 2>&1 | 17228 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17229 *${as_nl}ac_space=\ *) 17230 # `set' does not quote correctly, so add quotes: double-quote 17231 # substitution turns \\\\ into \\, and sed turns \\ into \. 17232 sed -n \ 17233 "s/'/'\\\\''/g; 17234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17235 ;; #( 17236 *) 17237 # `set' quotes correctly as required by POSIX, so do not add quotes. 17238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17239 ;; 17240 esac | 17241 sort 17242) | 17243 sed ' 17244 /^ac_cv_env_/b end 17245 t clear 17246 :clear 17247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17248 t end 17249 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17250 :end' >>confcache 17251if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17252 if test -w "$cache_file"; then 17253 if test "x$cache_file" != "x/dev/null"; then 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17255$as_echo "$as_me: updating cache $cache_file" >&6;} 17256 if test ! -f "$cache_file" || test -h "$cache_file"; then 17257 cat confcache >"$cache_file" 17258 else 17259 case $cache_file in #( 17260 */* | ?:*) 17261 mv -f confcache "$cache_file"$$ && 17262 mv -f "$cache_file"$$ "$cache_file" ;; #( 17263 *) 17264 mv -f confcache "$cache_file" ;; 17265 esac 17266 fi 17267 fi 17268 else 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17270$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17271 fi 17272fi 17273rm -f confcache 17274 17275test "x$prefix" = xNONE && prefix=$ac_default_prefix 17276# Let make expand exec_prefix. 17277test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17278 17279DEFS=-DHAVE_CONFIG_H 17280 17281ac_libobjs= 17282ac_ltlibobjs= 17283U= 17284for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17285 # 1. Remove the extension, and $U if already installed. 17286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17287 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17289 # will be set to the directory where LIBOBJS objects are built. 17290 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17291 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17292done 17293LIBOBJS=$ac_libobjs 17294 17295LTLIBOBJS=$ac_ltlibobjs 17296 17297 17298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17299$as_echo_n "checking that generated files are newer than configure... " >&6; } 17300 if test -n "$am_sleep_pid"; then 17301 # Hide warnings about reused PIDs. 17302 wait $am_sleep_pid 2>/dev/null 17303 fi 17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17305$as_echo "done" >&6; } 17306 if test -n "$EXEEXT"; then 17307 am__EXEEXT_TRUE= 17308 am__EXEEXT_FALSE='#' 17309else 17310 am__EXEEXT_TRUE='#' 17311 am__EXEEXT_FALSE= 17312fi 17313 17314if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17315 as_fn_error $? "conditional \"AMDEP\" was never defined. 17316Usually this means the macro was only invoked conditionally." "$LINENO" 5 17317fi 17318if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17319 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17320Usually this means the macro was only invoked conditionally." "$LINENO" 5 17321fi 17322if test -z "${ENABLE_GD_FORMATS_TRUE}" && test -z "${ENABLE_GD_FORMATS_FALSE}"; then 17323 as_fn_error $? "conditional \"ENABLE_GD_FORMATS\" was never defined. 17324Usually this means the macro was only invoked conditionally." "$LINENO" 5 17325fi 17326if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then 17327 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined. 17328Usually this means the macro was only invoked conditionally." "$LINENO" 5 17329fi 17330if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then 17331 as_fn_error $? "conditional \"HAVE_LIBPNG\" was never defined. 17332Usually this means the macro was only invoked conditionally." "$LINENO" 5 17333fi 17334if test -z "${HAVE_LIBFREETYPE_TRUE}" && test -z "${HAVE_LIBFREETYPE_FALSE}"; then 17335 as_fn_error $? "conditional \"HAVE_LIBFREETYPE\" was never defined. 17336Usually this means the macro was only invoked conditionally." "$LINENO" 5 17337fi 17338if test -z "${HAVE_LIBRAQM_TRUE}" && test -z "${HAVE_LIBRAQM_FALSE}"; then 17339 as_fn_error $? "conditional \"HAVE_LIBRAQM\" was never defined. 17340Usually this means the macro was only invoked conditionally." "$LINENO" 5 17341fi 17342if test -z "${HAVE_LIBFONTCONFIG_TRUE}" && test -z "${HAVE_LIBFONTCONFIG_FALSE}"; then 17343 as_fn_error $? "conditional \"HAVE_LIBFONTCONFIG\" was never defined. 17344Usually this means the macro was only invoked conditionally." "$LINENO" 5 17345fi 17346if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then 17347 as_fn_error $? "conditional \"HAVE_LIBJPEG\" was never defined. 17348Usually this means the macro was only invoked conditionally." "$LINENO" 5 17349fi 17350if test -z "${HAVE_LIBIMAGEQUANT_TRUE}" && test -z "${HAVE_LIBIMAGEQUANT_FALSE}"; then 17351 as_fn_error $? "conditional \"HAVE_LIBIMAGEQUANT\" was never defined. 17352Usually this means the macro was only invoked conditionally." "$LINENO" 5 17353fi 17354if test -z "${HAVE_LIBXPM_TRUE}" && test -z "${HAVE_LIBXPM_FALSE}"; then 17355 as_fn_error $? "conditional \"HAVE_LIBXPM\" was never defined. 17356Usually this means the macro was only invoked conditionally." "$LINENO" 5 17357fi 17358if test -z "${HAVE_LIBTIFF_TRUE}" && test -z "${HAVE_LIBTIFF_FALSE}"; then 17359 as_fn_error $? "conditional \"HAVE_LIBTIFF\" was never defined. 17360Usually this means the macro was only invoked conditionally." "$LINENO" 5 17361fi 17362if test -z "${HAVE_LIBWEBP_TRUE}" && test -z "${HAVE_LIBWEBP_FALSE}"; then 17363 as_fn_error $? "conditional \"HAVE_LIBWEBP\" was never defined. 17364Usually this means the macro was only invoked conditionally." "$LINENO" 5 17365fi 17366 17367: "${CONFIG_STATUS=./config.status}" 17368ac_write_fail=0 17369ac_clean_files_save=$ac_clean_files 17370ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17372$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17373as_write_fail=0 17374cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17375#! $SHELL 17376# Generated by $as_me. 17377# Run this file to recreate the current configuration. 17378# Compiler output produced by configure, useful for debugging 17379# configure, is in config.log if it exists. 17380 17381debug=false 17382ac_cs_recheck=false 17383ac_cs_silent=false 17384 17385SHELL=\${CONFIG_SHELL-$SHELL} 17386export SHELL 17387_ASEOF 17388cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17389## -------------------- ## 17390## M4sh Initialization. ## 17391## -------------------- ## 17392 17393# Be more Bourne compatible 17394DUALCASE=1; export DUALCASE # for MKS sh 17395if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17396 emulate sh 17397 NULLCMD=: 17398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17399 # is contrary to our usage. Disable this feature. 17400 alias -g '${1+"$@"}'='"$@"' 17401 setopt NO_GLOB_SUBST 17402else 17403 case `(set -o) 2>/dev/null` in #( 17404 *posix*) : 17405 set -o posix ;; #( 17406 *) : 17407 ;; 17408esac 17409fi 17410 17411 17412as_nl=' 17413' 17414export as_nl 17415# Printing a long string crashes Solaris 7 /usr/bin/printf. 17416as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17417as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17418as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17419# Prefer a ksh shell builtin over an external printf program on Solaris, 17420# but without wasting forks for bash or zsh. 17421if test -z "$BASH_VERSION$ZSH_VERSION" \ 17422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17423 as_echo='print -r --' 17424 as_echo_n='print -rn --' 17425elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17426 as_echo='printf %s\n' 17427 as_echo_n='printf %s' 17428else 17429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17430 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17431 as_echo_n='/usr/ucb/echo -n' 17432 else 17433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17434 as_echo_n_body='eval 17435 arg=$1; 17436 case $arg in #( 17437 *"$as_nl"*) 17438 expr "X$arg" : "X\\(.*\\)$as_nl"; 17439 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17440 esac; 17441 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17442 ' 17443 export as_echo_n_body 17444 as_echo_n='sh -c $as_echo_n_body as_echo' 17445 fi 17446 export as_echo_body 17447 as_echo='sh -c $as_echo_body as_echo' 17448fi 17449 17450# The user is always right. 17451if test "${PATH_SEPARATOR+set}" != set; then 17452 PATH_SEPARATOR=: 17453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17455 PATH_SEPARATOR=';' 17456 } 17457fi 17458 17459 17460# IFS 17461# We need space, tab and new line, in precisely that order. Quoting is 17462# there to prevent editors from complaining about space-tab. 17463# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17464# splitting by setting IFS to empty value.) 17465IFS=" "" $as_nl" 17466 17467# Find who we are. Look in the path if we contain no directory separator. 17468as_myself= 17469case $0 in #(( 17470 *[\\/]* ) as_myself=$0 ;; 17471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17472for as_dir in $PATH 17473do 17474 IFS=$as_save_IFS 17475 test -z "$as_dir" && as_dir=. 17476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17477 done 17478IFS=$as_save_IFS 17479 17480 ;; 17481esac 17482# We did not find ourselves, most probably we were run as `sh COMMAND' 17483# in which case we are not to be found in the path. 17484if test "x$as_myself" = x; then 17485 as_myself=$0 17486fi 17487if test ! -f "$as_myself"; then 17488 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17489 exit 1 17490fi 17491 17492# Unset variables that we do not need and which cause bugs (e.g. in 17493# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17494# suppresses any "Segmentation fault" message there. '((' could 17495# trigger a bug in pdksh 5.2.14. 17496for as_var in BASH_ENV ENV MAIL MAILPATH 17497do eval test x\${$as_var+set} = xset \ 17498 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17499done 17500PS1='$ ' 17501PS2='> ' 17502PS4='+ ' 17503 17504# NLS nuisances. 17505LC_ALL=C 17506export LC_ALL 17507LANGUAGE=C 17508export LANGUAGE 17509 17510# CDPATH. 17511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17512 17513 17514# as_fn_error STATUS ERROR [LINENO LOG_FD] 17515# ---------------------------------------- 17516# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17517# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17518# script with STATUS, using 1 if that was 0. 17519as_fn_error () 17520{ 17521 as_status=$1; test $as_status -eq 0 && as_status=1 17522 if test "$4"; then 17523 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17524 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17525 fi 17526 $as_echo "$as_me: error: $2" >&2 17527 as_fn_exit $as_status 17528} # as_fn_error 17529 17530 17531# as_fn_set_status STATUS 17532# ----------------------- 17533# Set $? to STATUS, without forking. 17534as_fn_set_status () 17535{ 17536 return $1 17537} # as_fn_set_status 17538 17539# as_fn_exit STATUS 17540# ----------------- 17541# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17542as_fn_exit () 17543{ 17544 set +e 17545 as_fn_set_status $1 17546 exit $1 17547} # as_fn_exit 17548 17549# as_fn_unset VAR 17550# --------------- 17551# Portably unset VAR. 17552as_fn_unset () 17553{ 17554 { eval $1=; unset $1;} 17555} 17556as_unset=as_fn_unset 17557# as_fn_append VAR VALUE 17558# ---------------------- 17559# Append the text in VALUE to the end of the definition contained in VAR. Take 17560# advantage of any shell optimizations that allow amortized linear growth over 17561# repeated appends, instead of the typical quadratic growth present in naive 17562# implementations. 17563if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17564 eval 'as_fn_append () 17565 { 17566 eval $1+=\$2 17567 }' 17568else 17569 as_fn_append () 17570 { 17571 eval $1=\$$1\$2 17572 } 17573fi # as_fn_append 17574 17575# as_fn_arith ARG... 17576# ------------------ 17577# Perform arithmetic evaluation on the ARGs, and store the result in the 17578# global $as_val. Take advantage of shells that can avoid forks. The arguments 17579# must be portable across $(()) and expr. 17580if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17581 eval 'as_fn_arith () 17582 { 17583 as_val=$(( $* )) 17584 }' 17585else 17586 as_fn_arith () 17587 { 17588 as_val=`expr "$@" || test $? -eq 1` 17589 } 17590fi # as_fn_arith 17591 17592 17593if expr a : '\(a\)' >/dev/null 2>&1 && 17594 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17595 as_expr=expr 17596else 17597 as_expr=false 17598fi 17599 17600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17601 as_basename=basename 17602else 17603 as_basename=false 17604fi 17605 17606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17607 as_dirname=dirname 17608else 17609 as_dirname=false 17610fi 17611 17612as_me=`$as_basename -- "$0" || 17613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17614 X"$0" : 'X\(//\)$' \| \ 17615 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17616$as_echo X/"$0" | 17617 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17618 s//\1/ 17619 q 17620 } 17621 /^X\/\(\/\/\)$/{ 17622 s//\1/ 17623 q 17624 } 17625 /^X\/\(\/\).*/{ 17626 s//\1/ 17627 q 17628 } 17629 s/.*/./; q'` 17630 17631# Avoid depending upon Character Ranges. 17632as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17634as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17635as_cr_digits='0123456789' 17636as_cr_alnum=$as_cr_Letters$as_cr_digits 17637 17638ECHO_C= ECHO_N= ECHO_T= 17639case `echo -n x` in #((((( 17640-n*) 17641 case `echo 'xy\c'` in 17642 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17643 xy) ECHO_C='\c';; 17644 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17645 ECHO_T=' ';; 17646 esac;; 17647*) 17648 ECHO_N='-n';; 17649esac 17650 17651rm -f conf$$ conf$$.exe conf$$.file 17652if test -d conf$$.dir; then 17653 rm -f conf$$.dir/conf$$.file 17654else 17655 rm -f conf$$.dir 17656 mkdir conf$$.dir 2>/dev/null 17657fi 17658if (echo >conf$$.file) 2>/dev/null; then 17659 if ln -s conf$$.file conf$$ 2>/dev/null; then 17660 as_ln_s='ln -s' 17661 # ... but there are two gotchas: 17662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17664 # In both cases, we have to default to `cp -pR'. 17665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17666 as_ln_s='cp -pR' 17667 elif ln conf$$.file conf$$ 2>/dev/null; then 17668 as_ln_s=ln 17669 else 17670 as_ln_s='cp -pR' 17671 fi 17672else 17673 as_ln_s='cp -pR' 17674fi 17675rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17676rmdir conf$$.dir 2>/dev/null 17677 17678 17679# as_fn_mkdir_p 17680# ------------- 17681# Create "$as_dir" as a directory, including parents if necessary. 17682as_fn_mkdir_p () 17683{ 17684 17685 case $as_dir in #( 17686 -*) as_dir=./$as_dir;; 17687 esac 17688 test -d "$as_dir" || eval $as_mkdir_p || { 17689 as_dirs= 17690 while :; do 17691 case $as_dir in #( 17692 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17693 *) as_qdir=$as_dir;; 17694 esac 17695 as_dirs="'$as_qdir' $as_dirs" 17696 as_dir=`$as_dirname -- "$as_dir" || 17697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17698 X"$as_dir" : 'X\(//\)[^/]' \| \ 17699 X"$as_dir" : 'X\(//\)$' \| \ 17700 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17701$as_echo X"$as_dir" | 17702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17703 s//\1/ 17704 q 17705 } 17706 /^X\(\/\/\)[^/].*/{ 17707 s//\1/ 17708 q 17709 } 17710 /^X\(\/\/\)$/{ 17711 s//\1/ 17712 q 17713 } 17714 /^X\(\/\).*/{ 17715 s//\1/ 17716 q 17717 } 17718 s/.*/./; q'` 17719 test -d "$as_dir" && break 17720 done 17721 test -z "$as_dirs" || eval "mkdir $as_dirs" 17722 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17723 17724 17725} # as_fn_mkdir_p 17726if mkdir -p . 2>/dev/null; then 17727 as_mkdir_p='mkdir -p "$as_dir"' 17728else 17729 test -d ./-p && rmdir ./-p 17730 as_mkdir_p=false 17731fi 17732 17733 17734# as_fn_executable_p FILE 17735# ----------------------- 17736# Test if FILE is an executable regular file. 17737as_fn_executable_p () 17738{ 17739 test -f "$1" && test -x "$1" 17740} # as_fn_executable_p 17741as_test_x='test -x' 17742as_executable_p=as_fn_executable_p 17743 17744# Sed expression to map a string onto a valid CPP name. 17745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17746 17747# Sed expression to map a string onto a valid variable name. 17748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17749 17750 17751exec 6>&1 17752## ----------------------------------- ## 17753## Main body of $CONFIG_STATUS script. ## 17754## ----------------------------------- ## 17755_ASEOF 17756test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17757 17758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17759# Save the log message, to keep $0 and so on meaningful, and to 17760# report actual input values of CONFIG_FILES etc. instead of their 17761# values after options handling. 17762ac_log=" 17763This file was extended by GD $as_me 2.3.1, which was 17764generated by GNU Autoconf 2.69. Invocation command line was 17765 17766 CONFIG_FILES = $CONFIG_FILES 17767 CONFIG_HEADERS = $CONFIG_HEADERS 17768 CONFIG_LINKS = $CONFIG_LINKS 17769 CONFIG_COMMANDS = $CONFIG_COMMANDS 17770 $ $0 $@ 17771 17772on `(hostname || uname -n) 2>/dev/null | sed 1q` 17773" 17774 17775_ACEOF 17776 17777case $ac_config_files in *" 17778"*) set x $ac_config_files; shift; ac_config_files=$*;; 17779esac 17780 17781case $ac_config_headers in *" 17782"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17783esac 17784 17785 17786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17787# Files that config.status was made for. 17788config_files="$ac_config_files" 17789config_headers="$ac_config_headers" 17790config_commands="$ac_config_commands" 17791 17792_ACEOF 17793 17794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17795ac_cs_usage="\ 17796\`$as_me' instantiates files and other configuration actions 17797from templates according to the current configuration. Unless the files 17798and actions are specified as TAGs, all are instantiated by default. 17799 17800Usage: $0 [OPTION]... [TAG]... 17801 17802 -h, --help print this help, then exit 17803 -V, --version print version number and configuration settings, then exit 17804 --config print configuration, then exit 17805 -q, --quiet, --silent 17806 do not print progress messages 17807 -d, --debug don't remove temporary files 17808 --recheck update $as_me by reconfiguring in the same conditions 17809 --file=FILE[:TEMPLATE] 17810 instantiate the configuration file FILE 17811 --header=FILE[:TEMPLATE] 17812 instantiate the configuration header FILE 17813 17814Configuration files: 17815$config_files 17816 17817Configuration headers: 17818$config_headers 17819 17820Configuration commands: 17821$config_commands 17822 17823Report bugs to <https://github.com/libgd/libgd/issues>. 17824GD home page: <http://lib.gd>." 17825 17826_ACEOF 17827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17828ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17829ac_cs_version="\\ 17830GD config.status 2.3.1 17831configured by $0, generated by GNU Autoconf 2.69, 17832 with options \\"\$ac_cs_config\\" 17833 17834Copyright (C) 2012 Free Software Foundation, Inc. 17835This config.status script is free software; the Free Software Foundation 17836gives unlimited permission to copy, distribute and modify it." 17837 17838ac_pwd='$ac_pwd' 17839srcdir='$srcdir' 17840INSTALL='$INSTALL' 17841MKDIR_P='$MKDIR_P' 17842AWK='$AWK' 17843test -n "\$AWK" || AWK=awk 17844_ACEOF 17845 17846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17847# The default lists apply if the user does not specify any file. 17848ac_need_defaults=: 17849while test $# != 0 17850do 17851 case $1 in 17852 --*=?*) 17853 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17854 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17855 ac_shift=: 17856 ;; 17857 --*=) 17858 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17859 ac_optarg= 17860 ac_shift=: 17861 ;; 17862 *) 17863 ac_option=$1 17864 ac_optarg=$2 17865 ac_shift=shift 17866 ;; 17867 esac 17868 17869 case $ac_option in 17870 # Handling of the options. 17871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17872 ac_cs_recheck=: ;; 17873 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17874 $as_echo "$ac_cs_version"; exit ;; 17875 --config | --confi | --conf | --con | --co | --c ) 17876 $as_echo "$ac_cs_config"; exit ;; 17877 --debug | --debu | --deb | --de | --d | -d ) 17878 debug=: ;; 17879 --file | --fil | --fi | --f ) 17880 $ac_shift 17881 case $ac_optarg in 17882 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17883 '') as_fn_error $? "missing file argument" ;; 17884 esac 17885 as_fn_append CONFIG_FILES " '$ac_optarg'" 17886 ac_need_defaults=false;; 17887 --header | --heade | --head | --hea ) 17888 $ac_shift 17889 case $ac_optarg in 17890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17891 esac 17892 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17893 ac_need_defaults=false;; 17894 --he | --h) 17895 # Conflict between --help and --header 17896 as_fn_error $? "ambiguous option: \`$1' 17897Try \`$0 --help' for more information.";; 17898 --help | --hel | -h ) 17899 $as_echo "$ac_cs_usage"; exit ;; 17900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17901 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17902 ac_cs_silent=: ;; 17903 17904 # This is an error. 17905 -*) as_fn_error $? "unrecognized option: \`$1' 17906Try \`$0 --help' for more information." ;; 17907 17908 *) as_fn_append ac_config_targets " $1" 17909 ac_need_defaults=false ;; 17910 17911 esac 17912 shift 17913done 17914 17915ac_configure_extra_args= 17916 17917if $ac_cs_silent; then 17918 exec 6>/dev/null 17919 ac_configure_extra_args="$ac_configure_extra_args --silent" 17920fi 17921 17922_ACEOF 17923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17924if \$ac_cs_recheck; then 17925 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17926 shift 17927 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17928 CONFIG_SHELL='$SHELL' 17929 export CONFIG_SHELL 17930 exec "\$@" 17931fi 17932 17933_ACEOF 17934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17935exec 5>>config.log 17936{ 17937 echo 17938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17939## Running $as_me. ## 17940_ASBOX 17941 $as_echo "$ac_log" 17942} >&5 17943 17944_ACEOF 17945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17946# 17947# INIT-COMMANDS 17948# 17949AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17950 17951 17952# The HP-UX ksh and POSIX shell print the target directory to stdout 17953# if CDPATH is set. 17954(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17955 17956sed_quote_subst='$sed_quote_subst' 17957double_quote_subst='$double_quote_subst' 17958delay_variable_subst='$delay_variable_subst' 17959macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17960macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17961enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17962enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17963pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17964enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17965shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17966SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17967ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17968PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17969host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17970host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17971host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17972build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17973build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17974build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17975SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17976Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17977GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17978EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17979FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17980LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17981NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17982LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17983max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17984ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17985exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17986lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17987lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17988lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17989lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17990lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17991reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17992reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17993OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17994deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17995file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17996file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17997want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17998DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17999sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18000AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18001AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18002archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18003STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18004RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18005old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18006old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18007old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18008lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18009CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18010CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18011compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18012GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18013lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18014lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18015lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18016lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18017lt_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"`' 18018lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18019nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18020lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18021lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18022objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18023MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18024lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18025lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18026lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18027lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18028lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18029need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18030MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18031DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18032NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18033LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18034OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18035OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18036libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18037shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18038extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18039archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18040enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18041export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18042whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18043compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18044old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18045old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18046archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18047archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18048module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18049module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18050with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18051allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18052no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18053hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18054hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18055hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18056hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18057hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18058hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18059hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18060inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18061link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18062always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18063export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18064exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18065include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18066prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18067postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18068file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18069variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18070need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18071need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18072version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18073runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18074shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18075shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18076libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18077library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18078soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18079install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18080postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18081postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18082finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18083finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18084hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18085sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18086configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18087configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18088hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18089enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18090enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18091enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18092old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18093striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18094 18095LTCC='$LTCC' 18096LTCFLAGS='$LTCFLAGS' 18097compiler='$compiler_DEFAULT' 18098 18099# A function that is used when there is no print builtin or printf. 18100func_fallback_echo () 18101{ 18102 eval 'cat <<_LTECHO_EOF 18103\$1 18104_LTECHO_EOF' 18105} 18106 18107# Quote evaled strings. 18108for var in SHELL \ 18109ECHO \ 18110PATH_SEPARATOR \ 18111SED \ 18112GREP \ 18113EGREP \ 18114FGREP \ 18115LD \ 18116NM \ 18117LN_S \ 18118lt_SP2NL \ 18119lt_NL2SP \ 18120reload_flag \ 18121OBJDUMP \ 18122deplibs_check_method \ 18123file_magic_cmd \ 18124file_magic_glob \ 18125want_nocaseglob \ 18126DLLTOOL \ 18127sharedlib_from_linklib_cmd \ 18128AR \ 18129AR_FLAGS \ 18130archiver_list_spec \ 18131STRIP \ 18132RANLIB \ 18133CC \ 18134CFLAGS \ 18135compiler \ 18136lt_cv_sys_global_symbol_pipe \ 18137lt_cv_sys_global_symbol_to_cdecl \ 18138lt_cv_sys_global_symbol_to_import \ 18139lt_cv_sys_global_symbol_to_c_name_address \ 18140lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18141lt_cv_nm_interface \ 18142nm_file_list_spec \ 18143lt_cv_truncate_bin \ 18144lt_prog_compiler_no_builtin_flag \ 18145lt_prog_compiler_pic \ 18146lt_prog_compiler_wl \ 18147lt_prog_compiler_static \ 18148lt_cv_prog_compiler_c_o \ 18149need_locks \ 18150MANIFEST_TOOL \ 18151DSYMUTIL \ 18152NMEDIT \ 18153LIPO \ 18154OTOOL \ 18155OTOOL64 \ 18156shrext_cmds \ 18157export_dynamic_flag_spec \ 18158whole_archive_flag_spec \ 18159compiler_needs_object \ 18160with_gnu_ld \ 18161allow_undefined_flag \ 18162no_undefined_flag \ 18163hardcode_libdir_flag_spec \ 18164hardcode_libdir_separator \ 18165exclude_expsyms \ 18166include_expsyms \ 18167file_list_spec \ 18168variables_saved_for_relink \ 18169libname_spec \ 18170library_names_spec \ 18171soname_spec \ 18172install_override_mode \ 18173finish_eval \ 18174old_striplib \ 18175striplib; do 18176 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18177 *[\\\\\\\`\\"\\\$]*) 18178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18179 ;; 18180 *) 18181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18182 ;; 18183 esac 18184done 18185 18186# Double-quote double-evaled strings. 18187for var in reload_cmds \ 18188old_postinstall_cmds \ 18189old_postuninstall_cmds \ 18190old_archive_cmds \ 18191extract_expsyms_cmds \ 18192old_archive_from_new_cmds \ 18193old_archive_from_expsyms_cmds \ 18194archive_cmds \ 18195archive_expsym_cmds \ 18196module_cmds \ 18197module_expsym_cmds \ 18198export_symbols_cmds \ 18199prelink_cmds \ 18200postlink_cmds \ 18201postinstall_cmds \ 18202postuninstall_cmds \ 18203finish_cmds \ 18204sys_lib_search_path_spec \ 18205configure_time_dlsearch_path \ 18206configure_time_lt_sys_library_path; do 18207 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18208 *[\\\\\\\`\\"\\\$]*) 18209 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18210 ;; 18211 *) 18212 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18213 ;; 18214 esac 18215done 18216 18217ac_aux_dir='$ac_aux_dir' 18218 18219# See if we are running on zsh, and set the options that allow our 18220# commands through without removal of \ escapes INIT. 18221if test -n "\${ZSH_VERSION+set}"; then 18222 setopt NO_GLOB_SUBST 18223fi 18224 18225 18226 PACKAGE='$PACKAGE' 18227 VERSION='$VERSION' 18228 RM='$RM' 18229 ofile='$ofile' 18230 18231 18232 18233 18234_ACEOF 18235 18236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18237 18238# Handling of arguments. 18239for ac_config_target in $ac_config_targets 18240do 18241 case $ac_config_target in 18242 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.hin" ;; 18243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18244 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18246 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18247 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18248 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 18249 "config/gdlib.pc") CONFIG_FILES="$CONFIG_FILES config/gdlib.pc" ;; 18250 18251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18252 esac 18253done 18254 18255 18256# If the user did not use the arguments to specify the items to instantiate, 18257# then the envvar interface is used. Set only those that are not. 18258# We use the long form for the default assignment because of an extremely 18259# bizarre bug on SunOS 4.1.3. 18260if $ac_need_defaults; then 18261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18264fi 18265 18266# Have a temporary directory for convenience. Make it in the build tree 18267# simply because there is no reason against having it here, and in addition, 18268# creating and moving files from /tmp can sometimes cause problems. 18269# Hook for its removal unless debugging. 18270# Note that there is a small window in which the directory will not be cleaned: 18271# after its creation but before its name has been assigned to `$tmp'. 18272$debug || 18273{ 18274 tmp= ac_tmp= 18275 trap 'exit_status=$? 18276 : "${ac_tmp:=$tmp}" 18277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18278' 0 18279 trap 'as_fn_exit 1' 1 2 13 15 18280} 18281# Create a (secure) tmp directory for tmp files. 18282 18283{ 18284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18285 test -d "$tmp" 18286} || 18287{ 18288 tmp=./conf$$-$RANDOM 18289 (umask 077 && mkdir "$tmp") 18290} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18291ac_tmp=$tmp 18292 18293# Set up the scripts for CONFIG_FILES section. 18294# No need to generate them if there are no CONFIG_FILES. 18295# This happens for instance with `./config.status config.h'. 18296if test -n "$CONFIG_FILES"; then 18297 18298 18299ac_cr=`echo X | tr X '\015'` 18300# On cygwin, bash can eat \r inside `` if the user requested igncr. 18301# But we know of no other shell where ac_cr would be empty at this 18302# point, so we can use a bashism as a fallback. 18303if test "x$ac_cr" = x; then 18304 eval ac_cr=\$\'\\r\' 18305fi 18306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18308 ac_cs_awk_cr='\\r' 18309else 18310 ac_cs_awk_cr=$ac_cr 18311fi 18312 18313echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18314_ACEOF 18315 18316 18317{ 18318 echo "cat >conf$$subs.awk <<_ACEOF" && 18319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18320 echo "_ACEOF" 18321} >conf$$subs.sh || 18322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18323ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18324ac_delim='%!_!# ' 18325for ac_last_try in false false false false false :; do 18326 . ./conf$$subs.sh || 18327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18328 18329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18330 if test $ac_delim_n = $ac_delim_num; then 18331 break 18332 elif $ac_last_try; then 18333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18334 else 18335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18336 fi 18337done 18338rm -f conf$$subs.sh 18339 18340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18341cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18342_ACEOF 18343sed -n ' 18344h 18345s/^/S["/; s/!.*/"]=/ 18346p 18347g 18348s/^[^!]*!// 18349:repl 18350t repl 18351s/'"$ac_delim"'$// 18352t delim 18353:nl 18354h 18355s/\(.\{148\}\)..*/\1/ 18356t more1 18357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18358p 18359n 18360b repl 18361:more1 18362s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18363p 18364g 18365s/.\{148\}// 18366t nl 18367:delim 18368h 18369s/\(.\{148\}\)..*/\1/ 18370t more2 18371s/["\\]/\\&/g; s/^/"/; s/$/"/ 18372p 18373b 18374:more2 18375s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18376p 18377g 18378s/.\{148\}// 18379t delim 18380' <conf$$subs.awk | sed ' 18381/^[^""]/{ 18382 N 18383 s/\n// 18384} 18385' >>$CONFIG_STATUS || ac_write_fail=1 18386rm -f conf$$subs.awk 18387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18388_ACAWK 18389cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18390 for (key in S) S_is_set[key] = 1 18391 FS = "" 18392 18393} 18394{ 18395 line = $ 0 18396 nfields = split(line, field, "@") 18397 substed = 0 18398 len = length(field[1]) 18399 for (i = 2; i < nfields; i++) { 18400 key = field[i] 18401 keylen = length(key) 18402 if (S_is_set[key]) { 18403 value = S[key] 18404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18405 len += length(value) + length(field[++i]) 18406 substed = 1 18407 } else 18408 len += 1 + keylen 18409 } 18410 18411 print line 18412} 18413 18414_ACAWK 18415_ACEOF 18416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18419else 18420 cat 18421fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18423_ACEOF 18424 18425# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18426# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18427# trailing colons and then remove the whole line if VPATH becomes empty 18428# (actually we leave an empty line to preserve line numbers). 18429if test "x$srcdir" = x.; then 18430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18431h 18432s/// 18433s/^/:/ 18434s/[ ]*$/:/ 18435s/:\$(srcdir):/:/g 18436s/:\${srcdir}:/:/g 18437s/:@srcdir@:/:/g 18438s/^:*// 18439s/:*$// 18440x 18441s/\(=[ ]*\).*/\1/ 18442G 18443s/\n// 18444s/^[^=]*=[ ]*$// 18445}' 18446fi 18447 18448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18449fi # test -n "$CONFIG_FILES" 18450 18451# Set up the scripts for CONFIG_HEADERS section. 18452# No need to generate them if there are no CONFIG_HEADERS. 18453# This happens for instance with `./config.status Makefile'. 18454if test -n "$CONFIG_HEADERS"; then 18455cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18456BEGIN { 18457_ACEOF 18458 18459# Transform confdefs.h into an awk script `defines.awk', embedded as 18460# here-document in config.status, that substitutes the proper values into 18461# config.h.in to produce config.h. 18462 18463# Create a delimiter string that does not exist in confdefs.h, to ease 18464# handling of long lines. 18465ac_delim='%!_!# ' 18466for ac_last_try in false false :; do 18467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18468 if test -z "$ac_tt"; then 18469 break 18470 elif $ac_last_try; then 18471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18472 else 18473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18474 fi 18475done 18476 18477# For the awk script, D is an array of macro values keyed by name, 18478# likewise P contains macro parameters if any. Preserve backslash 18479# newline sequences. 18480 18481ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18482sed -n ' 18483s/.\{148\}/&'"$ac_delim"'/g 18484t rset 18485:rset 18486s/^[ ]*#[ ]*define[ ][ ]*/ / 18487t def 18488d 18489:def 18490s/\\$// 18491t bsnl 18492s/["\\]/\\&/g 18493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18494D["\1"]=" \3"/p 18495s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18496d 18497:bsnl 18498s/["\\]/\\&/g 18499s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18500D["\1"]=" \3\\\\\\n"\\/p 18501t cont 18502s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18503t cont 18504d 18505:cont 18506n 18507s/.\{148\}/&'"$ac_delim"'/g 18508t clear 18509:clear 18510s/\\$// 18511t bsnlc 18512s/["\\]/\\&/g; s/^/"/; s/$/"/p 18513d 18514:bsnlc 18515s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18516b cont 18517' <confdefs.h | sed ' 18518s/'"$ac_delim"'/"\\\ 18519"/g' >>$CONFIG_STATUS || ac_write_fail=1 18520 18521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18522 for (key in D) D_is_set[key] = 1 18523 FS = "" 18524} 18525/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18526 line = \$ 0 18527 split(line, arg, " ") 18528 if (arg[1] == "#") { 18529 defundef = arg[2] 18530 mac1 = arg[3] 18531 } else { 18532 defundef = substr(arg[1], 2) 18533 mac1 = arg[2] 18534 } 18535 split(mac1, mac2, "(") #) 18536 macro = mac2[1] 18537 prefix = substr(line, 1, index(line, defundef) - 1) 18538 if (D_is_set[macro]) { 18539 # Preserve the white space surrounding the "#". 18540 print prefix "define", macro P[macro] D[macro] 18541 next 18542 } else { 18543 # Replace #undef with comments. This is necessary, for example, 18544 # in the case of _POSIX_SOURCE, which is predefined and required 18545 # on some systems where configure will not decide to define it. 18546 if (defundef == "undef") { 18547 print "/*", prefix defundef, macro, "*/" 18548 next 18549 } 18550 } 18551} 18552{ print } 18553_ACAWK 18554_ACEOF 18555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18557fi # test -n "$CONFIG_HEADERS" 18558 18559 18560eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18561shift 18562for ac_tag 18563do 18564 case $ac_tag in 18565 :[FHLC]) ac_mode=$ac_tag; continue;; 18566 esac 18567 case $ac_mode$ac_tag in 18568 :[FHL]*:*);; 18569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18570 :[FH]-) ac_tag=-:-;; 18571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18572 esac 18573 ac_save_IFS=$IFS 18574 IFS=: 18575 set x $ac_tag 18576 IFS=$ac_save_IFS 18577 shift 18578 ac_file=$1 18579 shift 18580 18581 case $ac_mode in 18582 :L) ac_source=$1;; 18583 :[FH]) 18584 ac_file_inputs= 18585 for ac_f 18586 do 18587 case $ac_f in 18588 -) ac_f="$ac_tmp/stdin";; 18589 *) # Look for the file first in the build tree, then in the source tree 18590 # (if the path is not absolute). The absolute path cannot be DOS-style, 18591 # because $ac_f cannot contain `:'. 18592 test -f "$ac_f" || 18593 case $ac_f in 18594 [\\/$]*) false;; 18595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18596 esac || 18597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18598 esac 18599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18600 as_fn_append ac_file_inputs " '$ac_f'" 18601 done 18602 18603 # Let's still pretend it is `configure' which instantiates (i.e., don't 18604 # use $as_me), people would be surprised to read: 18605 # /* config.h. Generated by config.status. */ 18606 configure_input='Generated from '` 18607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18608 `' by configure.' 18609 if test x"$ac_file" != x-; then 18610 configure_input="$ac_file. $configure_input" 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18612$as_echo "$as_me: creating $ac_file" >&6;} 18613 fi 18614 # Neutralize special characters interpreted by sed in replacement strings. 18615 case $configure_input in #( 18616 *\&* | *\|* | *\\* ) 18617 ac_sed_conf_input=`$as_echo "$configure_input" | 18618 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18619 *) ac_sed_conf_input=$configure_input;; 18620 esac 18621 18622 case $ac_tag in 18623 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18625 esac 18626 ;; 18627 esac 18628 18629 ac_dir=`$as_dirname -- "$ac_file" || 18630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18631 X"$ac_file" : 'X\(//\)[^/]' \| \ 18632 X"$ac_file" : 'X\(//\)$' \| \ 18633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18634$as_echo X"$ac_file" | 18635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18636 s//\1/ 18637 q 18638 } 18639 /^X\(\/\/\)[^/].*/{ 18640 s//\1/ 18641 q 18642 } 18643 /^X\(\/\/\)$/{ 18644 s//\1/ 18645 q 18646 } 18647 /^X\(\/\).*/{ 18648 s//\1/ 18649 q 18650 } 18651 s/.*/./; q'` 18652 as_dir="$ac_dir"; as_fn_mkdir_p 18653 ac_builddir=. 18654 18655case "$ac_dir" in 18656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18657*) 18658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18659 # A ".." for each directory in $ac_dir_suffix. 18660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18661 case $ac_top_builddir_sub in 18662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18664 esac ;; 18665esac 18666ac_abs_top_builddir=$ac_pwd 18667ac_abs_builddir=$ac_pwd$ac_dir_suffix 18668# for backward compatibility: 18669ac_top_builddir=$ac_top_build_prefix 18670 18671case $srcdir in 18672 .) # We are building in place. 18673 ac_srcdir=. 18674 ac_top_srcdir=$ac_top_builddir_sub 18675 ac_abs_top_srcdir=$ac_pwd ;; 18676 [\\/]* | ?:[\\/]* ) # Absolute name. 18677 ac_srcdir=$srcdir$ac_dir_suffix; 18678 ac_top_srcdir=$srcdir 18679 ac_abs_top_srcdir=$srcdir ;; 18680 *) # Relative name. 18681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18682 ac_top_srcdir=$ac_top_build_prefix$srcdir 18683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18684esac 18685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18686 18687 18688 case $ac_mode in 18689 :F) 18690 # 18691 # CONFIG_FILE 18692 # 18693 18694 case $INSTALL in 18695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18697 esac 18698 ac_MKDIR_P=$MKDIR_P 18699 case $MKDIR_P in 18700 [\\/$]* | ?:[\\/]* ) ;; 18701 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18702 esac 18703_ACEOF 18704 18705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18706# If the template does not know about datarootdir, expand it. 18707# FIXME: This hack should be removed a few years after 2.60. 18708ac_datarootdir_hack=; ac_datarootdir_seen= 18709ac_sed_dataroot=' 18710/datarootdir/ { 18711 p 18712 q 18713} 18714/@datadir@/p 18715/@docdir@/p 18716/@infodir@/p 18717/@localedir@/p 18718/@mandir@/p' 18719case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18720*datarootdir*) ac_datarootdir_seen=yes;; 18721*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18723$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18724_ACEOF 18725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18726 ac_datarootdir_hack=' 18727 s&@datadir@&$datadir&g 18728 s&@docdir@&$docdir&g 18729 s&@infodir@&$infodir&g 18730 s&@localedir@&$localedir&g 18731 s&@mandir@&$mandir&g 18732 s&\\\${datarootdir}&$datarootdir&g' ;; 18733esac 18734_ACEOF 18735 18736# Neutralize VPATH when `$srcdir' = `.'. 18737# Shell code in configure.ac might set extrasub. 18738# FIXME: do we really want to maintain this feature? 18739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18740ac_sed_extra="$ac_vpsub 18741$extrasub 18742_ACEOF 18743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18744:t 18745/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18746s|@configure_input@|$ac_sed_conf_input|;t t 18747s&@top_builddir@&$ac_top_builddir_sub&;t t 18748s&@top_build_prefix@&$ac_top_build_prefix&;t t 18749s&@srcdir@&$ac_srcdir&;t t 18750s&@abs_srcdir@&$ac_abs_srcdir&;t t 18751s&@top_srcdir@&$ac_top_srcdir&;t t 18752s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18753s&@builddir@&$ac_builddir&;t t 18754s&@abs_builddir@&$ac_abs_builddir&;t t 18755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18756s&@INSTALL@&$ac_INSTALL&;t t 18757s&@MKDIR_P@&$ac_MKDIR_P&;t t 18758$ac_datarootdir_hack 18759" 18760eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18761 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18762 18763test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18764 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18766 "$ac_tmp/out"`; test -z "$ac_out"; } && 18767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18768which seems to be undefined. Please make sure it is defined" >&5 18769$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18770which seems to be undefined. Please make sure it is defined" >&2;} 18771 18772 rm -f "$ac_tmp/stdin" 18773 case $ac_file in 18774 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18775 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18776 esac \ 18777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18778 ;; 18779 :H) 18780 # 18781 # CONFIG_HEADER 18782 # 18783 if test x"$ac_file" != x-; then 18784 { 18785 $as_echo "/* $configure_input */" \ 18786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18787 } >"$ac_tmp/config.h" \ 18788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18789 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18791$as_echo "$as_me: $ac_file is unchanged" >&6;} 18792 else 18793 rm -f "$ac_file" 18794 mv "$ac_tmp/config.h" "$ac_file" \ 18795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18796 fi 18797 else 18798 $as_echo "/* $configure_input */" \ 18799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18800 || as_fn_error $? "could not create -" "$LINENO" 5 18801 fi 18802# Compute "$ac_file"'s index in $config_headers. 18803_am_arg="$ac_file" 18804_am_stamp_count=1 18805for _am_header in $config_headers :; do 18806 case $_am_header in 18807 $_am_arg | $_am_arg:* ) 18808 break ;; 18809 * ) 18810 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18811 esac 18812done 18813echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18814$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18815 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18816 X"$_am_arg" : 'X\(//\)$' \| \ 18817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18818$as_echo X"$_am_arg" | 18819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18820 s//\1/ 18821 q 18822 } 18823 /^X\(\/\/\)[^/].*/{ 18824 s//\1/ 18825 q 18826 } 18827 /^X\(\/\/\)$/{ 18828 s//\1/ 18829 q 18830 } 18831 /^X\(\/\).*/{ 18832 s//\1/ 18833 q 18834 } 18835 s/.*/./; q'`/stamp-h$_am_stamp_count 18836 ;; 18837 18838 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18839$as_echo "$as_me: executing $ac_file commands" >&6;} 18840 ;; 18841 esac 18842 18843 18844 case $ac_file$ac_mode in 18845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18846 # Older Autoconf quotes --file arguments for eval, but not when files 18847 # are listed without --file. Let's play safe and only enable the eval 18848 # if we detect the quoting. 18849 case $CONFIG_FILES in 18850 *\'*) eval set x "$CONFIG_FILES" ;; 18851 *) set x $CONFIG_FILES ;; 18852 esac 18853 shift 18854 for mf 18855 do 18856 # Strip MF so we end up with the name of the file. 18857 mf=`echo "$mf" | sed -e 's/:.*$//'` 18858 # Check whether this is an Automake generated Makefile or not. 18859 # We used to match only the files named 'Makefile.in', but 18860 # some people rename them; so instead we look at the file content. 18861 # Grep'ing the first line is not enough: some people post-process 18862 # each Makefile.in and add a new line on top of each file to say so. 18863 # Grep'ing the whole file is not good either: AIX grep has a line 18864 # limit of 2048, but all sed's we know have understand at least 4000. 18865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18866 dirpart=`$as_dirname -- "$mf" || 18867$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18868 X"$mf" : 'X\(//\)[^/]' \| \ 18869 X"$mf" : 'X\(//\)$' \| \ 18870 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18871$as_echo X"$mf" | 18872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18873 s//\1/ 18874 q 18875 } 18876 /^X\(\/\/\)[^/].*/{ 18877 s//\1/ 18878 q 18879 } 18880 /^X\(\/\/\)$/{ 18881 s//\1/ 18882 q 18883 } 18884 /^X\(\/\).*/{ 18885 s//\1/ 18886 q 18887 } 18888 s/.*/./; q'` 18889 else 18890 continue 18891 fi 18892 # Extract the definition of DEPDIR, am__include, and am__quote 18893 # from the Makefile without running 'make'. 18894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18895 test -z "$DEPDIR" && continue 18896 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18897 test -z "$am__include" && continue 18898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18899 # Find all dependency output files, they are included files with 18900 # $(DEPDIR) in their names. We invoke sed twice because it is the 18901 # simplest approach to changing $(DEPDIR) to its actual value in the 18902 # expansion. 18903 for file in `sed -n " 18904 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18905 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18906 # Make sure the directory exists. 18907 test -f "$dirpart/$file" && continue 18908 fdir=`$as_dirname -- "$file" || 18909$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18910 X"$file" : 'X\(//\)[^/]' \| \ 18911 X"$file" : 'X\(//\)$' \| \ 18912 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18913$as_echo X"$file" | 18914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18915 s//\1/ 18916 q 18917 } 18918 /^X\(\/\/\)[^/].*/{ 18919 s//\1/ 18920 q 18921 } 18922 /^X\(\/\/\)$/{ 18923 s//\1/ 18924 q 18925 } 18926 /^X\(\/\).*/{ 18927 s//\1/ 18928 q 18929 } 18930 s/.*/./; q'` 18931 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18932 # echo "creating $dirpart/$file" 18933 echo '# dummy' > "$dirpart/$file" 18934 done 18935 done 18936} 18937 ;; 18938 "libtool":C) 18939 18940 # See if we are running on zsh, and set the options that allow our 18941 # commands through without removal of \ escapes. 18942 if test -n "${ZSH_VERSION+set}"; then 18943 setopt NO_GLOB_SUBST 18944 fi 18945 18946 cfgfile=${ofile}T 18947 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18948 $RM "$cfgfile" 18949 18950 cat <<_LT_EOF >> "$cfgfile" 18951#! $SHELL 18952# Generated automatically by $as_me ($PACKAGE) $VERSION 18953# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18954 18955# Provide generalized library-building support services. 18956# Written by Gordon Matzigkeit, 1996 18957 18958# Copyright (C) 2014 Free Software Foundation, Inc. 18959# This is free software; see the source for copying conditions. There is NO 18960# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18961 18962# GNU Libtool is free software; you can redistribute it and/or modify 18963# it under the terms of the GNU General Public License as published by 18964# the Free Software Foundation; either version 2 of of the License, or 18965# (at your option) any later version. 18966# 18967# As a special exception to the GNU General Public License, if you 18968# distribute this file as part of a program or library that is built 18969# using GNU Libtool, you may include this file under the same 18970# distribution terms that you use for the rest of that program. 18971# 18972# GNU Libtool is distributed in the hope that it will be useful, but 18973# WITHOUT ANY WARRANTY; without even the implied warranty of 18974# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18975# GNU General Public License for more details. 18976# 18977# You should have received a copy of the GNU General Public License 18978# along with this program. If not, see <http://www.gnu.org/licenses/>. 18979 18980 18981# The names of the tagged configurations supported by this script. 18982available_tags='' 18983 18984# Configured defaults for sys_lib_dlsearch_path munging. 18985: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18986 18987# ### BEGIN LIBTOOL CONFIG 18988 18989# Which release of libtool.m4 was used? 18990macro_version=$macro_version 18991macro_revision=$macro_revision 18992 18993# Whether or not to build shared libraries. 18994build_libtool_libs=$enable_shared 18995 18996# Whether or not to build static libraries. 18997build_old_libs=$enable_static 18998 18999# What type of objects to build. 19000pic_mode=$pic_mode 19001 19002# Whether or not to optimize for fast installation. 19003fast_install=$enable_fast_install 19004 19005# Shared archive member basename,for filename based shared library versioning on AIX. 19006shared_archive_member_spec=$shared_archive_member_spec 19007 19008# Shell to use when invoking shell scripts. 19009SHELL=$lt_SHELL 19010 19011# An echo program that protects backslashes. 19012ECHO=$lt_ECHO 19013 19014# The PATH separator for the build system. 19015PATH_SEPARATOR=$lt_PATH_SEPARATOR 19016 19017# The host system. 19018host_alias=$host_alias 19019host=$host 19020host_os=$host_os 19021 19022# The build system. 19023build_alias=$build_alias 19024build=$build 19025build_os=$build_os 19026 19027# A sed program that does not truncate output. 19028SED=$lt_SED 19029 19030# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19031Xsed="\$SED -e 1s/^X//" 19032 19033# A grep program that handles long lines. 19034GREP=$lt_GREP 19035 19036# An ERE matcher. 19037EGREP=$lt_EGREP 19038 19039# A literal string matcher. 19040FGREP=$lt_FGREP 19041 19042# A BSD- or MS-compatible name lister. 19043NM=$lt_NM 19044 19045# Whether we need soft or hard links. 19046LN_S=$lt_LN_S 19047 19048# What is the maximum length of a command? 19049max_cmd_len=$max_cmd_len 19050 19051# Object file suffix (normally "o"). 19052objext=$ac_objext 19053 19054# Executable file suffix (normally ""). 19055exeext=$exeext 19056 19057# whether the shell understands "unset". 19058lt_unset=$lt_unset 19059 19060# turn spaces into newlines. 19061SP2NL=$lt_lt_SP2NL 19062 19063# turn newlines into spaces. 19064NL2SP=$lt_lt_NL2SP 19065 19066# convert \$build file names to \$host format. 19067to_host_file_cmd=$lt_cv_to_host_file_cmd 19068 19069# convert \$build files to toolchain format. 19070to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19071 19072# An object symbol dumper. 19073OBJDUMP=$lt_OBJDUMP 19074 19075# Method to check whether dependent libraries are shared objects. 19076deplibs_check_method=$lt_deplibs_check_method 19077 19078# Command to use when deplibs_check_method = "file_magic". 19079file_magic_cmd=$lt_file_magic_cmd 19080 19081# How to find potential files when deplibs_check_method = "file_magic". 19082file_magic_glob=$lt_file_magic_glob 19083 19084# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19085want_nocaseglob=$lt_want_nocaseglob 19086 19087# DLL creation program. 19088DLLTOOL=$lt_DLLTOOL 19089 19090# Command to associate shared and link libraries. 19091sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19092 19093# The archiver. 19094AR=$lt_AR 19095 19096# Flags to create an archive. 19097AR_FLAGS=$lt_AR_FLAGS 19098 19099# How to feed a file listing to the archiver. 19100archiver_list_spec=$lt_archiver_list_spec 19101 19102# A symbol stripping program. 19103STRIP=$lt_STRIP 19104 19105# Commands used to install an old-style archive. 19106RANLIB=$lt_RANLIB 19107old_postinstall_cmds=$lt_old_postinstall_cmds 19108old_postuninstall_cmds=$lt_old_postuninstall_cmds 19109 19110# Whether to use a lock for old archive extraction. 19111lock_old_archive_extraction=$lock_old_archive_extraction 19112 19113# A C compiler. 19114LTCC=$lt_CC 19115 19116# LTCC compiler flags. 19117LTCFLAGS=$lt_CFLAGS 19118 19119# Take the output of nm and produce a listing of raw symbols and C names. 19120global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19121 19122# Transform the output of nm in a proper C declaration. 19123global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19124 19125# Transform the output of nm into a list of symbols to manually relocate. 19126global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19127 19128# Transform the output of nm in a C name address pair. 19129global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19130 19131# Transform the output of nm in a C name address pair when lib prefix is needed. 19132global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19133 19134# The name lister interface. 19135nm_interface=$lt_lt_cv_nm_interface 19136 19137# Specify filename containing input files for \$NM. 19138nm_file_list_spec=$lt_nm_file_list_spec 19139 19140# The root where to search for dependent libraries,and where our libraries should be installed. 19141lt_sysroot=$lt_sysroot 19142 19143# Command to truncate a binary pipe. 19144lt_truncate_bin=$lt_lt_cv_truncate_bin 19145 19146# The name of the directory that contains temporary libtool files. 19147objdir=$objdir 19148 19149# Used to examine libraries when file_magic_cmd begins with "file". 19150MAGIC_CMD=$MAGIC_CMD 19151 19152# Must we lock files when doing compilation? 19153need_locks=$lt_need_locks 19154 19155# Manifest tool. 19156MANIFEST_TOOL=$lt_MANIFEST_TOOL 19157 19158# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19159DSYMUTIL=$lt_DSYMUTIL 19160 19161# Tool to change global to local symbols on Mac OS X. 19162NMEDIT=$lt_NMEDIT 19163 19164# Tool to manipulate fat objects and archives on Mac OS X. 19165LIPO=$lt_LIPO 19166 19167# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19168OTOOL=$lt_OTOOL 19169 19170# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19171OTOOL64=$lt_OTOOL64 19172 19173# Old archive suffix (normally "a"). 19174libext=$libext 19175 19176# Shared library suffix (normally ".so"). 19177shrext_cmds=$lt_shrext_cmds 19178 19179# The commands to extract the exported symbol list from a shared archive. 19180extract_expsyms_cmds=$lt_extract_expsyms_cmds 19181 19182# Variables whose values should be saved in libtool wrapper scripts and 19183# restored at link time. 19184variables_saved_for_relink=$lt_variables_saved_for_relink 19185 19186# Do we need the "lib" prefix for modules? 19187need_lib_prefix=$need_lib_prefix 19188 19189# Do we need a version for libraries? 19190need_version=$need_version 19191 19192# Library versioning type. 19193version_type=$version_type 19194 19195# Shared library runtime path variable. 19196runpath_var=$runpath_var 19197 19198# Shared library path variable. 19199shlibpath_var=$shlibpath_var 19200 19201# Is shlibpath searched before the hard-coded library search path? 19202shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19203 19204# Format of library name prefix. 19205libname_spec=$lt_libname_spec 19206 19207# List of archive names. First name is the real one, the rest are links. 19208# The last name is the one that the linker finds with -lNAME 19209library_names_spec=$lt_library_names_spec 19210 19211# The coded name of the library, if different from the real name. 19212soname_spec=$lt_soname_spec 19213 19214# Permission mode override for installation of shared libraries. 19215install_override_mode=$lt_install_override_mode 19216 19217# Command to use after installation of a shared archive. 19218postinstall_cmds=$lt_postinstall_cmds 19219 19220# Command to use after uninstallation of a shared archive. 19221postuninstall_cmds=$lt_postuninstall_cmds 19222 19223# Commands used to finish a libtool library installation in a directory. 19224finish_cmds=$lt_finish_cmds 19225 19226# As "finish_cmds", except a single script fragment to be evaled but 19227# not shown. 19228finish_eval=$lt_finish_eval 19229 19230# Whether we should hardcode library paths into libraries. 19231hardcode_into_libs=$hardcode_into_libs 19232 19233# Compile-time system search path for libraries. 19234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19235 19236# Detected run-time system search path for libraries. 19237sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19238 19239# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19240configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19241 19242# Whether dlopen is supported. 19243dlopen_support=$enable_dlopen 19244 19245# Whether dlopen of programs is supported. 19246dlopen_self=$enable_dlopen_self 19247 19248# Whether dlopen of statically linked programs is supported. 19249dlopen_self_static=$enable_dlopen_self_static 19250 19251# Commands to strip libraries. 19252old_striplib=$lt_old_striplib 19253striplib=$lt_striplib 19254 19255 19256# The linker used to build libraries. 19257LD=$lt_LD 19258 19259# How to create reloadable object files. 19260reload_flag=$lt_reload_flag 19261reload_cmds=$lt_reload_cmds 19262 19263# Commands used to build an old-style archive. 19264old_archive_cmds=$lt_old_archive_cmds 19265 19266# A language specific compiler. 19267CC=$lt_compiler 19268 19269# Is the compiler the GNU compiler? 19270with_gcc=$GCC 19271 19272# Compiler flag to turn off builtin functions. 19273no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19274 19275# Additional compiler flags for building library objects. 19276pic_flag=$lt_lt_prog_compiler_pic 19277 19278# How to pass a linker flag through the compiler. 19279wl=$lt_lt_prog_compiler_wl 19280 19281# Compiler flag to prevent dynamic linking. 19282link_static_flag=$lt_lt_prog_compiler_static 19283 19284# Does compiler simultaneously support -c and -o options? 19285compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19286 19287# Whether or not to add -lc for building shared libraries. 19288build_libtool_need_lc=$archive_cmds_need_lc 19289 19290# Whether or not to disallow shared libs when runtime libs are static. 19291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19292 19293# Compiler flag to allow reflexive dlopens. 19294export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19295 19296# Compiler flag to generate shared objects directly from archives. 19297whole_archive_flag_spec=$lt_whole_archive_flag_spec 19298 19299# Whether the compiler copes with passing no objects directly. 19300compiler_needs_object=$lt_compiler_needs_object 19301 19302# Create an old-style archive from a shared archive. 19303old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19304 19305# Create a temporary old-style archive to link instead of a shared archive. 19306old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19307 19308# Commands used to build a shared archive. 19309archive_cmds=$lt_archive_cmds 19310archive_expsym_cmds=$lt_archive_expsym_cmds 19311 19312# Commands used to build a loadable module if different from building 19313# a shared archive. 19314module_cmds=$lt_module_cmds 19315module_expsym_cmds=$lt_module_expsym_cmds 19316 19317# Whether we are building with GNU ld or not. 19318with_gnu_ld=$lt_with_gnu_ld 19319 19320# Flag that allows shared libraries with undefined symbols to be built. 19321allow_undefined_flag=$lt_allow_undefined_flag 19322 19323# Flag that enforces no undefined symbols. 19324no_undefined_flag=$lt_no_undefined_flag 19325 19326# Flag to hardcode \$libdir into a binary during linking. 19327# This must work even if \$libdir does not exist 19328hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19329 19330# Whether we need a single "-rpath" flag with a separated argument. 19331hardcode_libdir_separator=$lt_hardcode_libdir_separator 19332 19333# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19334# DIR into the resulting binary. 19335hardcode_direct=$hardcode_direct 19336 19337# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19338# DIR into the resulting binary and the resulting library dependency is 19339# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19340# library is relocated. 19341hardcode_direct_absolute=$hardcode_direct_absolute 19342 19343# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19344# into the resulting binary. 19345hardcode_minus_L=$hardcode_minus_L 19346 19347# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19348# into the resulting binary. 19349hardcode_shlibpath_var=$hardcode_shlibpath_var 19350 19351# Set to "yes" if building a shared library automatically hardcodes DIR 19352# into the library and all subsequent libraries and executables linked 19353# against it. 19354hardcode_automatic=$hardcode_automatic 19355 19356# Set to yes if linker adds runtime paths of dependent libraries 19357# to runtime path list. 19358inherit_rpath=$inherit_rpath 19359 19360# Whether libtool must link a program against all its dependency libraries. 19361link_all_deplibs=$link_all_deplibs 19362 19363# Set to "yes" if exported symbols are required. 19364always_export_symbols=$always_export_symbols 19365 19366# The commands to list exported symbols. 19367export_symbols_cmds=$lt_export_symbols_cmds 19368 19369# Symbols that should not be listed in the preloaded symbols. 19370exclude_expsyms=$lt_exclude_expsyms 19371 19372# Symbols that must always be exported. 19373include_expsyms=$lt_include_expsyms 19374 19375# Commands necessary for linking programs (against libraries) with templates. 19376prelink_cmds=$lt_prelink_cmds 19377 19378# Commands necessary for finishing linking programs. 19379postlink_cmds=$lt_postlink_cmds 19380 19381# Specify filename containing input files. 19382file_list_spec=$lt_file_list_spec 19383 19384# How to hardcode a shared library path into an executable. 19385hardcode_action=$hardcode_action 19386 19387# ### END LIBTOOL CONFIG 19388 19389_LT_EOF 19390 19391 cat <<'_LT_EOF' >> "$cfgfile" 19392 19393# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19394 19395# func_munge_path_list VARIABLE PATH 19396# ----------------------------------- 19397# VARIABLE is name of variable containing _space_ separated list of 19398# directories to be munged by the contents of PATH, which is string 19399# having a format: 19400# "DIR[:DIR]:" 19401# string "DIR[ DIR]" will be prepended to VARIABLE 19402# ":DIR[:DIR]" 19403# string "DIR[ DIR]" will be appended to VARIABLE 19404# "DIRP[:DIRP]::[DIRA:]DIRA" 19405# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19406# "DIRA[ DIRA]" will be appended to VARIABLE 19407# "DIR[:DIR]" 19408# VARIABLE will be replaced by "DIR[ DIR]" 19409func_munge_path_list () 19410{ 19411 case x$2 in 19412 x) 19413 ;; 19414 *:) 19415 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19416 ;; 19417 x:*) 19418 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19419 ;; 19420 *::*) 19421 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19422 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19423 ;; 19424 *) 19425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19426 ;; 19427 esac 19428} 19429 19430 19431# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19432func_cc_basename () 19433{ 19434 for cc_temp in $*""; do 19435 case $cc_temp in 19436 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19437 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19438 \-*) ;; 19439 *) break;; 19440 esac 19441 done 19442 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19443} 19444 19445 19446# ### END FUNCTIONS SHARED WITH CONFIGURE 19447 19448_LT_EOF 19449 19450 case $host_os in 19451 aix3*) 19452 cat <<\_LT_EOF >> "$cfgfile" 19453# AIX sometimes has problems with the GCC collect2 program. For some 19454# reason, if we set the COLLECT_NAMES environment variable, the problems 19455# vanish in a puff of smoke. 19456if test set != "${COLLECT_NAMES+set}"; then 19457 COLLECT_NAMES= 19458 export COLLECT_NAMES 19459fi 19460_LT_EOF 19461 ;; 19462 esac 19463 19464 19465ltmain=$ac_aux_dir/ltmain.sh 19466 19467 19468 # We use sed instead of cat because bash on DJGPP gets confused if 19469 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19470 # text mode, it properly converts lines to CR/LF. This bash problem 19471 # is reportedly fixed, but why not run on old versions too? 19472 sed '$q' "$ltmain" >> "$cfgfile" \ 19473 || (rm -f "$cfgfile"; exit 1) 19474 19475 mv -f "$cfgfile" "$ofile" || 19476 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19477 chmod +x "$ofile" 19478 19479 ;; 19480 19481 esac 19482done # for ac_tag 19483 19484 19485as_fn_exit 0 19486_ACEOF 19487ac_clean_files=$ac_clean_files_save 19488 19489test $ac_write_fail = 0 || 19490 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19491 19492 19493# configure is writing to config.log, and then calls config.status. 19494# config.status does its own redirection, appending to config.log. 19495# Unfortunately, on DOS this fails, as config.log is still kept open 19496# by configure, so config.status won't be able to write to it; its 19497# output is simply discarded. So we exec the FD to /dev/null, 19498# effectively closing config.log, so it can be properly (re)opened and 19499# appended to by config.status. When coming back to configure, we 19500# need to make the FD available again. 19501if test "$no_create" != yes; then 19502 ac_cs_success=: 19503 ac_config_status_args= 19504 test "$silent" = yes && 19505 ac_config_status_args="$ac_config_status_args --quiet" 19506 exec 5>/dev/null 19507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19508 exec 5>>config.log 19509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19510 # would make configure fail if this is the last instruction. 19511 $ac_cs_success || as_fn_exit 1 19512fi 19513if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19515$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19516fi 19517 19518