configure revision b09479dc
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for fontconfig 2.11.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 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://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='fontconfig' 593PACKAGE_TARNAME='fontconfig' 594PACKAGE_VERSION='2.11.1' 595PACKAGE_STRING='fontconfig 2.11.1' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig' 597PACKAGE_URL='' 598 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 640PKGCONFIG_REQUIRES_PRIVATELY 641PKGCONFIG_REQUIRES 642DOCMAN3 643ENABLE_DOCS_FALSE 644ENABLE_DOCS_TRUE 645USEDOCBOOK_FALSE 646USEDOCBOOK_TRUE 647HASDOCBOOK 648HAVE_PTHREAD_FALSE 649HAVE_PTHREAD_TRUE 650PTHREAD_CFLAGS 651PTHREAD_LIBS 652PTHREAD_CC 653ax_pthread_config 654XMLDIR 655CONFIGDIR 656BASECONFIGDIR 657TEMPLATEDIR 658FC_FONTDATE 659FC_CACHEDIR 660fc_cachedir 661FC_FONTPATH 662FC_ADD_FONTS 663FC_DEFAULT_FONTS 664LIBXML2_LIBS 665LIBXML2_CFLAGS 666HAVE_XMLPARSE_H 667EXPAT_LIBS 668EXPAT_CFLAGS 669FREETYPE_LIBS 670FREETYPE_CFLAGS 671ICONV_LIBS 672ICONV_CFLAGS 673ENABLE_SHARED_FALSE 674ENABLE_SHARED_TRUE 675CROSS_COMPILING_FALSE 676CROSS_COMPILING_TRUE 677EXEEXT_FOR_BUILD 678CC_FOR_BUILD 679WARN_CFLAGS 680MS_LIB_AVAILABLE_FALSE 681MS_LIB_AVAILABLE_TRUE 682ms_librarian 683OS_WIN32_FALSE 684OS_WIN32_TRUE 685LIBT_CURRENT_MINUS_AGE 686LIBT_VERSION_INFO 687LIBT_REVISION 688LIBT_CURRENT 689OTOOL64 690OTOOL 691LIPO 692NMEDIT 693DSYMUTIL 694MANIFEST_TOOL 695RANLIB 696ac_ct_AR 697AR 698NM 699ac_ct_DUMPBIN 700DUMPBIN 701LD 702FGREP 703SED 704host_os 705host_vendor 706host_cpu 707host 708build_os 709build_vendor 710build_cpu 711build 712LIBTOOL 713OBJDUMP 714DLLTOOL 715AS 716RM 717GPERF 718GIT 719pkgconfigdir 720PKG_CONFIG_LIBDIR 721PKG_CONFIG_PATH 722PKG_CONFIG 723LN_S 724EGREP 725GREP 726CPP 727am__fastdepCC_FALSE 728am__fastdepCC_TRUE 729CCDEPMODE 730am__nodep 731AMDEPBACKSLASH 732AMDEP_FALSE 733AMDEP_TRUE 734am__quote 735am__include 736DEPDIR 737OBJEXT 738EXEEXT 739ac_ct_CC 740CPPFLAGS 741LDFLAGS 742CFLAGS 743CC 744AM_BACKSLASH 745AM_DEFAULT_VERBOSITY 746AM_DEFAULT_V 747AM_V 748am__untar 749am__tar 750AMTAR 751am__leading_dot 752SET_MAKE 753AWK 754mkdir_p 755MKDIR_P 756INSTALL_STRIP_PROGRAM 757STRIP 758install_sh 759MAKEINFO 760AUTOHEADER 761AUTOMAKE 762AUTOCONF 763ACLOCAL 764VERSION 765PACKAGE 766CYGPATH_W 767am__isrc 768INSTALL_DATA 769INSTALL_SCRIPT 770INSTALL_PROGRAM 771target_alias 772host_alias 773build_alias 774LIBS 775ECHO_T 776ECHO_N 777ECHO_C 778DEFS 779mandir 780localedir 781libdir 782psdir 783pdfdir 784dvidir 785htmldir 786infodir 787docdir 788oldincludedir 789includedir 790localstatedir 791sharedstatedir 792sysconfdir 793datadir 794datarootdir 795libexecdir 796sbindir 797bindir 798program_transform_name 799prefix 800exec_prefix 801PACKAGE_URL 802PACKAGE_BUGREPORT 803PACKAGE_STRING 804PACKAGE_VERSION 805PACKAGE_TARNAME 806PACKAGE_NAME 807PATH_SEPARATOR 808SHELL' 809ac_subst_files='' 810ac_user_opts=' 811enable_option_checking 812enable_silent_rules 813enable_dependency_tracking 814enable_largefile 815with_pkgconfigdir 816enable_static 817enable_shared 818with_pic 819enable_fast_install 820with_gnu_ld 821with_sysroot 822enable_libtool_lock 823with_arch 824enable_iconv 825with_libiconv 826with_libiconv_includes 827with_libiconv_lib 828with_expat 829with_expat_includes 830with_expat_lib 831enable_libxml2 832with_default_fonts 833with_add_fonts 834with_cache_dir 835with_templatedir 836with_baseconfigdir 837with_configdir 838with_xmldir 839enable_docs 840' 841 ac_precious_vars='build_alias 842host_alias 843target_alias 844CC 845CFLAGS 846LDFLAGS 847LIBS 848CPPFLAGS 849CPP 850PKG_CONFIG 851PKG_CONFIG_PATH 852PKG_CONFIG_LIBDIR 853CC_FOR_BUILD 854FREETYPE_CFLAGS 855FREETYPE_LIBS 856EXPAT_CFLAGS 857EXPAT_LIBS 858LIBXML2_CFLAGS 859LIBXML2_LIBS' 860 861 862# Initialize some variables set by options. 863ac_init_help= 864ac_init_version=false 865ac_unrecognized_opts= 866ac_unrecognized_sep= 867# The variables have the same names as the options, with 868# dashes changed to underlines. 869cache_file=/dev/null 870exec_prefix=NONE 871no_create= 872no_recursion= 873prefix=NONE 874program_prefix=NONE 875program_suffix=NONE 876program_transform_name=s,x,x, 877silent= 878site= 879srcdir= 880verbose= 881x_includes=NONE 882x_libraries=NONE 883 884# Installation directory options. 885# These are left unexpanded so users can "make install exec_prefix=/foo" 886# and all the variables that are supposed to be based on exec_prefix 887# by default will actually change. 888# Use braces instead of parens because sh, perl, etc. also accept them. 889# (The list follows the same order as the GNU Coding Standards.) 890bindir='${exec_prefix}/bin' 891sbindir='${exec_prefix}/sbin' 892libexecdir='${exec_prefix}/libexec' 893datarootdir='${prefix}/share' 894datadir='${datarootdir}' 895sysconfdir='${prefix}/etc' 896sharedstatedir='${prefix}/com' 897localstatedir='${prefix}/var' 898includedir='${prefix}/include' 899oldincludedir='/usr/include' 900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 901infodir='${datarootdir}/info' 902htmldir='${docdir}' 903dvidir='${docdir}' 904pdfdir='${docdir}' 905psdir='${docdir}' 906libdir='${exec_prefix}/lib' 907localedir='${datarootdir}/locale' 908mandir='${datarootdir}/man' 909 910ac_prev= 911ac_dashdash= 912for ac_option 913do 914 # If the previous option needs an argument, assign it. 915 if test -n "$ac_prev"; then 916 eval $ac_prev=\$ac_option 917 ac_prev= 918 continue 919 fi 920 921 case $ac_option in 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 923 *=) ac_optarg= ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error $? "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1246Try \`$0 --help' for more information" 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1265 ;; 1266 1267 esac 1268done 1269 1270if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error $? "missing argument to $ac_option" 1273fi 1274 1275if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281fi 1282 1283# Check all directory arguments for consistency. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318fi 1319 1320ac_tool_prefix= 1321test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323test "$silent" = yes && exec 6>/dev/null 1324 1325 1326ac_pwd=`pwd` && test -n "$ac_pwd" && 1327ac_ls_di=`ls -di .` && 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 as_fn_error $? "working directory cannot be determined" 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331 as_fn_error $? "pwd does not report name of working directory" 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$as_myself" || 1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$as_myself" : 'X\(//\)[^/]' \| \ 1341 X"$as_myself" : 'X\(//\)$' \| \ 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1343$as_echo X"$as_myself" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures fontconfig 2.11.1 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking ...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of fontconfig 2.11.1:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-option-checking ignore unrecognized --enable/--with options 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1478 --enable-silent-rules less verbose build output (undo: "make V=1") 1479 --disable-silent-rules verbose build output (undo: "make V=0") 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --disable-largefile omit support for large files 1485 --enable-static[=PKGS] build static libraries [default=no] 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --disable-libtool-lock avoid locking (might break parallel builds) 1490 --enable-iconv Use iconv to support non-Unicode SFNT name 1491 --enable-libxml2 Use libxml2 instead of Expat 1492 --disable-docs Don't build and install documentation 1493 1494Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pkgconfigdir pkg-config installation directory 1498 ['${libdir}/pkgconfig'] 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1500 both] 1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1502 --with-sysroot=DIR Search for dependent libraries within DIR 1503 (or the compiler's sysroot if not specified). 1504 --with-arch=ARCH Force architecture to ARCH 1505 --with-libiconv=DIR Use libiconv in DIR 1506 --with-libiconv-includes=DIR 1507 Use libiconv includes in DIR 1508 --with-libiconv-lib=DIR Use libiconv library in DIR 1509 --with-expat=DIR Use Expat in DIR 1510 --with-expat-includes=DIR 1511 Use Expat includes in DIR 1512 --with-expat-lib=DIR 1513 --with-default-fonts=DIR 1514 Use fonts from DIR when config is busted 1515 --with-add-fonts=DIR1,DIR2,... 1516 Find additional fonts in DIR1,DIR2,... 1517 --with-cache-dir=DIR Use DIR to store cache files 1518 [default=LOCALSTATEDIR/cache/fontconfig] 1519 --with-templatedir=DIR Use DIR to store the configuration template files 1520 [default=DATADIR/fontconfig/conf.avail] 1521 --with-baseconfigdir=DIR 1522 Use DIR to store the base configuration files 1523 [default=SYSCONFDIR/fonts] 1524 --with-configdir=DIR Use DIR to store active configuration files 1525 [default=BASECONFIGDIR/conf.d] 1526 --with-xmldir=DIR Use DIR to store XML schema files 1527 [default=DATADIR/xml/fontconfig] 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 CPP C preprocessor 1538 PKG_CONFIG path to pkg-config utility 1539 PKG_CONFIG_PATH 1540 directories to add to pkg-config's search path 1541 PKG_CONFIG_LIBDIR 1542 path overriding pkg-config's built-in search path 1543 CC_FOR_BUILD 1544 build system C compiler 1545 FREETYPE_CFLAGS 1546 C compiler flags for FREETYPE, overriding pkg-config 1547 FREETYPE_LIBS 1548 linker flags for FREETYPE, overriding pkg-config 1549 EXPAT_CFLAGS 1550 C compiler flags for EXPAT, overriding pkg-config 1551 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config 1552 LIBXML2_CFLAGS 1553 C compiler flags for LIBXML2, overriding pkg-config 1554 LIBXML2_LIBS 1555 linker flags for LIBXML2, overriding pkg-config 1556 1557Use these variables to override the choices made by `configure' or to help 1558it to find libraries and programs with nonstandard names/locations. 1559 1560Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>. 1561_ACEOF 1562ac_status=$? 1563fi 1564 1565if test "$ac_init_help" = "recursive"; then 1566 # If there are subdirs, report their specific --help. 1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1568 test -d "$ac_dir" || 1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1570 continue 1571 ac_builddir=. 1572 1573case "$ac_dir" in 1574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575*) 1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1577 # A ".." for each directory in $ac_dir_suffix. 1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1579 case $ac_top_builddir_sub in 1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1582 esac ;; 1583esac 1584ac_abs_top_builddir=$ac_pwd 1585ac_abs_builddir=$ac_pwd$ac_dir_suffix 1586# for backward compatibility: 1587ac_top_builddir=$ac_top_build_prefix 1588 1589case $srcdir in 1590 .) # We are building in place. 1591 ac_srcdir=. 1592 ac_top_srcdir=$ac_top_builddir_sub 1593 ac_abs_top_srcdir=$ac_pwd ;; 1594 [\\/]* | ?:[\\/]* ) # Absolute name. 1595 ac_srcdir=$srcdir$ac_dir_suffix; 1596 ac_top_srcdir=$srcdir 1597 ac_abs_top_srcdir=$srcdir ;; 1598 *) # Relative name. 1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1600 ac_top_srcdir=$ac_top_build_prefix$srcdir 1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1602esac 1603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1604 1605 cd "$ac_dir" || { ac_status=$?; continue; } 1606 # Check for guested configure. 1607 if test -f "$ac_srcdir/configure.gnu"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1610 elif test -f "$ac_srcdir/configure"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure" --help=recursive 1613 else 1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1615 fi || ac_status=$? 1616 cd "$ac_pwd" || { ac_status=$?; break; } 1617 done 1618fi 1619 1620test -n "$ac_init_help" && exit $ac_status 1621if $ac_init_version; then 1622 cat <<\_ACEOF 1623fontconfig configure 2.11.1 1624generated by GNU Autoconf 2.69 1625 1626Copyright (C) 2012 Free Software Foundation, Inc. 1627This configure script is free software; the Free Software Foundation 1628gives unlimited permission to copy, distribute and modify it. 1629_ACEOF 1630 exit 1631fi 1632 1633## ------------------------ ## 1634## Autoconf initialization. ## 1635## ------------------------ ## 1636 1637# ac_fn_c_try_compile LINENO 1638# -------------------------- 1639# Try to compile conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_c_try_compile () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 rm -f conftest.$ac_objext 1644 if { { ac_try="$ac_compile" 1645case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648esac 1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650$as_echo "$ac_try_echo"; } >&5 1651 (eval "$ac_compile") 2>conftest.err 1652 ac_status=$? 1653 if test -s conftest.err; then 1654 grep -v '^ *+' conftest.err >conftest.er1 1655 cat conftest.er1 >&5 1656 mv -f conftest.er1 conftest.err 1657 fi 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { 1660 test -z "$ac_c_werror_flag" || 1661 test ! -s conftest.err 1662 } && test -s conftest.$ac_objext; then : 1663 ac_retval=0 1664else 1665 $as_echo "$as_me: failed program was:" >&5 1666sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=1 1669fi 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_compile 1674 1675# ac_fn_c_try_cpp LINENO 1676# ---------------------- 1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_cpp () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_cpp conftest.$ac_ext" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } > conftest.i && { 1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_cpp 1711 1712# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1713# ------------------------------------------------------- 1714# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1715# the include files in INCLUDES and setting the cache variable VAR 1716# accordingly. 1717ac_fn_c_check_header_mongrel () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if eval \${$3+:} false; then : 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval \${$3+:} false; then : 1724 $as_echo_n "(cached) " >&6 1725fi 1726eval ac_res=\$$3 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1728$as_echo "$ac_res" >&6; } 1729else 1730 # Is the header compilable? 1731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1732$as_echo_n "checking $2 usability... " >&6; } 1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735$4 1736#include <$2> 1737_ACEOF 1738if ac_fn_c_try_compile "$LINENO"; then : 1739 ac_header_compiler=yes 1740else 1741 ac_header_compiler=no 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1745$as_echo "$ac_header_compiler" >&6; } 1746 1747# Is the header present? 1748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1749$as_echo_n "checking $2 presence... " >&6; } 1750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_cpp "$LINENO"; then : 1755 ac_header_preproc=yes 1756else 1757 ac_header_preproc=no 1758fi 1759rm -f conftest.err conftest.i conftest.$ac_ext 1760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1761$as_echo "$ac_header_preproc" >&6; } 1762 1763# So? What about this header? 1764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1765 yes:no: ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1767$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1770 ;; 1771 no:yes:* ) 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1773$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1775$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1777$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1779$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1781$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1782( $as_echo "## ---------------------------------------------------------------------------- ## 1783## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ## 1784## ---------------------------------------------------------------------------- ##" 1785 ) | sed "s/^/$as_me: WARNING: /" >&2 1786 ;; 1787esac 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792else 1793 eval "$3=\$ac_header_compiler" 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798fi 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_header_mongrel 1802 1803# ac_fn_c_try_run LINENO 1804# ---------------------- 1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1806# that executables *can* be run. 1807ac_fn_c_try_run () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 if { { ac_try="$ac_link" 1811case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_link") 2>&5 1818 ac_status=$? 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1821 { { case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_try") 2>&5 1828 ac_status=$? 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; }; }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: program exited with status $ac_status" >&5 1834 $as_echo "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=$ac_status 1838fi 1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 as_fn_set_status $ac_retval 1842 1843} # ac_fn_c_try_run 1844 1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1846# ------------------------------------------------------- 1847# Tests whether HEADER exists and can be compiled using the include files in 1848# INCLUDES, setting the cache variable VAR accordingly. 1849ac_fn_c_check_header_compile () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856else 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859$4 1860#include <$2> 1861_ACEOF 1862if ac_fn_c_try_compile "$LINENO"; then : 1863 eval "$3=yes" 1864else 1865 eval "$3=no" 1866fi 1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_header_compile 1875 1876# ac_fn_c_try_link LINENO 1877# ----------------------- 1878# Try to link conftest.$ac_ext, and return whether this succeeded. 1879ac_fn_c_try_link () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 rm -f conftest.$ac_objext conftest$ac_exeext 1883 if { { ac_try="$ac_link" 1884case "(($ac_try" in 1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1886 *) ac_try_echo=$ac_try;; 1887esac 1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1889$as_echo "$ac_try_echo"; } >&5 1890 (eval "$ac_link") 2>conftest.err 1891 ac_status=$? 1892 if test -s conftest.err; then 1893 grep -v '^ *+' conftest.err >conftest.er1 1894 cat conftest.er1 >&5 1895 mv -f conftest.er1 conftest.err 1896 fi 1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1898 test $ac_status = 0; } && { 1899 test -z "$ac_c_werror_flag" || 1900 test ! -s conftest.err 1901 } && test -s conftest$ac_exeext && { 1902 test "$cross_compiling" = yes || 1903 test -x conftest$ac_exeext 1904 }; then : 1905 ac_retval=0 1906else 1907 $as_echo "$as_me: failed program was:" >&5 1908sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=1 1911fi 1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1914 # interfere with the next link command; also delete a directory that is 1915 # left behind by Apple's compiler. We do this before executing the actions. 1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 as_fn_set_status $ac_retval 1919 1920} # ac_fn_c_try_link 1921 1922# ac_fn_c_check_func LINENO FUNC VAR 1923# ---------------------------------- 1924# Tests whether FUNC exists, setting the cache variable VAR accordingly 1925ac_fn_c_check_func () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1937#define $2 innocuous_$2 1938 1939/* System header to define __stub macros and hopefully few prototypes, 1940 which can conflict with char $2 (); below. 1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1942 <limits.h> exists even on freestanding compilers. */ 1943 1944#ifdef __STDC__ 1945# include <limits.h> 1946#else 1947# include <assert.h> 1948#endif 1949 1950#undef $2 1951 1952/* Override any GCC internal prototype to avoid an error. 1953 Use char because int might match the return type of a GCC 1954 builtin and then its argument prototype would still apply. */ 1955#ifdef __cplusplus 1956extern "C" 1957#endif 1958char $2 (); 1959/* The GNU C library defines this for functions which it implements 1960 to always fail with ENOSYS. Some functions are actually named 1961 something starting with __ and the normal name is an alias. */ 1962#if defined __stub_$2 || defined __stub___$2 1963choke me 1964#endif 1965 1966int 1967main () 1968{ 1969return $2 (); 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_link "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext \ 1980 conftest$ac_exeext conftest.$ac_ext 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_func 1988 1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1990# ------------------------------------------- 1991# Tests whether TYPE exists after having included INCLUDES, setting cache 1992# variable VAR accordingly. 1993ac_fn_c_check_type () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997$as_echo_n "checking for $2... " >&6; } 1998if eval \${$3+:} false; then : 1999 $as_echo_n "(cached) " >&6 2000else 2001 eval "$3=no" 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main () 2007{ 2008if (sizeof ($2)) 2009 return 0; 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017$4 2018int 2019main () 2020{ 2021if (sizeof (($2))) 2022 return 0; 2023 ; 2024 return 0; 2025} 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 2029else 2030 eval "$3=yes" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041} # ac_fn_c_check_type 2042 2043# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2044# -------------------------------------------- 2045# Tries to find the compile-time value of EXPR in a program that includes 2046# INCLUDES, setting VAR accordingly. Returns whether the value could be 2047# computed 2048ac_fn_c_compute_int () 2049{ 2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2051 if test "$cross_compiling" = yes; then 2052 # Depending upon the size, compute the lo and hi bounds. 2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055$4 2056int 2057main () 2058{ 2059static int test_array [1 - 2 * !(($2) >= 0)]; 2060test_array [0] = 0; 2061return test_array [0]; 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 ac_lo=0 ac_mid=0 2069 while :; do 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$4 2073int 2074main () 2075{ 2076static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2077test_array [0] = 0; 2078return test_array [0]; 2079 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084if ac_fn_c_try_compile "$LINENO"; then : 2085 ac_hi=$ac_mid; break 2086else 2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2088 if test $ac_lo -le $ac_mid; then 2089 ac_lo= ac_hi= 2090 break 2091 fi 2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2093fi 2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2095 done 2096else 2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2098/* end confdefs.h. */ 2099$4 2100int 2101main () 2102{ 2103static int test_array [1 - 2 * !(($2) < 0)]; 2104test_array [0] = 0; 2105return test_array [0]; 2106 2107 ; 2108 return 0; 2109} 2110_ACEOF 2111if ac_fn_c_try_compile "$LINENO"; then : 2112 ac_hi=-1 ac_mid=-1 2113 while :; do 2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2115/* end confdefs.h. */ 2116$4 2117int 2118main () 2119{ 2120static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2121test_array [0] = 0; 2122return test_array [0]; 2123 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 ac_lo=$ac_mid; break 2130else 2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2132 if test $ac_mid -le $ac_hi; then 2133 ac_lo= ac_hi= 2134 break 2135 fi 2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2137fi 2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2139 done 2140else 2141 ac_lo= ac_hi= 2142fi 2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2144fi 2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2146# Binary search between lo and hi bounds. 2147while test "x$ac_lo" != "x$ac_hi"; do 2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151$4 2152int 2153main () 2154{ 2155static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2156test_array [0] = 0; 2157return test_array [0]; 2158 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163if ac_fn_c_try_compile "$LINENO"; then : 2164 ac_hi=$ac_mid 2165else 2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2167fi 2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2169done 2170case $ac_lo in #(( 2171?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2172'') ac_retval=1 ;; 2173esac 2174 else 2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178static long int longval () { return $2; } 2179static unsigned long int ulongval () { return $2; } 2180#include <stdio.h> 2181#include <stdlib.h> 2182int 2183main () 2184{ 2185 2186 FILE *f = fopen ("conftest.val", "w"); 2187 if (! f) 2188 return 1; 2189 if (($2) < 0) 2190 { 2191 long int i = longval (); 2192 if (i != ($2)) 2193 return 1; 2194 fprintf (f, "%ld", i); 2195 } 2196 else 2197 { 2198 unsigned long int i = ulongval (); 2199 if (i != ($2)) 2200 return 1; 2201 fprintf (f, "%lu", i); 2202 } 2203 /* Do not output a trailing newline, as this causes \r\n confusion 2204 on some platforms. */ 2205 return ferror (f) || fclose (f) != 0; 2206 2207 ; 2208 return 0; 2209} 2210_ACEOF 2211if ac_fn_c_try_run "$LINENO"; then : 2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2213else 2214 ac_retval=1 2215fi 2216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2217 conftest.$ac_objext conftest.beam conftest.$ac_ext 2218rm -f conftest.val 2219 2220 fi 2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2222 as_fn_set_status $ac_retval 2223 2224} # ac_fn_c_compute_int 2225 2226# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2227# ---------------------------------------------------- 2228# Tries to find if the field MEMBER exists in type AGGR, after including 2229# INCLUDES, setting cache variable VAR accordingly. 2230ac_fn_c_check_member () 2231{ 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2234$as_echo_n "checking for $2.$3... " >&6; } 2235if eval \${$4+:} false; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2239/* end confdefs.h. */ 2240$5 2241int 2242main () 2243{ 2244static $2 ac_aggr; 2245if (ac_aggr.$3) 2246return 0; 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 eval "$4=yes" 2253else 2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2255/* end confdefs.h. */ 2256$5 2257int 2258main () 2259{ 2260static $2 ac_aggr; 2261if (sizeof ac_aggr.$3) 2262return 0; 2263 ; 2264 return 0; 2265} 2266_ACEOF 2267if ac_fn_c_try_compile "$LINENO"; then : 2268 eval "$4=yes" 2269else 2270 eval "$4=no" 2271fi 2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2273fi 2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2275fi 2276eval ac_res=\$$4 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2278$as_echo "$ac_res" >&6; } 2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2280 2281} # ac_fn_c_check_member 2282cat >config.log <<_ACEOF 2283This file contains any messages produced by compilers while 2284running configure, to aid debugging if configure makes a mistake. 2285 2286It was created by fontconfig $as_me 2.11.1, which was 2287generated by GNU Autoconf 2.69. Invocation command line was 2288 2289 $ $0 $@ 2290 2291_ACEOF 2292exec 5>>config.log 2293{ 2294cat <<_ASUNAME 2295## --------- ## 2296## Platform. ## 2297## --------- ## 2298 2299hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2300uname -m = `(uname -m) 2>/dev/null || echo unknown` 2301uname -r = `(uname -r) 2>/dev/null || echo unknown` 2302uname -s = `(uname -s) 2>/dev/null || echo unknown` 2303uname -v = `(uname -v) 2>/dev/null || echo unknown` 2304 2305/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2306/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2307 2308/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2309/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2310/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2311/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2312/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2313/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2314/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2315 2316_ASUNAME 2317 2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2319for as_dir in $PATH 2320do 2321 IFS=$as_save_IFS 2322 test -z "$as_dir" && as_dir=. 2323 $as_echo "PATH: $as_dir" 2324 done 2325IFS=$as_save_IFS 2326 2327} >&5 2328 2329cat >&5 <<_ACEOF 2330 2331 2332## ----------- ## 2333## Core tests. ## 2334## ----------- ## 2335 2336_ACEOF 2337 2338 2339# Keep a trace of the command line. 2340# Strip out --no-create and --no-recursion so they do not pile up. 2341# Strip out --silent because we don't want to record it for future runs. 2342# Also quote any args containing shell meta-characters. 2343# Make two passes to allow for proper duplicate-argument suppression. 2344ac_configure_args= 2345ac_configure_args0= 2346ac_configure_args1= 2347ac_must_keep_next=false 2348for ac_pass in 1 2 2349do 2350 for ac_arg 2351 do 2352 case $ac_arg in 2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2355 | -silent | --silent | --silen | --sile | --sil) 2356 continue ;; 2357 *\'*) 2358 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2359 esac 2360 case $ac_pass in 2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2362 2) 2363 as_fn_append ac_configure_args1 " '$ac_arg'" 2364 if test $ac_must_keep_next = true; then 2365 ac_must_keep_next=false # Got value, back to normal. 2366 else 2367 case $ac_arg in 2368 *=* | --config-cache | -C | -disable-* | --disable-* \ 2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2371 | -with-* | --with-* | -without-* | --without-* | --x) 2372 case "$ac_configure_args0 " in 2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2374 esac 2375 ;; 2376 -* ) ac_must_keep_next=true ;; 2377 esac 2378 fi 2379 as_fn_append ac_configure_args " '$ac_arg'" 2380 ;; 2381 esac 2382 done 2383done 2384{ ac_configure_args0=; unset ac_configure_args0;} 2385{ ac_configure_args1=; unset ac_configure_args1;} 2386 2387# When interrupted or exit'd, cleanup temporary files, and complete 2388# config.log. We remove comments because anyway the quotes in there 2389# would cause problems or look ugly. 2390# WARNING: Use '\'' to represent an apostrophe within the trap. 2391# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2392trap 'exit_status=$? 2393 # Save into config.log some information that might help in debugging. 2394 { 2395 echo 2396 2397 $as_echo "## ---------------- ## 2398## Cache variables. ## 2399## ---------------- ##" 2400 echo 2401 # The following way of writing the cache mishandles newlines in values, 2402( 2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2404 eval ac_val=\$$ac_var 2405 case $ac_val in #( 2406 *${as_nl}*) 2407 case $ac_var in #( 2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2410 esac 2411 case $ac_var in #( 2412 _ | IFS | as_nl) ;; #( 2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2414 *) { eval $ac_var=; unset $ac_var;} ;; 2415 esac ;; 2416 esac 2417 done 2418 (set) 2>&1 | 2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2420 *${as_nl}ac_space=\ *) 2421 sed -n \ 2422 "s/'\''/'\''\\\\'\'''\''/g; 2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2424 ;; #( 2425 *) 2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2427 ;; 2428 esac | 2429 sort 2430) 2431 echo 2432 2433 $as_echo "## ----------------- ## 2434## Output variables. ## 2435## ----------------- ##" 2436 echo 2437 for ac_var in $ac_subst_vars 2438 do 2439 eval ac_val=\$$ac_var 2440 case $ac_val in 2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2442 esac 2443 $as_echo "$ac_var='\''$ac_val'\''" 2444 done | sort 2445 echo 2446 2447 if test -n "$ac_subst_files"; then 2448 $as_echo "## ------------------- ## 2449## File substitutions. ## 2450## ------------------- ##" 2451 echo 2452 for ac_var in $ac_subst_files 2453 do 2454 eval ac_val=\$$ac_var 2455 case $ac_val in 2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2457 esac 2458 $as_echo "$ac_var='\''$ac_val'\''" 2459 done | sort 2460 echo 2461 fi 2462 2463 if test -s confdefs.h; then 2464 $as_echo "## ----------- ## 2465## confdefs.h. ## 2466## ----------- ##" 2467 echo 2468 cat confdefs.h 2469 echo 2470 fi 2471 test "$ac_signal" != 0 && 2472 $as_echo "$as_me: caught signal $ac_signal" 2473 $as_echo "$as_me: exit $exit_status" 2474 } >&5 2475 rm -f core *.core core.conftest.* && 2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2477 exit $exit_status 2478' 0 2479for ac_signal in 1 2 13 15; do 2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2481done 2482ac_signal=0 2483 2484# confdefs.h avoids OS command line length limits that DEFS can exceed. 2485rm -f -r conftest* confdefs.h 2486 2487$as_echo "/* confdefs.h */" > confdefs.h 2488 2489# Predefined preprocessor variables. 2490 2491cat >>confdefs.h <<_ACEOF 2492#define PACKAGE_NAME "$PACKAGE_NAME" 2493_ACEOF 2494 2495cat >>confdefs.h <<_ACEOF 2496#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2497_ACEOF 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_VERSION "$PACKAGE_VERSION" 2501_ACEOF 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_STRING "$PACKAGE_STRING" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2509_ACEOF 2510 2511cat >>confdefs.h <<_ACEOF 2512#define PACKAGE_URL "$PACKAGE_URL" 2513_ACEOF 2514 2515 2516# Let the site file select an alternate cache file if it wants to. 2517# Prefer an explicitly selected file to automatically selected ones. 2518ac_site_file1=NONE 2519ac_site_file2=NONE 2520if test -n "$CONFIG_SITE"; then 2521 # We do not want a PATH search for config.site. 2522 case $CONFIG_SITE in #(( 2523 -*) ac_site_file1=./$CONFIG_SITE;; 2524 */*) ac_site_file1=$CONFIG_SITE;; 2525 *) ac_site_file1=./$CONFIG_SITE;; 2526 esac 2527elif test "x$prefix" != xNONE; then 2528 ac_site_file1=$prefix/share/config.site 2529 ac_site_file2=$prefix/etc/config.site 2530else 2531 ac_site_file1=$ac_default_prefix/share/config.site 2532 ac_site_file2=$ac_default_prefix/etc/config.site 2533fi 2534for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2535do 2536 test "x$ac_site_file" = xNONE && continue 2537 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2539$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2540 sed 's/^/| /' "$ac_site_file" >&5 2541 . "$ac_site_file" \ 2542 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2544as_fn_error $? "failed to load site script $ac_site_file 2545See \`config.log' for more details" "$LINENO" 5; } 2546 fi 2547done 2548 2549if test -r "$cache_file"; then 2550 # Some versions of bash will fail to source /dev/null (special files 2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2554$as_echo "$as_me: loading cache $cache_file" >&6;} 2555 case $cache_file in 2556 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2557 *) . "./$cache_file";; 2558 esac 2559 fi 2560else 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2562$as_echo "$as_me: creating cache $cache_file" >&6;} 2563 >$cache_file 2564fi 2565 2566as_fn_append ac_header_list " stdlib.h" 2567as_fn_append ac_header_list " unistd.h" 2568as_fn_append ac_header_list " sys/param.h" 2569# Check that the precious variables saved in the cache have kept the same 2570# value. 2571ac_cache_corrupted=false 2572for ac_var in $ac_precious_vars; do 2573 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2574 eval ac_new_set=\$ac_env_${ac_var}_set 2575 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2576 eval ac_new_val=\$ac_env_${ac_var}_value 2577 case $ac_old_set,$ac_new_set in 2578 set,) 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2580$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2581 ac_cache_corrupted=: ;; 2582 ,set) 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2584$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2585 ac_cache_corrupted=: ;; 2586 ,);; 2587 *) 2588 if test "x$ac_old_val" != "x$ac_new_val"; then 2589 # differences in whitespace do not lead to failure. 2590 ac_old_val_w=`echo x $ac_old_val` 2591 ac_new_val_w=`echo x $ac_new_val` 2592 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2594$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2595 ac_cache_corrupted=: 2596 else 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2598$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2599 eval $ac_var=\$ac_old_val 2600 fi 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2602$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2604$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2605 fi;; 2606 esac 2607 # Pass precious variables to config.status. 2608 if test "$ac_new_set" = set; then 2609 case $ac_new_val in 2610 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2611 *) ac_arg=$ac_var=$ac_new_val ;; 2612 esac 2613 case " $ac_configure_args " in 2614 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2615 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2616 esac 2617 fi 2618done 2619if $ac_cache_corrupted; then 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2623$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2624 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2625fi 2626## -------------------- ## 2627## Main body of script. ## 2628## -------------------- ## 2629 2630ac_ext=c 2631ac_cpp='$CPP $CPPFLAGS' 2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2634ac_compiler_gnu=$ac_cv_c_compiler_gnu 2635 2636 2637am__api_version='1.13' 2638 2639ac_aux_dir= 2640for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2641 if test -f "$ac_dir/install-sh"; then 2642 ac_aux_dir=$ac_dir 2643 ac_install_sh="$ac_aux_dir/install-sh -c" 2644 break 2645 elif test -f "$ac_dir/install.sh"; then 2646 ac_aux_dir=$ac_dir 2647 ac_install_sh="$ac_aux_dir/install.sh -c" 2648 break 2649 elif test -f "$ac_dir/shtool"; then 2650 ac_aux_dir=$ac_dir 2651 ac_install_sh="$ac_aux_dir/shtool install -c" 2652 break 2653 fi 2654done 2655if test -z "$ac_aux_dir"; then 2656 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2657fi 2658 2659# These three variables are undocumented and unsupported, 2660# and are intended to be withdrawn in a future Autoconf release. 2661# They can cause serious problems if a builder's source tree is in a directory 2662# whose full name contains unusual characters. 2663ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2664ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2665ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2666 2667 2668# Find a good install program. We prefer a C program (faster), 2669# so one script is as good as another. But avoid the broken or 2670# incompatible versions: 2671# SysV /etc/install, /usr/sbin/install 2672# SunOS /usr/etc/install 2673# IRIX /sbin/install 2674# AIX /bin/install 2675# AmigaOS /C/install, which installs bootblocks on floppy discs 2676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2677# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2679# OS/2's system install, which has a completely different semantic 2680# ./install, which can be erroneously created by make from ./install.sh. 2681# Reject install programs that cannot install multiple files. 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2683$as_echo_n "checking for a BSD-compatible install... " >&6; } 2684if test -z "$INSTALL"; then 2685if ${ac_cv_path_install+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 # Account for people who put trailing slashes in PATH elements. 2694case $as_dir/ in #(( 2695 ./ | .// | /[cC]/* | \ 2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2698 /usr/ucb/* ) ;; 2699 *) 2700 # OSF1 and SCO ODT 3.0 have their own names for install. 2701 # Don't use installbsd from OSF since it installs stuff as root 2702 # by default. 2703 for ac_prog in ginstall scoinst install; do 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2706 if test $ac_prog = install && 2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2708 # AIX install. It has an incompatible calling convention. 2709 : 2710 elif test $ac_prog = install && 2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # program-specific install script used by HP pwplus--don't use. 2713 : 2714 else 2715 rm -rf conftest.one conftest.two conftest.dir 2716 echo one > conftest.one 2717 echo two > conftest.two 2718 mkdir conftest.dir 2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2720 test -s conftest.one && test -s conftest.two && 2721 test -s conftest.dir/conftest.one && 2722 test -s conftest.dir/conftest.two 2723 then 2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2725 break 3 2726 fi 2727 fi 2728 fi 2729 done 2730 done 2731 ;; 2732esac 2733 2734 done 2735IFS=$as_save_IFS 2736 2737rm -rf conftest.one conftest.two conftest.dir 2738 2739fi 2740 if test "${ac_cv_path_install+set}" = set; then 2741 INSTALL=$ac_cv_path_install 2742 else 2743 # As a last resort, use the slow shell script. Don't cache a 2744 # value for INSTALL within a source directory, because that will 2745 # break other packages using the cache if that directory is 2746 # removed, or if the value is a relative name. 2747 INSTALL=$ac_install_sh 2748 fi 2749fi 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2751$as_echo "$INSTALL" >&6; } 2752 2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2754# It thinks the first close brace ends the variable substitution. 2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2756 2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2758 2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2760 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2762$as_echo_n "checking whether build environment is sane... " >&6; } 2763# Reject unsafe characters in $srcdir or the absolute working directory 2764# name. Accept space and tab only in the latter. 2765am_lf=' 2766' 2767case `pwd` in 2768 *[\\\"\#\$\&\'\`$am_lf]*) 2769 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2770esac 2771case $srcdir in 2772 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2773 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2774esac 2775 2776# Do 'set' in a subshell so we don't clobber the current shell's 2777# arguments. Must try -L first in case configure is actually a 2778# symlink; some systems play weird games with the mod time of symlinks 2779# (eg FreeBSD returns the mod time of the symlink's containing 2780# directory). 2781if ( 2782 am_has_slept=no 2783 for am_try in 1 2; do 2784 echo "timestamp, slept: $am_has_slept" > conftest.file 2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2786 if test "$*" = "X"; then 2787 # -L didn't work. 2788 set X `ls -t "$srcdir/configure" conftest.file` 2789 fi 2790 if test "$*" != "X $srcdir/configure conftest.file" \ 2791 && test "$*" != "X conftest.file $srcdir/configure"; then 2792 2793 # If neither matched, then we have a broken ls. This can happen 2794 # if, for instance, CONFIG_SHELL is bash and it inherits a 2795 # broken ls alias from the environment. This has actually 2796 # happened. Such a system could not be considered "sane". 2797 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2798 alias in your environment" "$LINENO" 5 2799 fi 2800 if test "$2" = conftest.file || test $am_try -eq 2; then 2801 break 2802 fi 2803 # Just in case. 2804 sleep 1 2805 am_has_slept=yes 2806 done 2807 test "$2" = conftest.file 2808 ) 2809then 2810 # Ok. 2811 : 2812else 2813 as_fn_error $? "newly created file is older than distributed files! 2814Check your system clock" "$LINENO" 5 2815fi 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2817$as_echo "yes" >&6; } 2818# If we didn't sleep, we still need to ensure time stamps of config.status and 2819# generated files are strictly newer. 2820am_sleep_pid= 2821if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2822 ( sleep 1 ) & 2823 am_sleep_pid=$! 2824fi 2825 2826rm -f conftest.file 2827 2828test "$program_prefix" != NONE && 2829 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2830# Use a double $ so make ignores it. 2831test "$program_suffix" != NONE && 2832 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2833# Double any \ or $. 2834# By default was `s,x,x', remove it if useless. 2835ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2836program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2837 2838# expand $ac_aux_dir to an absolute path 2839am_aux_dir=`cd $ac_aux_dir && pwd` 2840 2841if test x"${MISSING+set}" != xset; then 2842 case $am_aux_dir in 2843 *\ * | *\ *) 2844 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2845 *) 2846 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2847 esac 2848fi 2849# Use eval to expand $SHELL 2850if eval "$MISSING --is-lightweight"; then 2851 am_missing_run="$MISSING " 2852else 2853 am_missing_run= 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2855$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2856fi 2857 2858if test x"${install_sh}" != xset; then 2859 case $am_aux_dir in 2860 *\ * | *\ *) 2861 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2862 *) 2863 install_sh="\${SHELL} $am_aux_dir/install-sh" 2864 esac 2865fi 2866 2867# Installed binaries are usually stripped using 'strip' when the user 2868# run "make install-strip". However 'strip' might not be the right 2869# tool to use in cross-compilation environments, therefore Automake 2870# will honor the 'STRIP' environment variable to overrule this program. 2871if test "$cross_compiling" != no; then 2872 if test -n "$ac_tool_prefix"; then 2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2874set dummy ${ac_tool_prefix}strip; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_STRIP+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$STRIP"; then 2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900STRIP=$ac_cv_prog_STRIP 2901if test -n "$STRIP"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2903$as_echo "$STRIP" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910fi 2911if test -z "$ac_cv_prog_STRIP"; then 2912 ac_ct_STRIP=$STRIP 2913 # Extract the first word of "strip", so it can be a program name with args. 2914set dummy strip; ac_word=$2 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916$as_echo_n "checking for $ac_word... " >&6; } 2917if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test -n "$ac_ct_STRIP"; then 2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2930 ac_cv_prog_ac_ct_STRIP="strip" 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935 done 2936IFS=$as_save_IFS 2937 2938fi 2939fi 2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2941if test -n "$ac_ct_STRIP"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2943$as_echo "$ac_ct_STRIP" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 if test "x$ac_ct_STRIP" = x; then 2950 STRIP=":" 2951 else 2952 case $cross_compiling:$ac_tool_warned in 2953yes:) 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 STRIP=$ac_ct_STRIP 2959 fi 2960else 2961 STRIP="$ac_cv_prog_STRIP" 2962fi 2963 2964fi 2965INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2966 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2968$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2969if test -z "$MKDIR_P"; then 2970 if ${ac_cv_path_mkdir+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_prog in mkdir gmkdir; do 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2980 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2981 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2982 'mkdir (GNU coreutils) '* | \ 2983 'mkdir (coreutils) '* | \ 2984 'mkdir (fileutils) '4.1*) 2985 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2986 break 3;; 2987 esac 2988 done 2989 done 2990 done 2991IFS=$as_save_IFS 2992 2993fi 2994 2995 test -d ./--version && rmdir ./--version 2996 if test "${ac_cv_path_mkdir+set}" = set; then 2997 MKDIR_P="$ac_cv_path_mkdir -p" 2998 else 2999 # As a last resort, use the slow shell script. Don't cache a 3000 # value for MKDIR_P within a source directory, because that will 3001 # break other packages using the cache if that directory is 3002 # removed, or if the value is a relative name. 3003 MKDIR_P="$ac_install_sh -d" 3004 fi 3005fi 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3007$as_echo "$MKDIR_P" >&6; } 3008 3009for ac_prog in gawk mawk nawk awk 3010do 3011 # Extract the first word of "$ac_prog", so it can be a program name with args. 3012set dummy $ac_prog; ac_word=$2 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014$as_echo_n "checking for $ac_word... " >&6; } 3015if ${ac_cv_prog_AWK+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if test -n "$AWK"; then 3019 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3020else 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3028 ac_cv_prog_AWK="$ac_prog" 3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037fi 3038AWK=$ac_cv_prog_AWK 3039if test -n "$AWK"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3041$as_echo "$AWK" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 3048 test -n "$AWK" && break 3049done 3050 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3052$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3053set x ${MAKE-make} 3054ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3055if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 cat >conftest.make <<\_ACEOF 3059SHELL = /bin/sh 3060all: 3061 @echo '@@@%%%=$(MAKE)=@@@%%%' 3062_ACEOF 3063# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3064case `${MAKE-make} -f conftest.make 2>/dev/null` in 3065 *@@@%%%=?*=@@@%%%*) 3066 eval ac_cv_prog_make_${ac_make}_set=yes;; 3067 *) 3068 eval ac_cv_prog_make_${ac_make}_set=no;; 3069esac 3070rm -f conftest.make 3071fi 3072if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3074$as_echo "yes" >&6; } 3075 SET_MAKE= 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079 SET_MAKE="MAKE=${MAKE-make}" 3080fi 3081 3082rm -rf .tst 2>/dev/null 3083mkdir .tst 2>/dev/null 3084if test -d .tst; then 3085 am__leading_dot=. 3086else 3087 am__leading_dot=_ 3088fi 3089rmdir .tst 2>/dev/null 3090 3091# Check whether --enable-silent-rules was given. 3092if test "${enable_silent_rules+set}" = set; then : 3093 enableval=$enable_silent_rules; 3094fi 3095 3096case $enable_silent_rules in # ((( 3097 yes) AM_DEFAULT_VERBOSITY=0;; 3098 no) AM_DEFAULT_VERBOSITY=1;; 3099 *) AM_DEFAULT_VERBOSITY=1;; 3100esac 3101am_make=${MAKE-make} 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3103$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3104if ${am_cv_make_support_nested_variables+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if $as_echo 'TRUE=$(BAR$(V)) 3108BAR0=false 3109BAR1=true 3110V=1 3111am__doit: 3112 @$(TRUE) 3113.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3114 am_cv_make_support_nested_variables=yes 3115else 3116 am_cv_make_support_nested_variables=no 3117fi 3118fi 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3120$as_echo "$am_cv_make_support_nested_variables" >&6; } 3121if test $am_cv_make_support_nested_variables = yes; then 3122 AM_V='$(V)' 3123 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3124else 3125 AM_V=$AM_DEFAULT_VERBOSITY 3126 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3127fi 3128AM_BACKSLASH='\' 3129 3130if test "`cd $srcdir && pwd`" != "`pwd`"; then 3131 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3132 # is not polluted with repeated "-I." 3133 am__isrc=' -I$(srcdir)' 3134 # test to see if srcdir already configured 3135 if test -f $srcdir/config.status; then 3136 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3137 fi 3138fi 3139 3140# test whether we have cygpath 3141if test -z "$CYGPATH_W"; then 3142 if (cygpath --version) >/dev/null 2>/dev/null; then 3143 CYGPATH_W='cygpath -w' 3144 else 3145 CYGPATH_W=echo 3146 fi 3147fi 3148 3149 3150# Define the identity of the package. 3151 PACKAGE='fontconfig' 3152 VERSION='2.11.1' 3153 3154 3155cat >>confdefs.h <<_ACEOF 3156#define PACKAGE "$PACKAGE" 3157_ACEOF 3158 3159 3160cat >>confdefs.h <<_ACEOF 3161#define VERSION "$VERSION" 3162_ACEOF 3163 3164# Some tools Automake needs. 3165 3166ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3167 3168 3169AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3170 3171 3172AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3173 3174 3175AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3176 3177 3178MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3179 3180# For better backward compatibility. To be removed once Automake 1.9.x 3181# dies out for good. For more background, see: 3182# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3183# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3184mkdir_p='$(MKDIR_P)' 3185 3186# We need awk for the "check" target. The system "awk" is bad on 3187# some platforms. 3188# Always define AMTAR for backward compatibility. Yes, it's still used 3189# in the wild :-( We should find a proper way to deprecate it ... 3190AMTAR='$${TAR-tar}' 3191 3192 3193# We'll loop over all known methods to create a tar archive until one works. 3194_am_tools='gnutar pax cpio none' 3195 3196am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3197 3198 3199 3200 3201 3202 3203# Check whether --enable-silent-rules was given. 3204if test "${enable_silent_rules+set}" = set; then : 3205 enableval=$enable_silent_rules; 3206fi 3207 3208case $enable_silent_rules in # ((( 3209 yes) AM_DEFAULT_VERBOSITY=0;; 3210 no) AM_DEFAULT_VERBOSITY=1;; 3211 *) AM_DEFAULT_VERBOSITY=0;; 3212esac 3213am_make=${MAKE-make} 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3215$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3216if ${am_cv_make_support_nested_variables+:} false; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if $as_echo 'TRUE=$(BAR$(V)) 3220BAR0=false 3221BAR1=true 3222V=1 3223am__doit: 3224 @$(TRUE) 3225.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3226 am_cv_make_support_nested_variables=yes 3227else 3228 am_cv_make_support_nested_variables=no 3229fi 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3232$as_echo "$am_cv_make_support_nested_variables" >&6; } 3233if test $am_cv_make_support_nested_variables = yes; then 3234 AM_V='$(V)' 3235 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3236else 3237 AM_V=$AM_DEFAULT_VERBOSITY 3238 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3239fi 3240AM_BACKSLASH='\' 3241 3242 3243 3244ac_config_headers="$ac_config_headers config.h" 3245 3246 3247 3248ac_ext=c 3249ac_cpp='$CPP $CPPFLAGS' 3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3252ac_compiler_gnu=$ac_cv_c_compiler_gnu 3253if test -n "$ac_tool_prefix"; then 3254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3255set dummy ${ac_tool_prefix}gcc; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if ${ac_cv_prog_CC+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$CC"; then 3262 ac_cv_prog_CC="$CC" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281CC=$ac_cv_prog_CC 3282if test -n "$CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3284$as_echo "$CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 3291fi 3292if test -z "$ac_cv_prog_CC"; then 3293 ac_ct_CC=$CC 3294 # Extract the first word of "gcc", so it can be a program name with args. 3295set dummy gcc; ac_word=$2 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3297$as_echo_n "checking for $ac_word... " >&6; } 3298if ${ac_cv_prog_ac_ct_CC+:} false; then : 3299 $as_echo_n "(cached) " >&6 3300else 3301 if test -n "$ac_ct_CC"; then 3302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3303else 3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305for as_dir in $PATH 3306do 3307 IFS=$as_save_IFS 3308 test -z "$as_dir" && as_dir=. 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3311 ac_cv_prog_ac_ct_CC="gcc" 3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315done 3316 done 3317IFS=$as_save_IFS 3318 3319fi 3320fi 3321ac_ct_CC=$ac_cv_prog_ac_ct_CC 3322if test -n "$ac_ct_CC"; then 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3324$as_echo "$ac_ct_CC" >&6; } 3325else 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327$as_echo "no" >&6; } 3328fi 3329 3330 if test "x$ac_ct_CC" = x; then 3331 CC="" 3332 else 3333 case $cross_compiling:$ac_tool_warned in 3334yes:) 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3337ac_tool_warned=yes ;; 3338esac 3339 CC=$ac_ct_CC 3340 fi 3341else 3342 CC="$ac_cv_prog_CC" 3343fi 3344 3345if test -z "$CC"; then 3346 if test -n "$ac_tool_prefix"; then 3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3348set dummy ${ac_tool_prefix}cc; ac_word=$2 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3350$as_echo_n "checking for $ac_word... " >&6; } 3351if ${ac_cv_prog_CC+:} false; then : 3352 $as_echo_n "(cached) " >&6 3353else 3354 if test -n "$CC"; then 3355 ac_cv_prog_CC="$CC" # Let the user override the test. 3356else 3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3358for as_dir in $PATH 3359do 3360 IFS=$as_save_IFS 3361 test -z "$as_dir" && as_dir=. 3362 for ac_exec_ext in '' $ac_executable_extensions; do 3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3364 ac_cv_prog_CC="${ac_tool_prefix}cc" 3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3366 break 2 3367 fi 3368done 3369 done 3370IFS=$as_save_IFS 3371 3372fi 3373fi 3374CC=$ac_cv_prog_CC 3375if test -n "$CC"; then 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3377$as_echo "$CC" >&6; } 3378else 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3380$as_echo "no" >&6; } 3381fi 3382 3383 3384 fi 3385fi 3386if test -z "$CC"; then 3387 # Extract the first word of "cc", so it can be a program name with args. 3388set dummy cc; ac_word=$2 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3390$as_echo_n "checking for $ac_word... " >&6; } 3391if ${ac_cv_prog_CC+:} false; then : 3392 $as_echo_n "(cached) " >&6 3393else 3394 if test -n "$CC"; then 3395 ac_cv_prog_CC="$CC" # Let the user override the test. 3396else 3397 ac_prog_rejected=no 3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3399for as_dir in $PATH 3400do 3401 IFS=$as_save_IFS 3402 test -z "$as_dir" && as_dir=. 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3406 ac_prog_rejected=yes 3407 continue 3408 fi 3409 ac_cv_prog_CC="cc" 3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417if test $ac_prog_rejected = yes; then 3418 # We found a bogon in the path, so make sure we never use it. 3419 set dummy $ac_cv_prog_CC 3420 shift 3421 if test $# != 0; then 3422 # We chose a different compiler from the bogus one. 3423 # However, it has the same basename, so the bogon will be chosen 3424 # first if we set CC to just the basename; use the full file name. 3425 shift 3426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3427 fi 3428fi 3429fi 3430fi 3431CC=$ac_cv_prog_CC 3432if test -n "$CC"; then 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3434$as_echo "$CC" >&6; } 3435else 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437$as_echo "no" >&6; } 3438fi 3439 3440 3441fi 3442if test -z "$CC"; then 3443 if test -n "$ac_tool_prefix"; then 3444 for ac_prog in cl.exe 3445 do 3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3449$as_echo_n "checking for $ac_word... " >&6; } 3450if ${ac_cv_prog_CC+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 if test -n "$CC"; then 3454 ac_cv_prog_CC="$CC" # Let the user override the test. 3455else 3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3457for as_dir in $PATH 3458do 3459 IFS=$as_save_IFS 3460 test -z "$as_dir" && as_dir=. 3461 for ac_exec_ext in '' $ac_executable_extensions; do 3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3465 break 2 3466 fi 3467done 3468 done 3469IFS=$as_save_IFS 3470 3471fi 3472fi 3473CC=$ac_cv_prog_CC 3474if test -n "$CC"; then 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3476$as_echo "$CC" >&6; } 3477else 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3479$as_echo "no" >&6; } 3480fi 3481 3482 3483 test -n "$CC" && break 3484 done 3485fi 3486if test -z "$CC"; then 3487 ac_ct_CC=$CC 3488 for ac_prog in cl.exe 3489do 3490 # Extract the first word of "$ac_prog", so it can be a program name with args. 3491set dummy $ac_prog; ac_word=$2 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3493$as_echo_n "checking for $ac_word... " >&6; } 3494if ${ac_cv_prog_ac_ct_CC+:} false; then : 3495 $as_echo_n "(cached) " >&6 3496else 3497 if test -n "$ac_ct_CC"; then 3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3499else 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 test -z "$as_dir" && as_dir=. 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_ac_ct_CC="$ac_prog" 3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512 done 3513IFS=$as_save_IFS 3514 3515fi 3516fi 3517ac_ct_CC=$ac_cv_prog_ac_ct_CC 3518if test -n "$ac_ct_CC"; then 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3520$as_echo "$ac_ct_CC" >&6; } 3521else 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523$as_echo "no" >&6; } 3524fi 3525 3526 3527 test -n "$ac_ct_CC" && break 3528done 3529 3530 if test "x$ac_ct_CC" = x; then 3531 CC="" 3532 else 3533 case $cross_compiling:$ac_tool_warned in 3534yes:) 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3537ac_tool_warned=yes ;; 3538esac 3539 CC=$ac_ct_CC 3540 fi 3541fi 3542 3543fi 3544 3545 3546test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3548as_fn_error $? "no acceptable C compiler found in \$PATH 3549See \`config.log' for more details" "$LINENO" 5; } 3550 3551# Provide some information about the compiler. 3552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3553set X $ac_compile 3554ac_compiler=$2 3555for ac_option in --version -v -V -qversion; do 3556 { { ac_try="$ac_compiler $ac_option >&5" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3562$as_echo "$ac_try_echo"; } >&5 3563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3564 ac_status=$? 3565 if test -s conftest.err; then 3566 sed '10a\ 3567... rest of stderr output deleted ... 3568 10q' conftest.err >conftest.er1 3569 cat conftest.er1 >&5 3570 fi 3571 rm -f conftest.er1 conftest.err 3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3573 test $ac_status = 0; } 3574done 3575 3576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587ac_clean_files_save=$ac_clean_files 3588ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3589# Try to create an executable without -o first, disregard a.out. 3590# It will help us diagnose broken compilers, and finding out an intuition 3591# of exeext. 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3593$as_echo_n "checking whether the C compiler works... " >&6; } 3594ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3595 3596# The possible output files: 3597ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3598 3599ac_rmfiles= 3600for ac_file in $ac_files 3601do 3602 case $ac_file in 3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3604 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3605 esac 3606done 3607rm -f $ac_rmfiles 3608 3609if { { ac_try="$ac_link_default" 3610case "(($ac_try" in 3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3612 *) ac_try_echo=$ac_try;; 3613esac 3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3615$as_echo "$ac_try_echo"; } >&5 3616 (eval "$ac_link_default") 2>&5 3617 ac_status=$? 3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3619 test $ac_status = 0; }; then : 3620 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3621# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3622# in a Makefile. We should not override ac_cv_exeext if it was cached, 3623# so that the user can short-circuit this test for compilers unknown to 3624# Autoconf. 3625for ac_file in $ac_files '' 3626do 3627 test -f "$ac_file" || continue 3628 case $ac_file in 3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3630 ;; 3631 [ab].out ) 3632 # We found the default executable, but exeext='' is most 3633 # certainly right. 3634 break;; 3635 *.* ) 3636 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3637 then :; else 3638 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3639 fi 3640 # We set ac_cv_exeext here because the later test for it is not 3641 # safe: cross compilers may not add the suffix if given an `-o' 3642 # argument, so we may need to know it at that point already. 3643 # Even if this section looks crufty: it has the advantage of 3644 # actually working. 3645 break;; 3646 * ) 3647 break;; 3648 esac 3649done 3650test "$ac_cv_exeext" = no && ac_cv_exeext= 3651 3652else 3653 ac_file='' 3654fi 3655if test -z "$ac_file"; then : 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3657$as_echo "no" >&6; } 3658$as_echo "$as_me: failed program was:" >&5 3659sed 's/^/| /' conftest.$ac_ext >&5 3660 3661{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3663as_fn_error 77 "C compiler cannot create executables 3664See \`config.log' for more details" "$LINENO" 5; } 3665else 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3667$as_echo "yes" >&6; } 3668fi 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3670$as_echo_n "checking for C compiler default output file name... " >&6; } 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3672$as_echo "$ac_file" >&6; } 3673ac_exeext=$ac_cv_exeext 3674 3675rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3676ac_clean_files=$ac_clean_files_save 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3678$as_echo_n "checking for suffix of executables... " >&6; } 3679if { { ac_try="$ac_link" 3680case "(($ac_try" in 3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3682 *) ac_try_echo=$ac_try;; 3683esac 3684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3685$as_echo "$ac_try_echo"; } >&5 3686 (eval "$ac_link") 2>&5 3687 ac_status=$? 3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3689 test $ac_status = 0; }; then : 3690 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3691# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3692# work properly (i.e., refer to `conftest.exe'), while it won't with 3693# `rm'. 3694for ac_file in conftest.exe conftest conftest.*; do 3695 test -f "$ac_file" || continue 3696 case $ac_file in 3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3699 break;; 3700 * ) break;; 3701 esac 3702done 3703else 3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3706as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3707See \`config.log' for more details" "$LINENO" 5; } 3708fi 3709rm -f conftest conftest$ac_cv_exeext 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3711$as_echo "$ac_cv_exeext" >&6; } 3712 3713rm -f conftest.$ac_ext 3714EXEEXT=$ac_cv_exeext 3715ac_exeext=$EXEEXT 3716cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718#include <stdio.h> 3719int 3720main () 3721{ 3722FILE *f = fopen ("conftest.out", "w"); 3723 return ferror (f) || fclose (f) != 0; 3724 3725 ; 3726 return 0; 3727} 3728_ACEOF 3729ac_clean_files="$ac_clean_files conftest.out" 3730# Check that the compiler produces executables we can run. If not, either 3731# the compiler is broken, or we cross compile. 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3733$as_echo_n "checking whether we are cross compiling... " >&6; } 3734if test "$cross_compiling" != yes; then 3735 { { ac_try="$ac_link" 3736case "(($ac_try" in 3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3738 *) ac_try_echo=$ac_try;; 3739esac 3740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3741$as_echo "$ac_try_echo"; } >&5 3742 (eval "$ac_link") 2>&5 3743 ac_status=$? 3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3745 test $ac_status = 0; } 3746 if { ac_try='./conftest$ac_cv_exeext' 3747 { { case "(($ac_try" in 3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3749 *) ac_try_echo=$ac_try;; 3750esac 3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3752$as_echo "$ac_try_echo"; } >&5 3753 (eval "$ac_try") 2>&5 3754 ac_status=$? 3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3756 test $ac_status = 0; }; }; then 3757 cross_compiling=no 3758 else 3759 if test "$cross_compiling" = maybe; then 3760 cross_compiling=yes 3761 else 3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3764as_fn_error $? "cannot run C compiled programs. 3765If you meant to cross compile, use \`--host'. 3766See \`config.log' for more details" "$LINENO" 5; } 3767 fi 3768 fi 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3771$as_echo "$cross_compiling" >&6; } 3772 3773rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3774ac_clean_files=$ac_clean_files_save 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3776$as_echo_n "checking for suffix of object files... " >&6; } 3777if ${ac_cv_objext+:} false; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782 3783int 3784main () 3785{ 3786 3787 ; 3788 return 0; 3789} 3790_ACEOF 3791rm -f conftest.o conftest.obj 3792if { { ac_try="$ac_compile" 3793case "(($ac_try" in 3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3795 *) ac_try_echo=$ac_try;; 3796esac 3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3798$as_echo "$ac_try_echo"; } >&5 3799 (eval "$ac_compile") 2>&5 3800 ac_status=$? 3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3802 test $ac_status = 0; }; then : 3803 for ac_file in conftest.o conftest.obj conftest.*; do 3804 test -f "$ac_file" || continue; 3805 case $ac_file in 3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3808 break;; 3809 esac 3810done 3811else 3812 $as_echo "$as_me: failed program was:" >&5 3813sed 's/^/| /' conftest.$ac_ext >&5 3814 3815{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3817as_fn_error $? "cannot compute suffix of object files: cannot compile 3818See \`config.log' for more details" "$LINENO" 5; } 3819fi 3820rm -f conftest.$ac_cv_objext conftest.$ac_ext 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3823$as_echo "$ac_cv_objext" >&6; } 3824OBJEXT=$ac_cv_objext 3825ac_objext=$OBJEXT 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3828if ${ac_cv_c_compiler_gnu+:} false; then : 3829 $as_echo_n "(cached) " >&6 3830else 3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832/* end confdefs.h. */ 3833 3834int 3835main () 3836{ 3837#ifndef __GNUC__ 3838 choke me 3839#endif 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845if ac_fn_c_try_compile "$LINENO"; then : 3846 ac_compiler_gnu=yes 3847else 3848 ac_compiler_gnu=no 3849fi 3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3851ac_cv_c_compiler_gnu=$ac_compiler_gnu 3852 3853fi 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3855$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3856if test $ac_compiler_gnu = yes; then 3857 GCC=yes 3858else 3859 GCC= 3860fi 3861ac_test_CFLAGS=${CFLAGS+set} 3862ac_save_CFLAGS=$CFLAGS 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3864$as_echo_n "checking whether $CC accepts -g... " >&6; } 3865if ${ac_cv_prog_cc_g+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 ac_save_c_werror_flag=$ac_c_werror_flag 3869 ac_c_werror_flag=yes 3870 ac_cv_prog_cc_g=no 3871 CFLAGS="-g" 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874 3875int 3876main () 3877{ 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883if ac_fn_c_try_compile "$LINENO"; then : 3884 ac_cv_prog_cc_g=yes 3885else 3886 CFLAGS="" 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889 3890int 3891main () 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898if ac_fn_c_try_compile "$LINENO"; then : 3899 3900else 3901 ac_c_werror_flag=$ac_save_c_werror_flag 3902 CFLAGS="-g" 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905 3906int 3907main () 3908{ 3909 3910 ; 3911 return 0; 3912} 3913_ACEOF 3914if ac_fn_c_try_compile "$LINENO"; then : 3915 ac_cv_prog_cc_g=yes 3916fi 3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3918fi 3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3920fi 3921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3922 ac_c_werror_flag=$ac_save_c_werror_flag 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3925$as_echo "$ac_cv_prog_cc_g" >&6; } 3926if test "$ac_test_CFLAGS" = set; then 3927 CFLAGS=$ac_save_CFLAGS 3928elif test $ac_cv_prog_cc_g = yes; then 3929 if test "$GCC" = yes; then 3930 CFLAGS="-g -O2" 3931 else 3932 CFLAGS="-g" 3933 fi 3934else 3935 if test "$GCC" = yes; then 3936 CFLAGS="-O2" 3937 else 3938 CFLAGS= 3939 fi 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3943if ${ac_cv_prog_cc_c89+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 ac_cv_prog_cc_c89=no 3947ac_save_CC=$CC 3948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950#include <stdarg.h> 3951#include <stdio.h> 3952struct stat; 3953/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3954struct buf { int x; }; 3955FILE * (*rcsopen) (struct buf *, struct stat *, int); 3956static char *e (p, i) 3957 char **p; 3958 int i; 3959{ 3960 return p[i]; 3961} 3962static char *f (char * (*g) (char **, int), char **p, ...) 3963{ 3964 char *s; 3965 va_list v; 3966 va_start (v,p); 3967 s = g (p, va_arg (v,int)); 3968 va_end (v); 3969 return s; 3970} 3971 3972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3973 function prototypes and stuff, but not '\xHH' hex character constants. 3974 These don't provoke an error unfortunately, instead are silently treated 3975 as 'x'. The following induces an error, until -std is added to get 3976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3977 array size at least. It's necessary to write '\x00'==0 to get something 3978 that's true only with -std. */ 3979int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3980 3981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3982 inside strings and character constants. */ 3983#define FOO(x) 'x' 3984int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3985 3986int test (int i, double x); 3987struct s1 {int (*f) (int a);}; 3988struct s2 {int (*f) (double a);}; 3989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3990int argc; 3991char **argv; 3992int 3993main () 3994{ 3995return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4002do 4003 CC="$ac_save_CC $ac_arg" 4004 if ac_fn_c_try_compile "$LINENO"; then : 4005 ac_cv_prog_cc_c89=$ac_arg 4006fi 4007rm -f core conftest.err conftest.$ac_objext 4008 test "x$ac_cv_prog_cc_c89" != "xno" && break 4009done 4010rm -f conftest.$ac_ext 4011CC=$ac_save_CC 4012 4013fi 4014# AC_CACHE_VAL 4015case "x$ac_cv_prog_cc_c89" in 4016 x) 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4018$as_echo "none needed" >&6; } ;; 4019 xno) 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4021$as_echo "unsupported" >&6; } ;; 4022 *) 4023 CC="$CC $ac_cv_prog_cc_c89" 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4025$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4026esac 4027if test "x$ac_cv_prog_cc_c89" != xno; then : 4028 4029fi 4030 4031ac_ext=c 4032ac_cpp='$CPP $CPPFLAGS' 4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4035ac_compiler_gnu=$ac_cv_c_compiler_gnu 4036DEPDIR="${am__leading_dot}deps" 4037 4038ac_config_commands="$ac_config_commands depfiles" 4039 4040 4041am_make=${MAKE-make} 4042cat > confinc << 'END' 4043am__doit: 4044 @echo this is the am__doit target 4045.PHONY: am__doit 4046END 4047# If we don't find an include directive, just comment out the code. 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4049$as_echo_n "checking for style of include used by $am_make... " >&6; } 4050am__include="#" 4051am__quote= 4052_am_result=none 4053# First try GNU make style include. 4054echo "include confinc" > confmf 4055# Ignore all kinds of additional output from 'make'. 4056case `$am_make -s -f confmf 2> /dev/null` in #( 4057*the\ am__doit\ target*) 4058 am__include=include 4059 am__quote= 4060 _am_result=GNU 4061 ;; 4062esac 4063# Now try BSD make style include. 4064if test "$am__include" = "#"; then 4065 echo '.include "confinc"' > confmf 4066 case `$am_make -s -f confmf 2> /dev/null` in #( 4067 *the\ am__doit\ target*) 4068 am__include=.include 4069 am__quote="\"" 4070 _am_result=BSD 4071 ;; 4072 esac 4073fi 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4077$as_echo "$_am_result" >&6; } 4078rm -f confinc confmf 4079 4080# Check whether --enable-dependency-tracking was given. 4081if test "${enable_dependency_tracking+set}" = set; then : 4082 enableval=$enable_dependency_tracking; 4083fi 4084 4085if test "x$enable_dependency_tracking" != xno; then 4086 am_depcomp="$ac_aux_dir/depcomp" 4087 AMDEPBACKSLASH='\' 4088 am__nodep='_no' 4089fi 4090 if test "x$enable_dependency_tracking" != xno; then 4091 AMDEP_TRUE= 4092 AMDEP_FALSE='#' 4093else 4094 AMDEP_TRUE='#' 4095 AMDEP_FALSE= 4096fi 4097 4098 4099 4100depcc="$CC" am_compiler_list= 4101 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4103$as_echo_n "checking dependency style of $depcc... " >&6; } 4104if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4105 $as_echo_n "(cached) " >&6 4106else 4107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4108 # We make a subdir and do the tests there. Otherwise we can end up 4109 # making bogus files that we don't know about and never remove. For 4110 # instance it was reported that on HP-UX the gcc test will end up 4111 # making a dummy file named 'D' -- because '-MD' means "put the output 4112 # in D". 4113 rm -rf conftest.dir 4114 mkdir conftest.dir 4115 # Copy depcomp to subdir because otherwise we won't find it if we're 4116 # using a relative directory. 4117 cp "$am_depcomp" conftest.dir 4118 cd conftest.dir 4119 # We will build objects and dependencies in a subdirectory because 4120 # it helps to detect inapplicable dependency modes. For instance 4121 # both Tru64's cc and ICC support -MD to output dependencies as a 4122 # side effect of compilation, but ICC will put the dependencies in 4123 # the current directory while Tru64 will put them in the object 4124 # directory. 4125 mkdir sub 4126 4127 am_cv_CC_dependencies_compiler_type=none 4128 if test "$am_compiler_list" = ""; then 4129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4130 fi 4131 am__universal=false 4132 case " $depcc " in #( 4133 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4134 esac 4135 4136 for depmode in $am_compiler_list; do 4137 # Setup a source with many dependencies, because some compilers 4138 # like to wrap large dependency lists on column 80 (with \), and 4139 # we should not choose a depcomp mode which is confused by this. 4140 # 4141 # We need to recreate these files for each test, as the compiler may 4142 # overwrite some of them when testing with obscure command lines. 4143 # This happens at least with the AIX C compiler. 4144 : > sub/conftest.c 4145 for i in 1 2 3 4 5 6; do 4146 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4147 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4148 # Solaris 10 /bin/sh. 4149 echo '/* dummy */' > sub/conftst$i.h 4150 done 4151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4152 4153 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4154 # mode. It turns out that the SunPro C++ compiler does not properly 4155 # handle '-M -o', and we need to detect this. Also, some Intel 4156 # versions had trouble with output in subdirs. 4157 am__obj=sub/conftest.${OBJEXT-o} 4158 am__minus_obj="-o $am__obj" 4159 case $depmode in 4160 gcc) 4161 # This depmode causes a compiler race in universal mode. 4162 test "$am__universal" = false || continue 4163 ;; 4164 nosideeffect) 4165 # After this tag, mechanisms are not by side-effect, so they'll 4166 # only be used when explicitly requested. 4167 if test "x$enable_dependency_tracking" = xyes; then 4168 continue 4169 else 4170 break 4171 fi 4172 ;; 4173 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4174 # This compiler won't grok '-c -o', but also, the minuso test has 4175 # not run yet. These depmodes are late enough in the game, and 4176 # so weak that their functioning should not be impacted. 4177 am__obj=conftest.${OBJEXT-o} 4178 am__minus_obj= 4179 ;; 4180 none) break ;; 4181 esac 4182 if depmode=$depmode \ 4183 source=sub/conftest.c object=$am__obj \ 4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4185 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4186 >/dev/null 2>conftest.err && 4187 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4188 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4189 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4191 # icc doesn't choke on unknown options, it will just issue warnings 4192 # or remarks (even with -Werror). So we grep stderr for any message 4193 # that says an option was ignored or not supported. 4194 # When given -MP, icc 7.0 and 7.1 complain thusly: 4195 # icc: Command line warning: ignoring option '-M'; no argument required 4196 # The diagnosis changed in icc 8.0: 4197 # icc: Command line remark: option '-MP' not supported 4198 if (grep 'ignoring option' conftest.err || 4199 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4200 am_cv_CC_dependencies_compiler_type=$depmode 4201 break 4202 fi 4203 fi 4204 done 4205 4206 cd .. 4207 rm -rf conftest.dir 4208else 4209 am_cv_CC_dependencies_compiler_type=none 4210fi 4211 4212fi 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4214$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4215CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4216 4217 if 4218 test "x$enable_dependency_tracking" != xno \ 4219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4220 am__fastdepCC_TRUE= 4221 am__fastdepCC_FALSE='#' 4222else 4223 am__fastdepCC_TRUE='#' 4224 am__fastdepCC_FALSE= 4225fi 4226 4227 4228 4229ac_ext=c 4230ac_cpp='$CPP $CPPFLAGS' 4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4233ac_compiler_gnu=$ac_cv_c_compiler_gnu 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4235$as_echo_n "checking how to run the C preprocessor... " >&6; } 4236# On Suns, sometimes $CPP names a directory. 4237if test -n "$CPP" && test -d "$CPP"; then 4238 CPP= 4239fi 4240if test -z "$CPP"; then 4241 if ${ac_cv_prog_CPP+:} false; then : 4242 $as_echo_n "(cached) " >&6 4243else 4244 # Double quotes because CPP needs to be expanded 4245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4246 do 4247 ac_preproc_ok=false 4248for ac_c_preproc_warn_flag in '' yes 4249do 4250 # Use a header file that comes with gcc, so configuring glibc 4251 # with a fresh cross-compiler works. 4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4253 # <limits.h> exists even on freestanding compilers. 4254 # On the NeXT, cc -E runs the code through the compiler's parser, 4255 # not just through cpp. "Syntax error" is here to catch this case. 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257/* end confdefs.h. */ 4258#ifdef __STDC__ 4259# include <limits.h> 4260#else 4261# include <assert.h> 4262#endif 4263 Syntax error 4264_ACEOF 4265if ac_fn_c_try_cpp "$LINENO"; then : 4266 4267else 4268 # Broken: fails on valid input. 4269continue 4270fi 4271rm -f conftest.err conftest.i conftest.$ac_ext 4272 4273 # OK, works on sane cases. Now check whether nonexistent headers 4274 # can be detected and how. 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277#include <ac_nonexistent.h> 4278_ACEOF 4279if ac_fn_c_try_cpp "$LINENO"; then : 4280 # Broken: success on invalid input. 4281continue 4282else 4283 # Passes both tests. 4284ac_preproc_ok=: 4285break 4286fi 4287rm -f conftest.err conftest.i conftest.$ac_ext 4288 4289done 4290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4291rm -f conftest.i conftest.err conftest.$ac_ext 4292if $ac_preproc_ok; then : 4293 break 4294fi 4295 4296 done 4297 ac_cv_prog_CPP=$CPP 4298 4299fi 4300 CPP=$ac_cv_prog_CPP 4301else 4302 ac_cv_prog_CPP=$CPP 4303fi 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4305$as_echo "$CPP" >&6; } 4306ac_preproc_ok=false 4307for ac_c_preproc_warn_flag in '' yes 4308do 4309 # Use a header file that comes with gcc, so configuring glibc 4310 # with a fresh cross-compiler works. 4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4312 # <limits.h> exists even on freestanding compilers. 4313 # On the NeXT, cc -E runs the code through the compiler's parser, 4314 # not just through cpp. "Syntax error" is here to catch this case. 4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4316/* end confdefs.h. */ 4317#ifdef __STDC__ 4318# include <limits.h> 4319#else 4320# include <assert.h> 4321#endif 4322 Syntax error 4323_ACEOF 4324if ac_fn_c_try_cpp "$LINENO"; then : 4325 4326else 4327 # Broken: fails on valid input. 4328continue 4329fi 4330rm -f conftest.err conftest.i conftest.$ac_ext 4331 4332 # OK, works on sane cases. Now check whether nonexistent headers 4333 # can be detected and how. 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336#include <ac_nonexistent.h> 4337_ACEOF 4338if ac_fn_c_try_cpp "$LINENO"; then : 4339 # Broken: success on invalid input. 4340continue 4341else 4342 # Passes both tests. 4343ac_preproc_ok=: 4344break 4345fi 4346rm -f conftest.err conftest.i conftest.$ac_ext 4347 4348done 4349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4350rm -f conftest.i conftest.err conftest.$ac_ext 4351if $ac_preproc_ok; then : 4352 4353else 4354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4356as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4357See \`config.log' for more details" "$LINENO" 5; } 4358fi 4359 4360ac_ext=c 4361ac_cpp='$CPP $CPPFLAGS' 4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4364ac_compiler_gnu=$ac_cv_c_compiler_gnu 4365 4366 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4368$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4369if ${ac_cv_path_GREP+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 if test -z "$GREP"; then 4373 ac_path_GREP_found=false 4374 # Loop through the user's path and test for each of PROGNAME-LIST 4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4377do 4378 IFS=$as_save_IFS 4379 test -z "$as_dir" && as_dir=. 4380 for ac_prog in grep ggrep; do 4381 for ac_exec_ext in '' $ac_executable_extensions; do 4382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4383 as_fn_executable_p "$ac_path_GREP" || continue 4384# Check for GNU ac_path_GREP and select it if it is found. 4385 # Check for GNU $ac_path_GREP 4386case `"$ac_path_GREP" --version 2>&1` in 4387*GNU*) 4388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4389*) 4390 ac_count=0 4391 $as_echo_n 0123456789 >"conftest.in" 4392 while : 4393 do 4394 cat "conftest.in" "conftest.in" >"conftest.tmp" 4395 mv "conftest.tmp" "conftest.in" 4396 cp "conftest.in" "conftest.nl" 4397 $as_echo 'GREP' >> "conftest.nl" 4398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4400 as_fn_arith $ac_count + 1 && ac_count=$as_val 4401 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4402 # Best one so far, save it but keep looking for a better one 4403 ac_cv_path_GREP="$ac_path_GREP" 4404 ac_path_GREP_max=$ac_count 4405 fi 4406 # 10*(2^10) chars as input seems more than enough 4407 test $ac_count -gt 10 && break 4408 done 4409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4410esac 4411 4412 $ac_path_GREP_found && break 3 4413 done 4414 done 4415 done 4416IFS=$as_save_IFS 4417 if test -z "$ac_cv_path_GREP"; then 4418 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4419 fi 4420else 4421 ac_cv_path_GREP=$GREP 4422fi 4423 4424fi 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4426$as_echo "$ac_cv_path_GREP" >&6; } 4427 GREP="$ac_cv_path_GREP" 4428 4429 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4431$as_echo_n "checking for egrep... " >&6; } 4432if ${ac_cv_path_EGREP+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4436 then ac_cv_path_EGREP="$GREP -E" 4437 else 4438 if test -z "$EGREP"; then 4439 ac_path_EGREP_found=false 4440 # Loop through the user's path and test for each of PROGNAME-LIST 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4443do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_prog in egrep; do 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4449 as_fn_executable_p "$ac_path_EGREP" || continue 4450# Check for GNU ac_path_EGREP and select it if it is found. 4451 # Check for GNU $ac_path_EGREP 4452case `"$ac_path_EGREP" --version 2>&1` in 4453*GNU*) 4454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4455*) 4456 ac_count=0 4457 $as_echo_n 0123456789 >"conftest.in" 4458 while : 4459 do 4460 cat "conftest.in" "conftest.in" >"conftest.tmp" 4461 mv "conftest.tmp" "conftest.in" 4462 cp "conftest.in" "conftest.nl" 4463 $as_echo 'EGREP' >> "conftest.nl" 4464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4466 as_fn_arith $ac_count + 1 && ac_count=$as_val 4467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4468 # Best one so far, save it but keep looking for a better one 4469 ac_cv_path_EGREP="$ac_path_EGREP" 4470 ac_path_EGREP_max=$ac_count 4471 fi 4472 # 10*(2^10) chars as input seems more than enough 4473 test $ac_count -gt 10 && break 4474 done 4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4476esac 4477 4478 $ac_path_EGREP_found && break 3 4479 done 4480 done 4481 done 4482IFS=$as_save_IFS 4483 if test -z "$ac_cv_path_EGREP"; then 4484 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4485 fi 4486else 4487 ac_cv_path_EGREP=$EGREP 4488fi 4489 4490 fi 4491fi 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4493$as_echo "$ac_cv_path_EGREP" >&6; } 4494 EGREP="$ac_cv_path_EGREP" 4495 4496 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4498$as_echo_n "checking for ANSI C header files... " >&6; } 4499if ${ac_cv_header_stdc+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4503/* end confdefs.h. */ 4504#include <stdlib.h> 4505#include <stdarg.h> 4506#include <string.h> 4507#include <float.h> 4508 4509int 4510main () 4511{ 4512 4513 ; 4514 return 0; 4515} 4516_ACEOF 4517if ac_fn_c_try_compile "$LINENO"; then : 4518 ac_cv_header_stdc=yes 4519else 4520 ac_cv_header_stdc=no 4521fi 4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4523 4524if test $ac_cv_header_stdc = yes; then 4525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528#include <string.h> 4529 4530_ACEOF 4531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4532 $EGREP "memchr" >/dev/null 2>&1; then : 4533 4534else 4535 ac_cv_header_stdc=no 4536fi 4537rm -f conftest* 4538 4539fi 4540 4541if test $ac_cv_header_stdc = yes; then 4542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545#include <stdlib.h> 4546 4547_ACEOF 4548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4549 $EGREP "free" >/dev/null 2>&1; then : 4550 4551else 4552 ac_cv_header_stdc=no 4553fi 4554rm -f conftest* 4555 4556fi 4557 4558if test $ac_cv_header_stdc = yes; then 4559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4560 if test "$cross_compiling" = yes; then : 4561 : 4562else 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565#include <ctype.h> 4566#include <stdlib.h> 4567#if ((' ' & 0x0FF) == 0x020) 4568# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4569# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4570#else 4571# define ISLOWER(c) \ 4572 (('a' <= (c) && (c) <= 'i') \ 4573 || ('j' <= (c) && (c) <= 'r') \ 4574 || ('s' <= (c) && (c) <= 'z')) 4575# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4576#endif 4577 4578#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4579int 4580main () 4581{ 4582 int i; 4583 for (i = 0; i < 256; i++) 4584 if (XOR (islower (i), ISLOWER (i)) 4585 || toupper (i) != TOUPPER (i)) 4586 return 2; 4587 return 0; 4588} 4589_ACEOF 4590if ac_fn_c_try_run "$LINENO"; then : 4591 4592else 4593 ac_cv_header_stdc=no 4594fi 4595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4596 conftest.$ac_objext conftest.beam conftest.$ac_ext 4597fi 4598 4599fi 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4602$as_echo "$ac_cv_header_stdc" >&6; } 4603if test $ac_cv_header_stdc = yes; then 4604 4605$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4606 4607fi 4608 4609# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4611 inttypes.h stdint.h unistd.h 4612do : 4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4614ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4615" 4616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4617 cat >>confdefs.h <<_ACEOF 4618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4619_ACEOF 4620 4621fi 4622 4623done 4624 4625 4626 4627 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4628if test "x$ac_cv_header_minix_config_h" = xyes; then : 4629 MINIX=yes 4630else 4631 MINIX= 4632fi 4633 4634 4635 if test "$MINIX" = yes; then 4636 4637$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4638 4639 4640$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4641 4642 4643$as_echo "#define _MINIX 1" >>confdefs.h 4644 4645 fi 4646 4647 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4649$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4650if ${ac_cv_safe_to_define___extensions__+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655 4656# define __EXTENSIONS__ 1 4657 $ac_includes_default 4658int 4659main () 4660{ 4661 4662 ; 4663 return 0; 4664} 4665_ACEOF 4666if ac_fn_c_try_compile "$LINENO"; then : 4667 ac_cv_safe_to_define___extensions__=yes 4668else 4669 ac_cv_safe_to_define___extensions__=no 4670fi 4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4674$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4675 test $ac_cv_safe_to_define___extensions__ = yes && 4676 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4677 4678 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4679 4680 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4681 4682 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4683 4684 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4685 4686 4687# Check whether --enable-largefile was given. 4688if test "${enable_largefile+set}" = set; then : 4689 enableval=$enable_largefile; 4690fi 4691 4692if test "$enable_largefile" != no; then 4693 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4695$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4696if ${ac_cv_sys_largefile_CC+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 ac_cv_sys_largefile_CC=no 4700 if test "$GCC" != yes; then 4701 ac_save_CC=$CC 4702 while :; do 4703 # IRIX 6.2 and later do not support large files by default, 4704 # so use the C compiler's -n32 option if that helps. 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706/* end confdefs.h. */ 4707#include <sys/types.h> 4708 /* Check that off_t can represent 2**63 - 1 correctly. 4709 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4710 since some C++ compilers masquerading as C compilers 4711 incorrectly reject 9223372036854775807. */ 4712#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4714 && LARGE_OFF_T % 2147483647 == 1) 4715 ? 1 : -1]; 4716int 4717main () 4718{ 4719 4720 ; 4721 return 0; 4722} 4723_ACEOF 4724 if ac_fn_c_try_compile "$LINENO"; then : 4725 break 4726fi 4727rm -f core conftest.err conftest.$ac_objext 4728 CC="$CC -n32" 4729 if ac_fn_c_try_compile "$LINENO"; then : 4730 ac_cv_sys_largefile_CC=' -n32'; break 4731fi 4732rm -f core conftest.err conftest.$ac_objext 4733 break 4734 done 4735 CC=$ac_save_CC 4736 rm -f conftest.$ac_ext 4737 fi 4738fi 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4740$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4741 if test "$ac_cv_sys_largefile_CC" != no; then 4742 CC=$CC$ac_cv_sys_largefile_CC 4743 fi 4744 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4746$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4747if ${ac_cv_sys_file_offset_bits+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 while :; do 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753#include <sys/types.h> 4754 /* Check that off_t can represent 2**63 - 1 correctly. 4755 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4756 since some C++ compilers masquerading as C compilers 4757 incorrectly reject 9223372036854775807. */ 4758#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4760 && LARGE_OFF_T % 2147483647 == 1) 4761 ? 1 : -1]; 4762int 4763main () 4764{ 4765 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770if ac_fn_c_try_compile "$LINENO"; then : 4771 ac_cv_sys_file_offset_bits=no; break 4772fi 4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775/* end confdefs.h. */ 4776#define _FILE_OFFSET_BITS 64 4777#include <sys/types.h> 4778 /* Check that off_t can represent 2**63 - 1 correctly. 4779 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4780 since some C++ compilers masquerading as C compilers 4781 incorrectly reject 9223372036854775807. */ 4782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4784 && LARGE_OFF_T % 2147483647 == 1) 4785 ? 1 : -1]; 4786int 4787main () 4788{ 4789 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794if ac_fn_c_try_compile "$LINENO"; then : 4795 ac_cv_sys_file_offset_bits=64; break 4796fi 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4798 ac_cv_sys_file_offset_bits=unknown 4799 break 4800done 4801fi 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4803$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4804case $ac_cv_sys_file_offset_bits in #( 4805 no | unknown) ;; 4806 *) 4807cat >>confdefs.h <<_ACEOF 4808#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4809_ACEOF 4810;; 4811esac 4812rm -rf conftest* 4813 if test $ac_cv_sys_file_offset_bits = unknown; then 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4815$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4816if ${ac_cv_sys_large_files+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 while :; do 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822#include <sys/types.h> 4823 /* Check that off_t can represent 2**63 - 1 correctly. 4824 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4825 since some C++ compilers masquerading as C compilers 4826 incorrectly reject 9223372036854775807. */ 4827#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4829 && LARGE_OFF_T % 2147483647 == 1) 4830 ? 1 : -1]; 4831int 4832main () 4833{ 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839if ac_fn_c_try_compile "$LINENO"; then : 4840 ac_cv_sys_large_files=no; break 4841fi 4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844/* end confdefs.h. */ 4845#define _LARGE_FILES 1 4846#include <sys/types.h> 4847 /* Check that off_t can represent 2**63 - 1 correctly. 4848 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4849 since some C++ compilers masquerading as C compilers 4850 incorrectly reject 9223372036854775807. */ 4851#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4853 && LARGE_OFF_T % 2147483647 == 1) 4854 ? 1 : -1]; 4855int 4856main () 4857{ 4858 4859 ; 4860 return 0; 4861} 4862_ACEOF 4863if ac_fn_c_try_compile "$LINENO"; then : 4864 ac_cv_sys_large_files=1; break 4865fi 4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4867 ac_cv_sys_large_files=unknown 4868 break 4869done 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4872$as_echo "$ac_cv_sys_large_files" >&6; } 4873case $ac_cv_sys_large_files in #( 4874 no | unknown) ;; 4875 *) 4876cat >>confdefs.h <<_ACEOF 4877#define _LARGE_FILES $ac_cv_sys_large_files 4878_ACEOF 4879;; 4880esac 4881rm -rf conftest* 4882 fi 4883 4884 4885fi 4886 4887 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4889$as_echo_n "checking whether ln -s works... " >&6; } 4890LN_S=$as_ln_s 4891if test "$LN_S" = "ln -s"; then 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4893$as_echo "yes" >&6; } 4894else 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4896$as_echo "no, using $LN_S" >&6; } 4897fi 4898 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4900$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4901set x ${MAKE-make} 4902ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4903if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 cat >conftest.make <<\_ACEOF 4907SHELL = /bin/sh 4908all: 4909 @echo '@@@%%%=$(MAKE)=@@@%%%' 4910_ACEOF 4911# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4912case `${MAKE-make} -f conftest.make 2>/dev/null` in 4913 *@@@%%%=?*=@@@%%%*) 4914 eval ac_cv_prog_make_${ac_make}_set=yes;; 4915 *) 4916 eval ac_cv_prog_make_${ac_make}_set=no;; 4917esac 4918rm -f conftest.make 4919fi 4920if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4922$as_echo "yes" >&6; } 4923 SET_MAKE= 4924else 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4926$as_echo "no" >&6; } 4927 SET_MAKE="MAKE=${MAKE-make}" 4928fi 4929 4930 4931 4932 4933 4934 4935 4936 4937if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4938 if test -n "$ac_tool_prefix"; then 4939 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4940set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4942$as_echo_n "checking for $ac_word... " >&6; } 4943if ${ac_cv_path_PKG_CONFIG+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 case $PKG_CONFIG in 4947 [\\/]* | ?:[\\/]*) 4948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4949 ;; 4950 *) 4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH 4953do 4954 IFS=$as_save_IFS 4955 test -z "$as_dir" && as_dir=. 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4960 break 2 4961 fi 4962done 4963 done 4964IFS=$as_save_IFS 4965 4966 ;; 4967esac 4968fi 4969PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4970if test -n "$PKG_CONFIG"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4972$as_echo "$PKG_CONFIG" >&6; } 4973else 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975$as_echo "no" >&6; } 4976fi 4977 4978 4979fi 4980if test -z "$ac_cv_path_PKG_CONFIG"; then 4981 ac_pt_PKG_CONFIG=$PKG_CONFIG 4982 # Extract the first word of "pkg-config", so it can be a program name with args. 4983set dummy pkg-config; ac_word=$2 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4985$as_echo_n "checking for $ac_word... " >&6; } 4986if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 case $ac_pt_PKG_CONFIG in 4990 [\\/]* | ?:[\\/]*) 4991 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4992 ;; 4993 *) 4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4995for as_dir in $PATH 4996do 4997 IFS=$as_save_IFS 4998 test -z "$as_dir" && as_dir=. 4999 for ac_exec_ext in '' $ac_executable_extensions; do 5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5001 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5003 break 2 5004 fi 5005done 5006 done 5007IFS=$as_save_IFS 5008 5009 ;; 5010esac 5011fi 5012ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5013if test -n "$ac_pt_PKG_CONFIG"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5015$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5016else 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 if test "x$ac_pt_PKG_CONFIG" = x; then 5022 PKG_CONFIG="" 5023 else 5024 case $cross_compiling:$ac_tool_warned in 5025yes:) 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5028ac_tool_warned=yes ;; 5029esac 5030 PKG_CONFIG=$ac_pt_PKG_CONFIG 5031 fi 5032else 5033 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5034fi 5035 5036fi 5037if test -n "$PKG_CONFIG"; then 5038 _pkg_min_version=0.9.0 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5040$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5041 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5043$as_echo "yes" >&6; } 5044 else 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5046$as_echo "no" >&6; } 5047 PKG_CONFIG="" 5048 fi 5049fi 5050 5051 5052 5053# Check whether --with-pkgconfigdir was given. 5054if test "${with_pkgconfigdir+set}" = set; then : 5055 withval=$with_pkgconfigdir; 5056else 5057 with_pkgconfigdir='${libdir}/pkgconfig' 5058fi 5059 5060pkgconfigdir=$with_pkgconfigdir 5061 5062 5063 5064 5065 5066 5067GIT=${GIT-"${am_missing_run}git"} 5068 5069 5070GPERF=${GPERF-"${am_missing_run}gperf"} 5071 5072 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5 5074$as_echo_n "checking for RM macro... " >&6; } 5075_predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'` 5076if test "x$_predefined_rm" = "x"; then 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5 5078$as_echo "no predefined RM" >&6; } 5079 # Extract the first word of "rm", so it can be a program name with args. 5080set dummy rm; ac_word=$2 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5082$as_echo_n "checking for $ac_word... " >&6; } 5083if ${ac_cv_prog_RM+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 if test -n "$RM"; then 5087 ac_cv_prog_RM="$RM" # Let the user override the test. 5088else 5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090for as_dir in $PATH 5091do 5092 IFS=$as_save_IFS 5093 test -z "$as_dir" && as_dir=. 5094 for ac_exec_ext in '' $ac_executable_extensions; do 5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5096 ac_cv_prog_RM="rm -f" 5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5098 break 2 5099 fi 5100done 5101 done 5102IFS=$as_save_IFS 5103 5104fi 5105fi 5106RM=$ac_cv_prog_RM 5107if test -n "$RM"; then 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 5109$as_echo "$RM" >&6; } 5110else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5112$as_echo "no" >&6; } 5113fi 5114 5115 5116else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5 5118$as_echo "$_predefined_rm" >&6; } 5119fi 5120 5121 5122case `pwd` in 5123 *\ * | *\ *) 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5125$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5126esac 5127 5128 5129 5130macro_version='2.4.2' 5131macro_revision='1.3337' 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145ltmain="$ac_aux_dir/ltmain.sh" 5146 5147# Make sure we can run config.sub. 5148$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5149 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5150 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5152$as_echo_n "checking build system type... " >&6; } 5153if ${ac_cv_build+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 ac_build_alias=$build_alias 5157test "x$ac_build_alias" = x && 5158 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5159test "x$ac_build_alias" = x && 5160 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5161ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5162 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5163 5164fi 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5166$as_echo "$ac_cv_build" >&6; } 5167case $ac_cv_build in 5168*-*-*) ;; 5169*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5170esac 5171build=$ac_cv_build 5172ac_save_IFS=$IFS; IFS='-' 5173set x $ac_cv_build 5174shift 5175build_cpu=$1 5176build_vendor=$2 5177shift; shift 5178# Remember, the first character of IFS is used to create $*, 5179# except with old shells: 5180build_os=$* 5181IFS=$ac_save_IFS 5182case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5183 5184 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5186$as_echo_n "checking host system type... " >&6; } 5187if ${ac_cv_host+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test "x$host_alias" = x; then 5191 ac_cv_host=$ac_cv_build 5192else 5193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5194 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5195fi 5196 5197fi 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5199$as_echo "$ac_cv_host" >&6; } 5200case $ac_cv_host in 5201*-*-*) ;; 5202*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5203esac 5204host=$ac_cv_host 5205ac_save_IFS=$IFS; IFS='-' 5206set x $ac_cv_host 5207shift 5208host_cpu=$1 5209host_vendor=$2 5210shift; shift 5211# Remember, the first character of IFS is used to create $*, 5212# except with old shells: 5213host_os=$* 5214IFS=$ac_save_IFS 5215case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5216 5217 5218# Backslashify metacharacters that are still active within 5219# double-quoted strings. 5220sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5221 5222# Same as above, but do not quote variable references. 5223double_quote_subst='s/\(["`\\]\)/\\\1/g' 5224 5225# Sed substitution to delay expansion of an escaped shell variable in a 5226# double_quote_subst'ed string. 5227delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5228 5229# Sed substitution to delay expansion of an escaped single quote. 5230delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5231 5232# Sed substitution to avoid accidental globbing in evaled expressions 5233no_glob_subst='s/\*/\\\*/g' 5234 5235ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5236ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5237ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5238 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5240$as_echo_n "checking how to print strings... " >&6; } 5241# Test print first, because it will be a builtin if present. 5242if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5243 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5244 ECHO='print -r --' 5245elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5246 ECHO='printf %s\n' 5247else 5248 # Use this function as a fallback that always works. 5249 func_fallback_echo () 5250 { 5251 eval 'cat <<_LTECHO_EOF 5252$1 5253_LTECHO_EOF' 5254 } 5255 ECHO='func_fallback_echo' 5256fi 5257 5258# func_echo_all arg... 5259# Invoke $ECHO with all args, space-separated. 5260func_echo_all () 5261{ 5262 $ECHO "" 5263} 5264 5265case "$ECHO" in 5266 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5267$as_echo "printf" >&6; } ;; 5268 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5269$as_echo "print -r" >&6; } ;; 5270 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5271$as_echo "cat" >&6; } ;; 5272esac 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5288$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5289if ${ac_cv_path_SED+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5293 for ac_i in 1 2 3 4 5 6 7; do 5294 ac_script="$ac_script$as_nl$ac_script" 5295 done 5296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5297 { ac_script=; unset ac_script;} 5298 if test -z "$SED"; then 5299 ac_path_SED_found=false 5300 # Loop through the user's path and test for each of PROGNAME-LIST 5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5302for as_dir in $PATH 5303do 5304 IFS=$as_save_IFS 5305 test -z "$as_dir" && as_dir=. 5306 for ac_prog in sed gsed; do 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5309 as_fn_executable_p "$ac_path_SED" || continue 5310# Check for GNU ac_path_SED and select it if it is found. 5311 # Check for GNU $ac_path_SED 5312case `"$ac_path_SED" --version 2>&1` in 5313*GNU*) 5314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5315*) 5316 ac_count=0 5317 $as_echo_n 0123456789 >"conftest.in" 5318 while : 5319 do 5320 cat "conftest.in" "conftest.in" >"conftest.tmp" 5321 mv "conftest.tmp" "conftest.in" 5322 cp "conftest.in" "conftest.nl" 5323 $as_echo '' >> "conftest.nl" 5324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5326 as_fn_arith $ac_count + 1 && ac_count=$as_val 5327 if test $ac_count -gt ${ac_path_SED_max-0}; then 5328 # Best one so far, save it but keep looking for a better one 5329 ac_cv_path_SED="$ac_path_SED" 5330 ac_path_SED_max=$ac_count 5331 fi 5332 # 10*(2^10) chars as input seems more than enough 5333 test $ac_count -gt 10 && break 5334 done 5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5336esac 5337 5338 $ac_path_SED_found && break 3 5339 done 5340 done 5341 done 5342IFS=$as_save_IFS 5343 if test -z "$ac_cv_path_SED"; then 5344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5345 fi 5346else 5347 ac_cv_path_SED=$SED 5348fi 5349 5350fi 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5352$as_echo "$ac_cv_path_SED" >&6; } 5353 SED="$ac_cv_path_SED" 5354 rm -f conftest.sed 5355 5356test -z "$SED" && SED=sed 5357Xsed="$SED -e 1s/^X//" 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5370$as_echo_n "checking for fgrep... " >&6; } 5371if ${ac_cv_path_FGREP+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5375 then ac_cv_path_FGREP="$GREP -F" 5376 else 5377 if test -z "$FGREP"; then 5378 ac_path_FGREP_found=false 5379 # Loop through the user's path and test for each of PROGNAME-LIST 5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5382do 5383 IFS=$as_save_IFS 5384 test -z "$as_dir" && as_dir=. 5385 for ac_prog in fgrep; do 5386 for ac_exec_ext in '' $ac_executable_extensions; do 5387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5388 as_fn_executable_p "$ac_path_FGREP" || continue 5389# Check for GNU ac_path_FGREP and select it if it is found. 5390 # Check for GNU $ac_path_FGREP 5391case `"$ac_path_FGREP" --version 2>&1` in 5392*GNU*) 5393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5394*) 5395 ac_count=0 5396 $as_echo_n 0123456789 >"conftest.in" 5397 while : 5398 do 5399 cat "conftest.in" "conftest.in" >"conftest.tmp" 5400 mv "conftest.tmp" "conftest.in" 5401 cp "conftest.in" "conftest.nl" 5402 $as_echo 'FGREP' >> "conftest.nl" 5403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5405 as_fn_arith $ac_count + 1 && ac_count=$as_val 5406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5407 # Best one so far, save it but keep looking for a better one 5408 ac_cv_path_FGREP="$ac_path_FGREP" 5409 ac_path_FGREP_max=$ac_count 5410 fi 5411 # 10*(2^10) chars as input seems more than enough 5412 test $ac_count -gt 10 && break 5413 done 5414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5415esac 5416 5417 $ac_path_FGREP_found && break 3 5418 done 5419 done 5420 done 5421IFS=$as_save_IFS 5422 if test -z "$ac_cv_path_FGREP"; then 5423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5424 fi 5425else 5426 ac_cv_path_FGREP=$FGREP 5427fi 5428 5429 fi 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5432$as_echo "$ac_cv_path_FGREP" >&6; } 5433 FGREP="$ac_cv_path_FGREP" 5434 5435 5436test -z "$GREP" && GREP=grep 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456# Check whether --with-gnu-ld was given. 5457if test "${with_gnu_ld+set}" = set; then : 5458 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5459else 5460 with_gnu_ld=no 5461fi 5462 5463ac_prog=ld 5464if test "$GCC" = yes; then 5465 # Check if gcc -print-prog-name=ld gives a path. 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5467$as_echo_n "checking for ld used by $CC... " >&6; } 5468 case $host in 5469 *-*-mingw*) 5470 # gcc leaves a trailing carriage return which upsets mingw 5471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5472 *) 5473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5474 esac 5475 case $ac_prog in 5476 # Accept absolute paths. 5477 [\\/]* | ?:[\\/]*) 5478 re_direlt='/[^/][^/]*/\.\./' 5479 # Canonicalize the pathname of ld 5480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5483 done 5484 test -z "$LD" && LD="$ac_prog" 5485 ;; 5486 "") 5487 # If it fails, then pretend we aren't using GCC. 5488 ac_prog=ld 5489 ;; 5490 *) 5491 # If it is relative, then search for the first ld in PATH. 5492 with_gnu_ld=unknown 5493 ;; 5494 esac 5495elif test "$with_gnu_ld" = yes; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5497$as_echo_n "checking for GNU ld... " >&6; } 5498else 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5500$as_echo_n "checking for non-GNU ld... " >&6; } 5501fi 5502if ${lt_cv_path_LD+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test -z "$LD"; then 5506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5507 for ac_dir in $PATH; do 5508 IFS="$lt_save_ifs" 5509 test -z "$ac_dir" && ac_dir=. 5510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5511 lt_cv_path_LD="$ac_dir/$ac_prog" 5512 # Check to see if the program is GNU ld. I'd rather use --version, 5513 # but apparently some variants of GNU ld only accept -v. 5514 # Break only if it was the GNU/non-GNU ld that we prefer. 5515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5516 *GNU* | *'with BFD'*) 5517 test "$with_gnu_ld" != no && break 5518 ;; 5519 *) 5520 test "$with_gnu_ld" != yes && break 5521 ;; 5522 esac 5523 fi 5524 done 5525 IFS="$lt_save_ifs" 5526else 5527 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5528fi 5529fi 5530 5531LD="$lt_cv_path_LD" 5532if test -n "$LD"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5534$as_echo "$LD" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5541$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5542if ${lt_cv_prog_gnu_ld+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5546case `$LD -v 2>&1 </dev/null` in 5547*GNU* | *'with BFD'*) 5548 lt_cv_prog_gnu_ld=yes 5549 ;; 5550*) 5551 lt_cv_prog_gnu_ld=no 5552 ;; 5553esac 5554fi 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5556$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5557with_gnu_ld=$lt_cv_prog_gnu_ld 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5568$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5569if ${lt_cv_path_NM+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 if test -n "$NM"; then 5573 # Let the user override the test. 5574 lt_cv_path_NM="$NM" 5575else 5576 lt_nm_to_check="${ac_tool_prefix}nm" 5577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5578 lt_nm_to_check="$lt_nm_to_check nm" 5579 fi 5580 for lt_tmp_nm in $lt_nm_to_check; do 5581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5582 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5583 IFS="$lt_save_ifs" 5584 test -z "$ac_dir" && ac_dir=. 5585 tmp_nm="$ac_dir/$lt_tmp_nm" 5586 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5587 # Check to see if the nm accepts a BSD-compat flag. 5588 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5589 # nm: unknown option "B" ignored 5590 # Tru64's nm complains that /dev/null is an invalid object file 5591 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5592 */dev/null* | *'Invalid file or object type'*) 5593 lt_cv_path_NM="$tmp_nm -B" 5594 break 5595 ;; 5596 *) 5597 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5598 */dev/null*) 5599 lt_cv_path_NM="$tmp_nm -p" 5600 break 5601 ;; 5602 *) 5603 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5604 continue # so that we can try to find one that supports BSD flags 5605 ;; 5606 esac 5607 ;; 5608 esac 5609 fi 5610 done 5611 IFS="$lt_save_ifs" 5612 done 5613 : ${lt_cv_path_NM=no} 5614fi 5615fi 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5617$as_echo "$lt_cv_path_NM" >&6; } 5618if test "$lt_cv_path_NM" != "no"; then 5619 NM="$lt_cv_path_NM" 5620else 5621 # Didn't find any BSD compatible name lister, look for dumpbin. 5622 if test -n "$DUMPBIN"; then : 5623 # Let the user override the test. 5624 else 5625 if test -n "$ac_tool_prefix"; then 5626 for ac_prog in dumpbin "link -dump" 5627 do 5628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5629set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5631$as_echo_n "checking for $ac_word... " >&6; } 5632if ${ac_cv_prog_DUMPBIN+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 if test -n "$DUMPBIN"; then 5636 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5637else 5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 test -z "$as_dir" && as_dir=. 5643 for ac_exec_ext in '' $ac_executable_extensions; do 5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5645 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5647 break 2 5648 fi 5649done 5650 done 5651IFS=$as_save_IFS 5652 5653fi 5654fi 5655DUMPBIN=$ac_cv_prog_DUMPBIN 5656if test -n "$DUMPBIN"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5658$as_echo "$DUMPBIN" >&6; } 5659else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661$as_echo "no" >&6; } 5662fi 5663 5664 5665 test -n "$DUMPBIN" && break 5666 done 5667fi 5668if test -z "$DUMPBIN"; then 5669 ac_ct_DUMPBIN=$DUMPBIN 5670 for ac_prog in dumpbin "link -dump" 5671do 5672 # Extract the first word of "$ac_prog", so it can be a program name with args. 5673set dummy $ac_prog; ac_word=$2 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5675$as_echo_n "checking for $ac_word... " >&6; } 5676if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 if test -n "$ac_ct_DUMPBIN"; then 5680 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5681else 5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683for as_dir in $PATH 5684do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5689 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693done 5694 done 5695IFS=$as_save_IFS 5696 5697fi 5698fi 5699ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5700if test -n "$ac_ct_DUMPBIN"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5702$as_echo "$ac_ct_DUMPBIN" >&6; } 5703else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705$as_echo "no" >&6; } 5706fi 5707 5708 5709 test -n "$ac_ct_DUMPBIN" && break 5710done 5711 5712 if test "x$ac_ct_DUMPBIN" = x; then 5713 DUMPBIN=":" 5714 else 5715 case $cross_compiling:$ac_tool_warned in 5716yes:) 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5719ac_tool_warned=yes ;; 5720esac 5721 DUMPBIN=$ac_ct_DUMPBIN 5722 fi 5723fi 5724 5725 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5726 *COFF*) 5727 DUMPBIN="$DUMPBIN -symbols" 5728 ;; 5729 *) 5730 DUMPBIN=: 5731 ;; 5732 esac 5733 fi 5734 5735 if test "$DUMPBIN" != ":"; then 5736 NM="$DUMPBIN" 5737 fi 5738fi 5739test -z "$NM" && NM=nm 5740 5741 5742 5743 5744 5745 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5747$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5748if ${lt_cv_nm_interface+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 lt_cv_nm_interface="BSD nm" 5752 echo "int some_variable = 0;" > conftest.$ac_ext 5753 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5754 (eval "$ac_compile" 2>conftest.err) 5755 cat conftest.err >&5 5756 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5757 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5758 cat conftest.err >&5 5759 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5760 cat conftest.out >&5 5761 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5762 lt_cv_nm_interface="MS dumpbin" 5763 fi 5764 rm -f conftest* 5765fi 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5767$as_echo "$lt_cv_nm_interface" >&6; } 5768 5769# find the maximum length of command line arguments 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5771$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5772if ${lt_cv_sys_max_cmd_len+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 i=0 5776 teststring="ABCD" 5777 5778 case $build_os in 5779 msdosdjgpp*) 5780 # On DJGPP, this test can blow up pretty badly due to problems in libc 5781 # (any single argument exceeding 2000 bytes causes a buffer overrun 5782 # during glob expansion). Even if it were fixed, the result of this 5783 # check would be larger than it should be. 5784 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5785 ;; 5786 5787 gnu*) 5788 # Under GNU Hurd, this test is not required because there is 5789 # no limit to the length of command line arguments. 5790 # Libtool will interpret -1 as no limit whatsoever 5791 lt_cv_sys_max_cmd_len=-1; 5792 ;; 5793 5794 cygwin* | mingw* | cegcc*) 5795 # On Win9x/ME, this test blows up -- it succeeds, but takes 5796 # about 5 minutes as the teststring grows exponentially. 5797 # Worse, since 9x/ME are not pre-emptively multitasking, 5798 # you end up with a "frozen" computer, even though with patience 5799 # the test eventually succeeds (with a max line length of 256k). 5800 # Instead, let's just punt: use the minimum linelength reported by 5801 # all of the supported platforms: 8192 (on NT/2K/XP). 5802 lt_cv_sys_max_cmd_len=8192; 5803 ;; 5804 5805 mint*) 5806 # On MiNT this can take a long time and run out of memory. 5807 lt_cv_sys_max_cmd_len=8192; 5808 ;; 5809 5810 amigaos*) 5811 # On AmigaOS with pdksh, this test takes hours, literally. 5812 # So we just punt and use a minimum line length of 8192. 5813 lt_cv_sys_max_cmd_len=8192; 5814 ;; 5815 5816 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5817 # This has been around since 386BSD, at least. Likely further. 5818 if test -x /sbin/sysctl; then 5819 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5820 elif test -x /usr/sbin/sysctl; then 5821 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5822 else 5823 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5824 fi 5825 # And add a safety zone 5826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5828 ;; 5829 5830 interix*) 5831 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5832 lt_cv_sys_max_cmd_len=196608 5833 ;; 5834 5835 os2*) 5836 # The test takes a long time on OS/2. 5837 lt_cv_sys_max_cmd_len=8192 5838 ;; 5839 5840 osf*) 5841 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5842 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5843 # nice to cause kernel panics so lets avoid the loop below. 5844 # First set a reasonable default. 5845 lt_cv_sys_max_cmd_len=16384 5846 # 5847 if test -x /sbin/sysconfig; then 5848 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5849 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5850 esac 5851 fi 5852 ;; 5853 sco3.2v5*) 5854 lt_cv_sys_max_cmd_len=102400 5855 ;; 5856 sysv5* | sco5v6* | sysv4.2uw2*) 5857 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5858 if test -n "$kargmax"; then 5859 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5860 else 5861 lt_cv_sys_max_cmd_len=32768 5862 fi 5863 ;; 5864 *) 5865 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5866 if test -n "$lt_cv_sys_max_cmd_len"; then 5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5869 else 5870 # Make teststring a little bigger before we do anything with it. 5871 # a 1K string should be a reasonable start. 5872 for i in 1 2 3 4 5 6 7 8 ; do 5873 teststring=$teststring$teststring 5874 done 5875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5876 # If test is not a shell built-in, we'll probably end up computing a 5877 # maximum length that is only half of the actual maximum length, but 5878 # we can't tell. 5879 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5880 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5881 test $i != 17 # 1/2 MB should be enough 5882 do 5883 i=`expr $i + 1` 5884 teststring=$teststring$teststring 5885 done 5886 # Only check the string length outside the loop. 5887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5888 teststring= 5889 # Add a significant safety factor because C++ compilers can tack on 5890 # massive amounts of additional arguments before passing them to the 5891 # linker. It appears as though 1/2 is a usable value. 5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5893 fi 5894 ;; 5895 esac 5896 5897fi 5898 5899if test -n $lt_cv_sys_max_cmd_len ; then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5901$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5902else 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5904$as_echo "none" >&6; } 5905fi 5906max_cmd_len=$lt_cv_sys_max_cmd_len 5907 5908 5909 5910 5911 5912 5913: ${CP="cp -f"} 5914: ${MV="mv -f"} 5915: ${RM="rm -f"} 5916 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5918$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5919# Try some XSI features 5920xsi_shell=no 5921( _lt_dummy="a/b/c" 5922 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5923 = c,a/b,b/c, \ 5924 && eval 'test $(( 1 + 1 )) -eq 2 \ 5925 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5926 && xsi_shell=yes 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5928$as_echo "$xsi_shell" >&6; } 5929 5930 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5932$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5933lt_shell_append=no 5934( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5935 >/dev/null 2>&1 \ 5936 && lt_shell_append=yes 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5938$as_echo "$lt_shell_append" >&6; } 5939 5940 5941if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5942 lt_unset=unset 5943else 5944 lt_unset=false 5945fi 5946 5947 5948 5949 5950 5951# test EBCDIC or ASCII 5952case `echo X|tr X '\101'` in 5953 A) # ASCII based system 5954 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5955 lt_SP2NL='tr \040 \012' 5956 lt_NL2SP='tr \015\012 \040\040' 5957 ;; 5958 *) # EBCDIC based system 5959 lt_SP2NL='tr \100 \n' 5960 lt_NL2SP='tr \r\n \100\100' 5961 ;; 5962esac 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5973$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5974if ${lt_cv_to_host_file_cmd+:} false; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 case $host in 5978 *-*-mingw* ) 5979 case $build in 5980 *-*-mingw* ) # actually msys 5981 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5982 ;; 5983 *-*-cygwin* ) 5984 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5985 ;; 5986 * ) # otherwise, assume *nix 5987 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5988 ;; 5989 esac 5990 ;; 5991 *-*-cygwin* ) 5992 case $build in 5993 *-*-mingw* ) # actually msys 5994 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5995 ;; 5996 *-*-cygwin* ) 5997 lt_cv_to_host_file_cmd=func_convert_file_noop 5998 ;; 5999 * ) # otherwise, assume *nix 6000 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6001 ;; 6002 esac 6003 ;; 6004 * ) # unhandled hosts (and "normal" native builds) 6005 lt_cv_to_host_file_cmd=func_convert_file_noop 6006 ;; 6007esac 6008 6009fi 6010 6011to_host_file_cmd=$lt_cv_to_host_file_cmd 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6013$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6014 6015 6016 6017 6018 6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6020$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6021if ${lt_cv_to_tool_file_cmd+:} false; then : 6022 $as_echo_n "(cached) " >&6 6023else 6024 #assume ordinary cross tools, or native build. 6025lt_cv_to_tool_file_cmd=func_convert_file_noop 6026case $host in 6027 *-*-mingw* ) 6028 case $build in 6029 *-*-mingw* ) # actually msys 6030 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6031 ;; 6032 esac 6033 ;; 6034esac 6035 6036fi 6037 6038to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6040$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6041 6042 6043 6044 6045 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6047$as_echo_n "checking for $LD option to reload object files... " >&6; } 6048if ${lt_cv_ld_reload_flag+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 lt_cv_ld_reload_flag='-r' 6052fi 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6054$as_echo "$lt_cv_ld_reload_flag" >&6; } 6055reload_flag=$lt_cv_ld_reload_flag 6056case $reload_flag in 6057"" | " "*) ;; 6058*) reload_flag=" $reload_flag" ;; 6059esac 6060reload_cmds='$LD$reload_flag -o $output$reload_objs' 6061case $host_os in 6062 cygwin* | mingw* | pw32* | cegcc*) 6063 if test "$GCC" != yes; then 6064 reload_cmds=false 6065 fi 6066 ;; 6067 darwin*) 6068 if test "$GCC" = yes; then 6069 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6070 else 6071 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6072 fi 6073 ;; 6074esac 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084if test -n "$ac_tool_prefix"; then 6085 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6086set dummy ${ac_tool_prefix}objdump; ac_word=$2 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088$as_echo_n "checking for $ac_word... " >&6; } 6089if ${ac_cv_prog_OBJDUMP+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 if test -n "$OBJDUMP"; then 6093 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112OBJDUMP=$ac_cv_prog_OBJDUMP 6113if test -n "$OBJDUMP"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6115$as_echo "$OBJDUMP" >&6; } 6116else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118$as_echo "no" >&6; } 6119fi 6120 6121 6122fi 6123if test -z "$ac_cv_prog_OBJDUMP"; then 6124 ac_ct_OBJDUMP=$OBJDUMP 6125 # Extract the first word of "objdump", so it can be a program name with args. 6126set dummy objdump; ac_word=$2 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128$as_echo_n "checking for $ac_word... " >&6; } 6129if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -n "$ac_ct_OBJDUMP"; then 6133 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6134else 6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136for as_dir in $PATH 6137do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6142 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146done 6147 done 6148IFS=$as_save_IFS 6149 6150fi 6151fi 6152ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6153if test -n "$ac_ct_OBJDUMP"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6155$as_echo "$ac_ct_OBJDUMP" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160 6161 if test "x$ac_ct_OBJDUMP" = x; then 6162 OBJDUMP="false" 6163 else 6164 case $cross_compiling:$ac_tool_warned in 6165yes:) 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6168ac_tool_warned=yes ;; 6169esac 6170 OBJDUMP=$ac_ct_OBJDUMP 6171 fi 6172else 6173 OBJDUMP="$ac_cv_prog_OBJDUMP" 6174fi 6175 6176test -z "$OBJDUMP" && OBJDUMP=objdump 6177 6178 6179 6180 6181 6182 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6184$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6185if ${lt_cv_deplibs_check_method+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 lt_cv_file_magic_cmd='$MAGIC_CMD' 6189lt_cv_file_magic_test_file= 6190lt_cv_deplibs_check_method='unknown' 6191# Need to set the preceding variable on all platforms that support 6192# interlibrary dependencies. 6193# 'none' -- dependencies not supported. 6194# `unknown' -- same as none, but documents that we really don't know. 6195# 'pass_all' -- all dependencies passed with no checks. 6196# 'test_compile' -- check by making test program. 6197# 'file_magic [[regex]]' -- check by looking for files in library path 6198# which responds to the $file_magic_cmd with a given extended regex. 6199# If you have `file' or equivalent on your system and you're not sure 6200# whether `pass_all' will *always* work, you probably want this one. 6201 6202case $host_os in 6203aix[4-9]*) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206 6207beos*) 6208 lt_cv_deplibs_check_method=pass_all 6209 ;; 6210 6211bsdi[45]*) 6212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6213 lt_cv_file_magic_cmd='/usr/bin/file -L' 6214 lt_cv_file_magic_test_file=/shlib/libc.so 6215 ;; 6216 6217cygwin*) 6218 # func_win32_libid is a shell function defined in ltmain.sh 6219 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6220 lt_cv_file_magic_cmd='func_win32_libid' 6221 ;; 6222 6223mingw* | pw32*) 6224 # Base MSYS/MinGW do not provide the 'file' command needed by 6225 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6226 # unless we find 'file', for example because we are cross-compiling. 6227 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6228 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6230 lt_cv_file_magic_cmd='func_win32_libid' 6231 else 6232 # Keep this pattern in sync with the one in func_win32_libid. 6233 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6234 lt_cv_file_magic_cmd='$OBJDUMP -f' 6235 fi 6236 ;; 6237 6238cegcc*) 6239 # use the weaker test based on 'objdump'. See mingw*. 6240 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6241 lt_cv_file_magic_cmd='$OBJDUMP -f' 6242 ;; 6243 6244darwin* | rhapsody*) 6245 lt_cv_deplibs_check_method=pass_all 6246 ;; 6247 6248freebsd* | dragonfly*) 6249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6250 case $host_cpu in 6251 i*86 ) 6252 # Not sure whether the presence of OpenBSD here was a mistake. 6253 # Let's accept both of them until this is cleared up. 6254 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6255 lt_cv_file_magic_cmd=/usr/bin/file 6256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6257 ;; 6258 esac 6259 else 6260 lt_cv_deplibs_check_method=pass_all 6261 fi 6262 ;; 6263 6264gnu*) 6265 lt_cv_deplibs_check_method=pass_all 6266 ;; 6267 6268haiku*) 6269 lt_cv_deplibs_check_method=pass_all 6270 ;; 6271 6272hpux10.20* | hpux11*) 6273 lt_cv_file_magic_cmd=/usr/bin/file 6274 case $host_cpu in 6275 ia64*) 6276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6278 ;; 6279 hppa*64*) 6280 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]' 6281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6282 ;; 6283 *) 6284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6285 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6286 ;; 6287 esac 6288 ;; 6289 6290interix[3-9]*) 6291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6293 ;; 6294 6295irix5* | irix6* | nonstopux*) 6296 case $LD in 6297 *-32|*"-32 ") libmagic=32-bit;; 6298 *-n32|*"-n32 ") libmagic=N32;; 6299 *-64|*"-64 ") libmagic=64-bit;; 6300 *) libmagic=never-match;; 6301 esac 6302 lt_cv_deplibs_check_method=pass_all 6303 ;; 6304 6305# This must be glibc/ELF. 6306linux* | k*bsd*-gnu | kopensolaris*-gnu) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 6310netbsd*) 6311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6313 else 6314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6315 fi 6316 ;; 6317 6318newos6*) 6319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6320 lt_cv_file_magic_cmd=/usr/bin/file 6321 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6322 ;; 6323 6324*nto* | *qnx*) 6325 lt_cv_deplibs_check_method=pass_all 6326 ;; 6327 6328openbsd*) 6329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6331 else 6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6333 fi 6334 ;; 6335 6336osf3* | osf4* | osf5*) 6337 lt_cv_deplibs_check_method=pass_all 6338 ;; 6339 6340rdos*) 6341 lt_cv_deplibs_check_method=pass_all 6342 ;; 6343 6344solaris*) 6345 lt_cv_deplibs_check_method=pass_all 6346 ;; 6347 6348sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6349 lt_cv_deplibs_check_method=pass_all 6350 ;; 6351 6352sysv4 | sysv4.3*) 6353 case $host_vendor in 6354 motorola) 6355 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]' 6356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6357 ;; 6358 ncr) 6359 lt_cv_deplibs_check_method=pass_all 6360 ;; 6361 sequent) 6362 lt_cv_file_magic_cmd='/bin/file' 6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6364 ;; 6365 sni) 6366 lt_cv_file_magic_cmd='/bin/file' 6367 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6368 lt_cv_file_magic_test_file=/lib/libc.so 6369 ;; 6370 siemens) 6371 lt_cv_deplibs_check_method=pass_all 6372 ;; 6373 pc) 6374 lt_cv_deplibs_check_method=pass_all 6375 ;; 6376 esac 6377 ;; 6378 6379tpf*) 6380 lt_cv_deplibs_check_method=pass_all 6381 ;; 6382esac 6383 6384fi 6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6386$as_echo "$lt_cv_deplibs_check_method" >&6; } 6387 6388file_magic_glob= 6389want_nocaseglob=no 6390if test "$build" = "$host"; then 6391 case $host_os in 6392 mingw* | pw32*) 6393 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6394 want_nocaseglob=yes 6395 else 6396 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6397 fi 6398 ;; 6399 esac 6400fi 6401 6402file_magic_cmd=$lt_cv_file_magic_cmd 6403deplibs_check_method=$lt_cv_deplibs_check_method 6404test -z "$deplibs_check_method" && deplibs_check_method=unknown 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427if test -n "$ac_tool_prefix"; then 6428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6429set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6431$as_echo_n "checking for $ac_word... " >&6; } 6432if ${ac_cv_prog_DLLTOOL+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 if test -n "$DLLTOOL"; then 6436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6437else 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455DLLTOOL=$ac_cv_prog_DLLTOOL 6456if test -n "$DLLTOOL"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6458$as_echo "$DLLTOOL" >&6; } 6459else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461$as_echo "no" >&6; } 6462fi 6463 6464 6465fi 6466if test -z "$ac_cv_prog_DLLTOOL"; then 6467 ac_ct_DLLTOOL=$DLLTOOL 6468 # Extract the first word of "dlltool", so it can be a program name with args. 6469set dummy dlltool; ac_word=$2 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471$as_echo_n "checking for $ac_word... " >&6; } 6472if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 if test -n "$ac_ct_DLLTOOL"; then 6476 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6477else 6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6479for as_dir in $PATH 6480do 6481 IFS=$as_save_IFS 6482 test -z "$as_dir" && as_dir=. 6483 for ac_exec_ext in '' $ac_executable_extensions; do 6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6485 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6487 break 2 6488 fi 6489done 6490 done 6491IFS=$as_save_IFS 6492 6493fi 6494fi 6495ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6496if test -n "$ac_ct_DLLTOOL"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6498$as_echo "$ac_ct_DLLTOOL" >&6; } 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; } 6502fi 6503 6504 if test "x$ac_ct_DLLTOOL" = x; then 6505 DLLTOOL="false" 6506 else 6507 case $cross_compiling:$ac_tool_warned in 6508yes:) 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6511ac_tool_warned=yes ;; 6512esac 6513 DLLTOOL=$ac_ct_DLLTOOL 6514 fi 6515else 6516 DLLTOOL="$ac_cv_prog_DLLTOOL" 6517fi 6518 6519test -z "$DLLTOOL" && DLLTOOL=dlltool 6520 6521 6522 6523 6524 6525 6526 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6528$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6529if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 lt_cv_sharedlib_from_linklib_cmd='unknown' 6533 6534case $host_os in 6535cygwin* | mingw* | pw32* | cegcc*) 6536 # two different shell functions defined in ltmain.sh 6537 # decide which to use based on capabilities of $DLLTOOL 6538 case `$DLLTOOL --help 2>&1` in 6539 *--identify-strict*) 6540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6541 ;; 6542 *) 6543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6544 ;; 6545 esac 6546 ;; 6547*) 6548 # fallback: assume linklib IS sharedlib 6549 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6550 ;; 6551esac 6552 6553fi 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6555$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6556sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6557test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6558 6559 6560 6561 6562 6563 6564 6565if test -n "$ac_tool_prefix"; then 6566 for ac_prog in ar 6567 do 6568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6569set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6571$as_echo_n "checking for $ac_word... " >&6; } 6572if ${ac_cv_prog_AR+:} false; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 if test -n "$AR"; then 6576 ac_cv_prog_AR="$AR" # Let the user override the test. 6577else 6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6579for as_dir in $PATH 6580do 6581 IFS=$as_save_IFS 6582 test -z "$as_dir" && as_dir=. 6583 for ac_exec_ext in '' $ac_executable_extensions; do 6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6585 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6587 break 2 6588 fi 6589done 6590 done 6591IFS=$as_save_IFS 6592 6593fi 6594fi 6595AR=$ac_cv_prog_AR 6596if test -n "$AR"; then 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6598$as_echo "$AR" >&6; } 6599else 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6601$as_echo "no" >&6; } 6602fi 6603 6604 6605 test -n "$AR" && break 6606 done 6607fi 6608if test -z "$AR"; then 6609 ac_ct_AR=$AR 6610 for ac_prog in ar 6611do 6612 # Extract the first word of "$ac_prog", so it can be a program name with args. 6613set dummy $ac_prog; ac_word=$2 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6615$as_echo_n "checking for $ac_word... " >&6; } 6616if ${ac_cv_prog_ac_ct_AR+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618else 6619 if test -n "$ac_ct_AR"; then 6620 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6621else 6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623for as_dir in $PATH 6624do 6625 IFS=$as_save_IFS 6626 test -z "$as_dir" && as_dir=. 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6629 ac_cv_prog_ac_ct_AR="$ac_prog" 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633done 6634 done 6635IFS=$as_save_IFS 6636 6637fi 6638fi 6639ac_ct_AR=$ac_cv_prog_ac_ct_AR 6640if test -n "$ac_ct_AR"; then 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6642$as_echo "$ac_ct_AR" >&6; } 6643else 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645$as_echo "no" >&6; } 6646fi 6647 6648 6649 test -n "$ac_ct_AR" && break 6650done 6651 6652 if test "x$ac_ct_AR" = x; then 6653 AR="false" 6654 else 6655 case $cross_compiling:$ac_tool_warned in 6656yes:) 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6659ac_tool_warned=yes ;; 6660esac 6661 AR=$ac_ct_AR 6662 fi 6663fi 6664 6665: ${AR=ar} 6666: ${AR_FLAGS=cru} 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6679$as_echo_n "checking for archiver @FILE support... " >&6; } 6680if ${lt_cv_ar_at_file+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 lt_cv_ar_at_file=no 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686 6687int 6688main () 6689{ 6690 6691 ; 6692 return 0; 6693} 6694_ACEOF 6695if ac_fn_c_try_compile "$LINENO"; then : 6696 echo conftest.$ac_objext > conftest.lst 6697 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6699 (eval $lt_ar_try) 2>&5 6700 ac_status=$? 6701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6702 test $ac_status = 0; } 6703 if test "$ac_status" -eq 0; then 6704 # Ensure the archiver fails upon bogus file names. 6705 rm -f conftest.$ac_objext libconftest.a 6706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6707 (eval $lt_ar_try) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; } 6711 if test "$ac_status" -ne 0; then 6712 lt_cv_ar_at_file=@ 6713 fi 6714 fi 6715 rm -f conftest.* libconftest.a 6716 6717fi 6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6719 6720fi 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6722$as_echo "$lt_cv_ar_at_file" >&6; } 6723 6724if test "x$lt_cv_ar_at_file" = xno; then 6725 archiver_list_spec= 6726else 6727 archiver_list_spec=$lt_cv_ar_at_file 6728fi 6729 6730 6731 6732 6733 6734 6735 6736if test -n "$ac_tool_prefix"; then 6737 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6738set dummy ${ac_tool_prefix}strip; ac_word=$2 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740$as_echo_n "checking for $ac_word... " >&6; } 6741if ${ac_cv_prog_STRIP+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 if test -n "$STRIP"; then 6745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6746else 6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764STRIP=$ac_cv_prog_STRIP 6765if test -n "$STRIP"; then 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6767$as_echo "$STRIP" >&6; } 6768else 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770$as_echo "no" >&6; } 6771fi 6772 6773 6774fi 6775if test -z "$ac_cv_prog_STRIP"; then 6776 ac_ct_STRIP=$STRIP 6777 # Extract the first word of "strip", so it can be a program name with args. 6778set dummy strip; ac_word=$2 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6780$as_echo_n "checking for $ac_word... " >&6; } 6781if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6782 $as_echo_n "(cached) " >&6 6783else 6784 if test -n "$ac_ct_STRIP"; then 6785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6786else 6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6788for as_dir in $PATH 6789do 6790 IFS=$as_save_IFS 6791 test -z "$as_dir" && as_dir=. 6792 for ac_exec_ext in '' $ac_executable_extensions; do 6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6794 ac_cv_prog_ac_ct_STRIP="strip" 6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6796 break 2 6797 fi 6798done 6799 done 6800IFS=$as_save_IFS 6801 6802fi 6803fi 6804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6805if test -n "$ac_ct_STRIP"; then 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6807$as_echo "$ac_ct_STRIP" >&6; } 6808else 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6810$as_echo "no" >&6; } 6811fi 6812 6813 if test "x$ac_ct_STRIP" = x; then 6814 STRIP=":" 6815 else 6816 case $cross_compiling:$ac_tool_warned in 6817yes:) 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6820ac_tool_warned=yes ;; 6821esac 6822 STRIP=$ac_ct_STRIP 6823 fi 6824else 6825 STRIP="$ac_cv_prog_STRIP" 6826fi 6827 6828test -z "$STRIP" && STRIP=: 6829 6830 6831 6832 6833 6834 6835if test -n "$ac_tool_prefix"; then 6836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6837set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if ${ac_cv_prog_RANLIB+:} false; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 if test -n "$RANLIB"; then 6844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6845else 6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857done 6858 done 6859IFS=$as_save_IFS 6860 6861fi 6862fi 6863RANLIB=$ac_cv_prog_RANLIB 6864if test -n "$RANLIB"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6866$as_echo "$RANLIB" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 6873fi 6874if test -z "$ac_cv_prog_RANLIB"; then 6875 ac_ct_RANLIB=$RANLIB 6876 # Extract the first word of "ranlib", so it can be a program name with args. 6877set dummy ranlib; ac_word=$2 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6879$as_echo_n "checking for $ac_word... " >&6; } 6880if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 if test -n "$ac_ct_RANLIB"; then 6884 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6885else 6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6887for as_dir in $PATH 6888do 6889 IFS=$as_save_IFS 6890 test -z "$as_dir" && as_dir=. 6891 for ac_exec_ext in '' $ac_executable_extensions; do 6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6893 ac_cv_prog_ac_ct_RANLIB="ranlib" 6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6895 break 2 6896 fi 6897done 6898 done 6899IFS=$as_save_IFS 6900 6901fi 6902fi 6903ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6904if test -n "$ac_ct_RANLIB"; then 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6906$as_echo "$ac_ct_RANLIB" >&6; } 6907else 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6909$as_echo "no" >&6; } 6910fi 6911 6912 if test "x$ac_ct_RANLIB" = x; then 6913 RANLIB=":" 6914 else 6915 case $cross_compiling:$ac_tool_warned in 6916yes:) 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6919ac_tool_warned=yes ;; 6920esac 6921 RANLIB=$ac_ct_RANLIB 6922 fi 6923else 6924 RANLIB="$ac_cv_prog_RANLIB" 6925fi 6926 6927test -z "$RANLIB" && RANLIB=: 6928 6929 6930 6931 6932 6933 6934# Determine commands to create old-style static archives. 6935old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6936old_postinstall_cmds='chmod 644 $oldlib' 6937old_postuninstall_cmds= 6938 6939if test -n "$RANLIB"; then 6940 case $host_os in 6941 openbsd*) 6942 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6943 ;; 6944 *) 6945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6946 ;; 6947 esac 6948 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6949fi 6950 6951case $host_os in 6952 darwin*) 6953 lock_old_archive_extraction=yes ;; 6954 *) 6955 lock_old_archive_extraction=no ;; 6956esac 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996# If no C compiler was specified, use CC. 6997LTCC=${LTCC-"$CC"} 6998 6999# If no C compiler flags were specified, use CFLAGS. 7000LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7001 7002# Allow CC to be a program name with arguments. 7003compiler=$CC 7004 7005 7006# Check for command to grab the raw symbol name followed by C symbol from nm. 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7008$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7009if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 7013# These are sane defaults that work on at least a few old systems. 7014# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7015 7016# Character class describing NM global symbol codes. 7017symcode='[BCDEGRST]' 7018 7019# Regexp to match symbols that can be accessed directly from C. 7020sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7021 7022# Define system-specific variables. 7023case $host_os in 7024aix*) 7025 symcode='[BCDT]' 7026 ;; 7027cygwin* | mingw* | pw32* | cegcc*) 7028 symcode='[ABCDGISTW]' 7029 ;; 7030hpux*) 7031 if test "$host_cpu" = ia64; then 7032 symcode='[ABCDEGRST]' 7033 fi 7034 ;; 7035irix* | nonstopux*) 7036 symcode='[BCDEGRST]' 7037 ;; 7038osf*) 7039 symcode='[BCDEGQRST]' 7040 ;; 7041solaris*) 7042 symcode='[BDRT]' 7043 ;; 7044sco3.2v5*) 7045 symcode='[DT]' 7046 ;; 7047sysv4.2uw2*) 7048 symcode='[DT]' 7049 ;; 7050sysv5* | sco5v6* | unixware* | OpenUNIX*) 7051 symcode='[ABDT]' 7052 ;; 7053sysv4) 7054 symcode='[DFNSTU]' 7055 ;; 7056esac 7057 7058# If we're using GNU nm, then use its standard symbol codes. 7059case `$NM -V 2>&1` in 7060*GNU* | *'with BFD'*) 7061 symcode='[ABCDGIRSTW]' ;; 7062esac 7063 7064# Transform an extracted symbol line into a proper C declaration. 7065# Some systems (esp. on ia64) link data and code symbols differently, 7066# so use this general approach. 7067lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7068 7069# Transform an extracted symbol line into symbol name and symbol address 7070lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7071lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7072 7073# Handle CRLF in mingw tool chain 7074opt_cr= 7075case $build_os in 7076mingw*) 7077 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7078 ;; 7079esac 7080 7081# Try without a prefix underscore, then with it. 7082for ac_symprfx in "" "_"; do 7083 7084 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7085 symxfrm="\\1 $ac_symprfx\\2 \\2" 7086 7087 # Write the raw and C identifiers. 7088 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7089 # Fake it for dumpbin and say T for any non-static function 7090 # and D for any global variable. 7091 # Also find C++ and __fastcall symbols from MSVC++, 7092 # which start with @ or ?. 7093 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7094" {last_section=section; section=\$ 3};"\ 7095" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7096" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7097" \$ 0!~/External *\|/{next};"\ 7098" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7099" {if(hide[section]) next};"\ 7100" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7101" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7102" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7103" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7104" ' prfx=^$ac_symprfx" 7105 else 7106 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7107 fi 7108 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7109 7110 # Check to see that the pipe works correctly. 7111 pipe_works=no 7112 7113 rm -f conftest* 7114 cat > conftest.$ac_ext <<_LT_EOF 7115#ifdef __cplusplus 7116extern "C" { 7117#endif 7118char nm_test_var; 7119void nm_test_func(void); 7120void nm_test_func(void){} 7121#ifdef __cplusplus 7122} 7123#endif 7124int main(){nm_test_var='a';nm_test_func();return(0);} 7125_LT_EOF 7126 7127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7128 (eval $ac_compile) 2>&5 7129 ac_status=$? 7130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7131 test $ac_status = 0; }; then 7132 # Now try to grab the symbols. 7133 nlist=conftest.nm 7134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7135 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7136 ac_status=$? 7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7138 test $ac_status = 0; } && test -s "$nlist"; then 7139 # Try sorting and uniquifying the output. 7140 if sort "$nlist" | uniq > "$nlist"T; then 7141 mv -f "$nlist"T "$nlist" 7142 else 7143 rm -f "$nlist"T 7144 fi 7145 7146 # Make sure that we snagged all the symbols we need. 7147 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7148 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7149 cat <<_LT_EOF > conftest.$ac_ext 7150/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7151#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7152/* DATA imports from DLLs on WIN32 con't be const, because runtime 7153 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7154# define LT_DLSYM_CONST 7155#elif defined(__osf__) 7156/* This system does not cope well with relocations in const data. */ 7157# define LT_DLSYM_CONST 7158#else 7159# define LT_DLSYM_CONST const 7160#endif 7161 7162#ifdef __cplusplus 7163extern "C" { 7164#endif 7165 7166_LT_EOF 7167 # Now generate the symbol file. 7168 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7169 7170 cat <<_LT_EOF >> conftest.$ac_ext 7171 7172/* The mapping between symbol names and symbols. */ 7173LT_DLSYM_CONST struct { 7174 const char *name; 7175 void *address; 7176} 7177lt__PROGRAM__LTX_preloaded_symbols[] = 7178{ 7179 { "@PROGRAM@", (void *) 0 }, 7180_LT_EOF 7181 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7182 cat <<\_LT_EOF >> conftest.$ac_ext 7183 {0, (void *) 0} 7184}; 7185 7186/* This works around a problem in FreeBSD linker */ 7187#ifdef FREEBSD_WORKAROUND 7188static const void *lt_preloaded_setup() { 7189 return lt__PROGRAM__LTX_preloaded_symbols; 7190} 7191#endif 7192 7193#ifdef __cplusplus 7194} 7195#endif 7196_LT_EOF 7197 # Now try linking the two files. 7198 mv conftest.$ac_objext conftstm.$ac_objext 7199 lt_globsym_save_LIBS=$LIBS 7200 lt_globsym_save_CFLAGS=$CFLAGS 7201 LIBS="conftstm.$ac_objext" 7202 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7204 (eval $ac_link) 2>&5 7205 ac_status=$? 7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7207 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7208 pipe_works=yes 7209 fi 7210 LIBS=$lt_globsym_save_LIBS 7211 CFLAGS=$lt_globsym_save_CFLAGS 7212 else 7213 echo "cannot find nm_test_func in $nlist" >&5 7214 fi 7215 else 7216 echo "cannot find nm_test_var in $nlist" >&5 7217 fi 7218 else 7219 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7220 fi 7221 else 7222 echo "$progname: failed program was:" >&5 7223 cat conftest.$ac_ext >&5 7224 fi 7225 rm -rf conftest* conftst* 7226 7227 # Do not use the global_symbol_pipe unless it works. 7228 if test "$pipe_works" = yes; then 7229 break 7230 else 7231 lt_cv_sys_global_symbol_pipe= 7232 fi 7233done 7234 7235fi 7236 7237if test -z "$lt_cv_sys_global_symbol_pipe"; then 7238 lt_cv_sys_global_symbol_to_cdecl= 7239fi 7240if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7242$as_echo "failed" >&6; } 7243else 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7245$as_echo "ok" >&6; } 7246fi 7247 7248# Response file support. 7249if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7250 nm_file_list_spec='@' 7251elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7252 nm_file_list_spec='@' 7253fi 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7282$as_echo_n "checking for sysroot... " >&6; } 7283 7284# Check whether --with-sysroot was given. 7285if test "${with_sysroot+set}" = set; then : 7286 withval=$with_sysroot; 7287else 7288 with_sysroot=no 7289fi 7290 7291 7292lt_sysroot= 7293case ${with_sysroot} in #( 7294 yes) 7295 if test "$GCC" = yes; then 7296 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7297 fi 7298 ;; #( 7299 /*) 7300 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7301 ;; #( 7302 no|'') 7303 ;; #( 7304 *) 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7306$as_echo "${with_sysroot}" >&6; } 7307 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7308 ;; 7309esac 7310 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7312$as_echo "${lt_sysroot:-no}" >&6; } 7313 7314 7315 7316 7317 7318# Check whether --enable-libtool-lock was given. 7319if test "${enable_libtool_lock+set}" = set; then : 7320 enableval=$enable_libtool_lock; 7321fi 7322 7323test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7324 7325# Some flags need to be propagated to the compiler or linker for good 7326# libtool support. 7327case $host in 7328ia64-*-hpux*) 7329 # Find out which ABI we are using. 7330 echo 'int i;' > conftest.$ac_ext 7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7332 (eval $ac_compile) 2>&5 7333 ac_status=$? 7334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7335 test $ac_status = 0; }; then 7336 case `/usr/bin/file conftest.$ac_objext` in 7337 *ELF-32*) 7338 HPUX_IA64_MODE="32" 7339 ;; 7340 *ELF-64*) 7341 HPUX_IA64_MODE="64" 7342 ;; 7343 esac 7344 fi 7345 rm -rf conftest* 7346 ;; 7347*-*-irix6*) 7348 # Find out which ABI we are using. 7349 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7351 (eval $ac_compile) 2>&5 7352 ac_status=$? 7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7354 test $ac_status = 0; }; then 7355 if test "$lt_cv_prog_gnu_ld" = yes; then 7356 case `/usr/bin/file conftest.$ac_objext` in 7357 *32-bit*) 7358 LD="${LD-ld} -melf32bsmip" 7359 ;; 7360 *N32*) 7361 LD="${LD-ld} -melf32bmipn32" 7362 ;; 7363 *64-bit*) 7364 LD="${LD-ld} -melf64bmip" 7365 ;; 7366 esac 7367 else 7368 case `/usr/bin/file conftest.$ac_objext` in 7369 *32-bit*) 7370 LD="${LD-ld} -32" 7371 ;; 7372 *N32*) 7373 LD="${LD-ld} -n32" 7374 ;; 7375 *64-bit*) 7376 LD="${LD-ld} -64" 7377 ;; 7378 esac 7379 fi 7380 fi 7381 rm -rf conftest* 7382 ;; 7383 7384x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7385s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7386 # Find out which ABI we are using. 7387 echo 'int i;' > conftest.$ac_ext 7388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7389 (eval $ac_compile) 2>&5 7390 ac_status=$? 7391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7392 test $ac_status = 0; }; then 7393 case `/usr/bin/file conftest.o` in 7394 *32-bit*) 7395 case $host in 7396 x86_64-*kfreebsd*-gnu) 7397 LD="${LD-ld} -m elf_i386_fbsd" 7398 ;; 7399 x86_64-*linux*) 7400 LD="${LD-ld} -m elf_i386" 7401 ;; 7402 powerpc64le-*linux*) 7403 LD="${LD-ld} -m elf32lppclinux" 7404 ;; 7405 powerpc64-*linux*) 7406 LD="${LD-ld} -m elf32ppclinux" 7407 ;; 7408 s390x-*linux*) 7409 LD="${LD-ld} -m elf_s390" 7410 ;; 7411 sparc64-*linux*) 7412 LD="${LD-ld} -m elf32_sparc" 7413 ;; 7414 esac 7415 ;; 7416 *64-bit*) 7417 case $host in 7418 x86_64-*kfreebsd*-gnu) 7419 LD="${LD-ld} -m elf_x86_64_fbsd" 7420 ;; 7421 x86_64-*linux*) 7422 LD="${LD-ld} -m elf_x86_64" 7423 ;; 7424 powerpcle-*linux*) 7425 LD="${LD-ld} -m elf64lppc" 7426 ;; 7427 powerpc-*linux*) 7428 LD="${LD-ld} -m elf64ppc" 7429 ;; 7430 s390*-*linux*|s390*-*tpf*) 7431 LD="${LD-ld} -m elf64_s390" 7432 ;; 7433 sparc*-*linux*) 7434 LD="${LD-ld} -m elf64_sparc" 7435 ;; 7436 esac 7437 ;; 7438 esac 7439 fi 7440 rm -rf conftest* 7441 ;; 7442 7443*-*-sco3.2v5*) 7444 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7445 SAVE_CFLAGS="$CFLAGS" 7446 CFLAGS="$CFLAGS -belf" 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7448$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7449if ${lt_cv_cc_needs_belf+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 ac_ext=c 7453ac_cpp='$CPP $CPPFLAGS' 7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7456ac_compiler_gnu=$ac_cv_c_compiler_gnu 7457 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460 7461int 7462main () 7463{ 7464 7465 ; 7466 return 0; 7467} 7468_ACEOF 7469if ac_fn_c_try_link "$LINENO"; then : 7470 lt_cv_cc_needs_belf=yes 7471else 7472 lt_cv_cc_needs_belf=no 7473fi 7474rm -f core conftest.err conftest.$ac_objext \ 7475 conftest$ac_exeext conftest.$ac_ext 7476 ac_ext=c 7477ac_cpp='$CPP $CPPFLAGS' 7478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7480ac_compiler_gnu=$ac_cv_c_compiler_gnu 7481 7482fi 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7484$as_echo "$lt_cv_cc_needs_belf" >&6; } 7485 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7486 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7487 CFLAGS="$SAVE_CFLAGS" 7488 fi 7489 ;; 7490*-*solaris*) 7491 # Find out which ABI we are using. 7492 echo 'int i;' > conftest.$ac_ext 7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7494 (eval $ac_compile) 2>&5 7495 ac_status=$? 7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7497 test $ac_status = 0; }; then 7498 case `/usr/bin/file conftest.o` in 7499 *64-bit*) 7500 case $lt_cv_prog_gnu_ld in 7501 yes*) 7502 case $host in 7503 i?86-*-solaris*) 7504 LD="${LD-ld} -m elf_x86_64" 7505 ;; 7506 sparc*-*-solaris*) 7507 LD="${LD-ld} -m elf64_sparc" 7508 ;; 7509 esac 7510 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7511 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7512 LD="${LD-ld}_sol2" 7513 fi 7514 ;; 7515 *) 7516 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7517 LD="${LD-ld} -64" 7518 fi 7519 ;; 7520 esac 7521 ;; 7522 esac 7523 fi 7524 rm -rf conftest* 7525 ;; 7526esac 7527 7528need_locks="$enable_libtool_lock" 7529 7530if test -n "$ac_tool_prefix"; then 7531 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7532set dummy ${ac_tool_prefix}mt; ac_word=$2 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7534$as_echo_n "checking for $ac_word... " >&6; } 7535if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 if test -n "$MANIFEST_TOOL"; then 7539 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7540else 7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7542for as_dir in $PATH 7543do 7544 IFS=$as_save_IFS 7545 test -z "$as_dir" && as_dir=. 7546 for ac_exec_ext in '' $ac_executable_extensions; do 7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7548 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7550 break 2 7551 fi 7552done 7553 done 7554IFS=$as_save_IFS 7555 7556fi 7557fi 7558MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7559if test -n "$MANIFEST_TOOL"; then 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7561$as_echo "$MANIFEST_TOOL" >&6; } 7562else 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7564$as_echo "no" >&6; } 7565fi 7566 7567 7568fi 7569if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7570 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7571 # Extract the first word of "mt", so it can be a program name with args. 7572set dummy mt; ac_word=$2 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7574$as_echo_n "checking for $ac_word... " >&6; } 7575if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7576 $as_echo_n "(cached) " >&6 7577else 7578 if test -n "$ac_ct_MANIFEST_TOOL"; then 7579 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7580else 7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582for as_dir in $PATH 7583do 7584 IFS=$as_save_IFS 7585 test -z "$as_dir" && as_dir=. 7586 for ac_exec_ext in '' $ac_executable_extensions; do 7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7588 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7590 break 2 7591 fi 7592done 7593 done 7594IFS=$as_save_IFS 7595 7596fi 7597fi 7598ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7599if test -n "$ac_ct_MANIFEST_TOOL"; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7601$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7602else 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7604$as_echo "no" >&6; } 7605fi 7606 7607 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7608 MANIFEST_TOOL=":" 7609 else 7610 case $cross_compiling:$ac_tool_warned in 7611yes:) 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7614ac_tool_warned=yes ;; 7615esac 7616 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7617 fi 7618else 7619 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7620fi 7621 7622test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7624$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7625if ${lt_cv_path_mainfest_tool+:} false; then : 7626 $as_echo_n "(cached) " >&6 7627else 7628 lt_cv_path_mainfest_tool=no 7629 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7630 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7631 cat conftest.err >&5 7632 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7633 lt_cv_path_mainfest_tool=yes 7634 fi 7635 rm -f conftest* 7636fi 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7638$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7639if test "x$lt_cv_path_mainfest_tool" != xyes; then 7640 MANIFEST_TOOL=: 7641fi 7642 7643 7644 7645 7646 7647 7648 case $host_os in 7649 rhapsody* | darwin*) 7650 if test -n "$ac_tool_prefix"; then 7651 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7652set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7654$as_echo_n "checking for $ac_word... " >&6; } 7655if ${ac_cv_prog_DSYMUTIL+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 if test -n "$DSYMUTIL"; then 7659 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7660else 7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7662for as_dir in $PATH 7663do 7664 IFS=$as_save_IFS 7665 test -z "$as_dir" && as_dir=. 7666 for ac_exec_ext in '' $ac_executable_extensions; do 7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7668 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7670 break 2 7671 fi 7672done 7673 done 7674IFS=$as_save_IFS 7675 7676fi 7677fi 7678DSYMUTIL=$ac_cv_prog_DSYMUTIL 7679if test -n "$DSYMUTIL"; then 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7681$as_echo "$DSYMUTIL" >&6; } 7682else 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7684$as_echo "no" >&6; } 7685fi 7686 7687 7688fi 7689if test -z "$ac_cv_prog_DSYMUTIL"; then 7690 ac_ct_DSYMUTIL=$DSYMUTIL 7691 # Extract the first word of "dsymutil", so it can be a program name with args. 7692set dummy dsymutil; ac_word=$2 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7694$as_echo_n "checking for $ac_word... " >&6; } 7695if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697else 7698 if test -n "$ac_ct_DSYMUTIL"; then 7699 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7700else 7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7702for as_dir in $PATH 7703do 7704 IFS=$as_save_IFS 7705 test -z "$as_dir" && as_dir=. 7706 for ac_exec_ext in '' $ac_executable_extensions; do 7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7708 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7710 break 2 7711 fi 7712done 7713 done 7714IFS=$as_save_IFS 7715 7716fi 7717fi 7718ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7719if test -n "$ac_ct_DSYMUTIL"; then 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7721$as_echo "$ac_ct_DSYMUTIL" >&6; } 7722else 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7724$as_echo "no" >&6; } 7725fi 7726 7727 if test "x$ac_ct_DSYMUTIL" = x; then 7728 DSYMUTIL=":" 7729 else 7730 case $cross_compiling:$ac_tool_warned in 7731yes:) 7732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7734ac_tool_warned=yes ;; 7735esac 7736 DSYMUTIL=$ac_ct_DSYMUTIL 7737 fi 7738else 7739 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7740fi 7741 7742 if test -n "$ac_tool_prefix"; then 7743 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7744set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7746$as_echo_n "checking for $ac_word... " >&6; } 7747if ${ac_cv_prog_NMEDIT+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 if test -n "$NMEDIT"; then 7751 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7752else 7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7760 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764done 7765 done 7766IFS=$as_save_IFS 7767 7768fi 7769fi 7770NMEDIT=$ac_cv_prog_NMEDIT 7771if test -n "$NMEDIT"; then 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7773$as_echo "$NMEDIT" >&6; } 7774else 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7776$as_echo "no" >&6; } 7777fi 7778 7779 7780fi 7781if test -z "$ac_cv_prog_NMEDIT"; then 7782 ac_ct_NMEDIT=$NMEDIT 7783 # Extract the first word of "nmedit", so it can be a program name with args. 7784set dummy nmedit; ac_word=$2 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7786$as_echo_n "checking for $ac_word... " >&6; } 7787if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 if test -n "$ac_ct_NMEDIT"; then 7791 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7792else 7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7794for as_dir in $PATH 7795do 7796 IFS=$as_save_IFS 7797 test -z "$as_dir" && as_dir=. 7798 for ac_exec_ext in '' $ac_executable_extensions; do 7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7800 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7802 break 2 7803 fi 7804done 7805 done 7806IFS=$as_save_IFS 7807 7808fi 7809fi 7810ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7811if test -n "$ac_ct_NMEDIT"; then 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7813$as_echo "$ac_ct_NMEDIT" >&6; } 7814else 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7816$as_echo "no" >&6; } 7817fi 7818 7819 if test "x$ac_ct_NMEDIT" = x; then 7820 NMEDIT=":" 7821 else 7822 case $cross_compiling:$ac_tool_warned in 7823yes:) 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7826ac_tool_warned=yes ;; 7827esac 7828 NMEDIT=$ac_ct_NMEDIT 7829 fi 7830else 7831 NMEDIT="$ac_cv_prog_NMEDIT" 7832fi 7833 7834 if test -n "$ac_tool_prefix"; then 7835 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7836set dummy ${ac_tool_prefix}lipo; ac_word=$2 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7838$as_echo_n "checking for $ac_word... " >&6; } 7839if ${ac_cv_prog_LIPO+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 if test -n "$LIPO"; then 7843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7844else 7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7846for as_dir in $PATH 7847do 7848 IFS=$as_save_IFS 7849 test -z "$as_dir" && as_dir=. 7850 for ac_exec_ext in '' $ac_executable_extensions; do 7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7852 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7854 break 2 7855 fi 7856done 7857 done 7858IFS=$as_save_IFS 7859 7860fi 7861fi 7862LIPO=$ac_cv_prog_LIPO 7863if test -n "$LIPO"; then 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7865$as_echo "$LIPO" >&6; } 7866else 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7868$as_echo "no" >&6; } 7869fi 7870 7871 7872fi 7873if test -z "$ac_cv_prog_LIPO"; then 7874 ac_ct_LIPO=$LIPO 7875 # Extract the first word of "lipo", so it can be a program name with args. 7876set dummy lipo; ac_word=$2 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7878$as_echo_n "checking for $ac_word... " >&6; } 7879if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7880 $as_echo_n "(cached) " >&6 7881else 7882 if test -n "$ac_ct_LIPO"; then 7883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7884else 7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7886for as_dir in $PATH 7887do 7888 IFS=$as_save_IFS 7889 test -z "$as_dir" && as_dir=. 7890 for ac_exec_ext in '' $ac_executable_extensions; do 7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7892 ac_cv_prog_ac_ct_LIPO="lipo" 7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7894 break 2 7895 fi 7896done 7897 done 7898IFS=$as_save_IFS 7899 7900fi 7901fi 7902ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7903if test -n "$ac_ct_LIPO"; then 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7905$as_echo "$ac_ct_LIPO" >&6; } 7906else 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7908$as_echo "no" >&6; } 7909fi 7910 7911 if test "x$ac_ct_LIPO" = x; then 7912 LIPO=":" 7913 else 7914 case $cross_compiling:$ac_tool_warned in 7915yes:) 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7918ac_tool_warned=yes ;; 7919esac 7920 LIPO=$ac_ct_LIPO 7921 fi 7922else 7923 LIPO="$ac_cv_prog_LIPO" 7924fi 7925 7926 if test -n "$ac_tool_prefix"; then 7927 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7928set dummy ${ac_tool_prefix}otool; ac_word=$2 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7930$as_echo_n "checking for $ac_word... " >&6; } 7931if ${ac_cv_prog_OTOOL+:} false; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 if test -n "$OTOOL"; then 7935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7936else 7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7938for as_dir in $PATH 7939do 7940 IFS=$as_save_IFS 7941 test -z "$as_dir" && as_dir=. 7942 for ac_exec_ext in '' $ac_executable_extensions; do 7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7944 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7946 break 2 7947 fi 7948done 7949 done 7950IFS=$as_save_IFS 7951 7952fi 7953fi 7954OTOOL=$ac_cv_prog_OTOOL 7955if test -n "$OTOOL"; then 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7957$as_echo "$OTOOL" >&6; } 7958else 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7960$as_echo "no" >&6; } 7961fi 7962 7963 7964fi 7965if test -z "$ac_cv_prog_OTOOL"; then 7966 ac_ct_OTOOL=$OTOOL 7967 # Extract the first word of "otool", so it can be a program name with args. 7968set dummy otool; ac_word=$2 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7970$as_echo_n "checking for $ac_word... " >&6; } 7971if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7972 $as_echo_n "(cached) " >&6 7973else 7974 if test -n "$ac_ct_OTOOL"; then 7975 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7976else 7977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7978for as_dir in $PATH 7979do 7980 IFS=$as_save_IFS 7981 test -z "$as_dir" && as_dir=. 7982 for ac_exec_ext in '' $ac_executable_extensions; do 7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7984 ac_cv_prog_ac_ct_OTOOL="otool" 7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7986 break 2 7987 fi 7988done 7989 done 7990IFS=$as_save_IFS 7991 7992fi 7993fi 7994ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7995if test -n "$ac_ct_OTOOL"; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7997$as_echo "$ac_ct_OTOOL" >&6; } 7998else 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8000$as_echo "no" >&6; } 8001fi 8002 8003 if test "x$ac_ct_OTOOL" = x; then 8004 OTOOL=":" 8005 else 8006 case $cross_compiling:$ac_tool_warned in 8007yes:) 8008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8010ac_tool_warned=yes ;; 8011esac 8012 OTOOL=$ac_ct_OTOOL 8013 fi 8014else 8015 OTOOL="$ac_cv_prog_OTOOL" 8016fi 8017 8018 if test -n "$ac_tool_prefix"; then 8019 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8020set dummy ${ac_tool_prefix}otool64; ac_word=$2 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8022$as_echo_n "checking for $ac_word... " >&6; } 8023if ${ac_cv_prog_OTOOL64+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 if test -n "$OTOOL64"; then 8027 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8028else 8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8030for as_dir in $PATH 8031do 8032 IFS=$as_save_IFS 8033 test -z "$as_dir" && as_dir=. 8034 for ac_exec_ext in '' $ac_executable_extensions; do 8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8036 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8038 break 2 8039 fi 8040done 8041 done 8042IFS=$as_save_IFS 8043 8044fi 8045fi 8046OTOOL64=$ac_cv_prog_OTOOL64 8047if test -n "$OTOOL64"; then 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8049$as_echo "$OTOOL64" >&6; } 8050else 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8052$as_echo "no" >&6; } 8053fi 8054 8055 8056fi 8057if test -z "$ac_cv_prog_OTOOL64"; then 8058 ac_ct_OTOOL64=$OTOOL64 8059 # Extract the first word of "otool64", so it can be a program name with args. 8060set dummy otool64; ac_word=$2 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8062$as_echo_n "checking for $ac_word... " >&6; } 8063if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 if test -n "$ac_ct_OTOOL64"; then 8067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8068else 8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8070for as_dir in $PATH 8071do 8072 IFS=$as_save_IFS 8073 test -z "$as_dir" && as_dir=. 8074 for ac_exec_ext in '' $ac_executable_extensions; do 8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8076 ac_cv_prog_ac_ct_OTOOL64="otool64" 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8078 break 2 8079 fi 8080done 8081 done 8082IFS=$as_save_IFS 8083 8084fi 8085fi 8086ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8087if test -n "$ac_ct_OTOOL64"; then 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8089$as_echo "$ac_ct_OTOOL64" >&6; } 8090else 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8092$as_echo "no" >&6; } 8093fi 8094 8095 if test "x$ac_ct_OTOOL64" = x; then 8096 OTOOL64=":" 8097 else 8098 case $cross_compiling:$ac_tool_warned in 8099yes:) 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8102ac_tool_warned=yes ;; 8103esac 8104 OTOOL64=$ac_ct_OTOOL64 8105 fi 8106else 8107 OTOOL64="$ac_cv_prog_OTOOL64" 8108fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8137$as_echo_n "checking for -single_module linker flag... " >&6; } 8138if ${lt_cv_apple_cc_single_mod+:} false; then : 8139 $as_echo_n "(cached) " >&6 8140else 8141 lt_cv_apple_cc_single_mod=no 8142 if test -z "${LT_MULTI_MODULE}"; then 8143 # By default we will add the -single_module flag. You can override 8144 # by either setting the environment variable LT_MULTI_MODULE 8145 # non-empty at configure time, or by adding -multi_module to the 8146 # link flags. 8147 rm -rf libconftest.dylib* 8148 echo "int foo(void){return 1;}" > conftest.c 8149 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8150-dynamiclib -Wl,-single_module conftest.c" >&5 8151 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8152 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8153 _lt_result=$? 8154 # If there is a non-empty error log, and "single_module" 8155 # appears in it, assume the flag caused a linker warning 8156 if test -s conftest.err && $GREP single_module conftest.err; then 8157 cat conftest.err >&5 8158 # Otherwise, if the output was created with a 0 exit code from 8159 # the compiler, it worked. 8160 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8161 lt_cv_apple_cc_single_mod=yes 8162 else 8163 cat conftest.err >&5 8164 fi 8165 rm -rf libconftest.dylib* 8166 rm -f conftest.* 8167 fi 8168fi 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8170$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8171 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8173$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8174if ${lt_cv_ld_exported_symbols_list+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 lt_cv_ld_exported_symbols_list=no 8178 save_LDFLAGS=$LDFLAGS 8179 echo "_main" > conftest.sym 8180 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8182/* end confdefs.h. */ 8183 8184int 8185main () 8186{ 8187 8188 ; 8189 return 0; 8190} 8191_ACEOF 8192if ac_fn_c_try_link "$LINENO"; then : 8193 lt_cv_ld_exported_symbols_list=yes 8194else 8195 lt_cv_ld_exported_symbols_list=no 8196fi 8197rm -f core conftest.err conftest.$ac_objext \ 8198 conftest$ac_exeext conftest.$ac_ext 8199 LDFLAGS="$save_LDFLAGS" 8200 8201fi 8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8203$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8204 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8206$as_echo_n "checking for -force_load linker flag... " >&6; } 8207if ${lt_cv_ld_force_load+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 lt_cv_ld_force_load=no 8211 cat > conftest.c << _LT_EOF 8212int forced_loaded() { return 2;} 8213_LT_EOF 8214 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8215 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8216 echo "$AR cru libconftest.a conftest.o" >&5 8217 $AR cru libconftest.a conftest.o 2>&5 8218 echo "$RANLIB libconftest.a" >&5 8219 $RANLIB libconftest.a 2>&5 8220 cat > conftest.c << _LT_EOF 8221int main() { return 0;} 8222_LT_EOF 8223 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8224 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8225 _lt_result=$? 8226 if test -s conftest.err && $GREP force_load conftest.err; then 8227 cat conftest.err >&5 8228 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8229 lt_cv_ld_force_load=yes 8230 else 8231 cat conftest.err >&5 8232 fi 8233 rm -f conftest.err libconftest.a conftest conftest.c 8234 rm -rf conftest.dSYM 8235 8236fi 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8238$as_echo "$lt_cv_ld_force_load" >&6; } 8239 case $host_os in 8240 rhapsody* | darwin1.[012]) 8241 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8242 darwin1.*) 8243 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8244 darwin*) # darwin 5.x on 8245 # if running on 10.5 or later, the deployment target defaults 8246 # to the OS version, if on x86, and 10.4, the deployment 8247 # target defaults to 10.4. Don't you love it? 8248 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8249 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8251 10.[012]*) 8252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8253 10.*) 8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8255 esac 8256 ;; 8257 esac 8258 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8259 _lt_dar_single_mod='$single_module' 8260 fi 8261 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8262 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8263 else 8264 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8265 fi 8266 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8267 _lt_dsymutil='~$DSYMUTIL $lib || :' 8268 else 8269 _lt_dsymutil= 8270 fi 8271 ;; 8272 esac 8273 8274for ac_header in dlfcn.h 8275do : 8276 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8277" 8278if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8279 cat >>confdefs.h <<_ACEOF 8280#define HAVE_DLFCN_H 1 8281_ACEOF 8282 8283fi 8284 8285done 8286 8287 8288 8289 8290 8291# Set options 8292# Check whether --enable-static was given. 8293if test "${enable_static+set}" = set; then : 8294 enableval=$enable_static; p=${PACKAGE-default} 8295 case $enableval in 8296 yes) enable_static=yes ;; 8297 no) enable_static=no ;; 8298 *) 8299 enable_static=no 8300 # Look at the argument we got. We use all the common list separators. 8301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8302 for pkg in $enableval; do 8303 IFS="$lt_save_ifs" 8304 if test "X$pkg" = "X$p"; then 8305 enable_static=yes 8306 fi 8307 done 8308 IFS="$lt_save_ifs" 8309 ;; 8310 esac 8311else 8312 enable_static=no 8313fi 8314 8315 8316 8317 8318 8319 8320 8321enable_win32_dll=yes 8322 8323case $host in 8324*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8325 if test -n "$ac_tool_prefix"; then 8326 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8327set dummy ${ac_tool_prefix}as; ac_word=$2 8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8329$as_echo_n "checking for $ac_word... " >&6; } 8330if ${ac_cv_prog_AS+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 if test -n "$AS"; then 8334 ac_cv_prog_AS="$AS" # Let the user override the test. 8335else 8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8337for as_dir in $PATH 8338do 8339 IFS=$as_save_IFS 8340 test -z "$as_dir" && as_dir=. 8341 for ac_exec_ext in '' $ac_executable_extensions; do 8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8343 ac_cv_prog_AS="${ac_tool_prefix}as" 8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8345 break 2 8346 fi 8347done 8348 done 8349IFS=$as_save_IFS 8350 8351fi 8352fi 8353AS=$ac_cv_prog_AS 8354if test -n "$AS"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8356$as_echo "$AS" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 8363fi 8364if test -z "$ac_cv_prog_AS"; then 8365 ac_ct_AS=$AS 8366 # Extract the first word of "as", so it can be a program name with args. 8367set dummy as; ac_word=$2 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369$as_echo_n "checking for $ac_word... " >&6; } 8370if ${ac_cv_prog_ac_ct_AS+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 if test -n "$ac_ct_AS"; then 8374 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8375else 8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8377for as_dir in $PATH 8378do 8379 IFS=$as_save_IFS 8380 test -z "$as_dir" && as_dir=. 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8383 ac_cv_prog_ac_ct_AS="as" 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387done 8388 done 8389IFS=$as_save_IFS 8390 8391fi 8392fi 8393ac_ct_AS=$ac_cv_prog_ac_ct_AS 8394if test -n "$ac_ct_AS"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8396$as_echo "$ac_ct_AS" >&6; } 8397else 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8399$as_echo "no" >&6; } 8400fi 8401 8402 if test "x$ac_ct_AS" = x; then 8403 AS="false" 8404 else 8405 case $cross_compiling:$ac_tool_warned in 8406yes:) 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8409ac_tool_warned=yes ;; 8410esac 8411 AS=$ac_ct_AS 8412 fi 8413else 8414 AS="$ac_cv_prog_AS" 8415fi 8416 8417 if test -n "$ac_tool_prefix"; then 8418 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8419set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8421$as_echo_n "checking for $ac_word... " >&6; } 8422if ${ac_cv_prog_DLLTOOL+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 if test -n "$DLLTOOL"; then 8426 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8427else 8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8429for as_dir in $PATH 8430do 8431 IFS=$as_save_IFS 8432 test -z "$as_dir" && as_dir=. 8433 for ac_exec_ext in '' $ac_executable_extensions; do 8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8435 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8437 break 2 8438 fi 8439done 8440 done 8441IFS=$as_save_IFS 8442 8443fi 8444fi 8445DLLTOOL=$ac_cv_prog_DLLTOOL 8446if test -n "$DLLTOOL"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8448$as_echo "$DLLTOOL" >&6; } 8449else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451$as_echo "no" >&6; } 8452fi 8453 8454 8455fi 8456if test -z "$ac_cv_prog_DLLTOOL"; then 8457 ac_ct_DLLTOOL=$DLLTOOL 8458 # Extract the first word of "dlltool", so it can be a program name with args. 8459set dummy dlltool; ac_word=$2 8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8461$as_echo_n "checking for $ac_word... " >&6; } 8462if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 if test -n "$ac_ct_DLLTOOL"; then 8466 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8467else 8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8469for as_dir in $PATH 8470do 8471 IFS=$as_save_IFS 8472 test -z "$as_dir" && as_dir=. 8473 for ac_exec_ext in '' $ac_executable_extensions; do 8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8475 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8477 break 2 8478 fi 8479done 8480 done 8481IFS=$as_save_IFS 8482 8483fi 8484fi 8485ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8486if test -n "$ac_ct_DLLTOOL"; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8488$as_echo "$ac_ct_DLLTOOL" >&6; } 8489else 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8491$as_echo "no" >&6; } 8492fi 8493 8494 if test "x$ac_ct_DLLTOOL" = x; then 8495 DLLTOOL="false" 8496 else 8497 case $cross_compiling:$ac_tool_warned in 8498yes:) 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8501ac_tool_warned=yes ;; 8502esac 8503 DLLTOOL=$ac_ct_DLLTOOL 8504 fi 8505else 8506 DLLTOOL="$ac_cv_prog_DLLTOOL" 8507fi 8508 8509 if test -n "$ac_tool_prefix"; then 8510 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8511set dummy ${ac_tool_prefix}objdump; ac_word=$2 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8513$as_echo_n "checking for $ac_word... " >&6; } 8514if ${ac_cv_prog_OBJDUMP+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 if test -n "$OBJDUMP"; then 8518 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8519else 8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8521for as_dir in $PATH 8522do 8523 IFS=$as_save_IFS 8524 test -z "$as_dir" && as_dir=. 8525 for ac_exec_ext in '' $ac_executable_extensions; do 8526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8527 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8529 break 2 8530 fi 8531done 8532 done 8533IFS=$as_save_IFS 8534 8535fi 8536fi 8537OBJDUMP=$ac_cv_prog_OBJDUMP 8538if test -n "$OBJDUMP"; then 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8540$as_echo "$OBJDUMP" >&6; } 8541else 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8543$as_echo "no" >&6; } 8544fi 8545 8546 8547fi 8548if test -z "$ac_cv_prog_OBJDUMP"; then 8549 ac_ct_OBJDUMP=$OBJDUMP 8550 # Extract the first word of "objdump", so it can be a program name with args. 8551set dummy objdump; ac_word=$2 8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8553$as_echo_n "checking for $ac_word... " >&6; } 8554if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556else 8557 if test -n "$ac_ct_OBJDUMP"; then 8558 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8559else 8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8561for as_dir in $PATH 8562do 8563 IFS=$as_save_IFS 8564 test -z "$as_dir" && as_dir=. 8565 for ac_exec_ext in '' $ac_executable_extensions; do 8566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8567 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8569 break 2 8570 fi 8571done 8572 done 8573IFS=$as_save_IFS 8574 8575fi 8576fi 8577ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8578if test -n "$ac_ct_OBJDUMP"; then 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8580$as_echo "$ac_ct_OBJDUMP" >&6; } 8581else 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8583$as_echo "no" >&6; } 8584fi 8585 8586 if test "x$ac_ct_OBJDUMP" = x; then 8587 OBJDUMP="false" 8588 else 8589 case $cross_compiling:$ac_tool_warned in 8590yes:) 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8593ac_tool_warned=yes ;; 8594esac 8595 OBJDUMP=$ac_ct_OBJDUMP 8596 fi 8597else 8598 OBJDUMP="$ac_cv_prog_OBJDUMP" 8599fi 8600 8601 ;; 8602esac 8603 8604test -z "$AS" && AS=as 8605 8606 8607 8608 8609 8610test -z "$DLLTOOL" && DLLTOOL=dlltool 8611 8612 8613 8614 8615 8616test -z "$OBJDUMP" && OBJDUMP=objdump 8617 8618 8619 8620 8621 8622 8623 8624 enable_dlopen=no 8625 8626 8627 8628 # Check whether --enable-shared was given. 8629if test "${enable_shared+set}" = set; then : 8630 enableval=$enable_shared; p=${PACKAGE-default} 8631 case $enableval in 8632 yes) enable_shared=yes ;; 8633 no) enable_shared=no ;; 8634 *) 8635 enable_shared=no 8636 # Look at the argument we got. We use all the common list separators. 8637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8638 for pkg in $enableval; do 8639 IFS="$lt_save_ifs" 8640 if test "X$pkg" = "X$p"; then 8641 enable_shared=yes 8642 fi 8643 done 8644 IFS="$lt_save_ifs" 8645 ;; 8646 esac 8647else 8648 enable_shared=yes 8649fi 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661# Check whether --with-pic was given. 8662if test "${with_pic+set}" = set; then : 8663 withval=$with_pic; lt_p=${PACKAGE-default} 8664 case $withval in 8665 yes|no) pic_mode=$withval ;; 8666 *) 8667 pic_mode=default 8668 # Look at the argument we got. We use all the common list separators. 8669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8670 for lt_pkg in $withval; do 8671 IFS="$lt_save_ifs" 8672 if test "X$lt_pkg" = "X$lt_p"; then 8673 pic_mode=yes 8674 fi 8675 done 8676 IFS="$lt_save_ifs" 8677 ;; 8678 esac 8679else 8680 pic_mode=default 8681fi 8682 8683 8684test -z "$pic_mode" && pic_mode=default 8685 8686 8687 8688 8689 8690 8691 8692 # Check whether --enable-fast-install was given. 8693if test "${enable_fast_install+set}" = set; then : 8694 enableval=$enable_fast_install; p=${PACKAGE-default} 8695 case $enableval in 8696 yes) enable_fast_install=yes ;; 8697 no) enable_fast_install=no ;; 8698 *) 8699 enable_fast_install=no 8700 # Look at the argument we got. We use all the common list separators. 8701 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8702 for pkg in $enableval; do 8703 IFS="$lt_save_ifs" 8704 if test "X$pkg" = "X$p"; then 8705 enable_fast_install=yes 8706 fi 8707 done 8708 IFS="$lt_save_ifs" 8709 ;; 8710 esac 8711else 8712 enable_fast_install=yes 8713fi 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725# This can be used to rebuild libtool when needed 8726LIBTOOL_DEPS="$ltmain" 8727 8728# Always use our own libtool. 8729LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760test -z "$LN_S" && LN_S="ln -s" 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775if test -n "${ZSH_VERSION+set}" ; then 8776 setopt NO_GLOB_SUBST 8777fi 8778 8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8780$as_echo_n "checking for objdir... " >&6; } 8781if ${lt_cv_objdir+:} false; then : 8782 $as_echo_n "(cached) " >&6 8783else 8784 rm -f .libs 2>/dev/null 8785mkdir .libs 2>/dev/null 8786if test -d .libs; then 8787 lt_cv_objdir=.libs 8788else 8789 # MS-DOS does not allow filenames that begin with a dot. 8790 lt_cv_objdir=_libs 8791fi 8792rmdir .libs 2>/dev/null 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8795$as_echo "$lt_cv_objdir" >&6; } 8796objdir=$lt_cv_objdir 8797 8798 8799 8800 8801 8802cat >>confdefs.h <<_ACEOF 8803#define LT_OBJDIR "$lt_cv_objdir/" 8804_ACEOF 8805 8806 8807 8808 8809case $host_os in 8810aix3*) 8811 # AIX sometimes has problems with the GCC collect2 program. For some 8812 # reason, if we set the COLLECT_NAMES environment variable, the problems 8813 # vanish in a puff of smoke. 8814 if test "X${COLLECT_NAMES+set}" != Xset; then 8815 COLLECT_NAMES= 8816 export COLLECT_NAMES 8817 fi 8818 ;; 8819esac 8820 8821# Global variables: 8822ofile=libtool 8823can_build_shared=yes 8824 8825# All known linkers require a `.a' archive for static linking (except MSVC, 8826# which needs '.lib'). 8827libext=a 8828 8829with_gnu_ld="$lt_cv_prog_gnu_ld" 8830 8831old_CC="$CC" 8832old_CFLAGS="$CFLAGS" 8833 8834# Set sane defaults for various variables 8835test -z "$CC" && CC=cc 8836test -z "$LTCC" && LTCC=$CC 8837test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8838test -z "$LD" && LD=ld 8839test -z "$ac_objext" && ac_objext=o 8840 8841for cc_temp in $compiler""; do 8842 case $cc_temp in 8843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8845 \-*) ;; 8846 *) break;; 8847 esac 8848done 8849cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8850 8851 8852# Only perform the check for file, if the check method requires it 8853test -z "$MAGIC_CMD" && MAGIC_CMD=file 8854case $deplibs_check_method in 8855file_magic*) 8856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8858$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8859if ${lt_cv_path_MAGIC_CMD+:} false; then : 8860 $as_echo_n "(cached) " >&6 8861else 8862 case $MAGIC_CMD in 8863[\\/*] | ?:[\\/]*) 8864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8865 ;; 8866*) 8867 lt_save_MAGIC_CMD="$MAGIC_CMD" 8868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8870 for ac_dir in $ac_dummy; do 8871 IFS="$lt_save_ifs" 8872 test -z "$ac_dir" && ac_dir=. 8873 if test -f $ac_dir/${ac_tool_prefix}file; then 8874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8875 if test -n "$file_magic_test_file"; then 8876 case $deplibs_check_method in 8877 "file_magic "*) 8878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8881 $EGREP "$file_magic_regex" > /dev/null; then 8882 : 8883 else 8884 cat <<_LT_EOF 1>&2 8885 8886*** Warning: the command libtool uses to detect shared libraries, 8887*** $file_magic_cmd, produces output that libtool cannot recognize. 8888*** The result is that libtool may fail to recognize shared libraries 8889*** as such. This will affect the creation of libtool libraries that 8890*** depend on shared libraries, but programs linked with such libtool 8891*** libraries will work regardless of this problem. Nevertheless, you 8892*** may want to report the problem to your system manager and/or to 8893*** bug-libtool@gnu.org 8894 8895_LT_EOF 8896 fi ;; 8897 esac 8898 fi 8899 break 8900 fi 8901 done 8902 IFS="$lt_save_ifs" 8903 MAGIC_CMD="$lt_save_MAGIC_CMD" 8904 ;; 8905esac 8906fi 8907 8908MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8909if test -n "$MAGIC_CMD"; then 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8911$as_echo "$MAGIC_CMD" >&6; } 8912else 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8914$as_echo "no" >&6; } 8915fi 8916 8917 8918 8919 8920 8921if test -z "$lt_cv_path_MAGIC_CMD"; then 8922 if test -n "$ac_tool_prefix"; then 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8924$as_echo_n "checking for file... " >&6; } 8925if ${lt_cv_path_MAGIC_CMD+:} false; then : 8926 $as_echo_n "(cached) " >&6 8927else 8928 case $MAGIC_CMD in 8929[\\/*] | ?:[\\/]*) 8930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8931 ;; 8932*) 8933 lt_save_MAGIC_CMD="$MAGIC_CMD" 8934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8935 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8936 for ac_dir in $ac_dummy; do 8937 IFS="$lt_save_ifs" 8938 test -z "$ac_dir" && ac_dir=. 8939 if test -f $ac_dir/file; then 8940 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8941 if test -n "$file_magic_test_file"; then 8942 case $deplibs_check_method in 8943 "file_magic "*) 8944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8947 $EGREP "$file_magic_regex" > /dev/null; then 8948 : 8949 else 8950 cat <<_LT_EOF 1>&2 8951 8952*** Warning: the command libtool uses to detect shared libraries, 8953*** $file_magic_cmd, produces output that libtool cannot recognize. 8954*** The result is that libtool may fail to recognize shared libraries 8955*** as such. This will affect the creation of libtool libraries that 8956*** depend on shared libraries, but programs linked with such libtool 8957*** libraries will work regardless of this problem. Nevertheless, you 8958*** may want to report the problem to your system manager and/or to 8959*** bug-libtool@gnu.org 8960 8961_LT_EOF 8962 fi ;; 8963 esac 8964 fi 8965 break 8966 fi 8967 done 8968 IFS="$lt_save_ifs" 8969 MAGIC_CMD="$lt_save_MAGIC_CMD" 8970 ;; 8971esac 8972fi 8973 8974MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8975if test -n "$MAGIC_CMD"; then 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8977$as_echo "$MAGIC_CMD" >&6; } 8978else 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980$as_echo "no" >&6; } 8981fi 8982 8983 8984 else 8985 MAGIC_CMD=: 8986 fi 8987fi 8988 8989 fi 8990 ;; 8991esac 8992 8993# Use C for the default configuration in the libtool script 8994 8995lt_save_CC="$CC" 8996ac_ext=c 8997ac_cpp='$CPP $CPPFLAGS' 8998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9000ac_compiler_gnu=$ac_cv_c_compiler_gnu 9001 9002 9003# Source file extension for C test sources. 9004ac_ext=c 9005 9006# Object file extension for compiled C test sources. 9007objext=o 9008objext=$objext 9009 9010# Code to be used in simple compile tests 9011lt_simple_compile_test_code="int some_variable = 0;" 9012 9013# Code to be used in simple link tests 9014lt_simple_link_test_code='int main(){return(0);}' 9015 9016 9017 9018 9019 9020 9021 9022# If no C compiler was specified, use CC. 9023LTCC=${LTCC-"$CC"} 9024 9025# If no C compiler flags were specified, use CFLAGS. 9026LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9027 9028# Allow CC to be a program name with arguments. 9029compiler=$CC 9030 9031# Save the default compiler, since it gets overwritten when the other 9032# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9033compiler_DEFAULT=$CC 9034 9035# save warnings/boilerplate of simple test code 9036ac_outfile=conftest.$ac_objext 9037echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9038eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9039_lt_compiler_boilerplate=`cat conftest.err` 9040$RM conftest* 9041 9042ac_outfile=conftest.$ac_objext 9043echo "$lt_simple_link_test_code" >conftest.$ac_ext 9044eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9045_lt_linker_boilerplate=`cat conftest.err` 9046$RM -r conftest* 9047 9048 9049## CAVEAT EMPTOR: 9050## There is no encapsulation within the following macros, do not change 9051## the running order or otherwise move them around unless you know exactly 9052## what you are doing... 9053if test -n "$compiler"; then 9054 9055lt_prog_compiler_no_builtin_flag= 9056 9057if test "$GCC" = yes; then 9058 case $cc_basename in 9059 nvcc*) 9060 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9061 *) 9062 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9063 esac 9064 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9066$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9067if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 lt_cv_prog_compiler_rtti_exceptions=no 9071 ac_outfile=conftest.$ac_objext 9072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9073 lt_compiler_flag="-fno-rtti -fno-exceptions" 9074 # Insert the option either (1) after the last *FLAGS variable, or 9075 # (2) before a word containing "conftest.", or (3) at the end. 9076 # Note that $ac_compile itself does not contain backslashes and begins 9077 # with a dollar sign (not a hyphen), so the echo should work correctly. 9078 # The option is referenced via a variable to avoid confusing sed. 9079 lt_compile=`echo "$ac_compile" | $SED \ 9080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9082 -e 's:$: $lt_compiler_flag:'` 9083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9084 (eval "$lt_compile" 2>conftest.err) 9085 ac_status=$? 9086 cat conftest.err >&5 9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9088 if (exit $ac_status) && test -s "$ac_outfile"; then 9089 # The compiler can only warn and ignore the option if not recognized 9090 # So say no if there are warnings other than the usual output. 9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9094 lt_cv_prog_compiler_rtti_exceptions=yes 9095 fi 9096 fi 9097 $RM conftest* 9098 9099fi 9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9101$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9102 9103if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9104 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9105else 9106 : 9107fi 9108 9109fi 9110 9111 9112 9113 9114 9115 9116 lt_prog_compiler_wl= 9117lt_prog_compiler_pic= 9118lt_prog_compiler_static= 9119 9120 9121 if test "$GCC" = yes; then 9122 lt_prog_compiler_wl='-Wl,' 9123 lt_prog_compiler_static='-static' 9124 9125 case $host_os in 9126 aix*) 9127 # All AIX code is PIC. 9128 if test "$host_cpu" = ia64; then 9129 # AIX 5 now supports IA64 processor 9130 lt_prog_compiler_static='-Bstatic' 9131 fi 9132 ;; 9133 9134 amigaos*) 9135 case $host_cpu in 9136 powerpc) 9137 # see comment about AmigaOS4 .so support 9138 lt_prog_compiler_pic='-fPIC' 9139 ;; 9140 m68k) 9141 # FIXME: we need at least 68020 code to build shared libraries, but 9142 # adding the `-m68020' flag to GCC prevents building anything better, 9143 # like `-m68040'. 9144 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9145 ;; 9146 esac 9147 ;; 9148 9149 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9150 # PIC is the default for these OSes. 9151 ;; 9152 9153 mingw* | cygwin* | pw32* | os2* | cegcc*) 9154 # This hack is so that the source file can tell whether it is being 9155 # built for inclusion in a dll (and should export symbols for example). 9156 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9157 # (--disable-auto-import) libraries 9158 lt_prog_compiler_pic='-DDLL_EXPORT' 9159 ;; 9160 9161 darwin* | rhapsody*) 9162 # PIC is the default on this platform 9163 # Common symbols not allowed in MH_DYLIB files 9164 lt_prog_compiler_pic='-fno-common' 9165 ;; 9166 9167 haiku*) 9168 # PIC is the default for Haiku. 9169 # The "-static" flag exists, but is broken. 9170 lt_prog_compiler_static= 9171 ;; 9172 9173 hpux*) 9174 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9175 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9176 # sets the default TLS model and affects inlining. 9177 case $host_cpu in 9178 hppa*64*) 9179 # +Z the default 9180 ;; 9181 *) 9182 lt_prog_compiler_pic='-fPIC' 9183 ;; 9184 esac 9185 ;; 9186 9187 interix[3-9]*) 9188 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9189 # Instead, we relocate shared libraries at runtime. 9190 ;; 9191 9192 msdosdjgpp*) 9193 # Just because we use GCC doesn't mean we suddenly get shared libraries 9194 # on systems that don't support them. 9195 lt_prog_compiler_can_build_shared=no 9196 enable_shared=no 9197 ;; 9198 9199 *nto* | *qnx*) 9200 # QNX uses GNU C++, but need to define -shared option too, otherwise 9201 # it will coredump. 9202 lt_prog_compiler_pic='-fPIC -shared' 9203 ;; 9204 9205 sysv4*MP*) 9206 if test -d /usr/nec; then 9207 lt_prog_compiler_pic=-Kconform_pic 9208 fi 9209 ;; 9210 9211 *) 9212 lt_prog_compiler_pic='-fPIC' 9213 ;; 9214 esac 9215 9216 case $cc_basename in 9217 nvcc*) # Cuda Compiler Driver 2.2 9218 lt_prog_compiler_wl='-Xlinker ' 9219 if test -n "$lt_prog_compiler_pic"; then 9220 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9221 fi 9222 ;; 9223 esac 9224 else 9225 # PORTME Check for flag to pass linker flags through the system compiler. 9226 case $host_os in 9227 aix*) 9228 lt_prog_compiler_wl='-Wl,' 9229 if test "$host_cpu" = ia64; then 9230 # AIX 5 now supports IA64 processor 9231 lt_prog_compiler_static='-Bstatic' 9232 else 9233 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9234 fi 9235 ;; 9236 9237 mingw* | cygwin* | pw32* | os2* | cegcc*) 9238 # This hack is so that the source file can tell whether it is being 9239 # built for inclusion in a dll (and should export symbols for example). 9240 lt_prog_compiler_pic='-DDLL_EXPORT' 9241 ;; 9242 9243 hpux9* | hpux10* | hpux11*) 9244 lt_prog_compiler_wl='-Wl,' 9245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9246 # not for PA HP-UX. 9247 case $host_cpu in 9248 hppa*64*|ia64*) 9249 # +Z the default 9250 ;; 9251 *) 9252 lt_prog_compiler_pic='+Z' 9253 ;; 9254 esac 9255 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9256 lt_prog_compiler_static='${wl}-a ${wl}archive' 9257 ;; 9258 9259 irix5* | irix6* | nonstopux*) 9260 lt_prog_compiler_wl='-Wl,' 9261 # PIC (with -KPIC) is the default. 9262 lt_prog_compiler_static='-non_shared' 9263 ;; 9264 9265 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9266 case $cc_basename in 9267 # old Intel for x86_64 which still supported -KPIC. 9268 ecc*) 9269 lt_prog_compiler_wl='-Wl,' 9270 lt_prog_compiler_pic='-KPIC' 9271 lt_prog_compiler_static='-static' 9272 ;; 9273 # icc used to be incompatible with GCC. 9274 # ICC 10 doesn't accept -KPIC any more. 9275 icc* | ifort*) 9276 lt_prog_compiler_wl='-Wl,' 9277 lt_prog_compiler_pic='-fPIC' 9278 lt_prog_compiler_static='-static' 9279 ;; 9280 # Lahey Fortran 8.1. 9281 lf95*) 9282 lt_prog_compiler_wl='-Wl,' 9283 lt_prog_compiler_pic='--shared' 9284 lt_prog_compiler_static='--static' 9285 ;; 9286 nagfor*) 9287 # NAG Fortran compiler 9288 lt_prog_compiler_wl='-Wl,-Wl,,' 9289 lt_prog_compiler_pic='-PIC' 9290 lt_prog_compiler_static='-Bstatic' 9291 ;; 9292 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9293 # Portland Group compilers (*not* the Pentium gcc compiler, 9294 # which looks to be a dead project) 9295 lt_prog_compiler_wl='-Wl,' 9296 lt_prog_compiler_pic='-fpic' 9297 lt_prog_compiler_static='-Bstatic' 9298 ;; 9299 ccc*) 9300 lt_prog_compiler_wl='-Wl,' 9301 # All Alpha code is PIC. 9302 lt_prog_compiler_static='-non_shared' 9303 ;; 9304 xl* | bgxl* | bgf* | mpixl*) 9305 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9306 lt_prog_compiler_wl='-Wl,' 9307 lt_prog_compiler_pic='-qpic' 9308 lt_prog_compiler_static='-qstaticlink' 9309 ;; 9310 *) 9311 case `$CC -V 2>&1 | sed 5q` in 9312 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9313 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9314 lt_prog_compiler_pic='-KPIC' 9315 lt_prog_compiler_static='-Bstatic' 9316 lt_prog_compiler_wl='' 9317 ;; 9318 *Sun\ F* | *Sun*Fortran*) 9319 lt_prog_compiler_pic='-KPIC' 9320 lt_prog_compiler_static='-Bstatic' 9321 lt_prog_compiler_wl='-Qoption ld ' 9322 ;; 9323 *Sun\ C*) 9324 # Sun C 5.9 9325 lt_prog_compiler_pic='-KPIC' 9326 lt_prog_compiler_static='-Bstatic' 9327 lt_prog_compiler_wl='-Wl,' 9328 ;; 9329 *Intel*\ [CF]*Compiler*) 9330 lt_prog_compiler_wl='-Wl,' 9331 lt_prog_compiler_pic='-fPIC' 9332 lt_prog_compiler_static='-static' 9333 ;; 9334 *Portland\ Group*) 9335 lt_prog_compiler_wl='-Wl,' 9336 lt_prog_compiler_pic='-fpic' 9337 lt_prog_compiler_static='-Bstatic' 9338 ;; 9339 esac 9340 ;; 9341 esac 9342 ;; 9343 9344 newsos6) 9345 lt_prog_compiler_pic='-KPIC' 9346 lt_prog_compiler_static='-Bstatic' 9347 ;; 9348 9349 *nto* | *qnx*) 9350 # QNX uses GNU C++, but need to define -shared option too, otherwise 9351 # it will coredump. 9352 lt_prog_compiler_pic='-fPIC -shared' 9353 ;; 9354 9355 osf3* | osf4* | osf5*) 9356 lt_prog_compiler_wl='-Wl,' 9357 # All OSF/1 code is PIC. 9358 lt_prog_compiler_static='-non_shared' 9359 ;; 9360 9361 rdos*) 9362 lt_prog_compiler_static='-non_shared' 9363 ;; 9364 9365 solaris*) 9366 lt_prog_compiler_pic='-KPIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 case $cc_basename in 9369 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9370 lt_prog_compiler_wl='-Qoption ld ';; 9371 *) 9372 lt_prog_compiler_wl='-Wl,';; 9373 esac 9374 ;; 9375 9376 sunos4*) 9377 lt_prog_compiler_wl='-Qoption ld ' 9378 lt_prog_compiler_pic='-PIC' 9379 lt_prog_compiler_static='-Bstatic' 9380 ;; 9381 9382 sysv4 | sysv4.2uw2* | sysv4.3*) 9383 lt_prog_compiler_wl='-Wl,' 9384 lt_prog_compiler_pic='-KPIC' 9385 lt_prog_compiler_static='-Bstatic' 9386 ;; 9387 9388 sysv4*MP*) 9389 if test -d /usr/nec ;then 9390 lt_prog_compiler_pic='-Kconform_pic' 9391 lt_prog_compiler_static='-Bstatic' 9392 fi 9393 ;; 9394 9395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9396 lt_prog_compiler_wl='-Wl,' 9397 lt_prog_compiler_pic='-KPIC' 9398 lt_prog_compiler_static='-Bstatic' 9399 ;; 9400 9401 unicos*) 9402 lt_prog_compiler_wl='-Wl,' 9403 lt_prog_compiler_can_build_shared=no 9404 ;; 9405 9406 uts4*) 9407 lt_prog_compiler_pic='-pic' 9408 lt_prog_compiler_static='-Bstatic' 9409 ;; 9410 9411 *) 9412 lt_prog_compiler_can_build_shared=no 9413 ;; 9414 esac 9415 fi 9416 9417case $host_os in 9418 # For platforms which do not support PIC, -DPIC is meaningless: 9419 *djgpp*) 9420 lt_prog_compiler_pic= 9421 ;; 9422 *) 9423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9424 ;; 9425esac 9426 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9428$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9429if ${lt_cv_prog_compiler_pic+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9433fi 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9435$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9436lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9437 9438# 9439# Check to make sure the PIC flag actually works. 9440# 9441if test -n "$lt_prog_compiler_pic"; then 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9443$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9444if ${lt_cv_prog_compiler_pic_works+:} false; then : 9445 $as_echo_n "(cached) " >&6 9446else 9447 lt_cv_prog_compiler_pic_works=no 9448 ac_outfile=conftest.$ac_objext 9449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9450 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9451 # Insert the option either (1) after the last *FLAGS variable, or 9452 # (2) before a word containing "conftest.", or (3) at the end. 9453 # Note that $ac_compile itself does not contain backslashes and begins 9454 # with a dollar sign (not a hyphen), so the echo should work correctly. 9455 # The option is referenced via a variable to avoid confusing sed. 9456 lt_compile=`echo "$ac_compile" | $SED \ 9457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9459 -e 's:$: $lt_compiler_flag:'` 9460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9461 (eval "$lt_compile" 2>conftest.err) 9462 ac_status=$? 9463 cat conftest.err >&5 9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9465 if (exit $ac_status) && test -s "$ac_outfile"; then 9466 # The compiler can only warn and ignore the option if not recognized 9467 # So say no if there are warnings other than the usual output. 9468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9471 lt_cv_prog_compiler_pic_works=yes 9472 fi 9473 fi 9474 $RM conftest* 9475 9476fi 9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9478$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9479 9480if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9481 case $lt_prog_compiler_pic in 9482 "" | " "*) ;; 9483 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9484 esac 9485else 9486 lt_prog_compiler_pic= 9487 lt_prog_compiler_can_build_shared=no 9488fi 9489 9490fi 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502# 9503# Check to make sure the static flag actually works. 9504# 9505wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9507$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9508if ${lt_cv_prog_compiler_static_works+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 lt_cv_prog_compiler_static_works=no 9512 save_LDFLAGS="$LDFLAGS" 9513 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9514 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9516 # The linker can only warn and ignore the option if not recognized 9517 # So say no if there are warnings 9518 if test -s conftest.err; then 9519 # Append any errors to the config.log. 9520 cat conftest.err 1>&5 9521 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9523 if diff conftest.exp conftest.er2 >/dev/null; then 9524 lt_cv_prog_compiler_static_works=yes 9525 fi 9526 else 9527 lt_cv_prog_compiler_static_works=yes 9528 fi 9529 fi 9530 $RM -r conftest* 9531 LDFLAGS="$save_LDFLAGS" 9532 9533fi 9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9535$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9536 9537if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9538 : 9539else 9540 lt_prog_compiler_static= 9541fi 9542 9543 9544 9545 9546 9547 9548 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9550$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9551if ${lt_cv_prog_compiler_c_o+:} false; then : 9552 $as_echo_n "(cached) " >&6 9553else 9554 lt_cv_prog_compiler_c_o=no 9555 $RM -r conftest 2>/dev/null 9556 mkdir conftest 9557 cd conftest 9558 mkdir out 9559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9560 9561 lt_compiler_flag="-o out/conftest2.$ac_objext" 9562 # Insert the option either (1) after the last *FLAGS variable, or 9563 # (2) before a word containing "conftest.", or (3) at the end. 9564 # Note that $ac_compile itself does not contain backslashes and begins 9565 # with a dollar sign (not a hyphen), so the echo should work correctly. 9566 lt_compile=`echo "$ac_compile" | $SED \ 9567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9569 -e 's:$: $lt_compiler_flag:'` 9570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9571 (eval "$lt_compile" 2>out/conftest.err) 9572 ac_status=$? 9573 cat out/conftest.err >&5 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9576 then 9577 # The compiler can only warn and ignore the option if not recognized 9578 # So say no if there are warnings 9579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9582 lt_cv_prog_compiler_c_o=yes 9583 fi 9584 fi 9585 chmod u+w . 2>&5 9586 $RM conftest* 9587 # SGI C++ compiler will create directory out/ii_files/ for 9588 # template instantiation 9589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9590 $RM out/* && rmdir out 9591 cd .. 9592 $RM -r conftest 9593 $RM conftest* 9594 9595fi 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9597$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9598 9599 9600 9601 9602 9603 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9605$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9606if ${lt_cv_prog_compiler_c_o+:} false; then : 9607 $as_echo_n "(cached) " >&6 9608else 9609 lt_cv_prog_compiler_c_o=no 9610 $RM -r conftest 2>/dev/null 9611 mkdir conftest 9612 cd conftest 9613 mkdir out 9614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9615 9616 lt_compiler_flag="-o out/conftest2.$ac_objext" 9617 # Insert the option either (1) after the last *FLAGS variable, or 9618 # (2) before a word containing "conftest.", or (3) at the end. 9619 # Note that $ac_compile itself does not contain backslashes and begins 9620 # with a dollar sign (not a hyphen), so the echo should work correctly. 9621 lt_compile=`echo "$ac_compile" | $SED \ 9622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9624 -e 's:$: $lt_compiler_flag:'` 9625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9626 (eval "$lt_compile" 2>out/conftest.err) 9627 ac_status=$? 9628 cat out/conftest.err >&5 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9631 then 9632 # The compiler can only warn and ignore the option if not recognized 9633 # So say no if there are warnings 9634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9637 lt_cv_prog_compiler_c_o=yes 9638 fi 9639 fi 9640 chmod u+w . 2>&5 9641 $RM conftest* 9642 # SGI C++ compiler will create directory out/ii_files/ for 9643 # template instantiation 9644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9645 $RM out/* && rmdir out 9646 cd .. 9647 $RM -r conftest 9648 $RM conftest* 9649 9650fi 9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9652$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9653 9654 9655 9656 9657hard_links="nottested" 9658if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9659 # do not overwrite the value of need_locks provided by the user 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9661$as_echo_n "checking if we can lock with hard links... " >&6; } 9662 hard_links=yes 9663 $RM conftest* 9664 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9665 touch conftest.a 9666 ln conftest.a conftest.b 2>&5 || hard_links=no 9667 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9669$as_echo "$hard_links" >&6; } 9670 if test "$hard_links" = no; then 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9672$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9673 need_locks=warn 9674 fi 9675else 9676 need_locks=no 9677fi 9678 9679 9680 9681 9682 9683 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9685$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9686 9687 runpath_var= 9688 allow_undefined_flag= 9689 always_export_symbols=no 9690 archive_cmds= 9691 archive_expsym_cmds= 9692 compiler_needs_object=no 9693 enable_shared_with_static_runtimes=no 9694 export_dynamic_flag_spec= 9695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9696 hardcode_automatic=no 9697 hardcode_direct=no 9698 hardcode_direct_absolute=no 9699 hardcode_libdir_flag_spec= 9700 hardcode_libdir_separator= 9701 hardcode_minus_L=no 9702 hardcode_shlibpath_var=unsupported 9703 inherit_rpath=no 9704 link_all_deplibs=unknown 9705 module_cmds= 9706 module_expsym_cmds= 9707 old_archive_from_new_cmds= 9708 old_archive_from_expsyms_cmds= 9709 thread_safe_flag_spec= 9710 whole_archive_flag_spec= 9711 # include_expsyms should be a list of space-separated symbols to be *always* 9712 # included in the symbol list 9713 include_expsyms= 9714 # exclude_expsyms can be an extended regexp of symbols to exclude 9715 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9717 # as well as any symbol that contains `d'. 9718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9720 # platforms (ab)use it in PIC code, but their linkers get confused if 9721 # the symbol is explicitly referenced. Since portable code cannot 9722 # rely on this symbol name, it's probably fine to never include it in 9723 # preloaded symbol tables. 9724 # Exclude shared library initialization/finalization symbols. 9725 extract_expsyms_cmds= 9726 9727 case $host_os in 9728 cygwin* | mingw* | pw32* | cegcc*) 9729 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9730 # When not using gcc, we currently assume that we are using 9731 # Microsoft Visual C++. 9732 if test "$GCC" != yes; then 9733 with_gnu_ld=no 9734 fi 9735 ;; 9736 interix*) 9737 # we just hope/assume this is gcc and not c89 (= MSVC++) 9738 with_gnu_ld=yes 9739 ;; 9740 openbsd*) 9741 with_gnu_ld=no 9742 ;; 9743 esac 9744 9745 ld_shlibs=yes 9746 9747 # On some targets, GNU ld is compatible enough with the native linker 9748 # that we're better off using the native interface for both. 9749 lt_use_gnu_ld_interface=no 9750 if test "$with_gnu_ld" = yes; then 9751 case $host_os in 9752 aix*) 9753 # The AIX port of GNU ld has always aspired to compatibility 9754 # with the native linker. However, as the warning in the GNU ld 9755 # block says, versions before 2.19.5* couldn't really create working 9756 # shared libraries, regardless of the interface used. 9757 case `$LD -v 2>&1` in 9758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9760 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9761 *) 9762 lt_use_gnu_ld_interface=yes 9763 ;; 9764 esac 9765 ;; 9766 *) 9767 lt_use_gnu_ld_interface=yes 9768 ;; 9769 esac 9770 fi 9771 9772 if test "$lt_use_gnu_ld_interface" = yes; then 9773 # If archive_cmds runs LD, not CC, wlarc should be empty 9774 wlarc='${wl}' 9775 9776 # Set some defaults for GNU ld with shared library support. These 9777 # are reset later if shared libraries are not supported. Putting them 9778 # here allows them to be overridden if necessary. 9779 runpath_var=LD_RUN_PATH 9780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9781 export_dynamic_flag_spec='${wl}--export-dynamic' 9782 # ancient GNU ld didn't support --whole-archive et. al. 9783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9785 else 9786 whole_archive_flag_spec= 9787 fi 9788 supports_anon_versioning=no 9789 case `$LD -v 2>&1` in 9790 *GNU\ gold*) supports_anon_versioning=yes ;; 9791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9794 *\ 2.11.*) ;; # other 2.11 versions 9795 *) supports_anon_versioning=yes ;; 9796 esac 9797 9798 # See if GNU ld supports shared libraries. 9799 case $host_os in 9800 aix[3-9]*) 9801 # On AIX/PPC, the GNU linker is very broken 9802 if test "$host_cpu" != ia64; then 9803 ld_shlibs=no 9804 cat <<_LT_EOF 1>&2 9805 9806*** Warning: the GNU linker, at least up to release 2.19, is reported 9807*** to be unable to reliably create shared libraries on AIX. 9808*** Therefore, libtool is disabling shared libraries support. If you 9809*** really care for shared libraries, you may want to install binutils 9810*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9811*** You will then need to restart the configuration process. 9812 9813_LT_EOF 9814 fi 9815 ;; 9816 9817 amigaos*) 9818 case $host_cpu in 9819 powerpc) 9820 # see comment about AmigaOS4 .so support 9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9822 archive_expsym_cmds='' 9823 ;; 9824 m68k) 9825 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)' 9826 hardcode_libdir_flag_spec='-L$libdir' 9827 hardcode_minus_L=yes 9828 ;; 9829 esac 9830 ;; 9831 9832 beos*) 9833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9834 allow_undefined_flag=unsupported 9835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9836 # support --undefined. This deserves some investigation. FIXME 9837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9838 else 9839 ld_shlibs=no 9840 fi 9841 ;; 9842 9843 cygwin* | mingw* | pw32* | cegcc*) 9844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9845 # as there is no search path for DLLs. 9846 hardcode_libdir_flag_spec='-L$libdir' 9847 export_dynamic_flag_spec='${wl}--export-all-symbols' 9848 allow_undefined_flag=unsupported 9849 always_export_symbols=no 9850 enable_shared_with_static_runtimes=yes 9851 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' 9852 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9853 9854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9856 # If the export-symbols file already is a .def file (1st line 9857 # is EXPORTS), use it as is; otherwise, prepend... 9858 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9859 cp $export_symbols $output_objdir/$soname.def; 9860 else 9861 echo EXPORTS > $output_objdir/$soname.def; 9862 cat $export_symbols >> $output_objdir/$soname.def; 9863 fi~ 9864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9865 else 9866 ld_shlibs=no 9867 fi 9868 ;; 9869 9870 haiku*) 9871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9872 link_all_deplibs=yes 9873 ;; 9874 9875 interix[3-9]*) 9876 hardcode_direct=no 9877 hardcode_shlibpath_var=no 9878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9879 export_dynamic_flag_spec='${wl}-E' 9880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9881 # Instead, shared libraries are loaded at an image base (0x10000000 by 9882 # default) and relocated if they conflict, which is a slow very memory 9883 # consuming and fragmenting process. To avoid this, we pick a random, 9884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9885 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9887 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' 9888 ;; 9889 9890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9891 tmp_diet=no 9892 if test "$host_os" = linux-dietlibc; then 9893 case $cc_basename in 9894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9895 esac 9896 fi 9897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9898 && test "$tmp_diet" = no 9899 then 9900 tmp_addflag=' $pic_flag' 9901 tmp_sharedflag='-shared' 9902 case $cc_basename,$host_cpu in 9903 pgcc*) # Portland Group C compiler 9904 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' 9905 tmp_addflag=' $pic_flag' 9906 ;; 9907 pgf77* | pgf90* | pgf95* | pgfortran*) 9908 # Portland Group f77 and f90 compilers 9909 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' 9910 tmp_addflag=' $pic_flag -Mnomain' ;; 9911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9912 tmp_addflag=' -i_dynamic' ;; 9913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9914 tmp_addflag=' -i_dynamic -nofor_main' ;; 9915 ifc* | ifort*) # Intel Fortran compiler 9916 tmp_addflag=' -nofor_main' ;; 9917 lf95*) # Lahey Fortran 8.1 9918 whole_archive_flag_spec= 9919 tmp_sharedflag='--shared' ;; 9920 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9921 tmp_sharedflag='-qmkshrobj' 9922 tmp_addflag= ;; 9923 nvcc*) # Cuda Compiler Driver 2.2 9924 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' 9925 compiler_needs_object=yes 9926 ;; 9927 esac 9928 case `$CC -V 2>&1 | sed 5q` in 9929 *Sun\ C*) # Sun C 5.9 9930 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' 9931 compiler_needs_object=yes 9932 tmp_sharedflag='-G' ;; 9933 *Sun\ F*) # Sun Fortran 8.3 9934 tmp_sharedflag='-G' ;; 9935 esac 9936 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9937 9938 if test "x$supports_anon_versioning" = xyes; then 9939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9941 echo "local: *; };" >> $output_objdir/$libname.ver~ 9942 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9943 fi 9944 9945 case $cc_basename in 9946 xlf* | bgf* | bgxlf* | mpixlf*) 9947 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9948 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9950 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9951 if test "x$supports_anon_versioning" = xyes; then 9952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9954 echo "local: *; };" >> $output_objdir/$libname.ver~ 9955 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9956 fi 9957 ;; 9958 esac 9959 else 9960 ld_shlibs=no 9961 fi 9962 ;; 9963 9964 netbsd*) 9965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9967 wlarc= 9968 else 9969 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9970 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9971 fi 9972 ;; 9973 9974 solaris*) 9975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9976 ld_shlibs=no 9977 cat <<_LT_EOF 1>&2 9978 9979*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9980*** create shared libraries on Solaris systems. Therefore, libtool 9981*** is disabling shared libraries support. We urge you to upgrade GNU 9982*** binutils to release 2.9.1 or newer. Another option is to modify 9983*** your PATH or compiler configuration so that the native linker is 9984*** used, and then restart. 9985 9986_LT_EOF 9987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9989 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9990 else 9991 ld_shlibs=no 9992 fi 9993 ;; 9994 9995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9996 case `$LD -v 2>&1` in 9997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9998 ld_shlibs=no 9999 cat <<_LT_EOF 1>&2 10000 10001*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10002*** reliably create shared libraries on SCO systems. Therefore, libtool 10003*** is disabling shared libraries support. We urge you to upgrade GNU 10004*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10005*** your PATH or compiler configuration so that the native linker is 10006*** used, and then restart. 10007 10008_LT_EOF 10009 ;; 10010 *) 10011 # For security reasons, it is highly recommended that you always 10012 # use absolute paths for naming shared libraries, and exclude the 10013 # DT_RUNPATH tag from executables and libraries. But doing so 10014 # requires that you compile everything twice, which is a pain. 10015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10019 else 10020 ld_shlibs=no 10021 fi 10022 ;; 10023 esac 10024 ;; 10025 10026 sunos4*) 10027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10028 wlarc= 10029 hardcode_direct=yes 10030 hardcode_shlibpath_var=no 10031 ;; 10032 10033 *) 10034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10037 else 10038 ld_shlibs=no 10039 fi 10040 ;; 10041 esac 10042 10043 if test "$ld_shlibs" = no; then 10044 runpath_var= 10045 hardcode_libdir_flag_spec= 10046 export_dynamic_flag_spec= 10047 whole_archive_flag_spec= 10048 fi 10049 else 10050 # PORTME fill in a description of your system's linker (not GNU ld) 10051 case $host_os in 10052 aix3*) 10053 allow_undefined_flag=unsupported 10054 always_export_symbols=yes 10055 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' 10056 # Note: this linker hardcodes the directories in LIBPATH if there 10057 # are no directories specified by -L. 10058 hardcode_minus_L=yes 10059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10060 # Neither direct hardcoding nor static linking is supported with a 10061 # broken collect2. 10062 hardcode_direct=unsupported 10063 fi 10064 ;; 10065 10066 aix[4-9]*) 10067 if test "$host_cpu" = ia64; then 10068 # On IA64, the linker does run time linking by default, so we don't 10069 # have to do anything special. 10070 aix_use_runtimelinking=no 10071 exp_sym_flag='-Bexport' 10072 no_entry_flag="" 10073 else 10074 # If we're using GNU nm, then we don't want the "-C" option. 10075 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10076 # Also, AIX nm treats weak defined symbols like other global 10077 # defined symbols, whereas GNU nm marks them as "W". 10078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10079 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10080 else 10081 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10082 fi 10083 aix_use_runtimelinking=no 10084 10085 # Test if we are trying to use run time linking or normal 10086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10087 # need to do runtime linking. 10088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10089 for ld_flag in $LDFLAGS; do 10090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10091 aix_use_runtimelinking=yes 10092 break 10093 fi 10094 done 10095 ;; 10096 esac 10097 10098 exp_sym_flag='-bexport' 10099 no_entry_flag='-bnoentry' 10100 fi 10101 10102 # When large executables or shared objects are built, AIX ld can 10103 # have problems creating the table of contents. If linking a library 10104 # or program results in "error TOC overflow" add -mminimal-toc to 10105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10107 10108 archive_cmds='' 10109 hardcode_direct=yes 10110 hardcode_direct_absolute=yes 10111 hardcode_libdir_separator=':' 10112 link_all_deplibs=yes 10113 file_list_spec='${wl}-f,' 10114 10115 if test "$GCC" = yes; then 10116 case $host_os in aix4.[012]|aix4.[012].*) 10117 # We only want to do this on AIX 4.2 and lower, the check 10118 # below for broken collect2 doesn't work under 4.3+ 10119 collect2name=`${CC} -print-prog-name=collect2` 10120 if test -f "$collect2name" && 10121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10122 then 10123 # We have reworked collect2 10124 : 10125 else 10126 # We have old collect2 10127 hardcode_direct=unsupported 10128 # It fails to find uninstalled libraries when the uninstalled 10129 # path is not listed in the libpath. Setting hardcode_minus_L 10130 # to unsupported forces relinking 10131 hardcode_minus_L=yes 10132 hardcode_libdir_flag_spec='-L$libdir' 10133 hardcode_libdir_separator= 10134 fi 10135 ;; 10136 esac 10137 shared_flag='-shared' 10138 if test "$aix_use_runtimelinking" = yes; then 10139 shared_flag="$shared_flag "'${wl}-G' 10140 fi 10141 else 10142 # not using gcc 10143 if test "$host_cpu" = ia64; then 10144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10145 # chokes on -Wl,-G. The following line is correct: 10146 shared_flag='-G' 10147 else 10148 if test "$aix_use_runtimelinking" = yes; then 10149 shared_flag='${wl}-G' 10150 else 10151 shared_flag='${wl}-bM:SRE' 10152 fi 10153 fi 10154 fi 10155 10156 export_dynamic_flag_spec='${wl}-bexpall' 10157 # It seems that -bexpall does not export symbols beginning with 10158 # underscore (_), so it is better to generate a list of symbols to export. 10159 always_export_symbols=yes 10160 if test "$aix_use_runtimelinking" = yes; then 10161 # Warning - without using the other runtime loading flags (-brtl), 10162 # -berok will link without error, but may produce a broken library. 10163 allow_undefined_flag='-berok' 10164 # Determine the default libpath from the value encoded in an 10165 # empty executable. 10166 if test "${lt_cv_aix_libpath+set}" = set; then 10167 aix_libpath=$lt_cv_aix_libpath 10168else 10169 if ${lt_cv_aix_libpath_+:} false; then : 10170 $as_echo_n "(cached) " >&6 10171else 10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10173/* end confdefs.h. */ 10174 10175int 10176main () 10177{ 10178 10179 ; 10180 return 0; 10181} 10182_ACEOF 10183if ac_fn_c_try_link "$LINENO"; then : 10184 10185 lt_aix_libpath_sed=' 10186 /Import File Strings/,/^$/ { 10187 /^0/ { 10188 s/^0 *\([^ ]*\) *$/\1/ 10189 p 10190 } 10191 }' 10192 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10193 # Check for a 64-bit object if we didn't find anything. 10194 if test -z "$lt_cv_aix_libpath_"; then 10195 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10196 fi 10197fi 10198rm -f core conftest.err conftest.$ac_objext \ 10199 conftest$ac_exeext conftest.$ac_ext 10200 if test -z "$lt_cv_aix_libpath_"; then 10201 lt_cv_aix_libpath_="/usr/lib:/lib" 10202 fi 10203 10204fi 10205 10206 aix_libpath=$lt_cv_aix_libpath_ 10207fi 10208 10209 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10210 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10211 else 10212 if test "$host_cpu" = ia64; then 10213 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10214 allow_undefined_flag="-z nodefs" 10215 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" 10216 else 10217 # Determine the default libpath from the value encoded in an 10218 # empty executable. 10219 if test "${lt_cv_aix_libpath+set}" = set; then 10220 aix_libpath=$lt_cv_aix_libpath 10221else 10222 if ${lt_cv_aix_libpath_+:} false; then : 10223 $as_echo_n "(cached) " >&6 10224else 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227 10228int 10229main () 10230{ 10231 10232 ; 10233 return 0; 10234} 10235_ACEOF 10236if ac_fn_c_try_link "$LINENO"; then : 10237 10238 lt_aix_libpath_sed=' 10239 /Import File Strings/,/^$/ { 10240 /^0/ { 10241 s/^0 *\([^ ]*\) *$/\1/ 10242 p 10243 } 10244 }' 10245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10246 # Check for a 64-bit object if we didn't find anything. 10247 if test -z "$lt_cv_aix_libpath_"; then 10248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10249 fi 10250fi 10251rm -f core conftest.err conftest.$ac_objext \ 10252 conftest$ac_exeext conftest.$ac_ext 10253 if test -z "$lt_cv_aix_libpath_"; then 10254 lt_cv_aix_libpath_="/usr/lib:/lib" 10255 fi 10256 10257fi 10258 10259 aix_libpath=$lt_cv_aix_libpath_ 10260fi 10261 10262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10263 # Warning - without using the other run time loading flags, 10264 # -berok will link without error, but may produce a broken library. 10265 no_undefined_flag=' ${wl}-bernotok' 10266 allow_undefined_flag=' ${wl}-berok' 10267 if test "$with_gnu_ld" = yes; then 10268 # We only use this code for GNU lds that support --whole-archive. 10269 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10270 else 10271 # Exported symbols can be pulled into shared objects from archives 10272 whole_archive_flag_spec='$convenience' 10273 fi 10274 archive_cmds_need_lc=yes 10275 # This is similar to how AIX traditionally builds its shared libraries. 10276 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10277 fi 10278 fi 10279 ;; 10280 10281 amigaos*) 10282 case $host_cpu in 10283 powerpc) 10284 # see comment about AmigaOS4 .so support 10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10286 archive_expsym_cmds='' 10287 ;; 10288 m68k) 10289 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)' 10290 hardcode_libdir_flag_spec='-L$libdir' 10291 hardcode_minus_L=yes 10292 ;; 10293 esac 10294 ;; 10295 10296 bsdi[45]*) 10297 export_dynamic_flag_spec=-rdynamic 10298 ;; 10299 10300 cygwin* | mingw* | pw32* | cegcc*) 10301 # When not using gcc, we currently assume that we are using 10302 # Microsoft Visual C++. 10303 # hardcode_libdir_flag_spec is actually meaningless, as there is 10304 # no search path for DLLs. 10305 case $cc_basename in 10306 cl*) 10307 # Native MSVC 10308 hardcode_libdir_flag_spec=' ' 10309 allow_undefined_flag=unsupported 10310 always_export_symbols=yes 10311 file_list_spec='@' 10312 # Tell ltmain to make .lib files, not .a files. 10313 libext=lib 10314 # Tell ltmain to make .dll files, not .so files. 10315 shrext_cmds=".dll" 10316 # FIXME: Setting linknames here is a bad hack. 10317 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10319 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10320 else 10321 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10322 fi~ 10323 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10324 linknames=' 10325 # The linker will not automatically build a static lib if we build a DLL. 10326 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10327 enable_shared_with_static_runtimes=yes 10328 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10330 # Don't use ranlib 10331 old_postinstall_cmds='chmod 644 $oldlib' 10332 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10333 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10334 case $lt_outputfile in 10335 *.exe|*.EXE) ;; 10336 *) 10337 lt_outputfile="$lt_outputfile.exe" 10338 lt_tool_outputfile="$lt_tool_outputfile.exe" 10339 ;; 10340 esac~ 10341 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10343 $RM "$lt_outputfile.manifest"; 10344 fi' 10345 ;; 10346 *) 10347 # Assume MSVC wrapper 10348 hardcode_libdir_flag_spec=' ' 10349 allow_undefined_flag=unsupported 10350 # Tell ltmain to make .lib files, not .a files. 10351 libext=lib 10352 # Tell ltmain to make .dll files, not .so files. 10353 shrext_cmds=".dll" 10354 # FIXME: Setting linknames here is a bad hack. 10355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10356 # The linker will automatically build a .lib file if we build a DLL. 10357 old_archive_from_new_cmds='true' 10358 # FIXME: Should let the user specify the lib program. 10359 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10360 enable_shared_with_static_runtimes=yes 10361 ;; 10362 esac 10363 ;; 10364 10365 darwin* | rhapsody*) 10366 10367 10368 archive_cmds_need_lc=no 10369 hardcode_direct=no 10370 hardcode_automatic=yes 10371 hardcode_shlibpath_var=unsupported 10372 if test "$lt_cv_ld_force_load" = "yes"; then 10373 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\"`' 10374 10375 else 10376 whole_archive_flag_spec='' 10377 fi 10378 link_all_deplibs=yes 10379 allow_undefined_flag="$_lt_dar_allow_undefined" 10380 case $cc_basename in 10381 ifort*) _lt_dar_can_shared=yes ;; 10382 *) _lt_dar_can_shared=$GCC ;; 10383 esac 10384 if test "$_lt_dar_can_shared" = "yes"; then 10385 output_verbose_link_cmd=func_echo_all 10386 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10387 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10388 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}" 10389 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}" 10390 10391 else 10392 ld_shlibs=no 10393 fi 10394 10395 ;; 10396 10397 dgux*) 10398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10399 hardcode_libdir_flag_spec='-L$libdir' 10400 hardcode_shlibpath_var=no 10401 ;; 10402 10403 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10404 # support. Future versions do this automatically, but an explicit c++rt0.o 10405 # does not break anything, and helps significantly (at the cost of a little 10406 # extra space). 10407 freebsd2.2*) 10408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10409 hardcode_libdir_flag_spec='-R$libdir' 10410 hardcode_direct=yes 10411 hardcode_shlibpath_var=no 10412 ;; 10413 10414 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10415 freebsd2.*) 10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10417 hardcode_direct=yes 10418 hardcode_minus_L=yes 10419 hardcode_shlibpath_var=no 10420 ;; 10421 10422 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10423 freebsd* | dragonfly*) 10424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10425 hardcode_libdir_flag_spec='-R$libdir' 10426 hardcode_direct=yes 10427 hardcode_shlibpath_var=no 10428 ;; 10429 10430 hpux9*) 10431 if test "$GCC" = yes; then 10432 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10433 else 10434 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10435 fi 10436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10437 hardcode_libdir_separator=: 10438 hardcode_direct=yes 10439 10440 # hardcode_minus_L: Not really in the search PATH, 10441 # but as the default location of the library. 10442 hardcode_minus_L=yes 10443 export_dynamic_flag_spec='${wl}-E' 10444 ;; 10445 10446 hpux10*) 10447 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10448 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10449 else 10450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10451 fi 10452 if test "$with_gnu_ld" = no; then 10453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10454 hardcode_libdir_separator=: 10455 hardcode_direct=yes 10456 hardcode_direct_absolute=yes 10457 export_dynamic_flag_spec='${wl}-E' 10458 # hardcode_minus_L: Not really in the search PATH, 10459 # but as the default location of the library. 10460 hardcode_minus_L=yes 10461 fi 10462 ;; 10463 10464 hpux11*) 10465 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10466 case $host_cpu in 10467 hppa*64*) 10468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10469 ;; 10470 ia64*) 10471 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10472 ;; 10473 *) 10474 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10475 ;; 10476 esac 10477 else 10478 case $host_cpu in 10479 hppa*64*) 10480 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10481 ;; 10482 ia64*) 10483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10484 ;; 10485 *) 10486 10487 # Older versions of the 11.00 compiler do not understand -b yet 10488 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10490$as_echo_n "checking if $CC understands -b... " >&6; } 10491if ${lt_cv_prog_compiler__b+:} false; then : 10492 $as_echo_n "(cached) " >&6 10493else 10494 lt_cv_prog_compiler__b=no 10495 save_LDFLAGS="$LDFLAGS" 10496 LDFLAGS="$LDFLAGS -b" 10497 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10499 # The linker can only warn and ignore the option if not recognized 10500 # So say no if there are warnings 10501 if test -s conftest.err; then 10502 # Append any errors to the config.log. 10503 cat conftest.err 1>&5 10504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10506 if diff conftest.exp conftest.er2 >/dev/null; then 10507 lt_cv_prog_compiler__b=yes 10508 fi 10509 else 10510 lt_cv_prog_compiler__b=yes 10511 fi 10512 fi 10513 $RM -r conftest* 10514 LDFLAGS="$save_LDFLAGS" 10515 10516fi 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10518$as_echo "$lt_cv_prog_compiler__b" >&6; } 10519 10520if test x"$lt_cv_prog_compiler__b" = xyes; then 10521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10522else 10523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10524fi 10525 10526 ;; 10527 esac 10528 fi 10529 if test "$with_gnu_ld" = no; then 10530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10531 hardcode_libdir_separator=: 10532 10533 case $host_cpu in 10534 hppa*64*|ia64*) 10535 hardcode_direct=no 10536 hardcode_shlibpath_var=no 10537 ;; 10538 *) 10539 hardcode_direct=yes 10540 hardcode_direct_absolute=yes 10541 export_dynamic_flag_spec='${wl}-E' 10542 10543 # hardcode_minus_L: Not really in the search PATH, 10544 # but as the default location of the library. 10545 hardcode_minus_L=yes 10546 ;; 10547 esac 10548 fi 10549 ;; 10550 10551 irix5* | irix6* | nonstopux*) 10552 if test "$GCC" = yes; then 10553 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' 10554 # Try to use the -exported_symbol ld option, if it does not 10555 # work, assume that -exports_file does not work either and 10556 # implicitly export all symbols. 10557 # This should be the same for all languages, so no per-tag cache variable. 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10559$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10560if ${lt_cv_irix_exported_symbol+:} false; then : 10561 $as_echo_n "(cached) " >&6 10562else 10563 save_LDFLAGS="$LDFLAGS" 10564 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10566/* end confdefs.h. */ 10567int foo (void) { return 0; } 10568_ACEOF 10569if ac_fn_c_try_link "$LINENO"; then : 10570 lt_cv_irix_exported_symbol=yes 10571else 10572 lt_cv_irix_exported_symbol=no 10573fi 10574rm -f core conftest.err conftest.$ac_objext \ 10575 conftest$ac_exeext conftest.$ac_ext 10576 LDFLAGS="$save_LDFLAGS" 10577fi 10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10579$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10580 if test "$lt_cv_irix_exported_symbol" = yes; then 10581 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' 10582 fi 10583 else 10584 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' 10585 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' 10586 fi 10587 archive_cmds_need_lc='no' 10588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10589 hardcode_libdir_separator=: 10590 inherit_rpath=yes 10591 link_all_deplibs=yes 10592 ;; 10593 10594 netbsd*) 10595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10597 else 10598 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10599 fi 10600 hardcode_libdir_flag_spec='-R$libdir' 10601 hardcode_direct=yes 10602 hardcode_shlibpath_var=no 10603 ;; 10604 10605 newsos6) 10606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10607 hardcode_direct=yes 10608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10609 hardcode_libdir_separator=: 10610 hardcode_shlibpath_var=no 10611 ;; 10612 10613 *nto* | *qnx*) 10614 ;; 10615 10616 openbsd*) 10617 if test -f /usr/libexec/ld.so; then 10618 hardcode_direct=yes 10619 hardcode_shlibpath_var=no 10620 hardcode_direct_absolute=yes 10621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10622 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10623 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10625 export_dynamic_flag_spec='${wl}-E' 10626 else 10627 case $host_os in 10628 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10630 hardcode_libdir_flag_spec='-R$libdir' 10631 ;; 10632 *) 10633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10635 ;; 10636 esac 10637 fi 10638 else 10639 ld_shlibs=no 10640 fi 10641 ;; 10642 10643 os2*) 10644 hardcode_libdir_flag_spec='-L$libdir' 10645 hardcode_minus_L=yes 10646 allow_undefined_flag=unsupported 10647 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10648 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10649 ;; 10650 10651 osf3*) 10652 if test "$GCC" = yes; then 10653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10654 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' 10655 else 10656 allow_undefined_flag=' -expect_unresolved \*' 10657 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' 10658 fi 10659 archive_cmds_need_lc='no' 10660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10661 hardcode_libdir_separator=: 10662 ;; 10663 10664 osf4* | osf5*) # as osf3* with the addition of -msym flag 10665 if test "$GCC" = yes; then 10666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10667 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' 10668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10669 else 10670 allow_undefined_flag=' -expect_unresolved \*' 10671 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' 10672 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~ 10673 $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' 10674 10675 # Both c and cxx compiler support -rpath directly 10676 hardcode_libdir_flag_spec='-rpath $libdir' 10677 fi 10678 archive_cmds_need_lc='no' 10679 hardcode_libdir_separator=: 10680 ;; 10681 10682 solaris*) 10683 no_undefined_flag=' -z defs' 10684 if test "$GCC" = yes; then 10685 wlarc='${wl}' 10686 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10688 $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' 10689 else 10690 case `$CC -V 2>&1` in 10691 *"Compilers 5.0"*) 10692 wlarc='' 10693 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10696 ;; 10697 *) 10698 wlarc='${wl}' 10699 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10701 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10702 ;; 10703 esac 10704 fi 10705 hardcode_libdir_flag_spec='-R$libdir' 10706 hardcode_shlibpath_var=no 10707 case $host_os in 10708 solaris2.[0-5] | solaris2.[0-5].*) ;; 10709 *) 10710 # The compiler driver will combine and reorder linker options, 10711 # but understands `-z linker_flag'. GCC discards it without `$wl', 10712 # but is careful enough not to reorder. 10713 # Supported since Solaris 2.6 (maybe 2.5.1?) 10714 if test "$GCC" = yes; then 10715 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10716 else 10717 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10718 fi 10719 ;; 10720 esac 10721 link_all_deplibs=yes 10722 ;; 10723 10724 sunos4*) 10725 if test "x$host_vendor" = xsequent; then 10726 # Use $CC to link under sequent, because it throws in some extra .o 10727 # files that make .init and .fini sections work. 10728 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10729 else 10730 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10731 fi 10732 hardcode_libdir_flag_spec='-L$libdir' 10733 hardcode_direct=yes 10734 hardcode_minus_L=yes 10735 hardcode_shlibpath_var=no 10736 ;; 10737 10738 sysv4) 10739 case $host_vendor in 10740 sni) 10741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10742 hardcode_direct=yes # is this really true??? 10743 ;; 10744 siemens) 10745 ## LD is ld it makes a PLAMLIB 10746 ## CC just makes a GrossModule. 10747 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10748 reload_cmds='$CC -r -o $output$reload_objs' 10749 hardcode_direct=no 10750 ;; 10751 motorola) 10752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10753 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10754 ;; 10755 esac 10756 runpath_var='LD_RUN_PATH' 10757 hardcode_shlibpath_var=no 10758 ;; 10759 10760 sysv4.3*) 10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10762 hardcode_shlibpath_var=no 10763 export_dynamic_flag_spec='-Bexport' 10764 ;; 10765 10766 sysv4*MP*) 10767 if test -d /usr/nec; then 10768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10769 hardcode_shlibpath_var=no 10770 runpath_var=LD_RUN_PATH 10771 hardcode_runpath_var=yes 10772 ld_shlibs=yes 10773 fi 10774 ;; 10775 10776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10777 no_undefined_flag='${wl}-z,text' 10778 archive_cmds_need_lc=no 10779 hardcode_shlibpath_var=no 10780 runpath_var='LD_RUN_PATH' 10781 10782 if test "$GCC" = yes; then 10783 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10784 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10785 else 10786 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10787 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10788 fi 10789 ;; 10790 10791 sysv5* | sco3.2v5* | sco5v6*) 10792 # Note: We can NOT use -z defs as we might desire, because we do not 10793 # link with -lc, and that would cause any symbols used from libc to 10794 # always be unresolved, which means just about no library would 10795 # ever link correctly. If we're not using GNU ld we use -z text 10796 # though, which does catch some bad symbols but isn't as heavy-handed 10797 # as -z defs. 10798 no_undefined_flag='${wl}-z,text' 10799 allow_undefined_flag='${wl}-z,nodefs' 10800 archive_cmds_need_lc=no 10801 hardcode_shlibpath_var=no 10802 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10803 hardcode_libdir_separator=':' 10804 link_all_deplibs=yes 10805 export_dynamic_flag_spec='${wl}-Bexport' 10806 runpath_var='LD_RUN_PATH' 10807 10808 if test "$GCC" = yes; then 10809 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10810 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10811 else 10812 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10813 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10814 fi 10815 ;; 10816 10817 uts4*) 10818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10819 hardcode_libdir_flag_spec='-L$libdir' 10820 hardcode_shlibpath_var=no 10821 ;; 10822 10823 *) 10824 ld_shlibs=no 10825 ;; 10826 esac 10827 10828 if test x$host_vendor = xsni; then 10829 case $host in 10830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10831 export_dynamic_flag_spec='${wl}-Blargedynsym' 10832 ;; 10833 esac 10834 fi 10835 fi 10836 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10838$as_echo "$ld_shlibs" >&6; } 10839test "$ld_shlibs" = no && can_build_shared=no 10840 10841with_gnu_ld=$with_gnu_ld 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857# 10858# Do we need to explicitly link libc? 10859# 10860case "x$archive_cmds_need_lc" in 10861x|xyes) 10862 # Assume -lc should be added 10863 archive_cmds_need_lc=yes 10864 10865 if test "$enable_shared" = yes && test "$GCC" = yes; then 10866 case $archive_cmds in 10867 *'~'*) 10868 # FIXME: we may have to deal with multi-command sequences. 10869 ;; 10870 '$CC '*) 10871 # Test whether the compiler implicitly links with -lc since on some 10872 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10873 # to ld, don't add -lc before -lgcc. 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10875$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10876if ${lt_cv_archive_cmds_need_lc+:} false; then : 10877 $as_echo_n "(cached) " >&6 10878else 10879 $RM conftest* 10880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10881 10882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10883 (eval $ac_compile) 2>&5 10884 ac_status=$? 10885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10886 test $ac_status = 0; } 2>conftest.err; then 10887 soname=conftest 10888 lib=conftest 10889 libobjs=conftest.$ac_objext 10890 deplibs= 10891 wl=$lt_prog_compiler_wl 10892 pic_flag=$lt_prog_compiler_pic 10893 compiler_flags=-v 10894 linker_flags=-v 10895 verstring= 10896 output_objdir=. 10897 libname=conftest 10898 lt_save_allow_undefined_flag=$allow_undefined_flag 10899 allow_undefined_flag= 10900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10901 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10902 ac_status=$? 10903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10904 test $ac_status = 0; } 10905 then 10906 lt_cv_archive_cmds_need_lc=no 10907 else 10908 lt_cv_archive_cmds_need_lc=yes 10909 fi 10910 allow_undefined_flag=$lt_save_allow_undefined_flag 10911 else 10912 cat conftest.err 1>&5 10913 fi 10914 $RM conftest* 10915 10916fi 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10918$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10919 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10920 ;; 10921 esac 10922 fi 10923 ;; 10924esac 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 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11078$as_echo_n "checking dynamic linker characteristics... " >&6; } 11079 11080if test "$GCC" = yes; then 11081 case $host_os in 11082 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11083 *) lt_awk_arg="/^libraries:/" ;; 11084 esac 11085 case $host_os in 11086 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11087 *) lt_sed_strip_eq="s,=/,/,g" ;; 11088 esac 11089 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11090 case $lt_search_path_spec in 11091 *\;*) 11092 # if the path contains ";" then we assume it to be the separator 11093 # otherwise default to the standard path separator (i.e. ":") - it is 11094 # assumed that no part of a normal pathname contains ";" but that should 11095 # okay in the real world where ";" in dirpaths is itself problematic. 11096 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11097 ;; 11098 *) 11099 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11100 ;; 11101 esac 11102 # Ok, now we have the path, separated by spaces, we can step through it 11103 # and add multilib dir if necessary. 11104 lt_tmp_lt_search_path_spec= 11105 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11106 for lt_sys_path in $lt_search_path_spec; do 11107 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11108 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11109 else 11110 test -d "$lt_sys_path" && \ 11111 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11112 fi 11113 done 11114 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11115BEGIN {RS=" "; FS="/|\n";} { 11116 lt_foo=""; 11117 lt_count=0; 11118 for (lt_i = NF; lt_i > 0; lt_i--) { 11119 if ($lt_i != "" && $lt_i != ".") { 11120 if ($lt_i == "..") { 11121 lt_count++; 11122 } else { 11123 if (lt_count == 0) { 11124 lt_foo="/" $lt_i lt_foo; 11125 } else { 11126 lt_count--; 11127 } 11128 } 11129 } 11130 } 11131 if (lt_foo != "") { lt_freq[lt_foo]++; } 11132 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11133}'` 11134 # AWK program above erroneously prepends '/' to C:/dos/paths 11135 # for these hosts. 11136 case $host_os in 11137 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11138 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11139 esac 11140 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11141else 11142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11143fi 11144library_names_spec= 11145libname_spec='lib$name' 11146soname_spec= 11147shrext_cmds=".so" 11148postinstall_cmds= 11149postuninstall_cmds= 11150finish_cmds= 11151finish_eval= 11152shlibpath_var= 11153shlibpath_overrides_runpath=unknown 11154version_type=none 11155dynamic_linker="$host_os ld.so" 11156sys_lib_dlsearch_path_spec="/lib /usr/lib" 11157need_lib_prefix=unknown 11158hardcode_into_libs=no 11159 11160# when you set need_version to no, make sure it does not cause -set_version 11161# flags to be left without arguments 11162need_version=unknown 11163 11164case $host_os in 11165aix3*) 11166 version_type=linux # correct to gnu/linux during the next big refactor 11167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11168 shlibpath_var=LIBPATH 11169 11170 # AIX 3 has no versioning support, so we append a major version to the name. 11171 soname_spec='${libname}${release}${shared_ext}$major' 11172 ;; 11173 11174aix[4-9]*) 11175 version_type=linux # correct to gnu/linux during the next big refactor 11176 need_lib_prefix=no 11177 need_version=no 11178 hardcode_into_libs=yes 11179 if test "$host_cpu" = ia64; then 11180 # AIX 5 supports IA64 11181 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11182 shlibpath_var=LD_LIBRARY_PATH 11183 else 11184 # With GCC up to 2.95.x, collect2 would create an import file 11185 # for dependence libraries. The import file would start with 11186 # the line `#! .'. This would cause the generated library to 11187 # depend on `.', always an invalid library. This was fixed in 11188 # development snapshots of GCC prior to 3.0. 11189 case $host_os in 11190 aix4 | aix4.[01] | aix4.[01].*) 11191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11192 echo ' yes ' 11193 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11194 : 11195 else 11196 can_build_shared=no 11197 fi 11198 ;; 11199 esac 11200 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11201 # soname into executable. Probably we can add versioning support to 11202 # collect2, so additional links can be useful in future. 11203 if test "$aix_use_runtimelinking" = yes; then 11204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11205 # instead of lib<name>.a to let people know that these are not 11206 # typical AIX shared libraries. 11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11208 else 11209 # We preserve .a as extension for shared libraries through AIX4.2 11210 # and later when we are not doing run time linking. 11211 library_names_spec='${libname}${release}.a $libname.a' 11212 soname_spec='${libname}${release}${shared_ext}$major' 11213 fi 11214 shlibpath_var=LIBPATH 11215 fi 11216 ;; 11217 11218amigaos*) 11219 case $host_cpu in 11220 powerpc) 11221 # Since July 2007 AmigaOS4 officially supports .so libraries. 11222 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11224 ;; 11225 m68k) 11226 library_names_spec='$libname.ixlibrary $libname.a' 11227 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11228 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11229 ;; 11230 esac 11231 ;; 11232 11233beos*) 11234 library_names_spec='${libname}${shared_ext}' 11235 dynamic_linker="$host_os ld.so" 11236 shlibpath_var=LIBRARY_PATH 11237 ;; 11238 11239bsdi[45]*) 11240 version_type=linux # correct to gnu/linux during the next big refactor 11241 need_version=no 11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11243 soname_spec='${libname}${release}${shared_ext}$major' 11244 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11245 shlibpath_var=LD_LIBRARY_PATH 11246 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11247 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11248 # the default ld.so.conf also contains /usr/contrib/lib and 11249 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11250 # libtool to hard-code these into programs 11251 ;; 11252 11253cygwin* | mingw* | pw32* | cegcc*) 11254 version_type=windows 11255 shrext_cmds=".dll" 11256 need_version=no 11257 need_lib_prefix=no 11258 11259 case $GCC,$cc_basename in 11260 yes,*) 11261 # gcc 11262 library_names_spec='$libname.dll.a' 11263 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11264 postinstall_cmds='base_file=`basename \${file}`~ 11265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11266 dldir=$destdir/`dirname \$dlpath`~ 11267 test -d \$dldir || mkdir -p \$dldir~ 11268 $install_prog $dir/$dlname \$dldir/$dlname~ 11269 chmod a+x \$dldir/$dlname~ 11270 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11271 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11272 fi' 11273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11274 dlpath=$dir/\$dldll~ 11275 $RM \$dlpath' 11276 shlibpath_overrides_runpath=yes 11277 11278 case $host_os in 11279 cygwin*) 11280 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11281 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11282 11283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11284 ;; 11285 mingw* | cegcc*) 11286 # MinGW DLLs use traditional 'lib' prefix 11287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11288 ;; 11289 pw32*) 11290 # pw32 DLLs use 'pw' prefix rather than 'lib' 11291 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11292 ;; 11293 esac 11294 dynamic_linker='Win32 ld.exe' 11295 ;; 11296 11297 *,cl*) 11298 # Native MSVC 11299 libname_spec='$name' 11300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11301 library_names_spec='${libname}.dll.lib' 11302 11303 case $build_os in 11304 mingw*) 11305 sys_lib_search_path_spec= 11306 lt_save_ifs=$IFS 11307 IFS=';' 11308 for lt_path in $LIB 11309 do 11310 IFS=$lt_save_ifs 11311 # Let DOS variable expansion print the short 8.3 style file name. 11312 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11313 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11314 done 11315 IFS=$lt_save_ifs 11316 # Convert to MSYS style. 11317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11318 ;; 11319 cygwin*) 11320 # Convert to unix form, then to dos form, then back to unix form 11321 # but this time dos style (no spaces!) so that the unix form looks 11322 # like /cygdrive/c/PROGRA~1:/cygdr... 11323 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11324 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11325 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11326 ;; 11327 *) 11328 sys_lib_search_path_spec="$LIB" 11329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11330 # It is most probably a Windows format PATH. 11331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11332 else 11333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11334 fi 11335 # FIXME: find the short name or the path components, as spaces are 11336 # common. (e.g. "Program Files" -> "PROGRA~1") 11337 ;; 11338 esac 11339 11340 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11341 postinstall_cmds='base_file=`basename \${file}`~ 11342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11343 dldir=$destdir/`dirname \$dlpath`~ 11344 test -d \$dldir || mkdir -p \$dldir~ 11345 $install_prog $dir/$dlname \$dldir/$dlname' 11346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11347 dlpath=$dir/\$dldll~ 11348 $RM \$dlpath' 11349 shlibpath_overrides_runpath=yes 11350 dynamic_linker='Win32 link.exe' 11351 ;; 11352 11353 *) 11354 # Assume MSVC wrapper 11355 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11356 dynamic_linker='Win32 ld.exe' 11357 ;; 11358 esac 11359 # FIXME: first we should search . and the directory the executable is in 11360 shlibpath_var=PATH 11361 ;; 11362 11363darwin* | rhapsody*) 11364 dynamic_linker="$host_os dyld" 11365 version_type=darwin 11366 need_lib_prefix=no 11367 need_version=no 11368 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11369 soname_spec='${libname}${release}${major}$shared_ext' 11370 shlibpath_overrides_runpath=yes 11371 shlibpath_var=DYLD_LIBRARY_PATH 11372 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11373 11374 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11376 ;; 11377 11378dgux*) 11379 version_type=linux # correct to gnu/linux during the next big refactor 11380 need_lib_prefix=no 11381 need_version=no 11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11383 soname_spec='${libname}${release}${shared_ext}$major' 11384 shlibpath_var=LD_LIBRARY_PATH 11385 ;; 11386 11387freebsd* | dragonfly*) 11388 # DragonFly does not have aout. When/if they implement a new 11389 # versioning mechanism, adjust this. 11390 if test -x /usr/bin/objformat; then 11391 objformat=`/usr/bin/objformat` 11392 else 11393 case $host_os in 11394 freebsd[23].*) objformat=aout ;; 11395 *) objformat=elf ;; 11396 esac 11397 fi 11398 version_type=freebsd-$objformat 11399 case $version_type in 11400 freebsd-elf*) 11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11402 need_version=no 11403 need_lib_prefix=no 11404 ;; 11405 freebsd-*) 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11407 need_version=yes 11408 ;; 11409 esac 11410 shlibpath_var=LD_LIBRARY_PATH 11411 case $host_os in 11412 freebsd2.*) 11413 shlibpath_overrides_runpath=yes 11414 ;; 11415 freebsd3.[01]* | freebsdelf3.[01]*) 11416 shlibpath_overrides_runpath=yes 11417 hardcode_into_libs=yes 11418 ;; 11419 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11420 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11421 shlibpath_overrides_runpath=no 11422 hardcode_into_libs=yes 11423 ;; 11424 *) # from 4.6 on, and DragonFly 11425 shlibpath_overrides_runpath=yes 11426 hardcode_into_libs=yes 11427 ;; 11428 esac 11429 ;; 11430 11431gnu*) 11432 version_type=linux # correct to gnu/linux during the next big refactor 11433 need_lib_prefix=no 11434 need_version=no 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11436 soname_spec='${libname}${release}${shared_ext}$major' 11437 shlibpath_var=LD_LIBRARY_PATH 11438 shlibpath_overrides_runpath=no 11439 hardcode_into_libs=yes 11440 ;; 11441 11442haiku*) 11443 version_type=linux # correct to gnu/linux during the next big refactor 11444 need_lib_prefix=no 11445 need_version=no 11446 dynamic_linker="$host_os runtime_loader" 11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11448 soname_spec='${libname}${release}${shared_ext}$major' 11449 shlibpath_var=LIBRARY_PATH 11450 shlibpath_overrides_runpath=yes 11451 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11452 hardcode_into_libs=yes 11453 ;; 11454 11455hpux9* | hpux10* | hpux11*) 11456 # Give a soname corresponding to the major version so that dld.sl refuses to 11457 # link against other versions. 11458 version_type=sunos 11459 need_lib_prefix=no 11460 need_version=no 11461 case $host_cpu in 11462 ia64*) 11463 shrext_cmds='.so' 11464 hardcode_into_libs=yes 11465 dynamic_linker="$host_os dld.so" 11466 shlibpath_var=LD_LIBRARY_PATH 11467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11469 soname_spec='${libname}${release}${shared_ext}$major' 11470 if test "X$HPUX_IA64_MODE" = X32; then 11471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11472 else 11473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11474 fi 11475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11476 ;; 11477 hppa*64*) 11478 shrext_cmds='.sl' 11479 hardcode_into_libs=yes 11480 dynamic_linker="$host_os dld.sl" 11481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11484 soname_spec='${libname}${release}${shared_ext}$major' 11485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11487 ;; 11488 *) 11489 shrext_cmds='.sl' 11490 dynamic_linker="$host_os dld.sl" 11491 shlibpath_var=SHLIB_PATH 11492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11494 soname_spec='${libname}${release}${shared_ext}$major' 11495 ;; 11496 esac 11497 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11498 postinstall_cmds='chmod 555 $lib' 11499 # or fails outright, so override atomically: 11500 install_override_mode=555 11501 ;; 11502 11503interix[3-9]*) 11504 version_type=linux # correct to gnu/linux during the next big refactor 11505 need_lib_prefix=no 11506 need_version=no 11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11508 soname_spec='${libname}${release}${shared_ext}$major' 11509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11510 shlibpath_var=LD_LIBRARY_PATH 11511 shlibpath_overrides_runpath=no 11512 hardcode_into_libs=yes 11513 ;; 11514 11515irix5* | irix6* | nonstopux*) 11516 case $host_os in 11517 nonstopux*) version_type=nonstopux ;; 11518 *) 11519 if test "$lt_cv_prog_gnu_ld" = yes; then 11520 version_type=linux # correct to gnu/linux during the next big refactor 11521 else 11522 version_type=irix 11523 fi ;; 11524 esac 11525 need_lib_prefix=no 11526 need_version=no 11527 soname_spec='${libname}${release}${shared_ext}$major' 11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11529 case $host_os in 11530 irix5* | nonstopux*) 11531 libsuff= shlibsuff= 11532 ;; 11533 *) 11534 case $LD in # libtool.m4 will add one of these switches to LD 11535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11536 libsuff= shlibsuff= libmagic=32-bit;; 11537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11538 libsuff=32 shlibsuff=N32 libmagic=N32;; 11539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11540 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11541 *) libsuff= shlibsuff= libmagic=never-match;; 11542 esac 11543 ;; 11544 esac 11545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11546 shlibpath_overrides_runpath=no 11547 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11548 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11549 hardcode_into_libs=yes 11550 ;; 11551 11552# No shared lib support for Linux oldld, aout, or coff. 11553linux*oldld* | linux*aout* | linux*coff*) 11554 dynamic_linker=no 11555 ;; 11556 11557# This must be glibc/ELF. 11558linux* | k*bsd*-gnu | kopensolaris*-gnu) 11559 version_type=linux # correct to gnu/linux during the next big refactor 11560 need_lib_prefix=no 11561 need_version=no 11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11563 soname_spec='${libname}${release}${shared_ext}$major' 11564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11565 shlibpath_var=LD_LIBRARY_PATH 11566 shlibpath_overrides_runpath=no 11567 11568 # Some binutils ld are patched to set DT_RUNPATH 11569 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11570 $as_echo_n "(cached) " >&6 11571else 11572 lt_cv_shlibpath_overrides_runpath=no 11573 save_LDFLAGS=$LDFLAGS 11574 save_libdir=$libdir 11575 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11576 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11578/* end confdefs.h. */ 11579 11580int 11581main () 11582{ 11583 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588if ac_fn_c_try_link "$LINENO"; then : 11589 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11590 lt_cv_shlibpath_overrides_runpath=yes 11591fi 11592fi 11593rm -f core conftest.err conftest.$ac_objext \ 11594 conftest$ac_exeext conftest.$ac_ext 11595 LDFLAGS=$save_LDFLAGS 11596 libdir=$save_libdir 11597 11598fi 11599 11600 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11601 11602 # This implies no fast_install, which is unacceptable. 11603 # Some rework will be needed to allow for fast_install 11604 # before this can be enabled. 11605 hardcode_into_libs=yes 11606 11607 # Add ABI-specific directories to the system library path. 11608 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11609 11610 # Append ld.so.conf contents to the search path 11611 if test -f /etc/ld.so.conf; then 11612 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' ' '` 11613 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11614 11615 fi 11616 11617 # We used to test for /lib/ld.so.1 and disable shared libraries on 11618 # powerpc, because MkLinux only supported shared libraries with the 11619 # GNU dynamic linker. Since this was broken with cross compilers, 11620 # most powerpc-linux boxes support dynamic linking these days and 11621 # people can always --disable-shared, the test was removed, and we 11622 # assume the GNU/Linux dynamic linker is in use. 11623 dynamic_linker='GNU/Linux ld.so' 11624 ;; 11625 11626netbsd*) 11627 version_type=sunos 11628 need_lib_prefix=no 11629 need_version=no 11630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11633 dynamic_linker='NetBSD (a.out) ld.so' 11634 else 11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11636 soname_spec='${libname}${release}${shared_ext}$major' 11637 dynamic_linker='NetBSD ld.elf_so' 11638 fi 11639 shlibpath_var=LD_LIBRARY_PATH 11640 shlibpath_overrides_runpath=yes 11641 hardcode_into_libs=yes 11642 ;; 11643 11644newsos6) 11645 version_type=linux # correct to gnu/linux during the next big refactor 11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11647 shlibpath_var=LD_LIBRARY_PATH 11648 shlibpath_overrides_runpath=yes 11649 ;; 11650 11651*nto* | *qnx*) 11652 version_type=qnx 11653 need_lib_prefix=no 11654 need_version=no 11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11656 soname_spec='${libname}${release}${shared_ext}$major' 11657 shlibpath_var=LD_LIBRARY_PATH 11658 shlibpath_overrides_runpath=no 11659 hardcode_into_libs=yes 11660 dynamic_linker='ldqnx.so' 11661 ;; 11662 11663openbsd*) 11664 version_type=sunos 11665 sys_lib_dlsearch_path_spec="/usr/lib" 11666 need_lib_prefix=no 11667 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11668 case $host_os in 11669 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11670 *) need_version=no ;; 11671 esac 11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11674 shlibpath_var=LD_LIBRARY_PATH 11675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11676 case $host_os in 11677 openbsd2.[89] | openbsd2.[89].*) 11678 shlibpath_overrides_runpath=no 11679 ;; 11680 *) 11681 shlibpath_overrides_runpath=yes 11682 ;; 11683 esac 11684 else 11685 shlibpath_overrides_runpath=yes 11686 fi 11687 ;; 11688 11689os2*) 11690 libname_spec='$name' 11691 shrext_cmds=".dll" 11692 need_lib_prefix=no 11693 library_names_spec='$libname${shared_ext} $libname.a' 11694 dynamic_linker='OS/2 ld.exe' 11695 shlibpath_var=LIBPATH 11696 ;; 11697 11698osf3* | osf4* | osf5*) 11699 version_type=osf 11700 need_lib_prefix=no 11701 need_version=no 11702 soname_spec='${libname}${release}${shared_ext}$major' 11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11704 shlibpath_var=LD_LIBRARY_PATH 11705 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11706 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11707 ;; 11708 11709rdos*) 11710 dynamic_linker=no 11711 ;; 11712 11713solaris*) 11714 version_type=linux # correct to gnu/linux during the next big refactor 11715 need_lib_prefix=no 11716 need_version=no 11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11718 soname_spec='${libname}${release}${shared_ext}$major' 11719 shlibpath_var=LD_LIBRARY_PATH 11720 shlibpath_overrides_runpath=yes 11721 hardcode_into_libs=yes 11722 # ldd complains unless libraries are executable 11723 postinstall_cmds='chmod +x $lib' 11724 ;; 11725 11726sunos4*) 11727 version_type=sunos 11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11730 shlibpath_var=LD_LIBRARY_PATH 11731 shlibpath_overrides_runpath=yes 11732 if test "$with_gnu_ld" = yes; then 11733 need_lib_prefix=no 11734 fi 11735 need_version=yes 11736 ;; 11737 11738sysv4 | sysv4.3*) 11739 version_type=linux # correct to gnu/linux during the next big refactor 11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11741 soname_spec='${libname}${release}${shared_ext}$major' 11742 shlibpath_var=LD_LIBRARY_PATH 11743 case $host_vendor in 11744 sni) 11745 shlibpath_overrides_runpath=no 11746 need_lib_prefix=no 11747 runpath_var=LD_RUN_PATH 11748 ;; 11749 siemens) 11750 need_lib_prefix=no 11751 ;; 11752 motorola) 11753 need_lib_prefix=no 11754 need_version=no 11755 shlibpath_overrides_runpath=no 11756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11757 ;; 11758 esac 11759 ;; 11760 11761sysv4*MP*) 11762 if test -d /usr/nec ;then 11763 version_type=linux # correct to gnu/linux during the next big refactor 11764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11765 soname_spec='$libname${shared_ext}.$major' 11766 shlibpath_var=LD_LIBRARY_PATH 11767 fi 11768 ;; 11769 11770sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11771 version_type=freebsd-elf 11772 need_lib_prefix=no 11773 need_version=no 11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11775 soname_spec='${libname}${release}${shared_ext}$major' 11776 shlibpath_var=LD_LIBRARY_PATH 11777 shlibpath_overrides_runpath=yes 11778 hardcode_into_libs=yes 11779 if test "$with_gnu_ld" = yes; then 11780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11781 else 11782 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11783 case $host_os in 11784 sco3.2v5*) 11785 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11786 ;; 11787 esac 11788 fi 11789 sys_lib_dlsearch_path_spec='/usr/lib' 11790 ;; 11791 11792tpf*) 11793 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11794 version_type=linux # correct to gnu/linux during the next big refactor 11795 need_lib_prefix=no 11796 need_version=no 11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 shlibpath_overrides_runpath=no 11800 hardcode_into_libs=yes 11801 ;; 11802 11803uts4*) 11804 version_type=linux # correct to gnu/linux during the next big refactor 11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11806 soname_spec='${libname}${release}${shared_ext}$major' 11807 shlibpath_var=LD_LIBRARY_PATH 11808 ;; 11809 11810*) 11811 dynamic_linker=no 11812 ;; 11813esac 11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11815$as_echo "$dynamic_linker" >&6; } 11816test "$dynamic_linker" = no && can_build_shared=no 11817 11818variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11819if test "$GCC" = yes; then 11820 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11821fi 11822 11823if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11824 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11825fi 11826if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11827 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11828fi 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 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11922$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11923hardcode_action= 11924if test -n "$hardcode_libdir_flag_spec" || 11925 test -n "$runpath_var" || 11926 test "X$hardcode_automatic" = "Xyes" ; then 11927 11928 # We can hardcode non-existent directories. 11929 if test "$hardcode_direct" != no && 11930 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11931 # have to relink, otherwise we might link with an installed library 11932 # when we should be linking with a yet-to-be-installed one 11933 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11934 test "$hardcode_minus_L" != no; then 11935 # Linking always hardcodes the temporary library directory. 11936 hardcode_action=relink 11937 else 11938 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11939 hardcode_action=immediate 11940 fi 11941else 11942 # We cannot hardcode anything, or else we can only hardcode existing 11943 # directories. 11944 hardcode_action=unsupported 11945fi 11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11947$as_echo "$hardcode_action" >&6; } 11948 11949if test "$hardcode_action" = relink || 11950 test "$inherit_rpath" = yes; then 11951 # Fast installation is not supported 11952 enable_fast_install=no 11953elif test "$shlibpath_overrides_runpath" = yes || 11954 test "$enable_shared" = no; then 11955 # Fast installation is not necessary 11956 enable_fast_install=needless 11957fi 11958 11959 11960 11961 11962 11963 11964 if test "x$enable_dlopen" != xyes; then 11965 enable_dlopen=unknown 11966 enable_dlopen_self=unknown 11967 enable_dlopen_self_static=unknown 11968else 11969 lt_cv_dlopen=no 11970 lt_cv_dlopen_libs= 11971 11972 case $host_os in 11973 beos*) 11974 lt_cv_dlopen="load_add_on" 11975 lt_cv_dlopen_libs= 11976 lt_cv_dlopen_self=yes 11977 ;; 11978 11979 mingw* | pw32* | cegcc*) 11980 lt_cv_dlopen="LoadLibrary" 11981 lt_cv_dlopen_libs= 11982 ;; 11983 11984 cygwin*) 11985 lt_cv_dlopen="dlopen" 11986 lt_cv_dlopen_libs= 11987 ;; 11988 11989 darwin*) 11990 # if libdl is installed we need to link against it 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11992$as_echo_n "checking for dlopen in -ldl... " >&6; } 11993if ${ac_cv_lib_dl_dlopen+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 ac_check_lib_save_LIBS=$LIBS 11997LIBS="-ldl $LIBS" 11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11999/* end confdefs.h. */ 12000 12001/* Override any GCC internal prototype to avoid an error. 12002 Use char because int might match the return type of a GCC 12003 builtin and then its argument prototype would still apply. */ 12004#ifdef __cplusplus 12005extern "C" 12006#endif 12007char dlopen (); 12008int 12009main () 12010{ 12011return dlopen (); 12012 ; 12013 return 0; 12014} 12015_ACEOF 12016if ac_fn_c_try_link "$LINENO"; then : 12017 ac_cv_lib_dl_dlopen=yes 12018else 12019 ac_cv_lib_dl_dlopen=no 12020fi 12021rm -f core conftest.err conftest.$ac_objext \ 12022 conftest$ac_exeext conftest.$ac_ext 12023LIBS=$ac_check_lib_save_LIBS 12024fi 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12026$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12027if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12029else 12030 12031 lt_cv_dlopen="dyld" 12032 lt_cv_dlopen_libs= 12033 lt_cv_dlopen_self=yes 12034 12035fi 12036 12037 ;; 12038 12039 *) 12040 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12041if test "x$ac_cv_func_shl_load" = xyes; then : 12042 lt_cv_dlopen="shl_load" 12043else 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12045$as_echo_n "checking for shl_load in -ldld... " >&6; } 12046if ${ac_cv_lib_dld_shl_load+:} false; then : 12047 $as_echo_n "(cached) " >&6 12048else 12049 ac_check_lib_save_LIBS=$LIBS 12050LIBS="-ldld $LIBS" 12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12052/* end confdefs.h. */ 12053 12054/* Override any GCC internal prototype to avoid an error. 12055 Use char because int might match the return type of a GCC 12056 builtin and then its argument prototype would still apply. */ 12057#ifdef __cplusplus 12058extern "C" 12059#endif 12060char shl_load (); 12061int 12062main () 12063{ 12064return shl_load (); 12065 ; 12066 return 0; 12067} 12068_ACEOF 12069if ac_fn_c_try_link "$LINENO"; then : 12070 ac_cv_lib_dld_shl_load=yes 12071else 12072 ac_cv_lib_dld_shl_load=no 12073fi 12074rm -f core conftest.err conftest.$ac_objext \ 12075 conftest$ac_exeext conftest.$ac_ext 12076LIBS=$ac_check_lib_save_LIBS 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12079$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12080if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12082else 12083 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12084if test "x$ac_cv_func_dlopen" = xyes; then : 12085 lt_cv_dlopen="dlopen" 12086else 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12088$as_echo_n "checking for dlopen in -ldl... " >&6; } 12089if ${ac_cv_lib_dl_dlopen+:} false; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 ac_check_lib_save_LIBS=$LIBS 12093LIBS="-ldl $LIBS" 12094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096 12097/* Override any GCC internal prototype to avoid an error. 12098 Use char because int might match the return type of a GCC 12099 builtin and then its argument prototype would still apply. */ 12100#ifdef __cplusplus 12101extern "C" 12102#endif 12103char dlopen (); 12104int 12105main () 12106{ 12107return dlopen (); 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112if ac_fn_c_try_link "$LINENO"; then : 12113 ac_cv_lib_dl_dlopen=yes 12114else 12115 ac_cv_lib_dl_dlopen=no 12116fi 12117rm -f core conftest.err conftest.$ac_objext \ 12118 conftest$ac_exeext conftest.$ac_ext 12119LIBS=$ac_check_lib_save_LIBS 12120fi 12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12122$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12123if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12125else 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12127$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12128if ${ac_cv_lib_svld_dlopen+:} false; then : 12129 $as_echo_n "(cached) " >&6 12130else 12131 ac_check_lib_save_LIBS=$LIBS 12132LIBS="-lsvld $LIBS" 12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135 12136/* Override any GCC internal prototype to avoid an error. 12137 Use char because int might match the return type of a GCC 12138 builtin and then its argument prototype would still apply. */ 12139#ifdef __cplusplus 12140extern "C" 12141#endif 12142char dlopen (); 12143int 12144main () 12145{ 12146return dlopen (); 12147 ; 12148 return 0; 12149} 12150_ACEOF 12151if ac_fn_c_try_link "$LINENO"; then : 12152 ac_cv_lib_svld_dlopen=yes 12153else 12154 ac_cv_lib_svld_dlopen=no 12155fi 12156rm -f core conftest.err conftest.$ac_objext \ 12157 conftest$ac_exeext conftest.$ac_ext 12158LIBS=$ac_check_lib_save_LIBS 12159fi 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12161$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12162if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12164else 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12166$as_echo_n "checking for dld_link in -ldld... " >&6; } 12167if ${ac_cv_lib_dld_dld_link+:} false; then : 12168 $as_echo_n "(cached) " >&6 12169else 12170 ac_check_lib_save_LIBS=$LIBS 12171LIBS="-ldld $LIBS" 12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173/* end confdefs.h. */ 12174 12175/* Override any GCC internal prototype to avoid an error. 12176 Use char because int might match the return type of a GCC 12177 builtin and then its argument prototype would still apply. */ 12178#ifdef __cplusplus 12179extern "C" 12180#endif 12181char dld_link (); 12182int 12183main () 12184{ 12185return dld_link (); 12186 ; 12187 return 0; 12188} 12189_ACEOF 12190if ac_fn_c_try_link "$LINENO"; then : 12191 ac_cv_lib_dld_dld_link=yes 12192else 12193 ac_cv_lib_dld_dld_link=no 12194fi 12195rm -f core conftest.err conftest.$ac_objext \ 12196 conftest$ac_exeext conftest.$ac_ext 12197LIBS=$ac_check_lib_save_LIBS 12198fi 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12200$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12201if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12202 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12203fi 12204 12205 12206fi 12207 12208 12209fi 12210 12211 12212fi 12213 12214 12215fi 12216 12217 12218fi 12219 12220 ;; 12221 esac 12222 12223 if test "x$lt_cv_dlopen" != xno; then 12224 enable_dlopen=yes 12225 else 12226 enable_dlopen=no 12227 fi 12228 12229 case $lt_cv_dlopen in 12230 dlopen) 12231 save_CPPFLAGS="$CPPFLAGS" 12232 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12233 12234 save_LDFLAGS="$LDFLAGS" 12235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12236 12237 save_LIBS="$LIBS" 12238 LIBS="$lt_cv_dlopen_libs $LIBS" 12239 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12241$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12242if ${lt_cv_dlopen_self+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 if test "$cross_compiling" = yes; then : 12246 lt_cv_dlopen_self=cross 12247else 12248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12249 lt_status=$lt_dlunknown 12250 cat > conftest.$ac_ext <<_LT_EOF 12251#line $LINENO "configure" 12252#include "confdefs.h" 12253 12254#if HAVE_DLFCN_H 12255#include <dlfcn.h> 12256#endif 12257 12258#include <stdio.h> 12259 12260#ifdef RTLD_GLOBAL 12261# define LT_DLGLOBAL RTLD_GLOBAL 12262#else 12263# ifdef DL_GLOBAL 12264# define LT_DLGLOBAL DL_GLOBAL 12265# else 12266# define LT_DLGLOBAL 0 12267# endif 12268#endif 12269 12270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12271 find out it does not work in some platform. */ 12272#ifndef LT_DLLAZY_OR_NOW 12273# ifdef RTLD_LAZY 12274# define LT_DLLAZY_OR_NOW RTLD_LAZY 12275# else 12276# ifdef DL_LAZY 12277# define LT_DLLAZY_OR_NOW DL_LAZY 12278# else 12279# ifdef RTLD_NOW 12280# define LT_DLLAZY_OR_NOW RTLD_NOW 12281# else 12282# ifdef DL_NOW 12283# define LT_DLLAZY_OR_NOW DL_NOW 12284# else 12285# define LT_DLLAZY_OR_NOW 0 12286# endif 12287# endif 12288# endif 12289# endif 12290#endif 12291 12292/* When -fvisbility=hidden is used, assume the code has been annotated 12293 correspondingly for the symbols needed. */ 12294#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12295int fnord () __attribute__((visibility("default"))); 12296#endif 12297 12298int fnord () { return 42; } 12299int main () 12300{ 12301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12302 int status = $lt_dlunknown; 12303 12304 if (self) 12305 { 12306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12307 else 12308 { 12309 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12310 else puts (dlerror ()); 12311 } 12312 /* dlclose (self); */ 12313 } 12314 else 12315 puts (dlerror ()); 12316 12317 return status; 12318} 12319_LT_EOF 12320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12321 (eval $ac_link) 2>&5 12322 ac_status=$? 12323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12324 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12325 (./conftest; exit; ) >&5 2>/dev/null 12326 lt_status=$? 12327 case x$lt_status in 12328 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12329 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12330 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12331 esac 12332 else : 12333 # compilation failed 12334 lt_cv_dlopen_self=no 12335 fi 12336fi 12337rm -fr conftest* 12338 12339 12340fi 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12342$as_echo "$lt_cv_dlopen_self" >&6; } 12343 12344 if test "x$lt_cv_dlopen_self" = xyes; then 12345 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12347$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12348if ${lt_cv_dlopen_self_static+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 if test "$cross_compiling" = yes; then : 12352 lt_cv_dlopen_self_static=cross 12353else 12354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12355 lt_status=$lt_dlunknown 12356 cat > conftest.$ac_ext <<_LT_EOF 12357#line $LINENO "configure" 12358#include "confdefs.h" 12359 12360#if HAVE_DLFCN_H 12361#include <dlfcn.h> 12362#endif 12363 12364#include <stdio.h> 12365 12366#ifdef RTLD_GLOBAL 12367# define LT_DLGLOBAL RTLD_GLOBAL 12368#else 12369# ifdef DL_GLOBAL 12370# define LT_DLGLOBAL DL_GLOBAL 12371# else 12372# define LT_DLGLOBAL 0 12373# endif 12374#endif 12375 12376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12377 find out it does not work in some platform. */ 12378#ifndef LT_DLLAZY_OR_NOW 12379# ifdef RTLD_LAZY 12380# define LT_DLLAZY_OR_NOW RTLD_LAZY 12381# else 12382# ifdef DL_LAZY 12383# define LT_DLLAZY_OR_NOW DL_LAZY 12384# else 12385# ifdef RTLD_NOW 12386# define LT_DLLAZY_OR_NOW RTLD_NOW 12387# else 12388# ifdef DL_NOW 12389# define LT_DLLAZY_OR_NOW DL_NOW 12390# else 12391# define LT_DLLAZY_OR_NOW 0 12392# endif 12393# endif 12394# endif 12395# endif 12396#endif 12397 12398/* When -fvisbility=hidden is used, assume the code has been annotated 12399 correspondingly for the symbols needed. */ 12400#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12401int fnord () __attribute__((visibility("default"))); 12402#endif 12403 12404int fnord () { return 42; } 12405int main () 12406{ 12407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12408 int status = $lt_dlunknown; 12409 12410 if (self) 12411 { 12412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12413 else 12414 { 12415 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12416 else puts (dlerror ()); 12417 } 12418 /* dlclose (self); */ 12419 } 12420 else 12421 puts (dlerror ()); 12422 12423 return status; 12424} 12425_LT_EOF 12426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12427 (eval $ac_link) 2>&5 12428 ac_status=$? 12429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12430 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12431 (./conftest; exit; ) >&5 2>/dev/null 12432 lt_status=$? 12433 case x$lt_status in 12434 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12435 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12436 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12437 esac 12438 else : 12439 # compilation failed 12440 lt_cv_dlopen_self_static=no 12441 fi 12442fi 12443rm -fr conftest* 12444 12445 12446fi 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12448$as_echo "$lt_cv_dlopen_self_static" >&6; } 12449 fi 12450 12451 CPPFLAGS="$save_CPPFLAGS" 12452 LDFLAGS="$save_LDFLAGS" 12453 LIBS="$save_LIBS" 12454 ;; 12455 esac 12456 12457 case $lt_cv_dlopen_self in 12458 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12459 *) enable_dlopen_self=unknown ;; 12460 esac 12461 12462 case $lt_cv_dlopen_self_static in 12463 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12464 *) enable_dlopen_self_static=unknown ;; 12465 esac 12466fi 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484striplib= 12485old_striplib= 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12487$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12488if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12489 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12490 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12492$as_echo "yes" >&6; } 12493else 12494# FIXME - insert some real tests, host_os isn't really good enough 12495 case $host_os in 12496 darwin*) 12497 if test -n "$STRIP" ; then 12498 striplib="$STRIP -x" 12499 old_striplib="$STRIP -S" 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12501$as_echo "yes" >&6; } 12502 else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12504$as_echo "no" >&6; } 12505 fi 12506 ;; 12507 *) 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12509$as_echo "no" >&6; } 12510 ;; 12511 esac 12512fi 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 # Report which library types will actually be built 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12527$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12529$as_echo "$can_build_shared" >&6; } 12530 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12532$as_echo_n "checking whether to build shared libraries... " >&6; } 12533 test "$can_build_shared" = "no" && enable_shared=no 12534 12535 # On AIX, shared libraries and static libraries use the same namespace, and 12536 # are all built from PIC. 12537 case $host_os in 12538 aix3*) 12539 test "$enable_shared" = yes && enable_static=no 12540 if test -n "$RANLIB"; then 12541 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12542 postinstall_cmds='$RANLIB $lib' 12543 fi 12544 ;; 12545 12546 aix[4-9]*) 12547 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12548 test "$enable_shared" = yes && enable_static=no 12549 fi 12550 ;; 12551 esac 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12553$as_echo "$enable_shared" >&6; } 12554 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12556$as_echo_n "checking whether to build static libraries... " >&6; } 12557 # Make sure either enable_shared or enable_static is yes. 12558 test "$enable_shared" = yes || enable_static=yes 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12560$as_echo "$enable_static" >&6; } 12561 12562 12563 12564 12565fi 12566ac_ext=c 12567ac_cpp='$CPP $CPPFLAGS' 12568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12570ac_compiler_gnu=$ac_cv_c_compiler_gnu 12571 12572CC="$lt_save_CC" 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 ac_config_commands="$ac_config_commands libtool" 12589 12590 12591 12592 12593# Only expand once: 12594 12595 12596 12597 12598LIBT_CURRENT=9 12599LIBT_REVISION=0 12600 12601 12602LIBT_AGE=8 12603 12604LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE" 12605 12606 12607LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE` 12608 12609 12610PKGCONFIG_REQUIRES= 12611PKGCONFIG_REQUIRES_PRIVATELY= 12612 12613 12614case "$host" in 12615 *-*-mingw*) 12616 os_win32=yes 12617 ;; 12618 *) 12619 os_win32=no 12620esac 12621 if test "$os_win32" = "yes"; then 12622 OS_WIN32_TRUE= 12623 OS_WIN32_FALSE='#' 12624else 12625 OS_WIN32_TRUE='#' 12626 OS_WIN32_FALSE= 12627fi 12628 12629 12630if test "$os_win32" = "yes"; then 12631 # Extract the first word of "lib.exe", so it can be a program name with args. 12632set dummy lib.exe; ac_word=$2 12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12634$as_echo_n "checking for $ac_word... " >&6; } 12635if ${ac_cv_prog_ms_librarian+:} false; then : 12636 $as_echo_n "(cached) " >&6 12637else 12638 if test -n "$ms_librarian"; then 12639 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test. 12640else 12641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12642for as_dir in $PATH 12643do 12644 IFS=$as_save_IFS 12645 test -z "$as_dir" && as_dir=. 12646 for ac_exec_ext in '' $ac_executable_extensions; do 12647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12648 ac_cv_prog_ms_librarian="yes" 12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12650 break 2 12651 fi 12652done 12653 done 12654IFS=$as_save_IFS 12655 12656 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no" 12657fi 12658fi 12659ms_librarian=$ac_cv_prog_ms_librarian 12660if test -n "$ms_librarian"; then 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5 12662$as_echo "$ms_librarian" >&6; } 12663else 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12665$as_echo "no" >&6; } 12666fi 12667 12668 12669fi 12670 if test x$ms_librarian = xyes; then 12671 MS_LIB_AVAILABLE_TRUE= 12672 MS_LIB_AVAILABLE_FALSE='#' 12673else 12674 MS_LIB_AVAILABLE_TRUE='#' 12675 MS_LIB_AVAILABLE_FALSE= 12676fi 12677 12678 12679WARN_CFLAGS="" 12680if test "x$GCC" = "xyes"; then 12681 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 12682 -Wmissing-prototypes -Wmissing-declarations \ 12683 -Wnested-externs -fno-strict-aliasing" 12684 12685cat >>confdefs.h <<_ACEOF 12686#define HAVE_WARNING_CPP_DIRECTIVE 1 12687_ACEOF 12688 12689fi 12690 12691 12692 12693 12694# Put a plausible default for CC_FOR_BUILD in Makefile. 12695if test -z "$CC_FOR_BUILD"; then 12696 if test "x$cross_compiling" = "xno"; then 12697 CC_FOR_BUILD='$(CC)' 12698 else 12699 CC_FOR_BUILD=gcc 12700 fi 12701fi 12702 12703# Also set EXEEXT_FOR_BUILD. 12704if test "x$cross_compiling" = "xno"; then 12705 EXEEXT_FOR_BUILD='$(EXEEXT)' 12706else 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 12708$as_echo_n "checking for build system executable suffix... " >&6; } 12709if ${bfd_cv_build_exeext+:} false; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 rm -f conftest* 12713 echo 'int main () { return 0; }' > conftest.c 12714 bfd_cv_build_exeext= 12715 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 12716 for file in conftest.*; do 12717 case $file in 12718 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 12719 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 12720 esac 12721 done 12722 rm -f conftest* 12723 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 12724fi 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 12726$as_echo "$bfd_cv_build_exeext" >&6; } 12727 EXEEXT_FOR_BUILD="" 12728 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 12729fi 12730 12731 12732 if test $cross_compiling = yes; then 12733 CROSS_COMPILING_TRUE= 12734 CROSS_COMPILING_FALSE='#' 12735else 12736 CROSS_COMPILING_TRUE='#' 12737 CROSS_COMPILING_FALSE= 12738fi 12739 12740 if test "$enable_shared" = "yes"; then 12741 ENABLE_SHARED_TRUE= 12742 ENABLE_SHARED_FALSE='#' 12743else 12744 ENABLE_SHARED_TRUE='#' 12745 ENABLE_SHARED_FALSE= 12746fi 12747 12748 12749 12750 12751# Check whether --with-arch was given. 12752if test "${with_arch+set}" = set; then : 12753 withval=$with_arch; arch="$withval" 12754else 12755 arch=auto 12756fi 12757 12758 12759if test "x$arch" != xauto; then 12760 12761cat >>confdefs.h <<_ACEOF 12762#define FC_ARCHITECTURE "$arch" 12763_ACEOF 12764 12765fi 12766 12767 12768 12769# Checks for header files. 12770ac_header_dirent=no 12771for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12772 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 12774$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 12775if eval \${$as_ac_Header+:} false; then : 12776 $as_echo_n "(cached) " >&6 12777else 12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779/* end confdefs.h. */ 12780#include <sys/types.h> 12781#include <$ac_hdr> 12782 12783int 12784main () 12785{ 12786if ((DIR *) 0) 12787return 0; 12788 ; 12789 return 0; 12790} 12791_ACEOF 12792if ac_fn_c_try_compile "$LINENO"; then : 12793 eval "$as_ac_Header=yes" 12794else 12795 eval "$as_ac_Header=no" 12796fi 12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12798fi 12799eval ac_res=\$$as_ac_Header 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12801$as_echo "$ac_res" >&6; } 12802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12803 cat >>confdefs.h <<_ACEOF 12804#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12805_ACEOF 12806 12807ac_header_dirent=$ac_hdr; break 12808fi 12809 12810done 12811# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12812if test $ac_header_dirent = dirent.h; then 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12814$as_echo_n "checking for library containing opendir... " >&6; } 12815if ${ac_cv_search_opendir+:} false; then : 12816 $as_echo_n "(cached) " >&6 12817else 12818 ac_func_search_save_LIBS=$LIBS 12819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12820/* end confdefs.h. */ 12821 12822/* Override any GCC internal prototype to avoid an error. 12823 Use char because int might match the return type of a GCC 12824 builtin and then its argument prototype would still apply. */ 12825#ifdef __cplusplus 12826extern "C" 12827#endif 12828char opendir (); 12829int 12830main () 12831{ 12832return opendir (); 12833 ; 12834 return 0; 12835} 12836_ACEOF 12837for ac_lib in '' dir; do 12838 if test -z "$ac_lib"; then 12839 ac_res="none required" 12840 else 12841 ac_res=-l$ac_lib 12842 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12843 fi 12844 if ac_fn_c_try_link "$LINENO"; then : 12845 ac_cv_search_opendir=$ac_res 12846fi 12847rm -f core conftest.err conftest.$ac_objext \ 12848 conftest$ac_exeext 12849 if ${ac_cv_search_opendir+:} false; then : 12850 break 12851fi 12852done 12853if ${ac_cv_search_opendir+:} false; then : 12854 12855else 12856 ac_cv_search_opendir=no 12857fi 12858rm conftest.$ac_ext 12859LIBS=$ac_func_search_save_LIBS 12860fi 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12862$as_echo "$ac_cv_search_opendir" >&6; } 12863ac_res=$ac_cv_search_opendir 12864if test "$ac_res" != no; then : 12865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12866 12867fi 12868 12869else 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12871$as_echo_n "checking for library containing opendir... " >&6; } 12872if ${ac_cv_search_opendir+:} false; then : 12873 $as_echo_n "(cached) " >&6 12874else 12875 ac_func_search_save_LIBS=$LIBS 12876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12877/* end confdefs.h. */ 12878 12879/* Override any GCC internal prototype to avoid an error. 12880 Use char because int might match the return type of a GCC 12881 builtin and then its argument prototype would still apply. */ 12882#ifdef __cplusplus 12883extern "C" 12884#endif 12885char opendir (); 12886int 12887main () 12888{ 12889return opendir (); 12890 ; 12891 return 0; 12892} 12893_ACEOF 12894for ac_lib in '' x; do 12895 if test -z "$ac_lib"; then 12896 ac_res="none required" 12897 else 12898 ac_res=-l$ac_lib 12899 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12900 fi 12901 if ac_fn_c_try_link "$LINENO"; then : 12902 ac_cv_search_opendir=$ac_res 12903fi 12904rm -f core conftest.err conftest.$ac_objext \ 12905 conftest$ac_exeext 12906 if ${ac_cv_search_opendir+:} false; then : 12907 break 12908fi 12909done 12910if ${ac_cv_search_opendir+:} false; then : 12911 12912else 12913 ac_cv_search_opendir=no 12914fi 12915rm conftest.$ac_ext 12916LIBS=$ac_func_search_save_LIBS 12917fi 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12919$as_echo "$ac_cv_search_opendir" >&6; } 12920ac_res=$ac_cv_search_opendir 12921if test "$ac_res" != no; then : 12922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12923 12924fi 12925 12926fi 12927 12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12929$as_echo_n "checking for ANSI C header files... " >&6; } 12930if ${ac_cv_header_stdc+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934/* end confdefs.h. */ 12935#include <stdlib.h> 12936#include <stdarg.h> 12937#include <string.h> 12938#include <float.h> 12939 12940int 12941main () 12942{ 12943 12944 ; 12945 return 0; 12946} 12947_ACEOF 12948if ac_fn_c_try_compile "$LINENO"; then : 12949 ac_cv_header_stdc=yes 12950else 12951 ac_cv_header_stdc=no 12952fi 12953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12954 12955if test $ac_cv_header_stdc = yes; then 12956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12958/* end confdefs.h. */ 12959#include <string.h> 12960 12961_ACEOF 12962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12963 $EGREP "memchr" >/dev/null 2>&1; then : 12964 12965else 12966 ac_cv_header_stdc=no 12967fi 12968rm -f conftest* 12969 12970fi 12971 12972if test $ac_cv_header_stdc = yes; then 12973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12975/* end confdefs.h. */ 12976#include <stdlib.h> 12977 12978_ACEOF 12979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12980 $EGREP "free" >/dev/null 2>&1; then : 12981 12982else 12983 ac_cv_header_stdc=no 12984fi 12985rm -f conftest* 12986 12987fi 12988 12989if test $ac_cv_header_stdc = yes; then 12990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12991 if test "$cross_compiling" = yes; then : 12992 : 12993else 12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12995/* end confdefs.h. */ 12996#include <ctype.h> 12997#include <stdlib.h> 12998#if ((' ' & 0x0FF) == 0x020) 12999# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13000# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13001#else 13002# define ISLOWER(c) \ 13003 (('a' <= (c) && (c) <= 'i') \ 13004 || ('j' <= (c) && (c) <= 'r') \ 13005 || ('s' <= (c) && (c) <= 'z')) 13006# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13007#endif 13008 13009#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13010int 13011main () 13012{ 13013 int i; 13014 for (i = 0; i < 256; i++) 13015 if (XOR (islower (i), ISLOWER (i)) 13016 || toupper (i) != TOUPPER (i)) 13017 return 2; 13018 return 0; 13019} 13020_ACEOF 13021if ac_fn_c_try_run "$LINENO"; then : 13022 13023else 13024 ac_cv_header_stdc=no 13025fi 13026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13027 conftest.$ac_objext conftest.beam conftest.$ac_ext 13028fi 13029 13030fi 13031fi 13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13033$as_echo "$ac_cv_header_stdc" >&6; } 13034if test $ac_cv_header_stdc = yes; then 13035 13036$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13037 13038fi 13039 13040for ac_header in fcntl.h regex.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h 13041do : 13042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13043ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13044if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13045 cat >>confdefs.h <<_ACEOF 13046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13047_ACEOF 13048 13049fi 13050 13051done 13052 13053# ------ AX CREATE STDINT H ------------------------------------- 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 13055$as_echo_n "checking for stdint types... " >&6; } 13056ac_stdint_h=`echo src/fcstdint.h` 13057# try to shortcircuit - if the default include path of the compiler 13058# can find a "stdint.h" header then we assume that all compilers can. 13059if ${ac_cv_header_stdint_t+:} false; then : 13060 $as_echo_n "(cached) " >&6 13061else 13062 13063old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 13064old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 13065old_CFLAGS="$CFLAGS" ; CFLAGS="" 13066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068#include <stdint.h> 13069int 13070main () 13071{ 13072int_least32_t v = 0; 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077if ac_fn_c_try_compile "$LINENO"; then : 13078 ac_cv_stdint_result="(assuming C99 compatible system)" 13079 ac_cv_header_stdint_t="stdint.h"; 13080else 13081 ac_cv_header_stdint_t="" 13082fi 13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13084if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then 13085CFLAGS="-std=c99" 13086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13087/* end confdefs.h. */ 13088#include <stdint.h> 13089int 13090main () 13091{ 13092int_least32_t v = 0; 13093 ; 13094 return 0; 13095} 13096_ACEOF 13097if ac_fn_c_try_compile "$LINENO"; then : 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 13099$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} 13100fi 13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13102fi 13103CXXFLAGS="$old_CXXFLAGS" 13104CPPFLAGS="$old_CPPFLAGS" 13105CFLAGS="$old_CFLAGS" 13106fi 13107 13108 13109v="... $ac_cv_header_stdint_h" 13110if test "$ac_stdint_h" = "stdint.h" ; then 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 13112$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } 13113elif test "$ac_stdint_h" = "inttypes.h" ; then 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 13115$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } 13116elif test "_$ac_cv_header_stdint_t" = "_" ; then 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 13118$as_echo "(putting them into $ac_stdint_h)$v" >&6; } 13119else 13120 ac_cv_header_stdint="$ac_cv_header_stdint_t" 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 13122$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } 13123fi 13124 13125if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. 13126 13127 13128inttype_headers=`echo | sed -e 's/,/ /g'` 13129 13130ac_cv_stdint_result="(no helpful system typedefs seen)" 13131 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 13133$as_echo_n "checking for stdint uintptr_t... " >&6; } 13134if ${ac_cv_header_stdint_x+:} false; then : 13135 $as_echo_n "(cached) " >&6 13136else 13137 13138 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13140$as_echo "(..)" >&6; } 13141 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers 13142 do 13143 unset ac_cv_type_uintptr_t 13144 unset ac_cv_type_uint64_t 13145 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> 13146" 13147if test "x$ac_cv_type_uintptr_t" = xyes; then : 13148 ac_cv_header_stdint_x=$i 13149else 13150 continue 13151fi 13152 13153 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 13154" 13155if test "x$ac_cv_type_uint64_t" = xyes; then : 13156 and64="/uint64_t" 13157else 13158 and64="" 13159fi 13160 13161 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 13162 break 13163 done 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 13165$as_echo_n "checking for stdint uintptr_t... " >&6; } 13166 13167fi 13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 13169$as_echo "$ac_cv_header_stdint_x" >&6; } 13170 13171 13172if test "_$ac_cv_header_stdint_x" = "_" ; then 13173 13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 13175$as_echo_n "checking for stdint uint32_t... " >&6; } 13176if ${ac_cv_header_stdint_o+:} false; then : 13177 $as_echo_n "(cached) " >&6 13178else 13179 13180 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13182$as_echo "(..)" >&6; } 13183 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers 13184 do 13185 unset ac_cv_type_uint32_t 13186 unset ac_cv_type_uint64_t 13187 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> 13188" 13189if test "x$ac_cv_type_uint32_t" = xyes; then : 13190 ac_cv_header_stdint_o=$i 13191else 13192 continue 13193fi 13194 13195 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 13196" 13197if test "x$ac_cv_type_uint64_t" = xyes; then : 13198 and64="/uint64_t" 13199else 13200 and64="" 13201fi 13202 13203 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 13204 break 13205 break; 13206 done 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 13208$as_echo_n "checking for stdint uint32_t... " >&6; } 13209 13210fi 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 13212$as_echo "$ac_cv_header_stdint_o" >&6; } 13213 13214fi 13215 13216if test "_$ac_cv_header_stdint_x" = "_" ; then 13217if test "_$ac_cv_header_stdint_o" = "_" ; then 13218 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 13220$as_echo_n "checking for stdint u_int32_t... " >&6; } 13221if ${ac_cv_header_stdint_u+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 13225 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13227$as_echo "(..)" >&6; } 13228 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 13229 unset ac_cv_type_u_int32_t 13230 unset ac_cv_type_u_int64_t 13231 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> 13232" 13233if test "x$ac_cv_type_u_int32_t" = xyes; then : 13234 ac_cv_header_stdint_u=$i 13235else 13236 continue 13237fi 13238 13239 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> 13240" 13241if test "x$ac_cv_type_u_int64_t" = xyes; then : 13242 and64="/u_int64_t" 13243else 13244 and64="" 13245fi 13246 13247 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 13248 break 13249 break; 13250 done 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 13252$as_echo_n "checking for stdint u_int32_t... " >&6; } 13253 13254fi 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 13256$as_echo "$ac_cv_header_stdint_u" >&6; } 13257 13258fi fi 13259 13260if test "_$ac_cv_header_stdint_x" = "_" ; then 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 13262$as_echo_n "checking for stdint datatype model... " >&6; } 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13264$as_echo "(..)" >&6; } 13265 13266 # The cast to long int works around a bug in the HP C Compiler 13267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13269# This bug is HP SR number 8606223364. 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 13271$as_echo_n "checking size of char... " >&6; } 13272if ${ac_cv_sizeof_char+:} false; then : 13273 $as_echo_n "(cached) " >&6 13274else 13275 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 13276 13277else 13278 if test "$ac_cv_type_char" = yes; then 13279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13281as_fn_error 77 "cannot compute sizeof (char) 13282See \`config.log' for more details" "$LINENO" 5; } 13283 else 13284 ac_cv_sizeof_char=0 13285 fi 13286fi 13287 13288fi 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 13290$as_echo "$ac_cv_sizeof_char" >&6; } 13291 13292 13293 13294cat >>confdefs.h <<_ACEOF 13295#define SIZEOF_CHAR $ac_cv_sizeof_char 13296_ACEOF 13297 13298 13299 # The cast to long int works around a bug in the HP C Compiler 13300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13302# This bug is HP SR number 8606223364. 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 13304$as_echo_n "checking size of short... " >&6; } 13305if ${ac_cv_sizeof_short+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 13309 13310else 13311 if test "$ac_cv_type_short" = yes; then 13312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13314as_fn_error 77 "cannot compute sizeof (short) 13315See \`config.log' for more details" "$LINENO" 5; } 13316 else 13317 ac_cv_sizeof_short=0 13318 fi 13319fi 13320 13321fi 13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 13323$as_echo "$ac_cv_sizeof_short" >&6; } 13324 13325 13326 13327cat >>confdefs.h <<_ACEOF 13328#define SIZEOF_SHORT $ac_cv_sizeof_short 13329_ACEOF 13330 13331 13332 # The cast to long int works around a bug in the HP C Compiler 13333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13335# This bug is HP SR number 8606223364. 13336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13337$as_echo_n "checking size of int... " >&6; } 13338if ${ac_cv_sizeof_int+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13342 13343else 13344 if test "$ac_cv_type_int" = yes; then 13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13347as_fn_error 77 "cannot compute sizeof (int) 13348See \`config.log' for more details" "$LINENO" 5; } 13349 else 13350 ac_cv_sizeof_int=0 13351 fi 13352fi 13353 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13356$as_echo "$ac_cv_sizeof_int" >&6; } 13357 13358 13359 13360cat >>confdefs.h <<_ACEOF 13361#define SIZEOF_INT $ac_cv_sizeof_int 13362_ACEOF 13363 13364 13365 # The cast to long int works around a bug in the HP C Compiler 13366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13368# This bug is HP SR number 8606223364. 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13370$as_echo_n "checking size of long... " >&6; } 13371if ${ac_cv_sizeof_long+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13375 13376else 13377 if test "$ac_cv_type_long" = yes; then 13378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13380as_fn_error 77 "cannot compute sizeof (long) 13381See \`config.log' for more details" "$LINENO" 5; } 13382 else 13383 ac_cv_sizeof_long=0 13384 fi 13385fi 13386 13387fi 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13389$as_echo "$ac_cv_sizeof_long" >&6; } 13390 13391 13392 13393cat >>confdefs.h <<_ACEOF 13394#define SIZEOF_LONG $ac_cv_sizeof_long 13395_ACEOF 13396 13397 13398 # The cast to long int works around a bug in the HP C Compiler 13399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13401# This bug is HP SR number 8606223364. 13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 13403$as_echo_n "checking size of void*... " >&6; } 13404if ${ac_cv_sizeof_voidp+:} false; then : 13405 $as_echo_n "(cached) " >&6 13406else 13407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 13408 13409else 13410 if test "$ac_cv_type_voidp" = yes; then 13411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13413as_fn_error 77 "cannot compute sizeof (void*) 13414See \`config.log' for more details" "$LINENO" 5; } 13415 else 13416 ac_cv_sizeof_voidp=0 13417 fi 13418fi 13419 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 13422$as_echo "$ac_cv_sizeof_voidp" >&6; } 13423 13424 13425 13426cat >>confdefs.h <<_ACEOF 13427#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 13428_ACEOF 13429 13430 13431 ac_cv_char_data_model="" 13432 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" 13433 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" 13434 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" 13435 ac_cv_long_data_model="" 13436 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" 13437 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" 13438 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5 13440$as_echo_n "checking data model... " >&6; } 13441 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in 13442 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;; 13443 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;; 13444 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;; 13445 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; 13446 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;; 13447 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; 13448 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;; 13449 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; 13450 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;; 13451 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; 13452 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; 13453 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; 13454 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; 13455 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; 13456 222/*|333/*|444/*|666/*|888/*) : 13457 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;; 13458 *) ac_cv_data_model="none" ; n="very unusual model" ;; 13459 esac 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 13461$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } 13462 13463fi 13464 13465if test "_$ac_cv_header_stdint_x" != "_" ; then 13466 ac_cv_header_stdint="$ac_cv_header_stdint_x" 13467elif test "_$ac_cv_header_stdint_o" != "_" ; then 13468 ac_cv_header_stdint="$ac_cv_header_stdint_o" 13469elif test "_$ac_cv_header_stdint_u" != "_" ; then 13470 ac_cv_header_stdint="$ac_cv_header_stdint_u" 13471else 13472 ac_cv_header_stdint="stddef.h" 13473fi 13474 13475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 13476$as_echo_n "checking for extra inttypes in chosen header... " >&6; } 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 13478$as_echo "($ac_cv_header_stdint)" >&6; } 13479unset ac_cv_type_int_least32_t 13480unset ac_cv_type_int_fast32_t 13481ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> 13482" 13483if test "x$ac_cv_type_int_least32_t" = xyes; then : 13484 13485fi 13486 13487ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> 13488" 13489if test "x$ac_cv_type_int_fast32_t" = xyes; then : 13490 13491fi 13492 13493ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> 13494" 13495if test "x$ac_cv_type_intmax_t" = xyes; then : 13496 13497fi 13498 13499 13500fi # shortcircut to system "stdint.h" 13501# ------------------ PREPARE VARIABLES ------------------------------ 13502if test "$GCC" = "yes" ; then 13503ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 13504else 13505ac_cv_stdint_message="using $CC" 13506fi 13507 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 13509$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 13510 13511# ----------------- DONE inttypes.h checks START header ------------- 13512ac_config_commands="$ac_config_commands $ac_stdint_h" 13513 13514 13515 13516# Checks for typedefs, structures, and compiler characteristics. 13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13518$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13519if ${ac_cv_c_const+:} false; then : 13520 $as_echo_n "(cached) " >&6 13521else 13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13523/* end confdefs.h. */ 13524 13525int 13526main () 13527{ 13528 13529#ifndef __cplusplus 13530 /* Ultrix mips cc rejects this sort of thing. */ 13531 typedef int charset[2]; 13532 const charset cs = { 0, 0 }; 13533 /* SunOS 4.1.1 cc rejects this. */ 13534 char const *const *pcpcc; 13535 char **ppc; 13536 /* NEC SVR4.0.2 mips cc rejects this. */ 13537 struct point {int x, y;}; 13538 static struct point const zero = {0,0}; 13539 /* AIX XL C 1.02.0.0 rejects this. 13540 It does not let you subtract one const X* pointer from another in 13541 an arm of an if-expression whose if-part is not a constant 13542 expression */ 13543 const char *g = "string"; 13544 pcpcc = &g + (g ? g-g : 0); 13545 /* HPUX 7.0 cc rejects these. */ 13546 ++pcpcc; 13547 ppc = (char**) pcpcc; 13548 pcpcc = (char const *const *) ppc; 13549 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13550 char tx; 13551 char *t = &tx; 13552 char const *s = 0 ? (char *) 0 : (char const *) 0; 13553 13554 *t++ = 0; 13555 if (s) return 0; 13556 } 13557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13558 int x[] = {25, 17}; 13559 const int *foo = &x[0]; 13560 ++foo; 13561 } 13562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13563 typedef const int *iptr; 13564 iptr p = 0; 13565 ++p; 13566 } 13567 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13569 struct s { int j; const int *ap[3]; } bx; 13570 struct s *b = &bx; b->j = 5; 13571 } 13572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13573 const int foo = 10; 13574 if (!foo) return 0; 13575 } 13576 return !cs[0] && !zero.x; 13577#endif 13578 13579 ; 13580 return 0; 13581} 13582_ACEOF 13583if ac_fn_c_try_compile "$LINENO"; then : 13584 ac_cv_c_const=yes 13585else 13586 ac_cv_c_const=no 13587fi 13588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13589fi 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13591$as_echo "$ac_cv_c_const" >&6; } 13592if test $ac_cv_c_const = no; then 13593 13594$as_echo "#define const /**/" >>confdefs.h 13595 13596fi 13597 13598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13599$as_echo_n "checking for inline... " >&6; } 13600if ${ac_cv_c_inline+:} false; then : 13601 $as_echo_n "(cached) " >&6 13602else 13603 ac_cv_c_inline=no 13604for ac_kw in inline __inline__ __inline; do 13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13606/* end confdefs.h. */ 13607#ifndef __cplusplus 13608typedef int foo_t; 13609static $ac_kw foo_t static_foo () {return 0; } 13610$ac_kw foo_t foo () {return 0; } 13611#endif 13612 13613_ACEOF 13614if ac_fn_c_try_compile "$LINENO"; then : 13615 ac_cv_c_inline=$ac_kw 13616fi 13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13618 test "$ac_cv_c_inline" != no && break 13619done 13620 13621fi 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13623$as_echo "$ac_cv_c_inline" >&6; } 13624 13625case $ac_cv_c_inline in 13626 inline | yes) ;; 13627 *) 13628 case $ac_cv_c_inline in 13629 no) ac_val=;; 13630 *) ac_val=$ac_cv_c_inline;; 13631 esac 13632 cat >>confdefs.h <<_ACEOF 13633#ifndef __cplusplus 13634#define inline $ac_val 13635#endif 13636_ACEOF 13637 ;; 13638esac 13639 13640 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 13642$as_echo_n "checking for flexible array members... " >&6; } 13643if ${ac_cv_c_flexmember+:} false; then : 13644 $as_echo_n "(cached) " >&6 13645else 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648#include <stdlib.h> 13649 #include <stdio.h> 13650 #include <stddef.h> 13651 struct s { int n; double d[]; }; 13652int 13653main () 13654{ 13655int m = getchar (); 13656 struct s *p = malloc (offsetof (struct s, d) 13657 + m * sizeof (double)); 13658 p->d[0] = 0.0; 13659 return p->d != (double *) NULL; 13660 ; 13661 return 0; 13662} 13663_ACEOF 13664if ac_fn_c_try_compile "$LINENO"; then : 13665 ac_cv_c_flexmember=yes 13666else 13667 ac_cv_c_flexmember=no 13668fi 13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13670fi 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 13672$as_echo "$ac_cv_c_flexmember" >&6; } 13673 if test $ac_cv_c_flexmember = yes; then 13674 13675$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 13676 13677 else 13678 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 13679 13680 fi 13681 13682ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13683if test "x$ac_cv_type_pid_t" = xyes; then : 13684 13685else 13686 13687cat >>confdefs.h <<_ACEOF 13688#define pid_t int 13689_ACEOF 13690 13691fi 13692 13693 13694# Checks for library functions. 13695for ac_func in vprintf 13696do : 13697 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 13698if test "x$ac_cv_func_vprintf" = xyes; then : 13699 cat >>confdefs.h <<_ACEOF 13700#define HAVE_VPRINTF 1 13701_ACEOF 13702 13703ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 13704if test "x$ac_cv_func__doprnt" = xyes; then : 13705 13706$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 13707 13708fi 13709 13710fi 13711done 13712 13713 13714 13715 13716 13717 for ac_header in $ac_header_list 13718do : 13719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13720ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13721" 13722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13723 cat >>confdefs.h <<_ACEOF 13724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13725_ACEOF 13726 13727fi 13728 13729done 13730 13731 13732 13733 13734 13735 13736 13737 13738for ac_func in getpagesize 13739do : 13740 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13741if test "x$ac_cv_func_getpagesize" = xyes; then : 13742 cat >>confdefs.h <<_ACEOF 13743#define HAVE_GETPAGESIZE 1 13744_ACEOF 13745 13746fi 13747done 13748 13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13750$as_echo_n "checking for working mmap... " >&6; } 13751if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13752 $as_echo_n "(cached) " >&6 13753else 13754 if test "$cross_compiling" = yes; then : 13755 ac_cv_func_mmap_fixed_mapped=no 13756else 13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758/* end confdefs.h. */ 13759$ac_includes_default 13760/* malloc might have been renamed as rpl_malloc. */ 13761#undef malloc 13762 13763/* Thanks to Mike Haertel and Jim Avera for this test. 13764 Here is a matrix of mmap possibilities: 13765 mmap private not fixed 13766 mmap private fixed at somewhere currently unmapped 13767 mmap private fixed at somewhere already mapped 13768 mmap shared not fixed 13769 mmap shared fixed at somewhere currently unmapped 13770 mmap shared fixed at somewhere already mapped 13771 For private mappings, we should verify that changes cannot be read() 13772 back from the file, nor mmap's back from the file at a different 13773 address. (There have been systems where private was not correctly 13774 implemented like the infamous i386 svr4.0, and systems where the 13775 VM page cache was not coherent with the file system buffer cache 13776 like early versions of FreeBSD and possibly contemporary NetBSD.) 13777 For shared mappings, we should conversely verify that changes get 13778 propagated back to all the places they're supposed to be. 13779 13780 Grep wants private fixed already mapped. 13781 The main things grep needs to know about mmap are: 13782 * does it exist and is it safe to write into the mmap'd area 13783 * how to use it (BSD variants) */ 13784 13785#include <fcntl.h> 13786#include <sys/mman.h> 13787 13788#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13789char *malloc (); 13790#endif 13791 13792/* This mess was copied from the GNU getpagesize.h. */ 13793#ifndef HAVE_GETPAGESIZE 13794# ifdef _SC_PAGESIZE 13795# define getpagesize() sysconf(_SC_PAGESIZE) 13796# else /* no _SC_PAGESIZE */ 13797# ifdef HAVE_SYS_PARAM_H 13798# include <sys/param.h> 13799# ifdef EXEC_PAGESIZE 13800# define getpagesize() EXEC_PAGESIZE 13801# else /* no EXEC_PAGESIZE */ 13802# ifdef NBPG 13803# define getpagesize() NBPG * CLSIZE 13804# ifndef CLSIZE 13805# define CLSIZE 1 13806# endif /* no CLSIZE */ 13807# else /* no NBPG */ 13808# ifdef NBPC 13809# define getpagesize() NBPC 13810# else /* no NBPC */ 13811# ifdef PAGESIZE 13812# define getpagesize() PAGESIZE 13813# endif /* PAGESIZE */ 13814# endif /* no NBPC */ 13815# endif /* no NBPG */ 13816# endif /* no EXEC_PAGESIZE */ 13817# else /* no HAVE_SYS_PARAM_H */ 13818# define getpagesize() 8192 /* punt totally */ 13819# endif /* no HAVE_SYS_PARAM_H */ 13820# endif /* no _SC_PAGESIZE */ 13821 13822#endif /* no HAVE_GETPAGESIZE */ 13823 13824int 13825main () 13826{ 13827 char *data, *data2, *data3; 13828 const char *cdata2; 13829 int i, pagesize; 13830 int fd, fd2; 13831 13832 pagesize = getpagesize (); 13833 13834 /* First, make a file with some known garbage in it. */ 13835 data = (char *) malloc (pagesize); 13836 if (!data) 13837 return 1; 13838 for (i = 0; i < pagesize; ++i) 13839 *(data + i) = rand (); 13840 umask (0); 13841 fd = creat ("conftest.mmap", 0600); 13842 if (fd < 0) 13843 return 2; 13844 if (write (fd, data, pagesize) != pagesize) 13845 return 3; 13846 close (fd); 13847 13848 /* Next, check that the tail of a page is zero-filled. File must have 13849 non-zero length, otherwise we risk SIGBUS for entire page. */ 13850 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13851 if (fd2 < 0) 13852 return 4; 13853 cdata2 = ""; 13854 if (write (fd2, cdata2, 1) != 1) 13855 return 5; 13856 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13857 if (data2 == MAP_FAILED) 13858 return 6; 13859 for (i = 0; i < pagesize; ++i) 13860 if (*(data2 + i)) 13861 return 7; 13862 close (fd2); 13863 if (munmap (data2, pagesize)) 13864 return 8; 13865 13866 /* Next, try to mmap the file at a fixed address which already has 13867 something else allocated at it. If we can, also make sure that 13868 we see the same garbage. */ 13869 fd = open ("conftest.mmap", O_RDWR); 13870 if (fd < 0) 13871 return 9; 13872 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13873 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13874 return 10; 13875 for (i = 0; i < pagesize; ++i) 13876 if (*(data + i) != *(data2 + i)) 13877 return 11; 13878 13879 /* Finally, make sure that changes to the mapped area do not 13880 percolate back to the file as seen by read(). (This is a bug on 13881 some variants of i386 svr4.0.) */ 13882 for (i = 0; i < pagesize; ++i) 13883 *(data2 + i) = *(data2 + i) + 1; 13884 data3 = (char *) malloc (pagesize); 13885 if (!data3) 13886 return 12; 13887 if (read (fd, data3, pagesize) != pagesize) 13888 return 13; 13889 for (i = 0; i < pagesize; ++i) 13890 if (*(data + i) != *(data3 + i)) 13891 return 14; 13892 close (fd); 13893 return 0; 13894} 13895_ACEOF 13896if ac_fn_c_try_run "$LINENO"; then : 13897 ac_cv_func_mmap_fixed_mapped=yes 13898else 13899 ac_cv_func_mmap_fixed_mapped=no 13900fi 13901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13902 conftest.$ac_objext conftest.beam conftest.$ac_ext 13903fi 13904 13905fi 13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13907$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13908if test $ac_cv_func_mmap_fixed_mapped = yes; then 13909 13910$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13911 13912fi 13913rm -f conftest.mmap conftest.txt 13914 13915for ac_func in link mkstemp mkostemp _mktemp_s mkdtemp getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r readlink regcomp regerror regexec regfree fstatvfs fstatfs lstat 13916do : 13917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13918ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13919if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13920 cat >>confdefs.h <<_ACEOF 13921#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13922_ACEOF 13923 13924fi 13925done 13926 13927 13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5 13929$as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; } 13930if ${ac_cv_func_posix_fadvise+:} false; then : 13931 $as_echo_n "(cached) " >&6 13932else 13933 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]" 13934ac_found=no 13935for ac_header in fcntl.h ; do 13936 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' ` 13937 if test $ac_found != "yes" ; then 13938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13940/* end confdefs.h. */ 13941#include <$ac_header> 13942 13943_ACEOF 13944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13945 $EGREP "$symbol" >/dev/null 2>&1; then : 13946 ac_found="$ac_header" 13947fi 13948rm -f conftest* 13949 13950 fi 13951 fi 13952done 13953if test "$ac_found" != "no" ; then 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5 13955$as_echo "$ac_found" >&6; } 13956 fc_func_posix_fadvise=1 13957else 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13959$as_echo "no" >&6; } 13960 fc_func_posix_fadvise=0 13961fi 13962 13963fi 13964 13965 13966cat >>confdefs.h <<_ACEOF 13967#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise 13968_ACEOF 13969 13970if test "$os_win32" = "no"; then 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scandir" >&5 13972$as_echo_n "checking for scandir... " >&6; } 13973 fc_saved_CFLAGS="$CFLAGS" 13974 CFLAGS="$CFLAGS $WARN_CFLAGS -Werror" 13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13976/* end confdefs.h. */ 13977 13978 #include <dirent.h> 13979 int main(void); 13980 13981int 13982main () 13983{ 13984 13985 int (* comp) (const struct dirent **, const struct dirent **) = 0; 13986 struct dirent **d; 13987 return scandir(".", &d, 0, comp) >= 0; 13988 13989 ; 13990 return 0; 13991} 13992_ACEOF 13993if ac_fn_c_try_compile "$LINENO"; then : 13994 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13996$as_echo "yes" >&6; } 13997 13998$as_echo "#define HAVE_SCANDIR 1" >>confdefs.h 13999 14000 14001else 14002 14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14004/* end confdefs.h. */ 14005 14006 #include <dirent.h> 14007 int main(void); 14008 14009int 14010main () 14011{ 14012 14013 int (* comp) (const void *, const void *) = 0; 14014 struct dirent **d; 14015 return scandir(".", &d, 0, comp) >= 0; 14016 14017 ; 14018 return 0; 14019} 14020_ACEOF 14021if ac_fn_c_try_compile "$LINENO"; then : 14022 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14024$as_echo "yes" >&6; } 14025 14026$as_echo "#define HAVE_SCANDIR_VOID_P 1" >>confdefs.h 14027 14028 14029else 14030 14031 as_fn_error $? " 14032*** No scandir function available." "$LINENO" 5 14033 14034fi 14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14036 14037fi 14038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14039fi 14040CFLAGS="$fc_saved_CFLAGS" 14041 14042# 14043if test "x$ac_cv_func_fstatvfs" = "xyes"; then 14044 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h> 14045" 14046if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then : 14047 14048cat >>confdefs.h <<_ACEOF 14049#define HAVE_STRUCT_STATVFS_F_BASETYPE 1 14050_ACEOF 14051 14052 14053fi 14054ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h> 14055" 14056if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then : 14057 14058cat >>confdefs.h <<_ACEOF 14059#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1 14060_ACEOF 14061 14062 14063fi 14064 14065fi 14066if test "x$ac_cv_func_fstatfs" = "xyes"; then 14067 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " 14068#ifdef HAVE_SYS_VFS_H 14069#include <sys/vfs.h> 14070#endif 14071#ifdef HAVE_SYS_STATFS_H 14072#include <sys/statfs.h> 14073#endif 14074#ifdef HAVE_SYS_PARAM_H 14075#include <sys/param.h> 14076#endif 14077#ifdef HAVE_SYS_MOUNT_H 14078#include <sys/mount.h> 14079#endif 14080" 14081if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : 14082 14083cat >>confdefs.h <<_ACEOF 14084#define HAVE_STRUCT_STATFS_F_FLAGS 1 14085_ACEOF 14086 14087 14088fi 14089ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " 14090#ifdef HAVE_SYS_VFS_H 14091#include <sys/vfs.h> 14092#endif 14093#ifdef HAVE_SYS_STATFS_H 14094#include <sys/statfs.h> 14095#endif 14096#ifdef HAVE_SYS_PARAM_H 14097#include <sys/param.h> 14098#endif 14099#ifdef HAVE_SYS_MOUNT_H 14100#include <sys/mount.h> 14101#endif 14102" 14103if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : 14104 14105cat >>confdefs.h <<_ACEOF 14106#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 14107_ACEOF 14108 14109 14110fi 14111 14112fi 14113ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h> 14114" 14115if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : 14116 14117cat >>confdefs.h <<_ACEOF 14118#define HAVE_STRUCT_DIRENT_D_TYPE 1 14119_ACEOF 14120 14121 14122fi 14123 14124# 14125# regex 14126# 14127if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then 14128 14129$as_echo "#define USE_REGEX /**/" >>confdefs.h 14130 14131fi 14132 14133# 14134# Checks for iconv 14135# 14136# Check whether --enable-iconv was given. 14137if test "${enable_iconv+set}" = set; then : 14138 enableval=$enable_iconv; 14139else 14140 enable_iconv=no 14141fi 14142 14143 14144# Check whether --with-libiconv was given. 14145if test "${with_libiconv+set}" = set; then : 14146 withval=$with_libiconv; if test "x$withval" = "xyes"; then 14147 libiconv_prefix=$prefix 14148 else 14149 libiconv_prefix=$withval 14150 fi 14151else 14152 libiconv_prefix=auto 14153fi 14154 14155 14156# Check whether --with-libiconv-includes was given. 14157if test "${with_libiconv_includes+set}" = set; then : 14158 withval=$with_libiconv_includes; libiconv_includes=$withval 14159else 14160 libiconv_includes=auto 14161fi 14162 14163 14164# Check whether --with-libiconv-lib was given. 14165if test "${with_libiconv_lib+set}" = set; then : 14166 withval=$with_libiconv_lib; libiconv_lib=$withval 14167else 14168 libiconv_lib=auto 14169fi 14170 14171 14172# if no libiconv,libiconv-includes,libiconv-lib are specified, 14173# libc's iconv has a priority. 14174if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then 14175 libiconv_cflags="-I${libiconv_includes}" 14176elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then 14177 libiconv_cflags="-I${libiconv_prefix}/include" 14178else 14179 libiconv_cflags="" 14180fi 14181libiconv_libs="" 14182if test "x$libiconv_cflags" != "x"; then 14183 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then 14184 libiconv_libs="-L${libiconv_lib} -liconv" 14185 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then 14186 libiconv_libs="-L${libiconv_prefix}/lib -liconv" 14187 else 14188 libiconv_libs="-liconv" 14189 fi 14190fi 14191 14192use_iconv=0 14193if test "x$enable_iconv" != "xno"; then 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5 14195$as_echo_n "checking for a usable iconv... " >&6; } 14196 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then 14197 iconvsaved_CFLAGS="$CFLAGS" 14198 iconvsaved_LIBS="$LIBS" 14199 CFLAGS="$CFLAGS $libiconv_cflags" 14200 LIBS="$LIBS $libiconv_libs" 14201 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204#include <iconv.h> 14205int 14206main () 14207{ 14208iconv_open ("from", "to"); 14209 ; 14210 return 0; 14211} 14212_ACEOF 14213if ac_fn_c_try_link "$LINENO"; then : 14214 iconv_type="libiconv" 14215 use_iconv=1 14216 ICONV_CFLAGS="$libiconv_cflags" 14217 ICONV_LIBS="$libiconv_libs" 14218 14219else 14220 use_iconv=0 14221fi 14222rm -f core conftest.err conftest.$ac_objext \ 14223 conftest$ac_exeext conftest.$ac_ext 14224 14225 CFLAGS="$iconvsaved_CFLAGS" 14226 LIBS="$iconvsaved_LIBS" 14227 fi 14228 if test "x$use_iconv" = "x0"; then 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231#include <iconv.h> 14232int 14233main () 14234{ 14235iconv_open ("from", "to"); 14236 ; 14237 return 0; 14238} 14239_ACEOF 14240if ac_fn_c_try_link "$LINENO"; then : 14241 iconv_type="libc" 14242 use_iconv=1 14243else 14244 iconv_type="not found" 14245 use_iconv=0 14246fi 14247rm -f core conftest.err conftest.$ac_objext \ 14248 conftest$ac_exeext conftest.$ac_ext 14249 fi 14250 14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5 14252$as_echo "$iconv_type" >&6; } 14253 14254 14255fi 14256 14257cat >>confdefs.h <<_ACEOF 14258#define USE_ICONV $use_iconv 14259_ACEOF 14260 14261# 14262# Checks for FreeType 14263# 14264 14265pkg_failed=no 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 14267$as_echo_n "checking for FREETYPE... " >&6; } 14268 14269if test -n "$FREETYPE_CFLAGS"; then 14270 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 14271 elif test -n "$PKG_CONFIG"; then 14272 if test -n "$PKG_CONFIG" && \ 14273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 14274 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 14275 ac_status=$? 14276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14277 test $ac_status = 0; }; then 14278 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 14279 test "x$?" != "x0" && pkg_failed=yes 14280else 14281 pkg_failed=yes 14282fi 14283 else 14284 pkg_failed=untried 14285fi 14286if test -n "$FREETYPE_LIBS"; then 14287 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 14288 elif test -n "$PKG_CONFIG"; then 14289 if test -n "$PKG_CONFIG" && \ 14290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 14291 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 14292 ac_status=$? 14293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14294 test $ac_status = 0; }; then 14295 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 14296 test "x$?" != "x0" && pkg_failed=yes 14297else 14298 pkg_failed=yes 14299fi 14300 else 14301 pkg_failed=untried 14302fi 14303 14304 14305 14306if test $pkg_failed = yes; then 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14308$as_echo "no" >&6; } 14309 14310if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14311 _pkg_short_errors_supported=yes 14312else 14313 _pkg_short_errors_supported=no 14314fi 14315 if test $_pkg_short_errors_supported = yes; then 14316 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 14317 else 14318 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 14319 fi 14320 # Put the nasty error message in config.log where it belongs 14321 echo "$FREETYPE_PKG_ERRORS" >&5 14322 14323 as_fn_error $? "Package requirements (freetype2) were not met: 14324 14325$FREETYPE_PKG_ERRORS 14326 14327Consider adjusting the PKG_CONFIG_PATH environment variable if you 14328installed software in a non-standard prefix. 14329 14330Alternatively, you may set the environment variables FREETYPE_CFLAGS 14331and FREETYPE_LIBS to avoid the need to call pkg-config. 14332See the pkg-config man page for more details." "$LINENO" 5 14333elif test $pkg_failed = untried; then 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14335$as_echo "no" >&6; } 14336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14338as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14339is in your PATH or set the PKG_CONFIG environment variable to the full 14340path to pkg-config. 14341 14342Alternatively, you may set the environment variables FREETYPE_CFLAGS 14343and FREETYPE_LIBS to avoid the need to call pkg-config. 14344See the pkg-config man page for more details. 14345 14346To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14347See \`config.log' for more details" "$LINENO" 5; } 14348else 14349 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 14350 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14352$as_echo "yes" >&6; } 14353 14354fi 14355PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2" 14356 14357 14358 14359 14360fontconfig_save_libs="$LIBS" 14361fontconfig_save_cflags="$CFLAGS" 14362LIBS="$LIBS $FREETYPE_LIBS" 14363CFLAGS="$CFLAGS $FREETYPE_CFLAGS" 14364for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size 14365do : 14366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14367ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14368if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14369 cat >>confdefs.h <<_ACEOF 14370#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14371_ACEOF 14372 14373fi 14374done 14375 14376ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h> 14377#include FT_FREETYPE_H 14378" 14379if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then : 14380 HAVE_FT_BITMAP_SIZE_Y_PPEM=1 14381else 14382 HAVE_FT_BITMAP_SIZE_Y_PPEM=0 14383fi 14384 14385 14386cat >>confdefs.h <<_ACEOF 14387#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM 14388_ACEOF 14389 14390CFLAGS="$fontconfig_save_cflags" 14391LIBS="$fontconfig_save_libs" 14392 14393# 14394# Check expat configuration 14395# 14396 14397# Check whether --with-expat was given. 14398if test "${with_expat+set}" = set; then : 14399 withval=$with_expat; expat_prefix=$withval 14400else 14401 expat_prefix=auto 14402fi 14403 14404 14405# Check whether --with-expat-includes was given. 14406if test "${with_expat_includes+set}" = set; then : 14407 withval=$with_expat_includes; expat_includes=$withval 14408else 14409 expat_includes=auto 14410fi 14411 14412 14413# Check whether --with-expat-lib was given. 14414if test "${with_expat_lib+set}" = set; then : 14415 withval=$with_expat_lib; expat_lib=$withval 14416else 14417 expat_lib=auto 14418fi 14419 14420 14421if test "$enable_libxml2" != "yes"; then 14422 use_pkgconfig_for_expat=yes 14423 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then 14424 14425pkg_failed=no 14426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5 14427$as_echo_n "checking for EXPAT... " >&6; } 14428 14429if test -n "$EXPAT_CFLAGS"; then 14430 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" 14431 elif test -n "$PKG_CONFIG"; then 14432 if test -n "$PKG_CONFIG" && \ 14433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 14434 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 14435 ac_status=$? 14436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14437 test $ac_status = 0; }; then 14438 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` 14439 test "x$?" != "x0" && pkg_failed=yes 14440else 14441 pkg_failed=yes 14442fi 14443 else 14444 pkg_failed=untried 14445fi 14446if test -n "$EXPAT_LIBS"; then 14447 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" 14448 elif test -n "$PKG_CONFIG"; then 14449 if test -n "$PKG_CONFIG" && \ 14450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 14451 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 14452 ac_status=$? 14453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14454 test $ac_status = 0; }; then 14455 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` 14456 test "x$?" != "x0" && pkg_failed=yes 14457else 14458 pkg_failed=yes 14459fi 14460 else 14461 pkg_failed=untried 14462fi 14463 14464 14465 14466if test $pkg_failed = yes; then 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14468$as_echo "no" >&6; } 14469 14470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14471 _pkg_short_errors_supported=yes 14472else 14473 _pkg_short_errors_supported=no 14474fi 14475 if test $_pkg_short_errors_supported = yes; then 14476 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` 14477 else 14478 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` 14479 fi 14480 # Put the nasty error message in config.log where it belongs 14481 echo "$EXPAT_PKG_ERRORS" >&5 14482 14483 use_pkgconfig_for_expat=no 14484elif test $pkg_failed = untried; then 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486$as_echo "no" >&6; } 14487 use_pkgconfig_for_expat=no 14488else 14489 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS 14490 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14492$as_echo "yes" >&6; } 14493 14494fi 14495 else 14496 use_pkgconfig_for_expat=no 14497 fi 14498 if test "x$use_pkgconfig_for_expat" = "xno"; then 14499 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then 14500 EXPAT_CFLAGS="-I${expat_includes}" 14501 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then 14502 EXPAT_CFLAGS="-I${expat_prefix}/include" 14503 else 14504 EXPAT_CFLAGS="" 14505 fi 14506 if test "$expat_lib" != "auto"; then 14507 EXPAT_LIBS="-L${expat_lib} -lexpat" 14508 elif test "$expat_prefix" != "auto"; then 14509 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat" 14510 else 14511 EXPAT_LIBS="-lexpat" 14512 fi 14513 else 14514 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat" 14515 fi 14516 14517 expatsaved_CPPFLAGS="$CPPFLAGS" 14518 expatsaved_LIBS="$LIBS" 14519 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS" 14520 LIBS="$LIBS $EXPAT_LIBS" 14521 14522 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 14523if test "x$ac_cv_header_expat_h" = xyes; then : 14524 14525fi 14526 14527 14528 if test "$ac_cv_header_expat_h" = "no"; then 14529 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default" 14530if test "x$ac_cv_header_xmlparse_h" = xyes; then : 14531 14532fi 14533 14534 14535 if test "$ac_cv_header_xmlparse_h" = "yes"; then 14536 HAVE_XMLPARSE_H=1 14537 14538 14539cat >>confdefs.h <<_ACEOF 14540#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H 14541_ACEOF 14542 14543 else 14544 as_fn_error $? " 14545*** expat is required. or try to use --enable-libxml2" "$LINENO" 5 14546 fi 14547 fi 14548 for ac_func in XML_SetDoctypeDeclHandler 14549do : 14550 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler" 14551if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then : 14552 cat >>confdefs.h <<_ACEOF 14553#define HAVE_XML_SETDOCTYPEDECLHANDLER 1 14554_ACEOF 14555 14556fi 14557done 14558 14559 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then 14560 as_fn_error $? " 14561*** expat is required. or try to use --enable-libxml2" "$LINENO" 5 14562 fi 14563 CPPFLAGS="$expatsaved_CPPFLAGS" 14564 LIBS="$expatsaved_LIBS" 14565 14566 14567 14568fi 14569 14570# 14571# Check libxml2 configuration 14572# 14573# Check whether --enable-libxml2 was given. 14574if test "${enable_libxml2+set}" = set; then : 14575 enableval=$enable_libxml2; 14576fi 14577 14578 14579if test "$enable_libxml2" = "yes"; then 14580 14581pkg_failed=no 14582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 14583$as_echo_n "checking for LIBXML2... " >&6; } 14584 14585if test -n "$LIBXML2_CFLAGS"; then 14586 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 14587 elif test -n "$PKG_CONFIG"; then 14588 if test -n "$PKG_CONFIG" && \ 14589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5 14590 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5 14591 ac_status=$? 14592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14593 test $ac_status = 0; }; then 14594 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null` 14595 test "x$?" != "x0" && pkg_failed=yes 14596else 14597 pkg_failed=yes 14598fi 14599 else 14600 pkg_failed=untried 14601fi 14602if test -n "$LIBXML2_LIBS"; then 14603 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 14604 elif test -n "$PKG_CONFIG"; then 14605 if test -n "$PKG_CONFIG" && \ 14606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5 14607 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5 14608 ac_status=$? 14609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14610 test $ac_status = 0; }; then 14611 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null` 14612 test "x$?" != "x0" && pkg_failed=yes 14613else 14614 pkg_failed=yes 14615fi 14616 else 14617 pkg_failed=untried 14618fi 14619 14620 14621 14622if test $pkg_failed = yes; then 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14624$as_echo "no" >&6; } 14625 14626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14627 _pkg_short_errors_supported=yes 14628else 14629 _pkg_short_errors_supported=no 14630fi 14631 if test $_pkg_short_errors_supported = yes; then 14632 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1` 14633 else 14634 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1` 14635 fi 14636 # Put the nasty error message in config.log where it belongs 14637 echo "$LIBXML2_PKG_ERRORS" >&5 14638 14639 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met: 14640 14641$LIBXML2_PKG_ERRORS 14642 14643Consider adjusting the PKG_CONFIG_PATH environment variable if you 14644installed software in a non-standard prefix. 14645 14646Alternatively, you may set the environment variables LIBXML2_CFLAGS 14647and LIBXML2_LIBS to avoid the need to call pkg-config. 14648See the pkg-config man page for more details." "$LINENO" 5 14649elif test $pkg_failed = untried; then 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14651$as_echo "no" >&6; } 14652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14654as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14655is in your PATH or set the PKG_CONFIG environment variable to the full 14656path to pkg-config. 14657 14658Alternatively, you may set the environment variables LIBXML2_CFLAGS 14659and LIBXML2_LIBS to avoid the need to call pkg-config. 14660See the pkg-config man page for more details. 14661 14662To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14663See \`config.log' for more details" "$LINENO" 5; } 14664else 14665 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 14666 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14668$as_echo "yes" >&6; } 14669 14670fi 14671 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0" 14672 14673cat >>confdefs.h <<_ACEOF 14674#define ENABLE_LIBXML2 1 14675_ACEOF 14676 14677 14678 14679 14680 14681 fc_saved_CFLAGS="$CFLAGS" 14682 CFLAGS="$CFLAGS $LIBXML2_CFLAGS" 14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5 14684$as_echo_n "checking SAX1 support in libxml2... " >&6; } 14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14686/* end confdefs.h. */ 14687 14688 #include <libxml/xmlversion.h> 14689 #if !defined(LIBXML_SAX1_ENABLED) 14690 # include "error: No SAX1 support in libxml2" 14691 #endif 14692 14693_ACEOF 14694if ac_fn_c_try_compile "$LINENO"; then : 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 14696$as_echo "found" >&6; } 14697else 14698 as_fn_error $? " 14699*** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5 14700fi 14701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14702 CFLAGS="$fc_saved_CFLAGS" 14703fi 14704 14705# 14706# Set default font directory 14707# 14708 14709 14710# Check whether --with-default-fonts was given. 14711if test "${with_default_fonts+set}" = set; then : 14712 withval=$with_default_fonts; default_fonts="$withval" 14713else 14714 default_fonts=yes 14715fi 14716 14717 14718case "$default_fonts" in 14719yes) 14720 if test "$os_win32" = "yes"; then 14721 FC_DEFAULT_FONTS="WINDOWSFONTDIR" 14722 14723cat >>confdefs.h <<_ACEOF 14724#define FC_DEFAULT_FONTS "WINDOWSFONTDIR" 14725_ACEOF 14726 14727 else 14728 FC_DEFAULT_FONTS="/usr/share/fonts" 14729 14730cat >>confdefs.h <<_ACEOF 14731#define FC_DEFAULT_FONTS "/usr/share/fonts" 14732_ACEOF 14733 14734 fi 14735 ;; 14736*) 14737 FC_DEFAULT_FONTS="$default_fonts" 14738 14739cat >>confdefs.h <<_ACEOF 14740#define FC_DEFAULT_FONTS "$default_fonts" 14741_ACEOF 14742 14743 ;; 14744esac 14745 14746 14747 14748# 14749# Add more fonts if available. By default, add only the directories 14750# with outline fonts; those with bitmaps can be added as desired in 14751# local.conf or ~/.fonts.conf 14752# 14753 14754# Check whether --with-add-fonts was given. 14755if test "${with_add_fonts+set}" = set; then : 14756 withval=$with_add_fonts; add_fonts="$withval" 14757else 14758 add_fonts=yes 14759fi 14760 14761 14762case "$add_fonts" in 14763yes) 14764 FC_ADD_FONTS="" 14765 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do 14766 case x"$FC_ADD_FONTS" in 14767 x) 14768 sub="$dir/fonts" 14769 if test -d "$sub"; then 14770 case x$FC_ADD_FONTS in 14771 x) 14772 FC_ADD_FONTS="$sub" 14773 ;; 14774 *) 14775 FC_ADD_FONTS="$FC_ADD_FONTS,$sub" 14776 ;; 14777 esac 14778 fi 14779 ;; 14780 esac 14781 done 14782 14783cat >>confdefs.h <<_ACEOF 14784#define FC_ADD_FONTS "$add_fonts" 14785_ACEOF 14786 14787 ;; 14788no) 14789 FC_ADD_FONTS="" 14790 ;; 14791*) 14792 FC_ADD_FONTS="$add_fonts" 14793 14794cat >>confdefs.h <<_ACEOF 14795#define FC_ADD_FONTS "$add_fonts" 14796_ACEOF 14797 14798 ;; 14799esac 14800 14801 14802 14803FC_FONTPATH="" 14804 14805case "$FC_ADD_FONTS" in 14806"") 14807 ;; 14808*) 14809 FC_FONTPATH=`echo $FC_ADD_FONTS | 14810 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'` 14811 ;; 14812esac 14813 14814 14815 14816# 14817# Set default cache directory path 14818# 14819 14820# Check whether --with-cache-dir was given. 14821if test "${with_cache_dir+set}" = set; then : 14822 withval=$with_cache_dir; fc_cachedir="$withval" 14823else 14824 fc_cachedir=yes 14825fi 14826 14827 14828case $fc_cachedir in 14829no|yes) 14830 if test "$os_win32" = "yes"; then 14831 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE" 14832 else 14833 fc_cachedir='${localstatedir}/cache/${PACKAGE}' 14834 fi 14835 ;; 14836*) 14837 ;; 14838esac 14839 14840FC_CACHEDIR=${fc_cachedir} 14841 14842 14843FC_FONTDATE=`LC_ALL=C date` 14844 14845 14846 14847# 14848# Set configuration paths 14849# 14850 14851 14852# Check whether --with-templatedir was given. 14853if test "${with_templatedir+set}" = set; then : 14854 withval=$with_templatedir; templatedir="$withval" 14855else 14856 templatedir=yes 14857fi 14858 14859 14860# Check whether --with-baseconfigdir was given. 14861if test "${with_baseconfigdir+set}" = set; then : 14862 withval=$with_baseconfigdir; baseconfigdir="$withval" 14863else 14864 baseconfigdir=yes 14865fi 14866 14867 14868# Check whether --with-configdir was given. 14869if test "${with_configdir+set}" = set; then : 14870 withval=$with_configdir; configdir="$withval" 14871else 14872 configdir=yes 14873fi 14874 14875 14876# Check whether --with-xmldir was given. 14877if test "${with_xmldir+set}" = set; then : 14878 withval=$with_xmldir; xmldir="$withval" 14879else 14880 xmldir=yes 14881fi 14882 14883 14884case "$templatedir" in 14885no|yes) 14886 templatedir='${datadir}'/fontconfig/conf.avail 14887 ;; 14888*) 14889 ;; 14890esac 14891case "$baseconfigdir" in 14892no|yes) 14893 baseconfigdir='${sysconfdir}'/fonts 14894 ;; 14895*) 14896 ;; 14897esac 14898case "$configdir" in 14899no|yes) 14900 configdir='${BASECONFIGDIR}'/conf.d 14901 ;; 14902*) 14903 ;; 14904esac 14905case "$xmldir" in 14906no|yes) 14907 xmldir='${datadir}'/xml/fontconfig 14908 ;; 14909*) 14910 ;; 14911esac 14912 14913TEMPLATEDIR=${templatedir} 14914BASECONFIGDIR=${baseconfigdir} 14915CONFIGDIR=${configdir} 14916XMLDIR=${xmldir} 14917 14918 14919 14920 14921 14922 14923 14924# 14925# Thread-safety primitives 14926# 14927 14928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5 14929$as_echo_n "checking for Intel atomic primitives... " >&6; } 14930if ${fc_cv_have_intel_atomic_primitives+:} false; then : 14931 $as_echo_n "(cached) " >&6 14932else 14933 14934 fc_cv_have_intel_atomic_primitives=false 14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14936/* end confdefs.h. */ 14937 14938 void memory_barrier (void) { __sync_synchronize (); } 14939 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); } 14940 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); } 14941 void mutex_unlock (int *m) { __sync_lock_release (m); } 14942 14943int 14944main () 14945{ 14946 14947 ; 14948 return 0; 14949} 14950_ACEOF 14951if ac_fn_c_try_link "$LINENO"; then : 14952 fc_cv_have_intel_atomic_primitives=true 14953 14954fi 14955rm -f core conftest.err conftest.$ac_objext \ 14956 conftest$ac_exeext conftest.$ac_ext 14957 14958fi 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5 14960$as_echo "$fc_cv_have_intel_atomic_primitives" >&6; } 14961if $fc_cv_have_intel_atomic_primitives; then 14962 14963$as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h 14964 14965fi 14966 14967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5 14968$as_echo_n "checking for Solaris atomic operations... " >&6; } 14969if ${fc_cv_have_solaris_atomic_ops+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 14973 fc_cv_have_solaris_atomic_ops=false 14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975/* end confdefs.h. */ 14976 14977 #include <atomic.h> 14978 /* This requires Solaris Studio 12.2 or newer: */ 14979 #include <mbarrier.h> 14980 void memory_barrier (void) { __machine_rw_barrier (); } 14981 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); } 14982 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); } 14983 14984int 14985main () 14986{ 14987 14988 ; 14989 return 0; 14990} 14991_ACEOF 14992if ac_fn_c_try_link "$LINENO"; then : 14993 fc_cv_have_solaris_atomic_ops=true 14994 14995fi 14996rm -f core conftest.err conftest.$ac_objext \ 14997 conftest$ac_exeext conftest.$ac_ext 14998 14999fi 15000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5 15001$as_echo "$fc_cv_have_solaris_atomic_ops" >&6; } 15002if $fc_cv_have_solaris_atomic_ops; then 15003 15004$as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h 15005 15006fi 15007 15008if test "$os_win32" = no && ! $have_pthread; then 15009 for ac_header in sched.h 15010do : 15011 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 15012if test "x$ac_cv_header_sched_h" = xyes; then : 15013 cat >>confdefs.h <<_ACEOF 15014#define HAVE_SCHED_H 1 15015_ACEOF 15016 15017fi 15018 15019done 15020 15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 15022$as_echo_n "checking for library containing sched_yield... " >&6; } 15023if ${ac_cv_search_sched_yield+:} false; then : 15024 $as_echo_n "(cached) " >&6 15025else 15026 ac_func_search_save_LIBS=$LIBS 15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029 15030/* Override any GCC internal prototype to avoid an error. 15031 Use char because int might match the return type of a GCC 15032 builtin and then its argument prototype would still apply. */ 15033#ifdef __cplusplus 15034extern "C" 15035#endif 15036char sched_yield (); 15037int 15038main () 15039{ 15040return sched_yield (); 15041 ; 15042 return 0; 15043} 15044_ACEOF 15045for ac_lib in '' rt; do 15046 if test -z "$ac_lib"; then 15047 ac_res="none required" 15048 else 15049 ac_res=-l$ac_lib 15050 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15051 fi 15052 if ac_fn_c_try_link "$LINENO"; then : 15053 ac_cv_search_sched_yield=$ac_res 15054fi 15055rm -f core conftest.err conftest.$ac_objext \ 15056 conftest$ac_exeext 15057 if ${ac_cv_search_sched_yield+:} false; then : 15058 break 15059fi 15060done 15061if ${ac_cv_search_sched_yield+:} false; then : 15062 15063else 15064 ac_cv_search_sched_yield=no 15065fi 15066rm conftest.$ac_ext 15067LIBS=$ac_func_search_save_LIBS 15068fi 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 15070$as_echo "$ac_cv_search_sched_yield" >&6; } 15071ac_res=$ac_cv_search_sched_yield 15072if test "$ac_res" != no; then : 15073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15074 15075$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 15076 15077fi 15078 15079fi 15080 15081have_pthread=false 15082if test "$os_win32" = no; then 15083 15084 15085ac_ext=c 15086ac_cpp='$CPP $CPPFLAGS' 15087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15089ac_compiler_gnu=$ac_cv_c_compiler_gnu 15090 15091ax_pthread_ok=no 15092 15093# We used to check for pthread.h first, but this fails if pthread.h 15094# requires special compiler flags (e.g. on True64 or Sequent). 15095# It gets checked for in the link test anyway. 15096 15097# First of all, check if the user has set any of the PTHREAD_LIBS, 15098# etcetera environment variables, and if threads linking works using 15099# them: 15100if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15101 save_CFLAGS="$CFLAGS" 15102 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15103 save_LIBS="$LIBS" 15104 LIBS="$PTHREAD_LIBS $LIBS" 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15106$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109 15110/* Override any GCC internal prototype to avoid an error. 15111 Use char because int might match the return type of a GCC 15112 builtin and then its argument prototype would still apply. */ 15113#ifdef __cplusplus 15114extern "C" 15115#endif 15116char pthread_join (); 15117int 15118main () 15119{ 15120return pthread_join (); 15121 ; 15122 return 0; 15123} 15124_ACEOF 15125if ac_fn_c_try_link "$LINENO"; then : 15126 ax_pthread_ok=yes 15127fi 15128rm -f core conftest.err conftest.$ac_objext \ 15129 conftest$ac_exeext conftest.$ac_ext 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15131$as_echo "$ax_pthread_ok" >&6; } 15132 if test x"$ax_pthread_ok" = xno; then 15133 PTHREAD_LIBS="" 15134 PTHREAD_CFLAGS="" 15135 fi 15136 LIBS="$save_LIBS" 15137 CFLAGS="$save_CFLAGS" 15138fi 15139 15140# We must check for the threads library under a number of different 15141# names; the ordering is very important because some systems 15142# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15143# libraries is broken (non-POSIX). 15144 15145# Create a list of thread flags to try. Items starting with a "-" are 15146# C compiler flags, and other items are library names, except for "none" 15147# which indicates that we try without any flags at all, and "pthread-config" 15148# which is a program returning the flags for the Pth emulation library. 15149 15150ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15151 15152# The ordering *is* (sometimes) important. Some notes on the 15153# individual items follow: 15154 15155# pthreads: AIX (must check this before -lpthread) 15156# none: in case threads are in libc; should be tried before -Kthread and 15157# other compiler flags to prevent continual compiler warnings 15158# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15159# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15160# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15161# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15162# -pthreads: Solaris/gcc 15163# -mthreads: Mingw32/gcc, Lynx/gcc 15164# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15165# doesn't hurt to check since this sometimes defines pthreads too; 15166# also defines -D_REENTRANT) 15167# ... -mt is also the pthreads flag for HP/aCC 15168# pthread: Linux, etcetera 15169# --thread-safe: KAI C++ 15170# pthread-config: use pthread-config program (for GNU Pth library) 15171 15172case ${host_os} in 15173 solaris*) 15174 15175 # On Solaris (at least, for some versions), libc contains stubbed 15176 # (non-functional) versions of the pthreads routines, so link-based 15177 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15178 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15179 # a function called by this macro, so we could check for that, but 15180 # who knows whether they'll stub that too in a future libc.) So, 15181 # we'll just look for -pthreads and -lpthread first: 15182 15183 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15184 ;; 15185 15186 darwin*) 15187 ax_pthread_flags="-pthread $ax_pthread_flags" 15188 ;; 15189 netbsd*) 15190 # use libc stubs, don't link against libpthread, to allow 15191 # dynamic loading 15192 ax_pthread_flags="" 15193 ;; 15194esac 15195 15196# Clang doesn't consider unrecognized options an error unless we specify 15197# -Werror. We throw in some extra Clang-specific options to ensure that 15198# this doesn't happen for GCC, which also accepts -Werror. 15199 15200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 15201$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 15202save_CFLAGS="$CFLAGS" 15203ax_pthread_extra_flags="-Werror" 15204CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 15205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15206/* end confdefs.h. */ 15207int foo(void); 15208int 15209main () 15210{ 15211foo() 15212 ; 15213 return 0; 15214} 15215_ACEOF 15216if ac_fn_c_try_compile "$LINENO"; then : 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15218$as_echo "yes" >&6; } 15219else 15220 ax_pthread_extra_flags= 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15222$as_echo "no" >&6; } 15223fi 15224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15225CFLAGS="$save_CFLAGS" 15226 15227if test x"$ax_pthread_ok" = xno; then 15228for flag in $ax_pthread_flags; do 15229 15230 case $flag in 15231 none) 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15233$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15234 ;; 15235 15236 -*) 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15238$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15239 PTHREAD_CFLAGS="$flag" 15240 ;; 15241 15242 pthread-config) 15243 # Extract the first word of "pthread-config", so it can be a program name with args. 15244set dummy pthread-config; ac_word=$2 15245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15246$as_echo_n "checking for $ac_word... " >&6; } 15247if ${ac_cv_prog_ax_pthread_config+:} false; then : 15248 $as_echo_n "(cached) " >&6 15249else 15250 if test -n "$ax_pthread_config"; then 15251 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15252else 15253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15254for as_dir in $PATH 15255do 15256 IFS=$as_save_IFS 15257 test -z "$as_dir" && as_dir=. 15258 for ac_exec_ext in '' $ac_executable_extensions; do 15259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15260 ac_cv_prog_ax_pthread_config="yes" 15261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15262 break 2 15263 fi 15264done 15265 done 15266IFS=$as_save_IFS 15267 15268 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15269fi 15270fi 15271ax_pthread_config=$ac_cv_prog_ax_pthread_config 15272if test -n "$ax_pthread_config"; then 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15274$as_echo "$ax_pthread_config" >&6; } 15275else 15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15277$as_echo "no" >&6; } 15278fi 15279 15280 15281 if test x"$ax_pthread_config" = xno; then continue; fi 15282 PTHREAD_CFLAGS="`pthread-config --cflags`" 15283 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15284 ;; 15285 15286 *) 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15288$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15289 PTHREAD_LIBS="-l$flag" 15290 ;; 15291 esac 15292 15293 save_LIBS="$LIBS" 15294 save_CFLAGS="$CFLAGS" 15295 LIBS="$PTHREAD_LIBS $LIBS" 15296 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 15297 15298 # Check for various functions. We must include pthread.h, 15299 # since some functions may be macros. (On the Sequent, we 15300 # need a special flag -Kthread to make this header compile.) 15301 # We check for pthread_join because it is in -lpthread on IRIX 15302 # while pthread_create is in libc. We check for pthread_attr_init 15303 # due to DEC craziness with -lpthreads. We check for 15304 # pthread_cleanup_push because it is one of the few pthread 15305 # functions on Solaris that doesn't have a non-functional libc stub. 15306 # We try pthread_create on general principles. 15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15308/* end confdefs.h. */ 15309#include <pthread.h> 15310 static void routine(void *a) { a = 0; } 15311 static void *start_routine(void *a) { return a; } 15312int 15313main () 15314{ 15315pthread_t th; pthread_attr_t attr; 15316 pthread_create(&th, 0, start_routine, 0); 15317 pthread_join(th, 0); 15318 pthread_attr_init(&attr); 15319 pthread_cleanup_push(routine, 0); 15320 pthread_cleanup_pop(0) /* ; */ 15321 ; 15322 return 0; 15323} 15324_ACEOF 15325if ac_fn_c_try_link "$LINENO"; then : 15326 ax_pthread_ok=yes 15327fi 15328rm -f core conftest.err conftest.$ac_objext \ 15329 conftest$ac_exeext conftest.$ac_ext 15330 15331 LIBS="$save_LIBS" 15332 CFLAGS="$save_CFLAGS" 15333 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15335$as_echo "$ax_pthread_ok" >&6; } 15336 if test "x$ax_pthread_ok" = xyes; then 15337 break; 15338 fi 15339 15340 PTHREAD_LIBS="" 15341 PTHREAD_CFLAGS="" 15342done 15343fi 15344 15345# Various other checks: 15346if test "x$ax_pthread_ok" = xyes; then 15347 save_LIBS="$LIBS" 15348 LIBS="$PTHREAD_LIBS $LIBS" 15349 save_CFLAGS="$CFLAGS" 15350 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15351 15352 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15354$as_echo_n "checking for joinable pthread attribute... " >&6; } 15355 attr_name=unknown 15356 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15358/* end confdefs.h. */ 15359#include <pthread.h> 15360int 15361main () 15362{ 15363int attr = $attr; return attr /* ; */ 15364 ; 15365 return 0; 15366} 15367_ACEOF 15368if ac_fn_c_try_link "$LINENO"; then : 15369 attr_name=$attr; break 15370fi 15371rm -f core conftest.err conftest.$ac_objext \ 15372 conftest$ac_exeext conftest.$ac_ext 15373 done 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15375$as_echo "$attr_name" >&6; } 15376 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15377 15378cat >>confdefs.h <<_ACEOF 15379#define PTHREAD_CREATE_JOINABLE $attr_name 15380_ACEOF 15381 15382 fi 15383 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15385$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15386 flag=no 15387 case ${host_os} in 15388 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15389 osf* | hpux*) flag="-D_REENTRANT";; 15390 solaris*) 15391 if test "$GCC" = "yes"; then 15392 flag="-D_REENTRANT" 15393 else 15394 # TODO: What about Clang on Solaris? 15395 flag="-mt -D_REENTRANT" 15396 fi 15397 ;; 15398 esac 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 15400$as_echo "$flag" >&6; } 15401 if test "x$flag" != xno; then 15402 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15403 fi 15404 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15406$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15407if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15408 $as_echo_n "(cached) " >&6 15409else 15410 15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15412/* end confdefs.h. */ 15413#include <pthread.h> 15414int 15415main () 15416{ 15417int i = PTHREAD_PRIO_INHERIT; 15418 ; 15419 return 0; 15420} 15421_ACEOF 15422if ac_fn_c_try_link "$LINENO"; then : 15423 ax_cv_PTHREAD_PRIO_INHERIT=yes 15424else 15425 ax_cv_PTHREAD_PRIO_INHERIT=no 15426fi 15427rm -f core conftest.err conftest.$ac_objext \ 15428 conftest$ac_exeext conftest.$ac_ext 15429 15430fi 15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15432$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15433 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15434 15435$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15436 15437fi 15438 15439 LIBS="$save_LIBS" 15440 CFLAGS="$save_CFLAGS" 15441 15442 # More AIX lossage: compile with *_r variant 15443 if test "x$GCC" != xyes; then 15444 case $host_os in 15445 aix*) 15446 case "x/$CC" in #( 15447 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15448 #handle absolute path differently from PATH based program lookup 15449 case "x$CC" in #( 15450 x/*) : 15451 if as_fn_executable_p ${CC}_r; then : 15452 PTHREAD_CC="${CC}_r" 15453fi ;; #( 15454 *) : 15455 for ac_prog in ${CC}_r 15456do 15457 # Extract the first word of "$ac_prog", so it can be a program name with args. 15458set dummy $ac_prog; ac_word=$2 15459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15460$as_echo_n "checking for $ac_word... " >&6; } 15461if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463else 15464 if test -n "$PTHREAD_CC"; then 15465 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15466else 15467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15468for as_dir in $PATH 15469do 15470 IFS=$as_save_IFS 15471 test -z "$as_dir" && as_dir=. 15472 for ac_exec_ext in '' $ac_executable_extensions; do 15473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15474 ac_cv_prog_PTHREAD_CC="$ac_prog" 15475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15476 break 2 15477 fi 15478done 15479 done 15480IFS=$as_save_IFS 15481 15482fi 15483fi 15484PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15485if test -n "$PTHREAD_CC"; then 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15487$as_echo "$PTHREAD_CC" >&6; } 15488else 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15490$as_echo "no" >&6; } 15491fi 15492 15493 15494 test -n "$PTHREAD_CC" && break 15495done 15496test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15497 ;; 15498esac ;; #( 15499 *) : 15500 ;; 15501esac 15502 ;; 15503 esac 15504 fi 15505fi 15506 15507test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15508 15509 15510 15511 15512 15513# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15514if test x"$ax_pthread_ok" = xyes; then 15515 have_pthread=true 15516 : 15517else 15518 ax_pthread_ok=no 15519 15520fi 15521ac_ext=c 15522ac_cpp='$CPP $CPPFLAGS' 15523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15525ac_compiler_gnu=$ac_cv_c_compiler_gnu 15526 15527 15528fi 15529if $have_pthread; then 15530 LIBS="$PTHREAD_LIBS $LIBS" 15531 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15532 CC="$PTHREAD_CC" 15533 15534$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15535 15536fi 15537 if $have_pthread; then 15538 HAVE_PTHREAD_TRUE= 15539 HAVE_PTHREAD_FALSE='#' 15540else 15541 HAVE_PTHREAD_TRUE='#' 15542 HAVE_PTHREAD_FALSE= 15543fi 15544 15545 15546 15547 15548# 15549# Let people not build/install docs if they don't have docbook 15550# 15551 15552# Extract the first word of "docbook2html", so it can be a program name with args. 15553set dummy docbook2html; ac_word=$2 15554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15555$as_echo_n "checking for $ac_word... " >&6; } 15556if ${ac_cv_prog_HASDOCBOOK+:} false; then : 15557 $as_echo_n "(cached) " >&6 15558else 15559 if test -n "$HASDOCBOOK"; then 15560 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test. 15561else 15562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15563for as_dir in $PATH 15564do 15565 IFS=$as_save_IFS 15566 test -z "$as_dir" && as_dir=. 15567 for ac_exec_ext in '' $ac_executable_extensions; do 15568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15569 ac_cv_prog_HASDOCBOOK="yes" 15570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15571 break 2 15572 fi 15573done 15574 done 15575IFS=$as_save_IFS 15576 15577 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no" 15578fi 15579fi 15580HASDOCBOOK=$ac_cv_prog_HASDOCBOOK 15581if test -n "$HASDOCBOOK"; then 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5 15583$as_echo "$HASDOCBOOK" >&6; } 15584else 15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15586$as_echo "no" >&6; } 15587fi 15588 15589 15590 15591 if test "x$HASDOCBOOK" = xyes; then 15592 USEDOCBOOK_TRUE= 15593 USEDOCBOOK_FALSE='#' 15594else 15595 USEDOCBOOK_TRUE='#' 15596 USEDOCBOOK_FALSE= 15597fi 15598 15599 15600default_docs="yes" 15601# 15602# Check if docs exist or can be created 15603# 15604if test x$HASDOCBOOK = xno; then 15605 if test -f $srcdir/doc/fonts-conf.5; then 15606 : 15607 else 15608 default_docs="no" 15609 fi 15610fi 15611 15612# Check whether --enable-docs was given. 15613if test "${enable_docs+set}" = set; then : 15614 enableval=$enable_docs; 15615else 15616 enable_docs=$default_docs 15617fi 15618 15619 15620 if test "x$enable_docs" = xyes; then 15621 ENABLE_DOCS_TRUE= 15622 ENABLE_DOCS_FALSE='#' 15623else 15624 ENABLE_DOCS_TRUE='#' 15625 ENABLE_DOCS_FALSE= 15626fi 15627 15628 15629if test "x$enable_docs" = xyes; then 15630 tmp=funcs.$$ 15631 cat $srcdir/doc/*.fncs | awk ' 15632 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } } 15633 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } } 15634 /^@@/ { done = 0; }' > $tmp 15635 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'` 15636 echo DOCMAN3 $DOCMAN3 15637 rm -f $tmp 15638else 15639 DOCMAN3="" 15640fi 15641 15642 15643 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15645$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15646if ${ac_cv_c_bigendian+:} false; then : 15647 $as_echo_n "(cached) " >&6 15648else 15649 ac_cv_c_bigendian=unknown 15650 # See if we're dealing with a universal compiler. 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653#ifndef __APPLE_CC__ 15654 not a universal capable compiler 15655 #endif 15656 typedef int dummy; 15657 15658_ACEOF 15659if ac_fn_c_try_compile "$LINENO"; then : 15660 15661 # Check for potential -arch flags. It is not universal unless 15662 # there are at least two -arch flags with different values. 15663 ac_arch= 15664 ac_prev= 15665 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15666 if test -n "$ac_prev"; then 15667 case $ac_word in 15668 i?86 | x86_64 | ppc | ppc64) 15669 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15670 ac_arch=$ac_word 15671 else 15672 ac_cv_c_bigendian=universal 15673 break 15674 fi 15675 ;; 15676 esac 15677 ac_prev= 15678 elif test "x$ac_word" = "x-arch"; then 15679 ac_prev=arch 15680 fi 15681 done 15682fi 15683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15684 if test $ac_cv_c_bigendian = unknown; then 15685 # See if sys/param.h defines the BYTE_ORDER macro. 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688#include <sys/types.h> 15689 #include <sys/param.h> 15690 15691int 15692main () 15693{ 15694#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15695 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15696 && LITTLE_ENDIAN) 15697 bogus endian macros 15698 #endif 15699 15700 ; 15701 return 0; 15702} 15703_ACEOF 15704if ac_fn_c_try_compile "$LINENO"; then : 15705 # It does; now see whether it defined to BIG_ENDIAN or not. 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708#include <sys/types.h> 15709 #include <sys/param.h> 15710 15711int 15712main () 15713{ 15714#if BYTE_ORDER != BIG_ENDIAN 15715 not big endian 15716 #endif 15717 15718 ; 15719 return 0; 15720} 15721_ACEOF 15722if ac_fn_c_try_compile "$LINENO"; then : 15723 ac_cv_c_bigendian=yes 15724else 15725 ac_cv_c_bigendian=no 15726fi 15727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15728fi 15729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15730 fi 15731 if test $ac_cv_c_bigendian = unknown; then 15732 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735#include <limits.h> 15736 15737int 15738main () 15739{ 15740#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15741 bogus endian macros 15742 #endif 15743 15744 ; 15745 return 0; 15746} 15747_ACEOF 15748if ac_fn_c_try_compile "$LINENO"; then : 15749 # It does; now see whether it defined to _BIG_ENDIAN or not. 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752#include <limits.h> 15753 15754int 15755main () 15756{ 15757#ifndef _BIG_ENDIAN 15758 not big endian 15759 #endif 15760 15761 ; 15762 return 0; 15763} 15764_ACEOF 15765if ac_fn_c_try_compile "$LINENO"; then : 15766 ac_cv_c_bigendian=yes 15767else 15768 ac_cv_c_bigendian=no 15769fi 15770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15771fi 15772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15773 fi 15774 if test $ac_cv_c_bigendian = unknown; then 15775 # Compile a test program. 15776 if test "$cross_compiling" = yes; then : 15777 # Try to guess by grepping values from an object file. 15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15779/* end confdefs.h. */ 15780short int ascii_mm[] = 15781 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15782 short int ascii_ii[] = 15783 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15784 int use_ascii (int i) { 15785 return ascii_mm[i] + ascii_ii[i]; 15786 } 15787 short int ebcdic_ii[] = 15788 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15789 short int ebcdic_mm[] = 15790 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15791 int use_ebcdic (int i) { 15792 return ebcdic_mm[i] + ebcdic_ii[i]; 15793 } 15794 extern int foo; 15795 15796int 15797main () 15798{ 15799return use_ascii (foo) == use_ebcdic (foo); 15800 ; 15801 return 0; 15802} 15803_ACEOF 15804if ac_fn_c_try_compile "$LINENO"; then : 15805 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15806 ac_cv_c_bigendian=yes 15807 fi 15808 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15809 if test "$ac_cv_c_bigendian" = unknown; then 15810 ac_cv_c_bigendian=no 15811 else 15812 # finding both strings is unlikely to happen, but who knows? 15813 ac_cv_c_bigendian=unknown 15814 fi 15815 fi 15816fi 15817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15818else 15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15820/* end confdefs.h. */ 15821$ac_includes_default 15822int 15823main () 15824{ 15825 15826 /* Are we little or big endian? From Harbison&Steele. */ 15827 union 15828 { 15829 long int l; 15830 char c[sizeof (long int)]; 15831 } u; 15832 u.l = 1; 15833 return u.c[sizeof (long int) - 1] == 1; 15834 15835 ; 15836 return 0; 15837} 15838_ACEOF 15839if ac_fn_c_try_run "$LINENO"; then : 15840 ac_cv_c_bigendian=no 15841else 15842 ac_cv_c_bigendian=yes 15843fi 15844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15845 conftest.$ac_objext conftest.beam conftest.$ac_ext 15846fi 15847 15848 fi 15849fi 15850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15851$as_echo "$ac_cv_c_bigendian" >&6; } 15852 case $ac_cv_c_bigendian in #( 15853 yes) 15854 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15855;; #( 15856 no) 15857 ;; #( 15858 universal) 15859 15860$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15861 15862 ;; #( 15863 *) 15864 as_fn_error $? "unknown endianness 15865 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15866 esac 15867 15868# The cast to long int works around a bug in the HP C Compiler 15869# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15870# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15871# This bug is HP SR number 8606223364. 15872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15873$as_echo_n "checking size of void *... " >&6; } 15874if ${ac_cv_sizeof_void_p+:} false; then : 15875 $as_echo_n "(cached) " >&6 15876else 15877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15878 15879else 15880 if test "$ac_cv_type_void_p" = yes; then 15881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15883as_fn_error 77 "cannot compute sizeof (void *) 15884See \`config.log' for more details" "$LINENO" 5; } 15885 else 15886 ac_cv_sizeof_void_p=0 15887 fi 15888fi 15889 15890fi 15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15892$as_echo "$ac_cv_sizeof_void_p" >&6; } 15893 15894 15895 15896cat >>confdefs.h <<_ACEOF 15897#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15898_ACEOF 15899 15900 15901# The cast to long int works around a bug in the HP C Compiler, 15902# see AC_CHECK_SIZEOF for more information. 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5 15904$as_echo_n "checking alignment of double... " >&6; } 15905if ${ac_cv_alignof_double+:} false; then : 15906 $as_echo_n "(cached) " >&6 15907else 15908 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default 15909#ifndef offsetof 15910# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 15911#endif 15912typedef struct { char x; double y; } ac__type_alignof_;"; then : 15913 15914else 15915 if test "$ac_cv_type_double" = yes; then 15916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15918as_fn_error 77 "cannot compute alignment of double 15919See \`config.log' for more details" "$LINENO" 5; } 15920 else 15921 ac_cv_alignof_double=0 15922 fi 15923fi 15924 15925fi 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5 15927$as_echo "$ac_cv_alignof_double" >&6; } 15928 15929 15930 15931cat >>confdefs.h <<_ACEOF 15932#define ALIGNOF_DOUBLE $ac_cv_alignof_double 15933_ACEOF 15934 15935 15936 15937 15938 15939 15940 15941 15942ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip" 15943 15944cat >confcache <<\_ACEOF 15945# This file is a shell script that caches the results of configure 15946# tests run on this system so they can be shared between configure 15947# scripts and configure runs, see configure's option --config-cache. 15948# It is not useful on other systems. If it contains results you don't 15949# want to keep, you may remove or edit it. 15950# 15951# config.status only pays attention to the cache file if you give it 15952# the --recheck option to rerun configure. 15953# 15954# `ac_cv_env_foo' variables (set or unset) will be overridden when 15955# loading this file, other *unset* `ac_cv_foo' will be assigned the 15956# following values. 15957 15958_ACEOF 15959 15960# The following way of writing the cache mishandles newlines in values, 15961# but we know of no workaround that is simple, portable, and efficient. 15962# So, we kill variables containing newlines. 15963# Ultrix sh set writes to stderr and can't be redirected directly, 15964# and sets the high bit in the cache file unless we assign to the vars. 15965( 15966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15967 eval ac_val=\$$ac_var 15968 case $ac_val in #( 15969 *${as_nl}*) 15970 case $ac_var in #( 15971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15972$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15973 esac 15974 case $ac_var in #( 15975 _ | IFS | as_nl) ;; #( 15976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15977 *) { eval $ac_var=; unset $ac_var;} ;; 15978 esac ;; 15979 esac 15980 done 15981 15982 (set) 2>&1 | 15983 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15984 *${as_nl}ac_space=\ *) 15985 # `set' does not quote correctly, so add quotes: double-quote 15986 # substitution turns \\\\ into \\, and sed turns \\ into \. 15987 sed -n \ 15988 "s/'/'\\\\''/g; 15989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15990 ;; #( 15991 *) 15992 # `set' quotes correctly as required by POSIX, so do not add quotes. 15993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15994 ;; 15995 esac | 15996 sort 15997) | 15998 sed ' 15999 /^ac_cv_env_/b end 16000 t clear 16001 :clear 16002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16003 t end 16004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16005 :end' >>confcache 16006if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16007 if test -w "$cache_file"; then 16008 if test "x$cache_file" != "x/dev/null"; then 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16010$as_echo "$as_me: updating cache $cache_file" >&6;} 16011 if test ! -f "$cache_file" || test -h "$cache_file"; then 16012 cat confcache >"$cache_file" 16013 else 16014 case $cache_file in #( 16015 */* | ?:*) 16016 mv -f confcache "$cache_file"$$ && 16017 mv -f "$cache_file"$$ "$cache_file" ;; #( 16018 *) 16019 mv -f confcache "$cache_file" ;; 16020 esac 16021 fi 16022 fi 16023 else 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16025$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16026 fi 16027fi 16028rm -f confcache 16029 16030test "x$prefix" = xNONE && prefix=$ac_default_prefix 16031# Let make expand exec_prefix. 16032test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16033 16034DEFS=-DHAVE_CONFIG_H 16035 16036ac_libobjs= 16037ac_ltlibobjs= 16038U= 16039for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16040 # 1. Remove the extension, and $U if already installed. 16041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16042 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16044 # will be set to the directory where LIBOBJS objects are built. 16045 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16046 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16047done 16048LIBOBJS=$ac_libobjs 16049 16050LTLIBOBJS=$ac_ltlibobjs 16051 16052 16053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16054$as_echo_n "checking that generated files are newer than configure... " >&6; } 16055 if test -n "$am_sleep_pid"; then 16056 # Hide warnings about reused PIDs. 16057 wait $am_sleep_pid 2>/dev/null 16058 fi 16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16060$as_echo "done" >&6; } 16061 if test -n "$EXEEXT"; then 16062 am__EXEEXT_TRUE= 16063 am__EXEEXT_FALSE='#' 16064else 16065 am__EXEEXT_TRUE='#' 16066 am__EXEEXT_FALSE= 16067fi 16068 16069if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16070 as_fn_error $? "conditional \"AMDEP\" was never defined. 16071Usually this means the macro was only invoked conditionally." "$LINENO" 5 16072fi 16073if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16074 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16075Usually this means the macro was only invoked conditionally." "$LINENO" 5 16076fi 16077if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 16078 as_fn_error $? "conditional \"OS_WIN32\" was never defined. 16079Usually this means the macro was only invoked conditionally." "$LINENO" 5 16080fi 16081if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then 16082 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined. 16083Usually this means the macro was only invoked conditionally." "$LINENO" 5 16084fi 16085if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 16086 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 16087Usually this means the macro was only invoked conditionally." "$LINENO" 5 16088fi 16089if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 16090 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined. 16091Usually this means the macro was only invoked conditionally." "$LINENO" 5 16092fi 16093if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then 16094 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined. 16095Usually this means the macro was only invoked conditionally." "$LINENO" 5 16096fi 16097if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then 16098 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined. 16099Usually this means the macro was only invoked conditionally." "$LINENO" 5 16100fi 16101if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 16102 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 16103Usually this means the macro was only invoked conditionally." "$LINENO" 5 16104fi 16105 16106 16107: "${CONFIG_STATUS=./config.status}" 16108ac_write_fail=0 16109ac_clean_files_save=$ac_clean_files 16110ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16111{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16112$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16113as_write_fail=0 16114cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16115#! $SHELL 16116# Generated by $as_me. 16117# Run this file to recreate the current configuration. 16118# Compiler output produced by configure, useful for debugging 16119# configure, is in config.log if it exists. 16120 16121debug=false 16122ac_cs_recheck=false 16123ac_cs_silent=false 16124 16125SHELL=\${CONFIG_SHELL-$SHELL} 16126export SHELL 16127_ASEOF 16128cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16129## -------------------- ## 16130## M4sh Initialization. ## 16131## -------------------- ## 16132 16133# Be more Bourne compatible 16134DUALCASE=1; export DUALCASE # for MKS sh 16135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16136 emulate sh 16137 NULLCMD=: 16138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16139 # is contrary to our usage. Disable this feature. 16140 alias -g '${1+"$@"}'='"$@"' 16141 setopt NO_GLOB_SUBST 16142else 16143 case `(set -o) 2>/dev/null` in #( 16144 *posix*) : 16145 set -o posix ;; #( 16146 *) : 16147 ;; 16148esac 16149fi 16150 16151 16152as_nl=' 16153' 16154export as_nl 16155# Printing a long string crashes Solaris 7 /usr/bin/printf. 16156as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16157as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16159# Prefer a ksh shell builtin over an external printf program on Solaris, 16160# but without wasting forks for bash or zsh. 16161if test -z "$BASH_VERSION$ZSH_VERSION" \ 16162 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16163 as_echo='print -r --' 16164 as_echo_n='print -rn --' 16165elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16166 as_echo='printf %s\n' 16167 as_echo_n='printf %s' 16168else 16169 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16170 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16171 as_echo_n='/usr/ucb/echo -n' 16172 else 16173 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16174 as_echo_n_body='eval 16175 arg=$1; 16176 case $arg in #( 16177 *"$as_nl"*) 16178 expr "X$arg" : "X\\(.*\\)$as_nl"; 16179 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16180 esac; 16181 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16182 ' 16183 export as_echo_n_body 16184 as_echo_n='sh -c $as_echo_n_body as_echo' 16185 fi 16186 export as_echo_body 16187 as_echo='sh -c $as_echo_body as_echo' 16188fi 16189 16190# The user is always right. 16191if test "${PATH_SEPARATOR+set}" != set; then 16192 PATH_SEPARATOR=: 16193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16195 PATH_SEPARATOR=';' 16196 } 16197fi 16198 16199 16200# IFS 16201# We need space, tab and new line, in precisely that order. Quoting is 16202# there to prevent editors from complaining about space-tab. 16203# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16204# splitting by setting IFS to empty value.) 16205IFS=" "" $as_nl" 16206 16207# Find who we are. Look in the path if we contain no directory separator. 16208as_myself= 16209case $0 in #(( 16210 *[\\/]* ) as_myself=$0 ;; 16211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16212for as_dir in $PATH 16213do 16214 IFS=$as_save_IFS 16215 test -z "$as_dir" && as_dir=. 16216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16217 done 16218IFS=$as_save_IFS 16219 16220 ;; 16221esac 16222# We did not find ourselves, most probably we were run as `sh COMMAND' 16223# in which case we are not to be found in the path. 16224if test "x$as_myself" = x; then 16225 as_myself=$0 16226fi 16227if test ! -f "$as_myself"; then 16228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16229 exit 1 16230fi 16231 16232# Unset variables that we do not need and which cause bugs (e.g. in 16233# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16234# suppresses any "Segmentation fault" message there. '((' could 16235# trigger a bug in pdksh 5.2.14. 16236for as_var in BASH_ENV ENV MAIL MAILPATH 16237do eval test x\${$as_var+set} = xset \ 16238 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16239done 16240PS1='$ ' 16241PS2='> ' 16242PS4='+ ' 16243 16244# NLS nuisances. 16245LC_ALL=C 16246export LC_ALL 16247LANGUAGE=C 16248export LANGUAGE 16249 16250# CDPATH. 16251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16252 16253 16254# as_fn_error STATUS ERROR [LINENO LOG_FD] 16255# ---------------------------------------- 16256# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16257# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16258# script with STATUS, using 1 if that was 0. 16259as_fn_error () 16260{ 16261 as_status=$1; test $as_status -eq 0 && as_status=1 16262 if test "$4"; then 16263 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16265 fi 16266 $as_echo "$as_me: error: $2" >&2 16267 as_fn_exit $as_status 16268} # as_fn_error 16269 16270 16271# as_fn_set_status STATUS 16272# ----------------------- 16273# Set $? to STATUS, without forking. 16274as_fn_set_status () 16275{ 16276 return $1 16277} # as_fn_set_status 16278 16279# as_fn_exit STATUS 16280# ----------------- 16281# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16282as_fn_exit () 16283{ 16284 set +e 16285 as_fn_set_status $1 16286 exit $1 16287} # as_fn_exit 16288 16289# as_fn_unset VAR 16290# --------------- 16291# Portably unset VAR. 16292as_fn_unset () 16293{ 16294 { eval $1=; unset $1;} 16295} 16296as_unset=as_fn_unset 16297# as_fn_append VAR VALUE 16298# ---------------------- 16299# Append the text in VALUE to the end of the definition contained in VAR. Take 16300# advantage of any shell optimizations that allow amortized linear growth over 16301# repeated appends, instead of the typical quadratic growth present in naive 16302# implementations. 16303if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16304 eval 'as_fn_append () 16305 { 16306 eval $1+=\$2 16307 }' 16308else 16309 as_fn_append () 16310 { 16311 eval $1=\$$1\$2 16312 } 16313fi # as_fn_append 16314 16315# as_fn_arith ARG... 16316# ------------------ 16317# Perform arithmetic evaluation on the ARGs, and store the result in the 16318# global $as_val. Take advantage of shells that can avoid forks. The arguments 16319# must be portable across $(()) and expr. 16320if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16321 eval 'as_fn_arith () 16322 { 16323 as_val=$(( $* )) 16324 }' 16325else 16326 as_fn_arith () 16327 { 16328 as_val=`expr "$@" || test $? -eq 1` 16329 } 16330fi # as_fn_arith 16331 16332 16333if expr a : '\(a\)' >/dev/null 2>&1 && 16334 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16335 as_expr=expr 16336else 16337 as_expr=false 16338fi 16339 16340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16341 as_basename=basename 16342else 16343 as_basename=false 16344fi 16345 16346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16347 as_dirname=dirname 16348else 16349 as_dirname=false 16350fi 16351 16352as_me=`$as_basename -- "$0" || 16353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16354 X"$0" : 'X\(//\)$' \| \ 16355 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16356$as_echo X/"$0" | 16357 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16358 s//\1/ 16359 q 16360 } 16361 /^X\/\(\/\/\)$/{ 16362 s//\1/ 16363 q 16364 } 16365 /^X\/\(\/\).*/{ 16366 s//\1/ 16367 q 16368 } 16369 s/.*/./; q'` 16370 16371# Avoid depending upon Character Ranges. 16372as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16374as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16375as_cr_digits='0123456789' 16376as_cr_alnum=$as_cr_Letters$as_cr_digits 16377 16378ECHO_C= ECHO_N= ECHO_T= 16379case `echo -n x` in #((((( 16380-n*) 16381 case `echo 'xy\c'` in 16382 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16383 xy) ECHO_C='\c';; 16384 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16385 ECHO_T=' ';; 16386 esac;; 16387*) 16388 ECHO_N='-n';; 16389esac 16390 16391rm -f conf$$ conf$$.exe conf$$.file 16392if test -d conf$$.dir; then 16393 rm -f conf$$.dir/conf$$.file 16394else 16395 rm -f conf$$.dir 16396 mkdir conf$$.dir 2>/dev/null 16397fi 16398if (echo >conf$$.file) 2>/dev/null; then 16399 if ln -s conf$$.file conf$$ 2>/dev/null; then 16400 as_ln_s='ln -s' 16401 # ... but there are two gotchas: 16402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16404 # In both cases, we have to default to `cp -pR'. 16405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16406 as_ln_s='cp -pR' 16407 elif ln conf$$.file conf$$ 2>/dev/null; then 16408 as_ln_s=ln 16409 else 16410 as_ln_s='cp -pR' 16411 fi 16412else 16413 as_ln_s='cp -pR' 16414fi 16415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16416rmdir conf$$.dir 2>/dev/null 16417 16418 16419# as_fn_mkdir_p 16420# ------------- 16421# Create "$as_dir" as a directory, including parents if necessary. 16422as_fn_mkdir_p () 16423{ 16424 16425 case $as_dir in #( 16426 -*) as_dir=./$as_dir;; 16427 esac 16428 test -d "$as_dir" || eval $as_mkdir_p || { 16429 as_dirs= 16430 while :; do 16431 case $as_dir in #( 16432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16433 *) as_qdir=$as_dir;; 16434 esac 16435 as_dirs="'$as_qdir' $as_dirs" 16436 as_dir=`$as_dirname -- "$as_dir" || 16437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16438 X"$as_dir" : 'X\(//\)[^/]' \| \ 16439 X"$as_dir" : 'X\(//\)$' \| \ 16440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16441$as_echo X"$as_dir" | 16442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16443 s//\1/ 16444 q 16445 } 16446 /^X\(\/\/\)[^/].*/{ 16447 s//\1/ 16448 q 16449 } 16450 /^X\(\/\/\)$/{ 16451 s//\1/ 16452 q 16453 } 16454 /^X\(\/\).*/{ 16455 s//\1/ 16456 q 16457 } 16458 s/.*/./; q'` 16459 test -d "$as_dir" && break 16460 done 16461 test -z "$as_dirs" || eval "mkdir $as_dirs" 16462 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16463 16464 16465} # as_fn_mkdir_p 16466if mkdir -p . 2>/dev/null; then 16467 as_mkdir_p='mkdir -p "$as_dir"' 16468else 16469 test -d ./-p && rmdir ./-p 16470 as_mkdir_p=false 16471fi 16472 16473 16474# as_fn_executable_p FILE 16475# ----------------------- 16476# Test if FILE is an executable regular file. 16477as_fn_executable_p () 16478{ 16479 test -f "$1" && test -x "$1" 16480} # as_fn_executable_p 16481as_test_x='test -x' 16482as_executable_p=as_fn_executable_p 16483 16484# Sed expression to map a string onto a valid CPP name. 16485as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16486 16487# Sed expression to map a string onto a valid variable name. 16488as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16489 16490 16491exec 6>&1 16492## ----------------------------------- ## 16493## Main body of $CONFIG_STATUS script. ## 16494## ----------------------------------- ## 16495_ASEOF 16496test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16497 16498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16499# Save the log message, to keep $0 and so on meaningful, and to 16500# report actual input values of CONFIG_FILES etc. instead of their 16501# values after options handling. 16502ac_log=" 16503This file was extended by fontconfig $as_me 2.11.1, which was 16504generated by GNU Autoconf 2.69. Invocation command line was 16505 16506 CONFIG_FILES = $CONFIG_FILES 16507 CONFIG_HEADERS = $CONFIG_HEADERS 16508 CONFIG_LINKS = $CONFIG_LINKS 16509 CONFIG_COMMANDS = $CONFIG_COMMANDS 16510 $ $0 $@ 16511 16512on `(hostname || uname -n) 2>/dev/null | sed 1q` 16513" 16514 16515_ACEOF 16516 16517case $ac_config_files in *" 16518"*) set x $ac_config_files; shift; ac_config_files=$*;; 16519esac 16520 16521case $ac_config_headers in *" 16522"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16523esac 16524 16525 16526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16527# Files that config.status was made for. 16528config_files="$ac_config_files" 16529config_headers="$ac_config_headers" 16530config_commands="$ac_config_commands" 16531 16532_ACEOF 16533 16534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16535ac_cs_usage="\ 16536\`$as_me' instantiates files and other configuration actions 16537from templates according to the current configuration. Unless the files 16538and actions are specified as TAGs, all are instantiated by default. 16539 16540Usage: $0 [OPTION]... [TAG]... 16541 16542 -h, --help print this help, then exit 16543 -V, --version print version number and configuration settings, then exit 16544 --config print configuration, then exit 16545 -q, --quiet, --silent 16546 do not print progress messages 16547 -d, --debug don't remove temporary files 16548 --recheck update $as_me by reconfiguring in the same conditions 16549 --file=FILE[:TEMPLATE] 16550 instantiate the configuration file FILE 16551 --header=FILE[:TEMPLATE] 16552 instantiate the configuration header FILE 16553 16554Configuration files: 16555$config_files 16556 16557Configuration headers: 16558$config_headers 16559 16560Configuration commands: 16561$config_commands 16562 16563Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>." 16564 16565_ACEOF 16566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16567ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16568ac_cs_version="\\ 16569fontconfig config.status 2.11.1 16570configured by $0, generated by GNU Autoconf 2.69, 16571 with options \\"\$ac_cs_config\\" 16572 16573Copyright (C) 2012 Free Software Foundation, Inc. 16574This config.status script is free software; the Free Software Foundation 16575gives unlimited permission to copy, distribute and modify it." 16576 16577ac_pwd='$ac_pwd' 16578srcdir='$srcdir' 16579INSTALL='$INSTALL' 16580MKDIR_P='$MKDIR_P' 16581AWK='$AWK' 16582test -n "\$AWK" || AWK=awk 16583_ACEOF 16584 16585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16586# The default lists apply if the user does not specify any file. 16587ac_need_defaults=: 16588while test $# != 0 16589do 16590 case $1 in 16591 --*=?*) 16592 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16594 ac_shift=: 16595 ;; 16596 --*=) 16597 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16598 ac_optarg= 16599 ac_shift=: 16600 ;; 16601 *) 16602 ac_option=$1 16603 ac_optarg=$2 16604 ac_shift=shift 16605 ;; 16606 esac 16607 16608 case $ac_option in 16609 # Handling of the options. 16610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16611 ac_cs_recheck=: ;; 16612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16613 $as_echo "$ac_cs_version"; exit ;; 16614 --config | --confi | --conf | --con | --co | --c ) 16615 $as_echo "$ac_cs_config"; exit ;; 16616 --debug | --debu | --deb | --de | --d | -d ) 16617 debug=: ;; 16618 --file | --fil | --fi | --f ) 16619 $ac_shift 16620 case $ac_optarg in 16621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16622 '') as_fn_error $? "missing file argument" ;; 16623 esac 16624 as_fn_append CONFIG_FILES " '$ac_optarg'" 16625 ac_need_defaults=false;; 16626 --header | --heade | --head | --hea ) 16627 $ac_shift 16628 case $ac_optarg in 16629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16630 esac 16631 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16632 ac_need_defaults=false;; 16633 --he | --h) 16634 # Conflict between --help and --header 16635 as_fn_error $? "ambiguous option: \`$1' 16636Try \`$0 --help' for more information.";; 16637 --help | --hel | -h ) 16638 $as_echo "$ac_cs_usage"; exit ;; 16639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16640 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16641 ac_cs_silent=: ;; 16642 16643 # This is an error. 16644 -*) as_fn_error $? "unrecognized option: \`$1' 16645Try \`$0 --help' for more information." ;; 16646 16647 *) as_fn_append ac_config_targets " $1" 16648 ac_need_defaults=false ;; 16649 16650 esac 16651 shift 16652done 16653 16654ac_configure_extra_args= 16655 16656if $ac_cs_silent; then 16657 exec 6>/dev/null 16658 ac_configure_extra_args="$ac_configure_extra_args --silent" 16659fi 16660 16661_ACEOF 16662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16663if \$ac_cs_recheck; then 16664 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16665 shift 16666 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16667 CONFIG_SHELL='$SHELL' 16668 export CONFIG_SHELL 16669 exec "\$@" 16670fi 16671 16672_ACEOF 16673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16674exec 5>>config.log 16675{ 16676 echo 16677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16678## Running $as_me. ## 16679_ASBOX 16680 $as_echo "$ac_log" 16681} >&5 16682 16683_ACEOF 16684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16685# 16686# INIT-COMMANDS 16687# 16688AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16689 16690 16691# The HP-UX ksh and POSIX shell print the target directory to stdout 16692# if CDPATH is set. 16693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16694 16695sed_quote_subst='$sed_quote_subst' 16696double_quote_subst='$double_quote_subst' 16697delay_variable_subst='$delay_variable_subst' 16698macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16699macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16700enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16701AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 16702DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16703OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16704enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16705pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16706enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16707SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16708ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16709PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16710host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16711host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16712host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16713build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16714build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16715build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16716SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16717Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16718GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16719EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16720FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16721LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16722NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16723LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16724max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16725ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16726exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16727lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16728lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16729lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16730lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16731lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16732reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16733reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16734deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16735file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16736file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16737want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16738sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16739AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16740AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16741archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16742STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16743RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16744old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16745old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16746old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16747lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16748CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16749CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16750compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16751GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16752lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16753lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16754lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16755lt_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"`' 16756nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16757lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16758objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16759MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16760lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16761lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16762lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16763lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16764lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16765need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16766MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16767DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16768NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16769LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16770OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16771OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16772libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16773shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16774extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16775archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16776enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16777export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16778whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16779compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16780old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16781old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16782archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16783archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16784module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16785module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16786with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16787allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16788no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16789hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16790hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16791hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16792hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16793hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16794hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16795hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16796inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16797link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16798always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16799export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16800exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16801include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16802prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16803postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16804file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16805variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16806need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16807need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16808version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16809runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16810shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16811shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16812libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16813library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16814soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16815install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16816postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16817postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16818finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16819finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16820hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16821sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16822sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16823hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16824enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16825enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16826enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16827old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16828striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16829 16830LTCC='$LTCC' 16831LTCFLAGS='$LTCFLAGS' 16832compiler='$compiler_DEFAULT' 16833 16834# A function that is used when there is no print builtin or printf. 16835func_fallback_echo () 16836{ 16837 eval 'cat <<_LTECHO_EOF 16838\$1 16839_LTECHO_EOF' 16840} 16841 16842# Quote evaled strings. 16843for var in AS \ 16844DLLTOOL \ 16845OBJDUMP \ 16846SHELL \ 16847ECHO \ 16848PATH_SEPARATOR \ 16849SED \ 16850GREP \ 16851EGREP \ 16852FGREP \ 16853LD \ 16854NM \ 16855LN_S \ 16856lt_SP2NL \ 16857lt_NL2SP \ 16858reload_flag \ 16859deplibs_check_method \ 16860file_magic_cmd \ 16861file_magic_glob \ 16862want_nocaseglob \ 16863sharedlib_from_linklib_cmd \ 16864AR \ 16865AR_FLAGS \ 16866archiver_list_spec \ 16867STRIP \ 16868RANLIB \ 16869CC \ 16870CFLAGS \ 16871compiler \ 16872lt_cv_sys_global_symbol_pipe \ 16873lt_cv_sys_global_symbol_to_cdecl \ 16874lt_cv_sys_global_symbol_to_c_name_address \ 16875lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16876nm_file_list_spec \ 16877lt_prog_compiler_no_builtin_flag \ 16878lt_prog_compiler_pic \ 16879lt_prog_compiler_wl \ 16880lt_prog_compiler_static \ 16881lt_cv_prog_compiler_c_o \ 16882need_locks \ 16883MANIFEST_TOOL \ 16884DSYMUTIL \ 16885NMEDIT \ 16886LIPO \ 16887OTOOL \ 16888OTOOL64 \ 16889shrext_cmds \ 16890export_dynamic_flag_spec \ 16891whole_archive_flag_spec \ 16892compiler_needs_object \ 16893with_gnu_ld \ 16894allow_undefined_flag \ 16895no_undefined_flag \ 16896hardcode_libdir_flag_spec \ 16897hardcode_libdir_separator \ 16898exclude_expsyms \ 16899include_expsyms \ 16900file_list_spec \ 16901variables_saved_for_relink \ 16902libname_spec \ 16903library_names_spec \ 16904soname_spec \ 16905install_override_mode \ 16906finish_eval \ 16907old_striplib \ 16908striplib; do 16909 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16910 *[\\\\\\\`\\"\\\$]*) 16911 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16912 ;; 16913 *) 16914 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16915 ;; 16916 esac 16917done 16918 16919# Double-quote double-evaled strings. 16920for var in reload_cmds \ 16921old_postinstall_cmds \ 16922old_postuninstall_cmds \ 16923old_archive_cmds \ 16924extract_expsyms_cmds \ 16925old_archive_from_new_cmds \ 16926old_archive_from_expsyms_cmds \ 16927archive_cmds \ 16928archive_expsym_cmds \ 16929module_cmds \ 16930module_expsym_cmds \ 16931export_symbols_cmds \ 16932prelink_cmds \ 16933postlink_cmds \ 16934postinstall_cmds \ 16935postuninstall_cmds \ 16936finish_cmds \ 16937sys_lib_search_path_spec \ 16938sys_lib_dlsearch_path_spec; do 16939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16940 *[\\\\\\\`\\"\\\$]*) 16941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16942 ;; 16943 *) 16944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16945 ;; 16946 esac 16947done 16948 16949ac_aux_dir='$ac_aux_dir' 16950xsi_shell='$xsi_shell' 16951lt_shell_append='$lt_shell_append' 16952 16953# See if we are running on zsh, and set the options which allow our 16954# commands through without removal of \ escapes INIT. 16955if test -n "\${ZSH_VERSION+set}" ; then 16956 setopt NO_GLOB_SUBST 16957fi 16958 16959 16960 PACKAGE='$PACKAGE' 16961 VERSION='$VERSION' 16962 TIMESTAMP='$TIMESTAMP' 16963 RM='$RM' 16964 ofile='$ofile' 16965 16966 16967 16968# variables for create stdint.h replacement 16969PACKAGE="$PACKAGE" 16970VERSION="$VERSION" 16971ac_stdint_h="$ac_stdint_h" 16972_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 16973ac_cv_stdint_message="$ac_cv_stdint_message" 16974ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 16975ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 16976ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 16977ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 16978ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 16979ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 16980ac_cv_char_data_model="$ac_cv_char_data_model" 16981ac_cv_long_data_model="$ac_cv_long_data_model" 16982ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 16983ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 16984ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 16985 16986 16987_ACEOF 16988 16989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16990 16991# Handling of arguments. 16992for ac_config_target in $ac_config_targets 16993do 16994 case $ac_config_target in 16995 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16996 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16997 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16998 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 16999 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17000 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;; 17001 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;; 17002 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;; 17003 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;; 17004 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17005 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;; 17006 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;; 17007 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;; 17008 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;; 17009 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;; 17010 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;; 17011 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;; 17012 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;; 17013 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;; 17014 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17015 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;; 17016 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 17017 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;; 17018 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;; 17019 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;; 17020 17021 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17022 esac 17023done 17024 17025 17026# If the user did not use the arguments to specify the items to instantiate, 17027# then the envvar interface is used. Set only those that are not. 17028# We use the long form for the default assignment because of an extremely 17029# bizarre bug on SunOS 4.1.3. 17030if $ac_need_defaults; then 17031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17034fi 17035 17036# Have a temporary directory for convenience. Make it in the build tree 17037# simply because there is no reason against having it here, and in addition, 17038# creating and moving files from /tmp can sometimes cause problems. 17039# Hook for its removal unless debugging. 17040# Note that there is a small window in which the directory will not be cleaned: 17041# after its creation but before its name has been assigned to `$tmp'. 17042$debug || 17043{ 17044 tmp= ac_tmp= 17045 trap 'exit_status=$? 17046 : "${ac_tmp:=$tmp}" 17047 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17048' 0 17049 trap 'as_fn_exit 1' 1 2 13 15 17050} 17051# Create a (secure) tmp directory for tmp files. 17052 17053{ 17054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17055 test -d "$tmp" 17056} || 17057{ 17058 tmp=./conf$$-$RANDOM 17059 (umask 077 && mkdir "$tmp") 17060} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17061ac_tmp=$tmp 17062 17063# Set up the scripts for CONFIG_FILES section. 17064# No need to generate them if there are no CONFIG_FILES. 17065# This happens for instance with `./config.status config.h'. 17066if test -n "$CONFIG_FILES"; then 17067 17068 17069ac_cr=`echo X | tr X '\015'` 17070# On cygwin, bash can eat \r inside `` if the user requested igncr. 17071# But we know of no other shell where ac_cr would be empty at this 17072# point, so we can use a bashism as a fallback. 17073if test "x$ac_cr" = x; then 17074 eval ac_cr=\$\'\\r\' 17075fi 17076ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17077if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17078 ac_cs_awk_cr='\\r' 17079else 17080 ac_cs_awk_cr=$ac_cr 17081fi 17082 17083echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17084_ACEOF 17085 17086 17087{ 17088 echo "cat >conf$$subs.awk <<_ACEOF" && 17089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17090 echo "_ACEOF" 17091} >conf$$subs.sh || 17092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17093ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17094ac_delim='%!_!# ' 17095for ac_last_try in false false false false false :; do 17096 . ./conf$$subs.sh || 17097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17098 17099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17100 if test $ac_delim_n = $ac_delim_num; then 17101 break 17102 elif $ac_last_try; then 17103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17104 else 17105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17106 fi 17107done 17108rm -f conf$$subs.sh 17109 17110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17111cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17112_ACEOF 17113sed -n ' 17114h 17115s/^/S["/; s/!.*/"]=/ 17116p 17117g 17118s/^[^!]*!// 17119:repl 17120t repl 17121s/'"$ac_delim"'$// 17122t delim 17123:nl 17124h 17125s/\(.\{148\}\)..*/\1/ 17126t more1 17127s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17128p 17129n 17130b repl 17131:more1 17132s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17133p 17134g 17135s/.\{148\}// 17136t nl 17137:delim 17138h 17139s/\(.\{148\}\)..*/\1/ 17140t more2 17141s/["\\]/\\&/g; s/^/"/; s/$/"/ 17142p 17143b 17144:more2 17145s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17146p 17147g 17148s/.\{148\}// 17149t delim 17150' <conf$$subs.awk | sed ' 17151/^[^""]/{ 17152 N 17153 s/\n// 17154} 17155' >>$CONFIG_STATUS || ac_write_fail=1 17156rm -f conf$$subs.awk 17157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17158_ACAWK 17159cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17160 for (key in S) S_is_set[key] = 1 17161 FS = "" 17162 17163} 17164{ 17165 line = $ 0 17166 nfields = split(line, field, "@") 17167 substed = 0 17168 len = length(field[1]) 17169 for (i = 2; i < nfields; i++) { 17170 key = field[i] 17171 keylen = length(key) 17172 if (S_is_set[key]) { 17173 value = S[key] 17174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17175 len += length(value) + length(field[++i]) 17176 substed = 1 17177 } else 17178 len += 1 + keylen 17179 } 17180 17181 print line 17182} 17183 17184_ACAWK 17185_ACEOF 17186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17187if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17189else 17190 cat 17191fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17192 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17193_ACEOF 17194 17195# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17196# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17197# trailing colons and then remove the whole line if VPATH becomes empty 17198# (actually we leave an empty line to preserve line numbers). 17199if test "x$srcdir" = x.; then 17200 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17201h 17202s/// 17203s/^/:/ 17204s/[ ]*$/:/ 17205s/:\$(srcdir):/:/g 17206s/:\${srcdir}:/:/g 17207s/:@srcdir@:/:/g 17208s/^:*// 17209s/:*$// 17210x 17211s/\(=[ ]*\).*/\1/ 17212G 17213s/\n// 17214s/^[^=]*=[ ]*$// 17215}' 17216fi 17217 17218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17219fi # test -n "$CONFIG_FILES" 17220 17221# Set up the scripts for CONFIG_HEADERS section. 17222# No need to generate them if there are no CONFIG_HEADERS. 17223# This happens for instance with `./config.status Makefile'. 17224if test -n "$CONFIG_HEADERS"; then 17225cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17226BEGIN { 17227_ACEOF 17228 17229# Transform confdefs.h into an awk script `defines.awk', embedded as 17230# here-document in config.status, that substitutes the proper values into 17231# config.h.in to produce config.h. 17232 17233# Create a delimiter string that does not exist in confdefs.h, to ease 17234# handling of long lines. 17235ac_delim='%!_!# ' 17236for ac_last_try in false false :; do 17237 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17238 if test -z "$ac_tt"; then 17239 break 17240 elif $ac_last_try; then 17241 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17242 else 17243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17244 fi 17245done 17246 17247# For the awk script, D is an array of macro values keyed by name, 17248# likewise P contains macro parameters if any. Preserve backslash 17249# newline sequences. 17250 17251ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17252sed -n ' 17253s/.\{148\}/&'"$ac_delim"'/g 17254t rset 17255:rset 17256s/^[ ]*#[ ]*define[ ][ ]*/ / 17257t def 17258d 17259:def 17260s/\\$// 17261t bsnl 17262s/["\\]/\\&/g 17263s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17264D["\1"]=" \3"/p 17265s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17266d 17267:bsnl 17268s/["\\]/\\&/g 17269s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17270D["\1"]=" \3\\\\\\n"\\/p 17271t cont 17272s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17273t cont 17274d 17275:cont 17276n 17277s/.\{148\}/&'"$ac_delim"'/g 17278t clear 17279:clear 17280s/\\$// 17281t bsnlc 17282s/["\\]/\\&/g; s/^/"/; s/$/"/p 17283d 17284:bsnlc 17285s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17286b cont 17287' <confdefs.h | sed ' 17288s/'"$ac_delim"'/"\\\ 17289"/g' >>$CONFIG_STATUS || ac_write_fail=1 17290 17291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17292 for (key in D) D_is_set[key] = 1 17293 FS = "" 17294} 17295/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17296 line = \$ 0 17297 split(line, arg, " ") 17298 if (arg[1] == "#") { 17299 defundef = arg[2] 17300 mac1 = arg[3] 17301 } else { 17302 defundef = substr(arg[1], 2) 17303 mac1 = arg[2] 17304 } 17305 split(mac1, mac2, "(") #) 17306 macro = mac2[1] 17307 prefix = substr(line, 1, index(line, defundef) - 1) 17308 if (D_is_set[macro]) { 17309 # Preserve the white space surrounding the "#". 17310 print prefix "define", macro P[macro] D[macro] 17311 next 17312 } else { 17313 # Replace #undef with comments. This is necessary, for example, 17314 # in the case of _POSIX_SOURCE, which is predefined and required 17315 # on some systems where configure will not decide to define it. 17316 if (defundef == "undef") { 17317 print "/*", prefix defundef, macro, "*/" 17318 next 17319 } 17320 } 17321} 17322{ print } 17323_ACAWK 17324_ACEOF 17325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17326 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17327fi # test -n "$CONFIG_HEADERS" 17328 17329 17330eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17331shift 17332for ac_tag 17333do 17334 case $ac_tag in 17335 :[FHLC]) ac_mode=$ac_tag; continue;; 17336 esac 17337 case $ac_mode$ac_tag in 17338 :[FHL]*:*);; 17339 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17340 :[FH]-) ac_tag=-:-;; 17341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17342 esac 17343 ac_save_IFS=$IFS 17344 IFS=: 17345 set x $ac_tag 17346 IFS=$ac_save_IFS 17347 shift 17348 ac_file=$1 17349 shift 17350 17351 case $ac_mode in 17352 :L) ac_source=$1;; 17353 :[FH]) 17354 ac_file_inputs= 17355 for ac_f 17356 do 17357 case $ac_f in 17358 -) ac_f="$ac_tmp/stdin";; 17359 *) # Look for the file first in the build tree, then in the source tree 17360 # (if the path is not absolute). The absolute path cannot be DOS-style, 17361 # because $ac_f cannot contain `:'. 17362 test -f "$ac_f" || 17363 case $ac_f in 17364 [\\/$]*) false;; 17365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17366 esac || 17367 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17368 esac 17369 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17370 as_fn_append ac_file_inputs " '$ac_f'" 17371 done 17372 17373 # Let's still pretend it is `configure' which instantiates (i.e., don't 17374 # use $as_me), people would be surprised to read: 17375 # /* config.h. Generated by config.status. */ 17376 configure_input='Generated from '` 17377 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17378 `' by configure.' 17379 if test x"$ac_file" != x-; then 17380 configure_input="$ac_file. $configure_input" 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17382$as_echo "$as_me: creating $ac_file" >&6;} 17383 fi 17384 # Neutralize special characters interpreted by sed in replacement strings. 17385 case $configure_input in #( 17386 *\&* | *\|* | *\\* ) 17387 ac_sed_conf_input=`$as_echo "$configure_input" | 17388 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17389 *) ac_sed_conf_input=$configure_input;; 17390 esac 17391 17392 case $ac_tag in 17393 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17395 esac 17396 ;; 17397 esac 17398 17399 ac_dir=`$as_dirname -- "$ac_file" || 17400$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17401 X"$ac_file" : 'X\(//\)[^/]' \| \ 17402 X"$ac_file" : 'X\(//\)$' \| \ 17403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17404$as_echo X"$ac_file" | 17405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17406 s//\1/ 17407 q 17408 } 17409 /^X\(\/\/\)[^/].*/{ 17410 s//\1/ 17411 q 17412 } 17413 /^X\(\/\/\)$/{ 17414 s//\1/ 17415 q 17416 } 17417 /^X\(\/\).*/{ 17418 s//\1/ 17419 q 17420 } 17421 s/.*/./; q'` 17422 as_dir="$ac_dir"; as_fn_mkdir_p 17423 ac_builddir=. 17424 17425case "$ac_dir" in 17426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17427*) 17428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17429 # A ".." for each directory in $ac_dir_suffix. 17430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17431 case $ac_top_builddir_sub in 17432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17434 esac ;; 17435esac 17436ac_abs_top_builddir=$ac_pwd 17437ac_abs_builddir=$ac_pwd$ac_dir_suffix 17438# for backward compatibility: 17439ac_top_builddir=$ac_top_build_prefix 17440 17441case $srcdir in 17442 .) # We are building in place. 17443 ac_srcdir=. 17444 ac_top_srcdir=$ac_top_builddir_sub 17445 ac_abs_top_srcdir=$ac_pwd ;; 17446 [\\/]* | ?:[\\/]* ) # Absolute name. 17447 ac_srcdir=$srcdir$ac_dir_suffix; 17448 ac_top_srcdir=$srcdir 17449 ac_abs_top_srcdir=$srcdir ;; 17450 *) # Relative name. 17451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17452 ac_top_srcdir=$ac_top_build_prefix$srcdir 17453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17454esac 17455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17456 17457 17458 case $ac_mode in 17459 :F) 17460 # 17461 # CONFIG_FILE 17462 # 17463 17464 case $INSTALL in 17465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17467 esac 17468 ac_MKDIR_P=$MKDIR_P 17469 case $MKDIR_P in 17470 [\\/$]* | ?:[\\/]* ) ;; 17471 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17472 esac 17473_ACEOF 17474 17475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17476# If the template does not know about datarootdir, expand it. 17477# FIXME: This hack should be removed a few years after 2.60. 17478ac_datarootdir_hack=; ac_datarootdir_seen= 17479ac_sed_dataroot=' 17480/datarootdir/ { 17481 p 17482 q 17483} 17484/@datadir@/p 17485/@docdir@/p 17486/@infodir@/p 17487/@localedir@/p 17488/@mandir@/p' 17489case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17490*datarootdir*) ac_datarootdir_seen=yes;; 17491*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17493$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17494_ACEOF 17495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17496 ac_datarootdir_hack=' 17497 s&@datadir@&$datadir&g 17498 s&@docdir@&$docdir&g 17499 s&@infodir@&$infodir&g 17500 s&@localedir@&$localedir&g 17501 s&@mandir@&$mandir&g 17502 s&\\\${datarootdir}&$datarootdir&g' ;; 17503esac 17504_ACEOF 17505 17506# Neutralize VPATH when `$srcdir' = `.'. 17507# Shell code in configure.ac might set extrasub. 17508# FIXME: do we really want to maintain this feature? 17509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17510ac_sed_extra="$ac_vpsub 17511$extrasub 17512_ACEOF 17513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17514:t 17515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17516s|@configure_input@|$ac_sed_conf_input|;t t 17517s&@top_builddir@&$ac_top_builddir_sub&;t t 17518s&@top_build_prefix@&$ac_top_build_prefix&;t t 17519s&@srcdir@&$ac_srcdir&;t t 17520s&@abs_srcdir@&$ac_abs_srcdir&;t t 17521s&@top_srcdir@&$ac_top_srcdir&;t t 17522s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17523s&@builddir@&$ac_builddir&;t t 17524s&@abs_builddir@&$ac_abs_builddir&;t t 17525s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17526s&@INSTALL@&$ac_INSTALL&;t t 17527s&@MKDIR_P@&$ac_MKDIR_P&;t t 17528$ac_datarootdir_hack 17529" 17530eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17531 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17532 17533test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17534 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17536 "$ac_tmp/out"`; test -z "$ac_out"; } && 17537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17538which seems to be undefined. Please make sure it is defined" >&5 17539$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17540which seems to be undefined. Please make sure it is defined" >&2;} 17541 17542 rm -f "$ac_tmp/stdin" 17543 case $ac_file in 17544 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17545 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17546 esac \ 17547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17548 ;; 17549 :H) 17550 # 17551 # CONFIG_HEADER 17552 # 17553 if test x"$ac_file" != x-; then 17554 { 17555 $as_echo "/* $configure_input */" \ 17556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17557 } >"$ac_tmp/config.h" \ 17558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17559 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17561$as_echo "$as_me: $ac_file is unchanged" >&6;} 17562 else 17563 rm -f "$ac_file" 17564 mv "$ac_tmp/config.h" "$ac_file" \ 17565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17566 fi 17567 else 17568 $as_echo "/* $configure_input */" \ 17569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17570 || as_fn_error $? "could not create -" "$LINENO" 5 17571 fi 17572# Compute "$ac_file"'s index in $config_headers. 17573_am_arg="$ac_file" 17574_am_stamp_count=1 17575for _am_header in $config_headers :; do 17576 case $_am_header in 17577 $_am_arg | $_am_arg:* ) 17578 break ;; 17579 * ) 17580 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17581 esac 17582done 17583echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17584$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17585 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17586 X"$_am_arg" : 'X\(//\)$' \| \ 17587 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17588$as_echo X"$_am_arg" | 17589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17590 s//\1/ 17591 q 17592 } 17593 /^X\(\/\/\)[^/].*/{ 17594 s//\1/ 17595 q 17596 } 17597 /^X\(\/\/\)$/{ 17598 s//\1/ 17599 q 17600 } 17601 /^X\(\/\).*/{ 17602 s//\1/ 17603 q 17604 } 17605 s/.*/./; q'`/stamp-h$_am_stamp_count 17606 ;; 17607 17608 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17609$as_echo "$as_me: executing $ac_file commands" >&6;} 17610 ;; 17611 esac 17612 17613 17614 case $ac_file$ac_mode in 17615 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17616 # Older Autoconf quotes --file arguments for eval, but not when files 17617 # are listed without --file. Let's play safe and only enable the eval 17618 # if we detect the quoting. 17619 case $CONFIG_FILES in 17620 *\'*) eval set x "$CONFIG_FILES" ;; 17621 *) set x $CONFIG_FILES ;; 17622 esac 17623 shift 17624 for mf 17625 do 17626 # Strip MF so we end up with the name of the file. 17627 mf=`echo "$mf" | sed -e 's/:.*$//'` 17628 # Check whether this is an Automake generated Makefile or not. 17629 # We used to match only the files named 'Makefile.in', but 17630 # some people rename them; so instead we look at the file content. 17631 # Grep'ing the first line is not enough: some people post-process 17632 # each Makefile.in and add a new line on top of each file to say so. 17633 # Grep'ing the whole file is not good either: AIX grep has a line 17634 # limit of 2048, but all sed's we know have understand at least 4000. 17635 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17636 dirpart=`$as_dirname -- "$mf" || 17637$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17638 X"$mf" : 'X\(//\)[^/]' \| \ 17639 X"$mf" : 'X\(//\)$' \| \ 17640 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17641$as_echo X"$mf" | 17642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17643 s//\1/ 17644 q 17645 } 17646 /^X\(\/\/\)[^/].*/{ 17647 s//\1/ 17648 q 17649 } 17650 /^X\(\/\/\)$/{ 17651 s//\1/ 17652 q 17653 } 17654 /^X\(\/\).*/{ 17655 s//\1/ 17656 q 17657 } 17658 s/.*/./; q'` 17659 else 17660 continue 17661 fi 17662 # Extract the definition of DEPDIR, am__include, and am__quote 17663 # from the Makefile without running 'make'. 17664 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17665 test -z "$DEPDIR" && continue 17666 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17667 test -z "$am__include" && continue 17668 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17669 # Find all dependency output files, they are included files with 17670 # $(DEPDIR) in their names. We invoke sed twice because it is the 17671 # simplest approach to changing $(DEPDIR) to its actual value in the 17672 # expansion. 17673 for file in `sed -n " 17674 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17675 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17676 # Make sure the directory exists. 17677 test -f "$dirpart/$file" && continue 17678 fdir=`$as_dirname -- "$file" || 17679$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17680 X"$file" : 'X\(//\)[^/]' \| \ 17681 X"$file" : 'X\(//\)$' \| \ 17682 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17683$as_echo X"$file" | 17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17685 s//\1/ 17686 q 17687 } 17688 /^X\(\/\/\)[^/].*/{ 17689 s//\1/ 17690 q 17691 } 17692 /^X\(\/\/\)$/{ 17693 s//\1/ 17694 q 17695 } 17696 /^X\(\/\).*/{ 17697 s//\1/ 17698 q 17699 } 17700 s/.*/./; q'` 17701 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17702 # echo "creating $dirpart/$file" 17703 echo '# dummy' > "$dirpart/$file" 17704 done 17705 done 17706} 17707 ;; 17708 "libtool":C) 17709 17710 # See if we are running on zsh, and set the options which allow our 17711 # commands through without removal of \ escapes. 17712 if test -n "${ZSH_VERSION+set}" ; then 17713 setopt NO_GLOB_SUBST 17714 fi 17715 17716 cfgfile="${ofile}T" 17717 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17718 $RM "$cfgfile" 17719 17720 cat <<_LT_EOF >> "$cfgfile" 17721#! $SHELL 17722 17723# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17724# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17725# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17726# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17727# 17728# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17729# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17730# Foundation, Inc. 17731# Written by Gordon Matzigkeit, 1996 17732# 17733# This file is part of GNU Libtool. 17734# 17735# GNU Libtool is free software; you can redistribute it and/or 17736# modify it under the terms of the GNU General Public License as 17737# published by the Free Software Foundation; either version 2 of 17738# the License, or (at your option) any later version. 17739# 17740# As a special exception to the GNU General Public License, 17741# if you distribute this file as part of a program or library that 17742# is built using GNU Libtool, you may include this file under the 17743# same distribution terms that you use for the rest of that program. 17744# 17745# GNU Libtool is distributed in the hope that it will be useful, 17746# but WITHOUT ANY WARRANTY; without even the implied warranty of 17747# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17748# GNU General Public License for more details. 17749# 17750# You should have received a copy of the GNU General Public License 17751# along with GNU Libtool; see the file COPYING. If not, a copy 17752# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17753# obtained by writing to the Free Software Foundation, Inc., 17754# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17755 17756 17757# The names of the tagged configurations supported by this script. 17758available_tags="" 17759 17760# ### BEGIN LIBTOOL CONFIG 17761 17762# Which release of libtool.m4 was used? 17763macro_version=$macro_version 17764macro_revision=$macro_revision 17765 17766# Whether or not to build static libraries. 17767build_old_libs=$enable_static 17768 17769# Assembler program. 17770AS=$lt_AS 17771 17772# DLL creation program. 17773DLLTOOL=$lt_DLLTOOL 17774 17775# Object dumper program. 17776OBJDUMP=$lt_OBJDUMP 17777 17778# Whether or not to build shared libraries. 17779build_libtool_libs=$enable_shared 17780 17781# What type of objects to build. 17782pic_mode=$pic_mode 17783 17784# Whether or not to optimize for fast installation. 17785fast_install=$enable_fast_install 17786 17787# Shell to use when invoking shell scripts. 17788SHELL=$lt_SHELL 17789 17790# An echo program that protects backslashes. 17791ECHO=$lt_ECHO 17792 17793# The PATH separator for the build system. 17794PATH_SEPARATOR=$lt_PATH_SEPARATOR 17795 17796# The host system. 17797host_alias=$host_alias 17798host=$host 17799host_os=$host_os 17800 17801# The build system. 17802build_alias=$build_alias 17803build=$build 17804build_os=$build_os 17805 17806# A sed program that does not truncate output. 17807SED=$lt_SED 17808 17809# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17810Xsed="\$SED -e 1s/^X//" 17811 17812# A grep program that handles long lines. 17813GREP=$lt_GREP 17814 17815# An ERE matcher. 17816EGREP=$lt_EGREP 17817 17818# A literal string matcher. 17819FGREP=$lt_FGREP 17820 17821# A BSD- or MS-compatible name lister. 17822NM=$lt_NM 17823 17824# Whether we need soft or hard links. 17825LN_S=$lt_LN_S 17826 17827# What is the maximum length of a command? 17828max_cmd_len=$max_cmd_len 17829 17830# Object file suffix (normally "o"). 17831objext=$ac_objext 17832 17833# Executable file suffix (normally ""). 17834exeext=$exeext 17835 17836# whether the shell understands "unset". 17837lt_unset=$lt_unset 17838 17839# turn spaces into newlines. 17840SP2NL=$lt_lt_SP2NL 17841 17842# turn newlines into spaces. 17843NL2SP=$lt_lt_NL2SP 17844 17845# convert \$build file names to \$host format. 17846to_host_file_cmd=$lt_cv_to_host_file_cmd 17847 17848# convert \$build files to toolchain format. 17849to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17850 17851# Method to check whether dependent libraries are shared objects. 17852deplibs_check_method=$lt_deplibs_check_method 17853 17854# Command to use when deplibs_check_method = "file_magic". 17855file_magic_cmd=$lt_file_magic_cmd 17856 17857# How to find potential files when deplibs_check_method = "file_magic". 17858file_magic_glob=$lt_file_magic_glob 17859 17860# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17861want_nocaseglob=$lt_want_nocaseglob 17862 17863# Command to associate shared and link libraries. 17864sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17865 17866# The archiver. 17867AR=$lt_AR 17868 17869# Flags to create an archive. 17870AR_FLAGS=$lt_AR_FLAGS 17871 17872# How to feed a file listing to the archiver. 17873archiver_list_spec=$lt_archiver_list_spec 17874 17875# A symbol stripping program. 17876STRIP=$lt_STRIP 17877 17878# Commands used to install an old-style archive. 17879RANLIB=$lt_RANLIB 17880old_postinstall_cmds=$lt_old_postinstall_cmds 17881old_postuninstall_cmds=$lt_old_postuninstall_cmds 17882 17883# Whether to use a lock for old archive extraction. 17884lock_old_archive_extraction=$lock_old_archive_extraction 17885 17886# A C compiler. 17887LTCC=$lt_CC 17888 17889# LTCC compiler flags. 17890LTCFLAGS=$lt_CFLAGS 17891 17892# Take the output of nm and produce a listing of raw symbols and C names. 17893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17894 17895# Transform the output of nm in a proper C declaration. 17896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17897 17898# Transform the output of nm in a C name address pair. 17899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17900 17901# Transform the output of nm in a C name address pair when lib prefix is needed. 17902global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17903 17904# Specify filename containing input files for \$NM. 17905nm_file_list_spec=$lt_nm_file_list_spec 17906 17907# The root where to search for dependent libraries,and in which our libraries should be installed. 17908lt_sysroot=$lt_sysroot 17909 17910# The name of the directory that contains temporary libtool files. 17911objdir=$objdir 17912 17913# Used to examine libraries when file_magic_cmd begins with "file". 17914MAGIC_CMD=$MAGIC_CMD 17915 17916# Must we lock files when doing compilation? 17917need_locks=$lt_need_locks 17918 17919# Manifest tool. 17920MANIFEST_TOOL=$lt_MANIFEST_TOOL 17921 17922# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17923DSYMUTIL=$lt_DSYMUTIL 17924 17925# Tool to change global to local symbols on Mac OS X. 17926NMEDIT=$lt_NMEDIT 17927 17928# Tool to manipulate fat objects and archives on Mac OS X. 17929LIPO=$lt_LIPO 17930 17931# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17932OTOOL=$lt_OTOOL 17933 17934# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17935OTOOL64=$lt_OTOOL64 17936 17937# Old archive suffix (normally "a"). 17938libext=$libext 17939 17940# Shared library suffix (normally ".so"). 17941shrext_cmds=$lt_shrext_cmds 17942 17943# The commands to extract the exported symbol list from a shared archive. 17944extract_expsyms_cmds=$lt_extract_expsyms_cmds 17945 17946# Variables whose values should be saved in libtool wrapper scripts and 17947# restored at link time. 17948variables_saved_for_relink=$lt_variables_saved_for_relink 17949 17950# Do we need the "lib" prefix for modules? 17951need_lib_prefix=$need_lib_prefix 17952 17953# Do we need a version for libraries? 17954need_version=$need_version 17955 17956# Library versioning type. 17957version_type=$version_type 17958 17959# Shared library runtime path variable. 17960runpath_var=$runpath_var 17961 17962# Shared library path variable. 17963shlibpath_var=$shlibpath_var 17964 17965# Is shlibpath searched before the hard-coded library search path? 17966shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17967 17968# Format of library name prefix. 17969libname_spec=$lt_libname_spec 17970 17971# List of archive names. First name is the real one, the rest are links. 17972# The last name is the one that the linker finds with -lNAME 17973library_names_spec=$lt_library_names_spec 17974 17975# The coded name of the library, if different from the real name. 17976soname_spec=$lt_soname_spec 17977 17978# Permission mode override for installation of shared libraries. 17979install_override_mode=$lt_install_override_mode 17980 17981# Command to use after installation of a shared archive. 17982postinstall_cmds=$lt_postinstall_cmds 17983 17984# Command to use after uninstallation of a shared archive. 17985postuninstall_cmds=$lt_postuninstall_cmds 17986 17987# Commands used to finish a libtool library installation in a directory. 17988finish_cmds=$lt_finish_cmds 17989 17990# As "finish_cmds", except a single script fragment to be evaled but 17991# not shown. 17992finish_eval=$lt_finish_eval 17993 17994# Whether we should hardcode library paths into libraries. 17995hardcode_into_libs=$hardcode_into_libs 17996 17997# Compile-time system search path for libraries. 17998sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17999 18000# Run-time system search path for libraries. 18001sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18002 18003# Whether dlopen is supported. 18004dlopen_support=$enable_dlopen 18005 18006# Whether dlopen of programs is supported. 18007dlopen_self=$enable_dlopen_self 18008 18009# Whether dlopen of statically linked programs is supported. 18010dlopen_self_static=$enable_dlopen_self_static 18011 18012# Commands to strip libraries. 18013old_striplib=$lt_old_striplib 18014striplib=$lt_striplib 18015 18016 18017# The linker used to build libraries. 18018LD=$lt_LD 18019 18020# How to create reloadable object files. 18021reload_flag=$lt_reload_flag 18022reload_cmds=$lt_reload_cmds 18023 18024# Commands used to build an old-style archive. 18025old_archive_cmds=$lt_old_archive_cmds 18026 18027# A language specific compiler. 18028CC=$lt_compiler 18029 18030# Is the compiler the GNU compiler? 18031with_gcc=$GCC 18032 18033# Compiler flag to turn off builtin functions. 18034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18035 18036# Additional compiler flags for building library objects. 18037pic_flag=$lt_lt_prog_compiler_pic 18038 18039# How to pass a linker flag through the compiler. 18040wl=$lt_lt_prog_compiler_wl 18041 18042# Compiler flag to prevent dynamic linking. 18043link_static_flag=$lt_lt_prog_compiler_static 18044 18045# Does compiler simultaneously support -c and -o options? 18046compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18047 18048# Whether or not to add -lc for building shared libraries. 18049build_libtool_need_lc=$archive_cmds_need_lc 18050 18051# Whether or not to disallow shared libs when runtime libs are static. 18052allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18053 18054# Compiler flag to allow reflexive dlopens. 18055export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18056 18057# Compiler flag to generate shared objects directly from archives. 18058whole_archive_flag_spec=$lt_whole_archive_flag_spec 18059 18060# Whether the compiler copes with passing no objects directly. 18061compiler_needs_object=$lt_compiler_needs_object 18062 18063# Create an old-style archive from a shared archive. 18064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18065 18066# Create a temporary old-style archive to link instead of a shared archive. 18067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18068 18069# Commands used to build a shared archive. 18070archive_cmds=$lt_archive_cmds 18071archive_expsym_cmds=$lt_archive_expsym_cmds 18072 18073# Commands used to build a loadable module if different from building 18074# a shared archive. 18075module_cmds=$lt_module_cmds 18076module_expsym_cmds=$lt_module_expsym_cmds 18077 18078# Whether we are building with GNU ld or not. 18079with_gnu_ld=$lt_with_gnu_ld 18080 18081# Flag that allows shared libraries with undefined symbols to be built. 18082allow_undefined_flag=$lt_allow_undefined_flag 18083 18084# Flag that enforces no undefined symbols. 18085no_undefined_flag=$lt_no_undefined_flag 18086 18087# Flag to hardcode \$libdir into a binary during linking. 18088# This must work even if \$libdir does not exist 18089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18090 18091# Whether we need a single "-rpath" flag with a separated argument. 18092hardcode_libdir_separator=$lt_hardcode_libdir_separator 18093 18094# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18095# DIR into the resulting binary. 18096hardcode_direct=$hardcode_direct 18097 18098# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18099# DIR into the resulting binary and the resulting library dependency is 18100# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18101# library is relocated. 18102hardcode_direct_absolute=$hardcode_direct_absolute 18103 18104# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18105# into the resulting binary. 18106hardcode_minus_L=$hardcode_minus_L 18107 18108# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18109# into the resulting binary. 18110hardcode_shlibpath_var=$hardcode_shlibpath_var 18111 18112# Set to "yes" if building a shared library automatically hardcodes DIR 18113# into the library and all subsequent libraries and executables linked 18114# against it. 18115hardcode_automatic=$hardcode_automatic 18116 18117# Set to yes if linker adds runtime paths of dependent libraries 18118# to runtime path list. 18119inherit_rpath=$inherit_rpath 18120 18121# Whether libtool must link a program against all its dependency libraries. 18122link_all_deplibs=$link_all_deplibs 18123 18124# Set to "yes" if exported symbols are required. 18125always_export_symbols=$always_export_symbols 18126 18127# The commands to list exported symbols. 18128export_symbols_cmds=$lt_export_symbols_cmds 18129 18130# Symbols that should not be listed in the preloaded symbols. 18131exclude_expsyms=$lt_exclude_expsyms 18132 18133# Symbols that must always be exported. 18134include_expsyms=$lt_include_expsyms 18135 18136# Commands necessary for linking programs (against libraries) with templates. 18137prelink_cmds=$lt_prelink_cmds 18138 18139# Commands necessary for finishing linking programs. 18140postlink_cmds=$lt_postlink_cmds 18141 18142# Specify filename containing input files. 18143file_list_spec=$lt_file_list_spec 18144 18145# How to hardcode a shared library path into an executable. 18146hardcode_action=$hardcode_action 18147 18148# ### END LIBTOOL CONFIG 18149 18150_LT_EOF 18151 18152 case $host_os in 18153 aix3*) 18154 cat <<\_LT_EOF >> "$cfgfile" 18155# AIX sometimes has problems with the GCC collect2 program. For some 18156# reason, if we set the COLLECT_NAMES environment variable, the problems 18157# vanish in a puff of smoke. 18158if test "X${COLLECT_NAMES+set}" != Xset; then 18159 COLLECT_NAMES= 18160 export COLLECT_NAMES 18161fi 18162_LT_EOF 18163 ;; 18164 esac 18165 18166 18167ltmain="$ac_aux_dir/ltmain.sh" 18168 18169 18170 # We use sed instead of cat because bash on DJGPP gets confused if 18171 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18172 # text mode, it properly converts lines to CR/LF. This bash problem 18173 # is reportedly fixed, but why not run on old versions too? 18174 sed '$q' "$ltmain" >> "$cfgfile" \ 18175 || (rm -f "$cfgfile"; exit 1) 18176 18177 if test x"$xsi_shell" = xyes; then 18178 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18179func_dirname ()\ 18180{\ 18181\ case ${1} in\ 18182\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18183\ * ) func_dirname_result="${3}" ;;\ 18184\ esac\ 18185} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18186 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18188test 0 -eq $? || _lt_function_replace_fail=: 18189 18190 18191 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18192func_basename ()\ 18193{\ 18194\ func_basename_result="${1##*/}"\ 18195} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18196 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18198test 0 -eq $? || _lt_function_replace_fail=: 18199 18200 18201 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18202func_dirname_and_basename ()\ 18203{\ 18204\ case ${1} in\ 18205\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18206\ * ) func_dirname_result="${3}" ;;\ 18207\ esac\ 18208\ func_basename_result="${1##*/}"\ 18209} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18210 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18212test 0 -eq $? || _lt_function_replace_fail=: 18213 18214 18215 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18216func_stripname ()\ 18217{\ 18218\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18219\ # positional parameters, so assign one to ordinary parameter first.\ 18220\ func_stripname_result=${3}\ 18221\ func_stripname_result=${func_stripname_result#"${1}"}\ 18222\ func_stripname_result=${func_stripname_result%"${2}"}\ 18223} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18224 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18226test 0 -eq $? || _lt_function_replace_fail=: 18227 18228 18229 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18230func_split_long_opt ()\ 18231{\ 18232\ func_split_long_opt_name=${1%%=*}\ 18233\ func_split_long_opt_arg=${1#*=}\ 18234} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18235 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18237test 0 -eq $? || _lt_function_replace_fail=: 18238 18239 18240 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18241func_split_short_opt ()\ 18242{\ 18243\ func_split_short_opt_arg=${1#??}\ 18244\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18245} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18246 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18248test 0 -eq $? || _lt_function_replace_fail=: 18249 18250 18251 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18252func_lo2o ()\ 18253{\ 18254\ case ${1} in\ 18255\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18256\ *) func_lo2o_result=${1} ;;\ 18257\ esac\ 18258} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18259 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18261test 0 -eq $? || _lt_function_replace_fail=: 18262 18263 18264 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18265func_xform ()\ 18266{\ 18267 func_xform_result=${1%.*}.lo\ 18268} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18269 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18271test 0 -eq $? || _lt_function_replace_fail=: 18272 18273 18274 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18275func_arith ()\ 18276{\ 18277 func_arith_result=$(( $* ))\ 18278} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18279 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18281test 0 -eq $? || _lt_function_replace_fail=: 18282 18283 18284 sed -e '/^func_len ()$/,/^} # func_len /c\ 18285func_len ()\ 18286{\ 18287 func_len_result=${#1}\ 18288} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18289 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18291test 0 -eq $? || _lt_function_replace_fail=: 18292 18293fi 18294 18295if test x"$lt_shell_append" = xyes; then 18296 sed -e '/^func_append ()$/,/^} # func_append /c\ 18297func_append ()\ 18298{\ 18299 eval "${1}+=\\${2}"\ 18300} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18301 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18303test 0 -eq $? || _lt_function_replace_fail=: 18304 18305 18306 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18307func_append_quoted ()\ 18308{\ 18309\ func_quote_for_eval "${2}"\ 18310\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18311} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18312 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18314test 0 -eq $? || _lt_function_replace_fail=: 18315 18316 18317 # Save a `func_append' function call where possible by direct use of '+=' 18318 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18319 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18321 test 0 -eq $? || _lt_function_replace_fail=: 18322else 18323 # Save a `func_append' function call even when '+=' is not available 18324 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18325 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18327 test 0 -eq $? || _lt_function_replace_fail=: 18328fi 18329 18330if test x"$_lt_function_replace_fail" = x":"; then 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18332$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18333fi 18334 18335 18336 mv -f "$cfgfile" "$ofile" || 18337 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18338 chmod +x "$ofile" 18339 18340 ;; 18341 "$ac_stdint_h":C) 18342{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 18343$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 18344ac_stdint=$tmp/_stdint.h 18345 18346echo "#ifndef" $_ac_stdint_h >$ac_stdint 18347echo "#define" $_ac_stdint_h "1" >>$ac_stdint 18348echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 18349echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 18350echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 18351if test "_$ac_cv_header_stdint_t" != "_" ; then 18352echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 18353echo "#include <stdint.h>" >>$ac_stdint 18354echo "#endif" >>$ac_stdint 18355echo "#endif" >>$ac_stdint 18356else 18357 18358cat >>$ac_stdint <<STDINT_EOF 18359 18360/* ................... shortcircuit part ........................... */ 18361 18362#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 18363#include <stdint.h> 18364#else 18365#include <stddef.h> 18366 18367/* .................... configured part ............................ */ 18368 18369STDINT_EOF 18370 18371echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 18372if test "_$ac_cv_header_stdint_x" != "_" ; then 18373 ac_header="$ac_cv_header_stdint_x" 18374 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 18375else 18376 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 18377fi 18378 18379echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 18380if test "_$ac_cv_header_stdint_o" != "_" ; then 18381 ac_header="$ac_cv_header_stdint_o" 18382 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 18383else 18384 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 18385fi 18386 18387echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 18388if test "_$ac_cv_header_stdint_u" != "_" ; then 18389 ac_header="$ac_cv_header_stdint_u" 18390 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 18391else 18392 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 18393fi 18394 18395echo "" >>$ac_stdint 18396 18397if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 18398 echo "#include <$ac_header>" >>$ac_stdint 18399 echo "" >>$ac_stdint 18400fi fi 18401 18402echo "/* which 64bit typedef has been found */" >>$ac_stdint 18403if test "$ac_cv_type_uint64_t" = "yes" ; then 18404echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 18405else 18406echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 18407fi 18408if test "$ac_cv_type_u_int64_t" = "yes" ; then 18409echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 18410else 18411echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 18412fi 18413echo "" >>$ac_stdint 18414 18415echo "/* which type model has been detected */" >>$ac_stdint 18416if test "_$ac_cv_char_data_model" != "_" ; then 18417echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint 18418echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint 18419else 18420echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 18421echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 18422fi 18423echo "" >>$ac_stdint 18424 18425echo "/* whether int_least types were detected */" >>$ac_stdint 18426if test "$ac_cv_type_int_least32_t" = "yes"; then 18427echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 18428else 18429echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 18430fi 18431echo "/* whether int_fast types were detected */" >>$ac_stdint 18432if test "$ac_cv_type_int_fast32_t" = "yes"; then 18433echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 18434else 18435echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 18436fi 18437echo "/* whether intmax_t type was detected */" >>$ac_stdint 18438if test "$ac_cv_type_intmax_t" = "yes"; then 18439echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 18440else 18441echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 18442fi 18443echo "" >>$ac_stdint 18444 18445 cat >>$ac_stdint <<STDINT_EOF 18446/* .................... detections part ............................ */ 18447 18448/* whether we need to define bitspecific types from compiler base types */ 18449#ifndef _STDINT_HEADER_INTPTR 18450#ifndef _STDINT_HEADER_UINT32 18451#ifndef _STDINT_HEADER_U_INT32 18452#define _STDINT_NEED_INT_MODEL_T 18453#else 18454#define _STDINT_HAVE_U_INT_TYPES 18455#endif 18456#endif 18457#endif 18458 18459#ifdef _STDINT_HAVE_U_INT_TYPES 18460#undef _STDINT_NEED_INT_MODEL_T 18461#endif 18462 18463#ifdef _STDINT_CHAR_MODEL 18464#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 18465#ifndef _STDINT_BYTE_MODEL 18466#define _STDINT_BYTE_MODEL 12 18467#endif 18468#endif 18469#endif 18470 18471#ifndef _STDINT_HAVE_INT_LEAST32_T 18472#define _STDINT_NEED_INT_LEAST_T 18473#endif 18474 18475#ifndef _STDINT_HAVE_INT_FAST32_T 18476#define _STDINT_NEED_INT_FAST_T 18477#endif 18478 18479#ifndef _STDINT_HEADER_INTPTR 18480#define _STDINT_NEED_INTPTR_T 18481#ifndef _STDINT_HAVE_INTMAX_T 18482#define _STDINT_NEED_INTMAX_T 18483#endif 18484#endif 18485 18486 18487/* .................... definition part ............................ */ 18488 18489/* some system headers have good uint64_t */ 18490#ifndef _HAVE_UINT64_T 18491#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 18492#define _HAVE_UINT64_T 18493#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 18494#define _HAVE_UINT64_T 18495typedef u_int64_t uint64_t; 18496#endif 18497#endif 18498 18499#ifndef _HAVE_UINT64_T 18500/* .. here are some common heuristics using compiler runtime specifics */ 18501#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 18502#define _HAVE_UINT64_T 18503#define _HAVE_LONGLONG_UINT64_T 18504typedef long long int64_t; 18505typedef unsigned long long uint64_t; 18506 18507#elif !defined __STRICT_ANSI__ 18508#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 18509#define _HAVE_UINT64_T 18510typedef __int64 int64_t; 18511typedef unsigned __int64 uint64_t; 18512 18513#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 18514/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 18515#if !defined _NO_LONGLONG 18516#define _HAVE_UINT64_T 18517#define _HAVE_LONGLONG_UINT64_T 18518typedef long long int64_t; 18519typedef unsigned long long uint64_t; 18520#endif 18521 18522#elif defined __alpha || (defined __mips && defined _ABIN32) 18523#if !defined _NO_LONGLONG 18524typedef long int64_t; 18525typedef unsigned long uint64_t; 18526#endif 18527 /* compiler/cpu type to define int64_t */ 18528#endif 18529#endif 18530#endif 18531 18532#if defined _STDINT_HAVE_U_INT_TYPES 18533/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 18534typedef u_int8_t uint8_t; 18535typedef u_int16_t uint16_t; 18536typedef u_int32_t uint32_t; 18537 18538/* glibc compatibility */ 18539#ifndef __int8_t_defined 18540#define __int8_t_defined 18541#endif 18542#endif 18543 18544#ifdef _STDINT_NEED_INT_MODEL_T 18545/* we must guess all the basic types. Apart from byte-adressable system, */ 18546/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 18547/* (btw, those nibble-addressable systems are way off, or so we assume) */ 18548 18549 18550#if defined _STDINT_BYTE_MODEL 18551#if _STDINT_LONG_MODEL+0 == 242 18552/* 2:4:2 = IP16 = a normal 16-bit system */ 18553typedef unsigned char uint8_t; 18554typedef unsigned short uint16_t; 18555typedef unsigned long uint32_t; 18556#ifndef __int8_t_defined 18557#define __int8_t_defined 18558typedef char int8_t; 18559typedef short int16_t; 18560typedef long int32_t; 18561#endif 18562#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 18563/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 18564/* 4:4:4 = ILP32 = a normal 32-bit system */ 18565typedef unsigned char uint8_t; 18566typedef unsigned short uint16_t; 18567typedef unsigned int uint32_t; 18568#ifndef __int8_t_defined 18569#define __int8_t_defined 18570typedef char int8_t; 18571typedef short int16_t; 18572typedef int int32_t; 18573#endif 18574#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 18575/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 18576/* 4:8:8 = LP64 = a normal 64-bit system */ 18577typedef unsigned char uint8_t; 18578typedef unsigned short uint16_t; 18579typedef unsigned int uint32_t; 18580#ifndef __int8_t_defined 18581#define __int8_t_defined 18582typedef char int8_t; 18583typedef short int16_t; 18584typedef int int32_t; 18585#endif 18586/* this system has a "long" of 64bit */ 18587#ifndef _HAVE_UINT64_T 18588#define _HAVE_UINT64_T 18589typedef unsigned long uint64_t; 18590typedef long int64_t; 18591#endif 18592#elif _STDINT_LONG_MODEL+0 == 448 18593/* LLP64 a 64-bit system derived from a 32-bit system */ 18594typedef unsigned char uint8_t; 18595typedef unsigned short uint16_t; 18596typedef unsigned int uint32_t; 18597#ifndef __int8_t_defined 18598#define __int8_t_defined 18599typedef char int8_t; 18600typedef short int16_t; 18601typedef int int32_t; 18602#endif 18603/* assuming the system has a "long long" */ 18604#ifndef _HAVE_UINT64_T 18605#define _HAVE_UINT64_T 18606#define _HAVE_LONGLONG_UINT64_T 18607typedef unsigned long long uint64_t; 18608typedef long long int64_t; 18609#endif 18610#else 18611#define _STDINT_NO_INT32_T 18612#endif 18613#else 18614#define _STDINT_NO_INT8_T 18615#define _STDINT_NO_INT32_T 18616#endif 18617#endif 18618 18619/* 18620 * quote from SunOS-5.8 sys/inttypes.h: 18621 * Use at your own risk. As of February 1996, the committee is squarely 18622 * behind the fixed sized types; the "least" and "fast" types are still being 18623 * discussed. The probability that the "fast" types may be removed before 18624 * the standard is finalized is high enough that they are not currently 18625 * implemented. 18626 */ 18627 18628#if defined _STDINT_NEED_INT_LEAST_T 18629typedef int8_t int_least8_t; 18630typedef int16_t int_least16_t; 18631typedef int32_t int_least32_t; 18632#ifdef _HAVE_UINT64_T 18633typedef int64_t int_least64_t; 18634#endif 18635 18636typedef uint8_t uint_least8_t; 18637typedef uint16_t uint_least16_t; 18638typedef uint32_t uint_least32_t; 18639#ifdef _HAVE_UINT64_T 18640typedef uint64_t uint_least64_t; 18641#endif 18642 /* least types */ 18643#endif 18644 18645#if defined _STDINT_NEED_INT_FAST_T 18646typedef int8_t int_fast8_t; 18647typedef int int_fast16_t; 18648typedef int32_t int_fast32_t; 18649#ifdef _HAVE_UINT64_T 18650typedef int64_t int_fast64_t; 18651#endif 18652 18653typedef uint8_t uint_fast8_t; 18654typedef unsigned uint_fast16_t; 18655typedef uint32_t uint_fast32_t; 18656#ifdef _HAVE_UINT64_T 18657typedef uint64_t uint_fast64_t; 18658#endif 18659 /* fast types */ 18660#endif 18661 18662#ifdef _STDINT_NEED_INTMAX_T 18663#ifdef _HAVE_UINT64_T 18664typedef int64_t intmax_t; 18665typedef uint64_t uintmax_t; 18666#else 18667typedef long intmax_t; 18668typedef unsigned long uintmax_t; 18669#endif 18670#endif 18671 18672#ifdef _STDINT_NEED_INTPTR_T 18673#ifndef __intptr_t_defined 18674#define __intptr_t_defined 18675/* we encourage using "long" to store pointer values, never use "int" ! */ 18676#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 18677typedef unsigned int uintptr_t; 18678typedef int intptr_t; 18679#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 18680typedef unsigned long uintptr_t; 18681typedef long intptr_t; 18682#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 18683typedef uint64_t uintptr_t; 18684typedef int64_t intptr_t; 18685#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 18686typedef unsigned long uintptr_t; 18687typedef long intptr_t; 18688#endif 18689#endif 18690#endif 18691 18692/* The ISO C99 standard specifies that in C++ implementations these 18693 should only be defined if explicitly requested. */ 18694#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS 18695#ifndef UINT32_C 18696 18697/* Signed. */ 18698# define INT8_C(c) c 18699# define INT16_C(c) c 18700# define INT32_C(c) c 18701# ifdef _HAVE_LONGLONG_UINT64_T 18702# define INT64_C(c) c ## L 18703# else 18704# define INT64_C(c) c ## LL 18705# endif 18706 18707/* Unsigned. */ 18708# define UINT8_C(c) c ## U 18709# define UINT16_C(c) c ## U 18710# define UINT32_C(c) c ## U 18711# ifdef _HAVE_LONGLONG_UINT64_T 18712# define UINT64_C(c) c ## UL 18713# else 18714# define UINT64_C(c) c ## ULL 18715# endif 18716 18717/* Maximal type. */ 18718# ifdef _HAVE_LONGLONG_UINT64_T 18719# define INTMAX_C(c) c ## L 18720# define UINTMAX_C(c) c ## UL 18721# else 18722# define INTMAX_C(c) c ## LL 18723# define UINTMAX_C(c) c ## ULL 18724# endif 18725 18726 /* literalnumbers */ 18727#endif 18728#endif 18729 18730/* These limits are merily those of a two complement byte-oriented system */ 18731 18732/* Minimum of signed integral types. */ 18733# define INT8_MIN (-128) 18734# define INT16_MIN (-32767-1) 18735# define INT32_MIN (-2147483647-1) 18736# define INT64_MIN (-__INT64_C(9223372036854775807)-1) 18737/* Maximum of signed integral types. */ 18738# define INT8_MAX (127) 18739# define INT16_MAX (32767) 18740# define INT32_MAX (2147483647) 18741# define INT64_MAX (__INT64_C(9223372036854775807)) 18742 18743/* Maximum of unsigned integral types. */ 18744# define UINT8_MAX (255) 18745# define UINT16_MAX (65535) 18746# define UINT32_MAX (4294967295U) 18747# define UINT64_MAX (__UINT64_C(18446744073709551615)) 18748 18749/* Minimum of signed integral types having a minimum size. */ 18750# define INT_LEAST8_MIN INT8_MIN 18751# define INT_LEAST16_MIN INT16_MIN 18752# define INT_LEAST32_MIN INT32_MIN 18753# define INT_LEAST64_MIN INT64_MIN 18754/* Maximum of signed integral types having a minimum size. */ 18755# define INT_LEAST8_MAX INT8_MAX 18756# define INT_LEAST16_MAX INT16_MAX 18757# define INT_LEAST32_MAX INT32_MAX 18758# define INT_LEAST64_MAX INT64_MAX 18759 18760/* Maximum of unsigned integral types having a minimum size. */ 18761# define UINT_LEAST8_MAX UINT8_MAX 18762# define UINT_LEAST16_MAX UINT16_MAX 18763# define UINT_LEAST32_MAX UINT32_MAX 18764# define UINT_LEAST64_MAX UINT64_MAX 18765 18766 /* shortcircuit*/ 18767#endif 18768 /* once */ 18769#endif 18770#endif 18771STDINT_EOF 18772fi 18773 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 18774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 18775$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} 18776 else 18777 ac_dir=`$as_dirname -- "$ac_stdint_h" || 18778$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18779 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 18780 X"$ac_stdint_h" : 'X\(//\)$' \| \ 18781 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 18782$as_echo X"$ac_stdint_h" | 18783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18784 s//\1/ 18785 q 18786 } 18787 /^X\(\/\/\)[^/].*/{ 18788 s//\1/ 18789 q 18790 } 18791 /^X\(\/\/\)$/{ 18792 s//\1/ 18793 q 18794 } 18795 /^X\(\/\).*/{ 18796 s//\1/ 18797 q 18798 } 18799 s/.*/./; q'` 18800 as_dir="$ac_dir"; as_fn_mkdir_p 18801 rm -f $ac_stdint_h 18802 mv $ac_stdint $ac_stdint_h 18803 fi 18804 ;; 18805 18806 esac 18807done # for ac_tag 18808 18809 18810as_fn_exit 0 18811_ACEOF 18812ac_clean_files=$ac_clean_files_save 18813 18814test $ac_write_fail = 0 || 18815 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18816 18817 18818# configure is writing to config.log, and then calls config.status. 18819# config.status does its own redirection, appending to config.log. 18820# Unfortunately, on DOS this fails, as config.log is still kept open 18821# by configure, so config.status won't be able to write to it; its 18822# output is simply discarded. So we exec the FD to /dev/null, 18823# effectively closing config.log, so it can be properly (re)opened and 18824# appended to by config.status. When coming back to configure, we 18825# need to make the FD available again. 18826if test "$no_create" != yes; then 18827 ac_cs_success=: 18828 ac_config_status_args= 18829 test "$silent" = yes && 18830 ac_config_status_args="$ac_config_status_args --quiet" 18831 exec 5>/dev/null 18832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18833 exec 5>>config.log 18834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18835 # would make configure fail if this is the last instruction. 18836 $ac_cs_success || as_fn_exit 1 18837fi 18838if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18840$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18841fi 18842 18843