1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libtsm 3. 4# 5# Report bugs to <https://github.com/dvdhrm/libtsm/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 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://github.com/dvdhrm/libtsm/issues about your 279$0: system, including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libtsm' 592PACKAGE_TARNAME='libtsm' 593PACKAGE_VERSION='3' 594PACKAGE_STRING='libtsm 3' 595PACKAGE_BUGREPORT='https://github.com/dvdhrm/libtsm/issues' 596PACKAGE_URL='http://dvdhrm.github.io/libtsm' 597 598ac_unique_file="src/tsm_vte.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639BUILD_ENABLE_OPTIMIZATIONS_FALSE 640BUILD_ENABLE_OPTIMIZATIONS_TRUE 641BUILD_ENABLE_DEBUG_FALSE 642BUILD_ENABLE_DEBUG_TRUE 643BUILD_HAVE_CHECK_FALSE 644BUILD_HAVE_CHECK_TRUE 645CHECK_LIBS 646CHECK_CFLAGS 647BUILD_HAVE_XKBCOMMON_FALSE 648BUILD_HAVE_XKBCOMMON_TRUE 649XKBCOMMON_LIBS 650XKBCOMMON_CFLAGS 651PKG_CONFIG_LIBDIR 652PKG_CONFIG_PATH 653PKG_CONFIG 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661DLLTOOL 662OBJDUMP 663NM 664ac_ct_DUMPBIN 665DUMPBIN 666LD 667FGREP 668LIBTOOL 669LN_S 670SED 671ac_ct_AR 672AR 673PACKAGE_DESCRIPTION 674AM_BACKSLASH 675AM_DEFAULT_VERBOSITY 676AM_DEFAULT_V 677AM_V 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708INSTALL_DATA 709INSTALL_SCRIPT 710INSTALL_PROGRAM 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719EGREP 720GREP 721CPP 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748localstatedir 749sharedstatedir 750sysconfdir 751datadir 752datarootdir 753libexecdir 754sbindir 755bindir 756program_transform_name 757prefix 758exec_prefix 759PACKAGE_URL 760PACKAGE_BUGREPORT 761PACKAGE_STRING 762PACKAGE_VERSION 763PACKAGE_TARNAME 764PACKAGE_NAME 765PATH_SEPARATOR 766SHELL' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_largefile 771enable_dependency_tracking 772enable_silent_rules 773enable_shared 774enable_static 775with_pic 776enable_fast_install 777with_gnu_ld 778with_sysroot 779enable_libtool_lock 780enable_debug 781enable_optimizations 782' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CC 787CFLAGS 788LDFLAGS 789LIBS 790CPPFLAGS 791CPP 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795XKBCOMMON_CFLAGS 796XKBCOMMON_LIBS 797CHECK_CFLAGS 798CHECK_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837includedir='${prefix}/include' 838oldincludedir='/usr/include' 839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840infodir='${datarootdir}/info' 841htmldir='${docdir}' 842dvidir='${docdir}' 843pdfdir='${docdir}' 844psdir='${docdir}' 845libdir='${exec_prefix}/lib' 846localedir='${datarootdir}/locale' 847mandir='${datarootdir}/man' 848 849ac_prev= 850ac_dashdash= 851for ac_option 852do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *=) ac_optarg= ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 # Accept the important Cygnus configure options, so we can diagnose typos. 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: $ac_useropt" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=no ;; 919 920 -docdir | --docdir | --docdi | --doc | --do) 921 ac_prev=docdir ;; 922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 923 docdir=$ac_optarg ;; 924 925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 926 ac_prev=dvidir ;; 927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 928 dvidir=$ac_optarg ;; 929 930 -enable-* | --enable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1090 ac_prev=sbindir ;; 1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1092 | --sbi=* | --sb=*) 1093 sbindir=$ac_optarg ;; 1094 1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1097 | --sharedst | --shareds | --shared | --share | --shar \ 1098 | --sha | --sh) 1099 ac_prev=sharedstatedir ;; 1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1103 | --sha=* | --sh=*) 1104 sharedstatedir=$ac_optarg ;; 1105 1106 -site | --site | --sit) 1107 ac_prev=site ;; 1108 -site=* | --site=* | --sit=*) 1109 site=$ac_optarg ;; 1110 1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1112 ac_prev=srcdir ;; 1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1114 srcdir=$ac_optarg ;; 1115 1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1117 | --syscon | --sysco | --sysc | --sys | --sy) 1118 ac_prev=sysconfdir ;; 1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1121 sysconfdir=$ac_optarg ;; 1122 1123 -target | --target | --targe | --targ | --tar | --ta | --t) 1124 ac_prev=target_alias ;; 1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1126 target_alias=$ac_optarg ;; 1127 1128 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1129 verbose=yes ;; 1130 1131 -version | --version | --versio | --versi | --vers | -V) 1132 ac_init_version=: ;; 1133 1134 -with-* | --with-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=\$ac_optarg ;; 1149 1150 -without-* | --without-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=no ;; 1165 1166 --x) 1167 # Obsolete; use --with-x. 1168 with_x=yes ;; 1169 1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1171 | --x-incl | --x-inc | --x-in | --x-i) 1172 ac_prev=x_includes ;; 1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1175 x_includes=$ac_optarg ;; 1176 1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1179 ac_prev=x_libraries ;; 1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1182 x_libraries=$ac_optarg ;; 1183 1184 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1185Try \`$0 --help' for more information" 1186 ;; 1187 1188 *=*) 1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1190 # Reject names that are not valid shell variable names. 1191 case $ac_envvar in #( 1192 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1194 esac 1195 eval $ac_envvar=\$ac_optarg 1196 export $ac_envvar ;; 1197 1198 *) 1199 # FIXME: should be removed in autoconf 3.0. 1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1204 ;; 1205 1206 esac 1207done 1208 1209if test -n "$ac_prev"; then 1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1211 as_fn_error $? "missing argument to $ac_option" 1212fi 1213 1214if test -n "$ac_unrecognized_opts"; then 1215 case $enable_option_checking in 1216 no) ;; 1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1219 esac 1220fi 1221 1222# Check all directory arguments for consistency. 1223for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1224 datadir sysconfdir sharedstatedir localstatedir includedir \ 1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1226 libdir localedir mandir 1227do 1228 eval ac_val=\$$ac_var 1229 # Remove trailing slashes. 1230 case $ac_val in 1231 */ ) 1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1233 eval $ac_var=\$ac_val;; 1234 esac 1235 # Be sure to have absolute directory names. 1236 case $ac_val in 1237 [\\/$]* | ?:[\\/]* ) continue;; 1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1239 esac 1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1241done 1242 1243# There might be people who depend on the old broken behavior: `$host' 1244# used to hold the argument of --host etc. 1245# FIXME: To remove some day. 1246build=$build_alias 1247host=$host_alias 1248target=$target_alias 1249 1250# FIXME: To remove some day. 1251if test "x$host_alias" != x; then 1252 if test "x$build_alias" = x; then 1253 cross_compiling=maybe 1254 elif test "x$build_alias" != "x$host_alias"; then 1255 cross_compiling=yes 1256 fi 1257fi 1258 1259ac_tool_prefix= 1260test -n "$host_alias" && ac_tool_prefix=$host_alias- 1261 1262test "$silent" = yes && exec 6>/dev/null 1263 1264 1265ac_pwd=`pwd` && test -n "$ac_pwd" && 1266ac_ls_di=`ls -di .` && 1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1268 as_fn_error $? "working directory cannot be determined" 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1270 as_fn_error $? "pwd does not report name of working directory" 1271 1272 1273# Find the source files, if location was not specified. 1274if test -z "$srcdir"; then 1275 ac_srcdir_defaulted=yes 1276 # Try the directory containing this script, then the parent directory. 1277 ac_confdir=`$as_dirname -- "$as_myself" || 1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1279 X"$as_myself" : 'X\(//\)[^/]' \| \ 1280 X"$as_myself" : 'X\(//\)$' \| \ 1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1282$as_echo X"$as_myself" | 1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)[^/].*/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\).*/{ 1296 s//\1/ 1297 q 1298 } 1299 s/.*/./; q'` 1300 srcdir=$ac_confdir 1301 if test ! -r "$srcdir/$ac_unique_file"; then 1302 srcdir=.. 1303 fi 1304else 1305 ac_srcdir_defaulted=no 1306fi 1307if test ! -r "$srcdir/$ac_unique_file"; then 1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1310fi 1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1312ac_abs_confdir=`( 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1314 pwd)` 1315# When building in place, set srcdir=. 1316if test "$ac_abs_confdir" = "$ac_pwd"; then 1317 srcdir=. 1318fi 1319# Remove unnecessary trailing slashes from srcdir. 1320# Double slashes in file names in object file debugging info 1321# mess up M-x gdb in Emacs. 1322case $srcdir in 1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1324esac 1325for ac_var in $ac_precious_vars; do 1326 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_env_${ac_var}_value=\$${ac_var} 1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1330done 1331 1332# 1333# Report the --help message. 1334# 1335if test "$ac_init_help" = "long"; then 1336 # Omit some internal or obsolete options to make the list less imposing. 1337 # This message is too long to be a string in the A/UX 3.1 sh. 1338 cat <<_ACEOF 1339\`configure' configures libtsm 3 to adapt to many kinds of systems. 1340 1341Usage: $0 [OPTION]... [VAR=VALUE]... 1342 1343To assign environment variables (e.g., CC, CFLAGS...), specify them as 1344VAR=VALUE. See below for descriptions of some of the useful variables. 1345 1346Defaults for the options are specified in brackets. 1347 1348Configuration: 1349 -h, --help display this help and exit 1350 --help=short display options specific to this package 1351 --help=recursive display the short help of all the included packages 1352 -V, --version display version information and exit 1353 -q, --quiet, --silent do not print \`checking ...' messages 1354 --cache-file=FILE cache test results in FILE [disabled] 1355 -C, --config-cache alias for \`--cache-file=config.cache' 1356 -n, --no-create do not create output files 1357 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1358 1359Installation directories: 1360 --prefix=PREFIX install architecture-independent files in PREFIX 1361 [$ac_default_prefix] 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1363 [PREFIX] 1364 1365By default, \`make install' will install all the files in 1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1367an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1368for instance \`--prefix=\$HOME'. 1369 1370For better control, use the options below. 1371 1372Fine tuning of the installation directories: 1373 --bindir=DIR user executables [EPREFIX/bin] 1374 --sbindir=DIR system admin executables [EPREFIX/sbin] 1375 --libexecdir=DIR program executables [EPREFIX/libexec] 1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libtsm] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of libtsm 3:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --disable-largefile omit support for large files 1418 --enable-dependency-tracking 1419 do not reject slow dependency extractors 1420 --disable-dependency-tracking 1421 speeds up one-time build 1422 --enable-silent-rules less verbose build output (undo: "make V=1") 1423 --disable-silent-rules verbose build output (undo: "make V=0") 1424 --enable-shared[=PKGS] build shared libraries [default=yes] 1425 --enable-static[=PKGS] build static libraries [default=yes] 1426 --enable-fast-install[=PKGS] 1427 optimize for fast installation [default=yes] 1428 --disable-libtool-lock avoid locking (might break parallel builds) 1429 --enable-debug whether to build with debugging on 1430 --disable-optimizations whether to disable code optimizations 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1438 --with-sysroot=DIR Search for dependent libraries within DIR 1439 (or the compiler's sysroot if not specified). 1440 1441Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 CPP C preprocessor 1450 PKG_CONFIG path to pkg-config utility 1451 PKG_CONFIG_PATH 1452 directories to add to pkg-config's search path 1453 PKG_CONFIG_LIBDIR 1454 path overriding pkg-config's built-in search path 1455 XKBCOMMON_CFLAGS 1456 C compiler flags for XKBCOMMON, overriding pkg-config 1457 XKBCOMMON_LIBS 1458 linker flags for XKBCOMMON, overriding pkg-config 1459 CHECK_CFLAGS 1460 C compiler flags for CHECK, overriding pkg-config 1461 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1462 1463Use these variables to override the choices made by `configure' or to help 1464it to find libraries and programs with nonstandard names/locations. 1465 1466Report bugs to <https://github.com/dvdhrm/libtsm/issues>. 1467libtsm home page: <http://dvdhrm.github.io/libtsm>. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530libtsm configure 3 1531generated by GNU Autoconf 2.69 1532 1533Copyright (C) 2012 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_c_try_cpp LINENO 1583# ---------------------- 1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_cpp () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 if { { ac_try="$ac_cpp conftest.$ac_ext" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } > conftest.i && { 1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 }; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_cpp 1618 1619# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1620# ------------------------------------------------------- 1621# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1622# the include files in INCLUDES and setting the cache variable VAR 1623# accordingly. 1624ac_fn_c_check_header_mongrel () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 if eval \${$3+:} false; then : 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1629$as_echo_n "checking for $2... " >&6; } 1630if eval \${$3+:} false; then : 1631 $as_echo_n "(cached) " >&6 1632fi 1633eval ac_res=\$$3 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635$as_echo "$ac_res" >&6; } 1636else 1637 # Is the header compilable? 1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1639$as_echo_n "checking $2 usability... " >&6; } 1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO"; then : 1646 ac_header_compiler=yes 1647else 1648 ac_header_compiler=no 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1652$as_echo "$ac_header_compiler" >&6; } 1653 1654# Is the header present? 1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1656$as_echo_n "checking $2 presence... " >&6; } 1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658/* end confdefs.h. */ 1659#include <$2> 1660_ACEOF 1661if ac_fn_c_try_cpp "$LINENO"; then : 1662 ac_header_preproc=yes 1663else 1664 ac_header_preproc=no 1665fi 1666rm -f conftest.err conftest.i conftest.$ac_ext 1667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1668$as_echo "$ac_header_preproc" >&6; } 1669 1670# So? What about this header? 1671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1672 yes:no: ) 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1674$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1676$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1677 ;; 1678 no:yes:* ) 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1680$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1682$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1684$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1686$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1689( $as_echo "## ------------------------------------------------------ ## 1690## Report this to https://github.com/dvdhrm/libtsm/issues ## 1691## ------------------------------------------------------ ##" 1692 ) | sed "s/^/$as_me: WARNING: /" >&2 1693 ;; 1694esac 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1696$as_echo_n "checking for $2... " >&6; } 1697if eval \${$3+:} false; then : 1698 $as_echo_n "(cached) " >&6 1699else 1700 eval "$3=\$ac_header_compiler" 1701fi 1702eval ac_res=\$$3 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1704$as_echo "$ac_res" >&6; } 1705fi 1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1707 1708} # ac_fn_c_check_header_mongrel 1709 1710# ac_fn_c_try_run LINENO 1711# ---------------------- 1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1713# that executables *can* be run. 1714ac_fn_c_try_run () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 if { { ac_try="$ac_link" 1718case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_link") 2>&5 1725 ac_status=$? 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1728 { { case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_try") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; }; }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: program exited with status $ac_status" >&5 1741 $as_echo "$as_me: failed program was:" >&5 1742sed 's/^/| /' conftest.$ac_ext >&5 1743 1744 ac_retval=$ac_status 1745fi 1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 as_fn_set_status $ac_retval 1749 1750} # ac_fn_c_try_run 1751 1752# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1753# ------------------------------------------------------- 1754# Tests whether HEADER exists and can be compiled using the include files in 1755# INCLUDES, setting the cache variable VAR accordingly. 1756ac_fn_c_check_header_compile () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760$as_echo_n "checking for $2... " >&6; } 1761if eval \${$3+:} false; then : 1762 $as_echo_n "(cached) " >&6 1763else 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766$4 1767#include <$2> 1768_ACEOF 1769if ac_fn_c_try_compile "$LINENO"; then : 1770 eval "$3=yes" 1771else 1772 eval "$3=no" 1773fi 1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} # ac_fn_c_check_header_compile 1782 1783# ac_fn_c_try_link LINENO 1784# ----------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_c_try_link () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext conftest$ac_exeext 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest$ac_exeext && { 1809 test "$cross_compiling" = yes || 1810 test -x conftest$ac_exeext 1811 }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1821 # interfere with the next link command; also delete a directory that is 1822 # left behind by Apple's compiler. We do this before executing the actions. 1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 as_fn_set_status $ac_retval 1826 1827} # ac_fn_c_try_link 1828 1829# ac_fn_c_check_func LINENO FUNC VAR 1830# ---------------------------------- 1831# Tests whether FUNC exists, setting the cache variable VAR accordingly 1832ac_fn_c_check_func () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1836$as_echo_n "checking for $2... " >&6; } 1837if eval \${$3+:} false; then : 1838 $as_echo_n "(cached) " >&6 1839else 1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1841/* end confdefs.h. */ 1842/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1844#define $2 innocuous_$2 1845 1846/* System header to define __stub macros and hopefully few prototypes, 1847 which can conflict with char $2 (); below. 1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1849 <limits.h> exists even on freestanding compilers. */ 1850 1851#ifdef __STDC__ 1852# include <limits.h> 1853#else 1854# include <assert.h> 1855#endif 1856 1857#undef $2 1858 1859/* Override any GCC internal prototype to avoid an error. 1860 Use char because int might match the return type of a GCC 1861 builtin and then its argument prototype would still apply. */ 1862#ifdef __cplusplus 1863extern "C" 1864#endif 1865char $2 (); 1866/* The GNU C library defines this for functions which it implements 1867 to always fail with ENOSYS. Some functions are actually named 1868 something starting with __ and the normal name is an alias. */ 1869#if defined __stub_$2 || defined __stub___$2 1870choke me 1871#endif 1872 1873int 1874main () 1875{ 1876return $2 (); 1877 ; 1878 return 0; 1879} 1880_ACEOF 1881if ac_fn_c_try_link "$LINENO"; then : 1882 eval "$3=yes" 1883else 1884 eval "$3=no" 1885fi 1886rm -f core conftest.err conftest.$ac_objext \ 1887 conftest$ac_exeext conftest.$ac_ext 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1893 1894} # ac_fn_c_check_func 1895cat >config.log <<_ACEOF 1896This file contains any messages produced by compilers while 1897running configure, to aid debugging if configure makes a mistake. 1898 1899It was created by libtsm $as_me 3, which was 1900generated by GNU Autoconf 2.69. Invocation command line was 1901 1902 $ $0 $@ 1903 1904_ACEOF 1905exec 5>>config.log 1906{ 1907cat <<_ASUNAME 1908## --------- ## 1909## Platform. ## 1910## --------- ## 1911 1912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1913uname -m = `(uname -m) 2>/dev/null || echo unknown` 1914uname -r = `(uname -r) 2>/dev/null || echo unknown` 1915uname -s = `(uname -s) 2>/dev/null || echo unknown` 1916uname -v = `(uname -v) 2>/dev/null || echo unknown` 1917 1918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1919/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1920 1921/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1922/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1924/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1925/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1926/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1927/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1928 1929_ASUNAME 1930 1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1932for as_dir in $PATH 1933do 1934 IFS=$as_save_IFS 1935 test -z "$as_dir" && as_dir=. 1936 $as_echo "PATH: $as_dir" 1937 done 1938IFS=$as_save_IFS 1939 1940} >&5 1941 1942cat >&5 <<_ACEOF 1943 1944 1945## ----------- ## 1946## Core tests. ## 1947## ----------- ## 1948 1949_ACEOF 1950 1951 1952# Keep a trace of the command line. 1953# Strip out --no-create and --no-recursion so they do not pile up. 1954# Strip out --silent because we don't want to record it for future runs. 1955# Also quote any args containing shell meta-characters. 1956# Make two passes to allow for proper duplicate-argument suppression. 1957ac_configure_args= 1958ac_configure_args0= 1959ac_configure_args1= 1960ac_must_keep_next=false 1961for ac_pass in 1 2 1962do 1963 for ac_arg 1964 do 1965 case $ac_arg in 1966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1968 | -silent | --silent | --silen | --sile | --sil) 1969 continue ;; 1970 *\'*) 1971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1972 esac 1973 case $ac_pass in 1974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1975 2) 1976 as_fn_append ac_configure_args1 " '$ac_arg'" 1977 if test $ac_must_keep_next = true; then 1978 ac_must_keep_next=false # Got value, back to normal. 1979 else 1980 case $ac_arg in 1981 *=* | --config-cache | -C | -disable-* | --disable-* \ 1982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1984 | -with-* | --with-* | -without-* | --without-* | --x) 1985 case "$ac_configure_args0 " in 1986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1987 esac 1988 ;; 1989 -* ) ac_must_keep_next=true ;; 1990 esac 1991 fi 1992 as_fn_append ac_configure_args " '$ac_arg'" 1993 ;; 1994 esac 1995 done 1996done 1997{ ac_configure_args0=; unset ac_configure_args0;} 1998{ ac_configure_args1=; unset ac_configure_args1;} 1999 2000# When interrupted or exit'd, cleanup temporary files, and complete 2001# config.log. We remove comments because anyway the quotes in there 2002# would cause problems or look ugly. 2003# WARNING: Use '\'' to represent an apostrophe within the trap. 2004# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2005trap 'exit_status=$? 2006 # Save into config.log some information that might help in debugging. 2007 { 2008 echo 2009 2010 $as_echo "## ---------------- ## 2011## Cache variables. ## 2012## ---------------- ##" 2013 echo 2014 # The following way of writing the cache mishandles newlines in values, 2015( 2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in #( 2019 *${as_nl}*) 2020 case $ac_var in #( 2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2022$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2023 esac 2024 case $ac_var in #( 2025 _ | IFS | as_nl) ;; #( 2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2027 *) { eval $ac_var=; unset $ac_var;} ;; 2028 esac ;; 2029 esac 2030 done 2031 (set) 2>&1 | 2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2033 *${as_nl}ac_space=\ *) 2034 sed -n \ 2035 "s/'\''/'\''\\\\'\'''\''/g; 2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2037 ;; #( 2038 *) 2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2040 ;; 2041 esac | 2042 sort 2043) 2044 echo 2045 2046 $as_echo "## ----------------- ## 2047## Output variables. ## 2048## ----------------- ##" 2049 echo 2050 for ac_var in $ac_subst_vars 2051 do 2052 eval ac_val=\$$ac_var 2053 case $ac_val in 2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055 esac 2056 $as_echo "$ac_var='\''$ac_val'\''" 2057 done | sort 2058 echo 2059 2060 if test -n "$ac_subst_files"; then 2061 $as_echo "## ------------------- ## 2062## File substitutions. ## 2063## ------------------- ##" 2064 echo 2065 for ac_var in $ac_subst_files 2066 do 2067 eval ac_val=\$$ac_var 2068 case $ac_val in 2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2070 esac 2071 $as_echo "$ac_var='\''$ac_val'\''" 2072 done | sort 2073 echo 2074 fi 2075 2076 if test -s confdefs.h; then 2077 $as_echo "## ----------- ## 2078## confdefs.h. ## 2079## ----------- ##" 2080 echo 2081 cat confdefs.h 2082 echo 2083 fi 2084 test "$ac_signal" != 0 && 2085 $as_echo "$as_me: caught signal $ac_signal" 2086 $as_echo "$as_me: exit $exit_status" 2087 } >&5 2088 rm -f core *.core core.conftest.* && 2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2090 exit $exit_status 2091' 0 2092for ac_signal in 1 2 13 15; do 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2094done 2095ac_signal=0 2096 2097# confdefs.h avoids OS command line length limits that DEFS can exceed. 2098rm -f -r conftest* confdefs.h 2099 2100$as_echo "/* confdefs.h */" > confdefs.h 2101 2102# Predefined preprocessor variables. 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_NAME "$PACKAGE_NAME" 2106_ACEOF 2107 2108cat >>confdefs.h <<_ACEOF 2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2110_ACEOF 2111 2112cat >>confdefs.h <<_ACEOF 2113#define PACKAGE_VERSION "$PACKAGE_VERSION" 2114_ACEOF 2115 2116cat >>confdefs.h <<_ACEOF 2117#define PACKAGE_STRING "$PACKAGE_STRING" 2118_ACEOF 2119 2120cat >>confdefs.h <<_ACEOF 2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2122_ACEOF 2123 2124cat >>confdefs.h <<_ACEOF 2125#define PACKAGE_URL "$PACKAGE_URL" 2126_ACEOF 2127 2128 2129# Let the site file select an alternate cache file if it wants to. 2130# Prefer an explicitly selected file to automatically selected ones. 2131ac_site_file1=NONE 2132ac_site_file2=NONE 2133if test -n "$CONFIG_SITE"; then 2134 # We do not want a PATH search for config.site. 2135 case $CONFIG_SITE in #(( 2136 -*) ac_site_file1=./$CONFIG_SITE;; 2137 */*) ac_site_file1=$CONFIG_SITE;; 2138 *) ac_site_file1=./$CONFIG_SITE;; 2139 esac 2140elif test "x$prefix" != xNONE; then 2141 ac_site_file1=$prefix/share/config.site 2142 ac_site_file2=$prefix/etc/config.site 2143else 2144 ac_site_file1=$ac_default_prefix/share/config.site 2145 ac_site_file2=$ac_default_prefix/etc/config.site 2146fi 2147for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2148do 2149 test "x$ac_site_file" = xNONE && continue 2150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2152$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2153 sed 's/^/| /' "$ac_site_file" >&5 2154 . "$ac_site_file" \ 2155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2157as_fn_error $? "failed to load site script $ac_site_file 2158See \`config.log' for more details" "$LINENO" 5; } 2159 fi 2160done 2161 2162if test -r "$cache_file"; then 2163 # Some versions of bash will fail to source /dev/null (special files 2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2167$as_echo "$as_me: loading cache $cache_file" >&6;} 2168 case $cache_file in 2169 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2170 *) . "./$cache_file";; 2171 esac 2172 fi 2173else 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2175$as_echo "$as_me: creating cache $cache_file" >&6;} 2176 >$cache_file 2177fi 2178 2179# Check that the precious variables saved in the cache have kept the same 2180# value. 2181ac_cache_corrupted=false 2182for ac_var in $ac_precious_vars; do 2183 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2184 eval ac_new_set=\$ac_env_${ac_var}_set 2185 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2186 eval ac_new_val=\$ac_env_${ac_var}_value 2187 case $ac_old_set,$ac_new_set in 2188 set,) 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2190$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2191 ac_cache_corrupted=: ;; 2192 ,set) 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2194$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2195 ac_cache_corrupted=: ;; 2196 ,);; 2197 *) 2198 if test "x$ac_old_val" != "x$ac_new_val"; then 2199 # differences in whitespace do not lead to failure. 2200 ac_old_val_w=`echo x $ac_old_val` 2201 ac_new_val_w=`echo x $ac_new_val` 2202 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2204$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2205 ac_cache_corrupted=: 2206 else 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2208$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2209 eval $ac_var=\$ac_old_val 2210 fi 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2212$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2214$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2215 fi;; 2216 esac 2217 # Pass precious variables to config.status. 2218 if test "$ac_new_set" = set; then 2219 case $ac_new_val in 2220 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2221 *) ac_arg=$ac_var=$ac_new_val ;; 2222 esac 2223 case " $ac_configure_args " in 2224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2225 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2226 esac 2227 fi 2228done 2229if $ac_cache_corrupted; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2233$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2234 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2235fi 2236## -------------------- ## 2237## Main body of script. ## 2238## -------------------- ## 2239 2240ac_ext=c 2241ac_cpp='$CPP $CPPFLAGS' 2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2244ac_compiler_gnu=$ac_cv_c_compiler_gnu 2245 2246 2247 2248ac_aux_dir= 2249for ac_dir in build-aux "$srcdir"/build-aux; do 2250 if test -f "$ac_dir/install-sh"; then 2251 ac_aux_dir=$ac_dir 2252 ac_install_sh="$ac_aux_dir/install-sh -c" 2253 break 2254 elif test -f "$ac_dir/install.sh"; then 2255 ac_aux_dir=$ac_dir 2256 ac_install_sh="$ac_aux_dir/install.sh -c" 2257 break 2258 elif test -f "$ac_dir/shtool"; then 2259 ac_aux_dir=$ac_dir 2260 ac_install_sh="$ac_aux_dir/shtool install -c" 2261 break 2262 fi 2263done 2264if test -z "$ac_aux_dir"; then 2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2266fi 2267 2268# These three variables are undocumented and unsupported, 2269# and are intended to be withdrawn in a future Autoconf release. 2270# They can cause serious problems if a builder's source tree is in a directory 2271# whose full name contains unusual characters. 2272ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2273ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2274ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2275 2276 2277 2278ac_config_headers="$ac_config_headers config.h" 2279 2280# expand $ac_aux_dir to an absolute path 2281am_aux_dir=`cd $ac_aux_dir && pwd` 2282 2283ac_ext=c 2284ac_cpp='$CPP $CPPFLAGS' 2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2287ac_compiler_gnu=$ac_cv_c_compiler_gnu 2288if test -n "$ac_tool_prefix"; then 2289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2290set dummy ${ac_tool_prefix}gcc; ac_word=$2 2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2292$as_echo_n "checking for $ac_word... " >&6; } 2293if ${ac_cv_prog_CC+:} false; then : 2294 $as_echo_n "(cached) " >&6 2295else 2296 if test -n "$CC"; then 2297 ac_cv_prog_CC="$CC" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2306 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311 done 2312IFS=$as_save_IFS 2313 2314fi 2315fi 2316CC=$ac_cv_prog_CC 2317if test -n "$CC"; then 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2319$as_echo "$CC" >&6; } 2320else 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2322$as_echo "no" >&6; } 2323fi 2324 2325 2326fi 2327if test -z "$ac_cv_prog_CC"; then 2328 ac_ct_CC=$CC 2329 # Extract the first word of "gcc", so it can be a program name with args. 2330set dummy gcc; ac_word=$2 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2332$as_echo_n "checking for $ac_word... " >&6; } 2333if ${ac_cv_prog_ac_ct_CC+:} false; then : 2334 $as_echo_n "(cached) " >&6 2335else 2336 if test -n "$ac_ct_CC"; then 2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2346 ac_cv_prog_ac_ct_CC="gcc" 2347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351 done 2352IFS=$as_save_IFS 2353 2354fi 2355fi 2356ac_ct_CC=$ac_cv_prog_ac_ct_CC 2357if test -n "$ac_ct_CC"; then 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2359$as_echo "$ac_ct_CC" >&6; } 2360else 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2362$as_echo "no" >&6; } 2363fi 2364 2365 if test "x$ac_ct_CC" = x; then 2366 CC="" 2367 else 2368 case $cross_compiling:$ac_tool_warned in 2369yes:) 2370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2372ac_tool_warned=yes ;; 2373esac 2374 CC=$ac_ct_CC 2375 fi 2376else 2377 CC="$ac_cv_prog_CC" 2378fi 2379 2380if test -z "$CC"; then 2381 if test -n "$ac_tool_prefix"; then 2382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2383set dummy ${ac_tool_prefix}cc; ac_word=$2 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2385$as_echo_n "checking for $ac_word... " >&6; } 2386if ${ac_cv_prog_CC+:} false; then : 2387 $as_echo_n "(cached) " >&6 2388else 2389 if test -n "$CC"; then 2390 ac_cv_prog_CC="$CC" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2399 ac_cv_prog_CC="${ac_tool_prefix}cc" 2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404 done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409CC=$ac_cv_prog_CC 2410if test -n "$CC"; then 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2412$as_echo "$CC" >&6; } 2413else 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2415$as_echo "no" >&6; } 2416fi 2417 2418 2419 fi 2420fi 2421if test -z "$CC"; then 2422 # Extract the first word of "cc", so it can be a program name with args. 2423set dummy cc; ac_word=$2 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2425$as_echo_n "checking for $ac_word... " >&6; } 2426if ${ac_cv_prog_CC+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 if test -n "$CC"; then 2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2431else 2432 ac_prog_rejected=no 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2441 ac_prog_rejected=yes 2442 continue 2443 fi 2444 ac_cv_prog_CC="cc" 2445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2446 break 2 2447 fi 2448done 2449 done 2450IFS=$as_save_IFS 2451 2452if test $ac_prog_rejected = yes; then 2453 # We found a bogon in the path, so make sure we never use it. 2454 set dummy $ac_cv_prog_CC 2455 shift 2456 if test $# != 0; then 2457 # We chose a different compiler from the bogus one. 2458 # However, it has the same basename, so the bogon will be chosen 2459 # first if we set CC to just the basename; use the full file name. 2460 shift 2461 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2462 fi 2463fi 2464fi 2465fi 2466CC=$ac_cv_prog_CC 2467if test -n "$CC"; then 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2469$as_echo "$CC" >&6; } 2470else 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2472$as_echo "no" >&6; } 2473fi 2474 2475 2476fi 2477if test -z "$CC"; then 2478 if test -n "$ac_tool_prefix"; then 2479 for ac_prog in cl.exe 2480 do 2481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2484$as_echo_n "checking for $ac_word... " >&6; } 2485if ${ac_cv_prog_CC+:} false; then : 2486 $as_echo_n "(cached) " >&6 2487else 2488 if test -n "$CC"; then 2489 ac_cv_prog_CC="$CC" # Let the user override the test. 2490else 2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492for as_dir in $PATH 2493do 2494 IFS=$as_save_IFS 2495 test -z "$as_dir" && as_dir=. 2496 for ac_exec_ext in '' $ac_executable_extensions; do 2497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2500 break 2 2501 fi 2502done 2503 done 2504IFS=$as_save_IFS 2505 2506fi 2507fi 2508CC=$ac_cv_prog_CC 2509if test -n "$CC"; then 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2511$as_echo "$CC" >&6; } 2512else 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2514$as_echo "no" >&6; } 2515fi 2516 2517 2518 test -n "$CC" && break 2519 done 2520fi 2521if test -z "$CC"; then 2522 ac_ct_CC=$CC 2523 for ac_prog in cl.exe 2524do 2525 # Extract the first word of "$ac_prog", so it can be a program name with args. 2526set dummy $ac_prog; ac_word=$2 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2528$as_echo_n "checking for $ac_word... " >&6; } 2529if ${ac_cv_prog_ac_ct_CC+:} false; then : 2530 $as_echo_n "(cached) " >&6 2531else 2532 if test -n "$ac_ct_CC"; then 2533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2534else 2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536for as_dir in $PATH 2537do 2538 IFS=$as_save_IFS 2539 test -z "$as_dir" && as_dir=. 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2542 ac_cv_prog_ac_ct_CC="$ac_prog" 2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2544 break 2 2545 fi 2546done 2547 done 2548IFS=$as_save_IFS 2549 2550fi 2551fi 2552ac_ct_CC=$ac_cv_prog_ac_ct_CC 2553if test -n "$ac_ct_CC"; then 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2555$as_echo "$ac_ct_CC" >&6; } 2556else 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2558$as_echo "no" >&6; } 2559fi 2560 2561 2562 test -n "$ac_ct_CC" && break 2563done 2564 2565 if test "x$ac_ct_CC" = x; then 2566 CC="" 2567 else 2568 case $cross_compiling:$ac_tool_warned in 2569yes:) 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2572ac_tool_warned=yes ;; 2573esac 2574 CC=$ac_ct_CC 2575 fi 2576fi 2577 2578fi 2579 2580 2581test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2583as_fn_error $? "no acceptable C compiler found in \$PATH 2584See \`config.log' for more details" "$LINENO" 5; } 2585 2586# Provide some information about the compiler. 2587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2588set X $ac_compile 2589ac_compiler=$2 2590for ac_option in --version -v -V -qversion; do 2591 { { ac_try="$ac_compiler $ac_option >&5" 2592case "(($ac_try" in 2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2594 *) ac_try_echo=$ac_try;; 2595esac 2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2597$as_echo "$ac_try_echo"; } >&5 2598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2599 ac_status=$? 2600 if test -s conftest.err; then 2601 sed '10a\ 2602... rest of stderr output deleted ... 2603 10q' conftest.err >conftest.er1 2604 cat conftest.er1 >&5 2605 fi 2606 rm -f conftest.er1 conftest.err 2607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2608 test $ac_status = 0; } 2609done 2610 2611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2612/* end confdefs.h. */ 2613 2614int 2615main () 2616{ 2617 2618 ; 2619 return 0; 2620} 2621_ACEOF 2622ac_clean_files_save=$ac_clean_files 2623ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2624# Try to create an executable without -o first, disregard a.out. 2625# It will help us diagnose broken compilers, and finding out an intuition 2626# of exeext. 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2628$as_echo_n "checking whether the C compiler works... " >&6; } 2629ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2630 2631# The possible output files: 2632ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2633 2634ac_rmfiles= 2635for ac_file in $ac_files 2636do 2637 case $ac_file in 2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2639 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2640 esac 2641done 2642rm -f $ac_rmfiles 2643 2644if { { ac_try="$ac_link_default" 2645case "(($ac_try" in 2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2647 *) ac_try_echo=$ac_try;; 2648esac 2649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2650$as_echo "$ac_try_echo"; } >&5 2651 (eval "$ac_link_default") 2>&5 2652 ac_status=$? 2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2654 test $ac_status = 0; }; then : 2655 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2656# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2657# in a Makefile. We should not override ac_cv_exeext if it was cached, 2658# so that the user can short-circuit this test for compilers unknown to 2659# Autoconf. 2660for ac_file in $ac_files '' 2661do 2662 test -f "$ac_file" || continue 2663 case $ac_file in 2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2665 ;; 2666 [ab].out ) 2667 # We found the default executable, but exeext='' is most 2668 # certainly right. 2669 break;; 2670 *.* ) 2671 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2672 then :; else 2673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2674 fi 2675 # We set ac_cv_exeext here because the later test for it is not 2676 # safe: cross compilers may not add the suffix if given an `-o' 2677 # argument, so we may need to know it at that point already. 2678 # Even if this section looks crufty: it has the advantage of 2679 # actually working. 2680 break;; 2681 * ) 2682 break;; 2683 esac 2684done 2685test "$ac_cv_exeext" = no && ac_cv_exeext= 2686 2687else 2688 ac_file='' 2689fi 2690if test -z "$ac_file"; then : 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2692$as_echo "no" >&6; } 2693$as_echo "$as_me: failed program was:" >&5 2694sed 's/^/| /' conftest.$ac_ext >&5 2695 2696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2698as_fn_error 77 "C compiler cannot create executables 2699See \`config.log' for more details" "$LINENO" 5; } 2700else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2702$as_echo "yes" >&6; } 2703fi 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2705$as_echo_n "checking for C compiler default output file name... " >&6; } 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2707$as_echo "$ac_file" >&6; } 2708ac_exeext=$ac_cv_exeext 2709 2710rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2711ac_clean_files=$ac_clean_files_save 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2713$as_echo_n "checking for suffix of executables... " >&6; } 2714if { { ac_try="$ac_link" 2715case "(($ac_try" in 2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2717 *) ac_try_echo=$ac_try;; 2718esac 2719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2720$as_echo "$ac_try_echo"; } >&5 2721 (eval "$ac_link") 2>&5 2722 ac_status=$? 2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2724 test $ac_status = 0; }; then : 2725 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2726# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2727# work properly (i.e., refer to `conftest.exe'), while it won't with 2728# `rm'. 2729for ac_file in conftest.exe conftest conftest.*; do 2730 test -f "$ac_file" || continue 2731 case $ac_file in 2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2733 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2734 break;; 2735 * ) break;; 2736 esac 2737done 2738else 2739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2741as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2742See \`config.log' for more details" "$LINENO" 5; } 2743fi 2744rm -f conftest conftest$ac_cv_exeext 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2746$as_echo "$ac_cv_exeext" >&6; } 2747 2748rm -f conftest.$ac_ext 2749EXEEXT=$ac_cv_exeext 2750ac_exeext=$EXEEXT 2751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2752/* end confdefs.h. */ 2753#include <stdio.h> 2754int 2755main () 2756{ 2757FILE *f = fopen ("conftest.out", "w"); 2758 return ferror (f) || fclose (f) != 0; 2759 2760 ; 2761 return 0; 2762} 2763_ACEOF 2764ac_clean_files="$ac_clean_files conftest.out" 2765# Check that the compiler produces executables we can run. If not, either 2766# the compiler is broken, or we cross compile. 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2768$as_echo_n "checking whether we are cross compiling... " >&6; } 2769if test "$cross_compiling" != yes; then 2770 { { ac_try="$ac_link" 2771case "(($ac_try" in 2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2773 *) ac_try_echo=$ac_try;; 2774esac 2775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2776$as_echo "$ac_try_echo"; } >&5 2777 (eval "$ac_link") 2>&5 2778 ac_status=$? 2779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2780 test $ac_status = 0; } 2781 if { ac_try='./conftest$ac_cv_exeext' 2782 { { case "(($ac_try" in 2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2784 *) ac_try_echo=$ac_try;; 2785esac 2786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2787$as_echo "$ac_try_echo"; } >&5 2788 (eval "$ac_try") 2>&5 2789 ac_status=$? 2790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2791 test $ac_status = 0; }; }; then 2792 cross_compiling=no 2793 else 2794 if test "$cross_compiling" = maybe; then 2795 cross_compiling=yes 2796 else 2797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2799as_fn_error $? "cannot run C compiled programs. 2800If you meant to cross compile, use \`--host'. 2801See \`config.log' for more details" "$LINENO" 5; } 2802 fi 2803 fi 2804fi 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2806$as_echo "$cross_compiling" >&6; } 2807 2808rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2809ac_clean_files=$ac_clean_files_save 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2811$as_echo_n "checking for suffix of object files... " >&6; } 2812if ${ac_cv_objext+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816/* end confdefs.h. */ 2817 2818int 2819main () 2820{ 2821 2822 ; 2823 return 0; 2824} 2825_ACEOF 2826rm -f conftest.o conftest.obj 2827if { { ac_try="$ac_compile" 2828case "(($ac_try" in 2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2830 *) ac_try_echo=$ac_try;; 2831esac 2832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2833$as_echo "$ac_try_echo"; } >&5 2834 (eval "$ac_compile") 2>&5 2835 ac_status=$? 2836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2837 test $ac_status = 0; }; then : 2838 for ac_file in conftest.o conftest.obj conftest.*; do 2839 test -f "$ac_file" || continue; 2840 case $ac_file in 2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2842 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2843 break;; 2844 esac 2845done 2846else 2847 $as_echo "$as_me: failed program was:" >&5 2848sed 's/^/| /' conftest.$ac_ext >&5 2849 2850{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2852as_fn_error $? "cannot compute suffix of object files: cannot compile 2853See \`config.log' for more details" "$LINENO" 5; } 2854fi 2855rm -f conftest.$ac_cv_objext conftest.$ac_ext 2856fi 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2858$as_echo "$ac_cv_objext" >&6; } 2859OBJEXT=$ac_cv_objext 2860ac_objext=$OBJEXT 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2862$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2863if ${ac_cv_c_compiler_gnu+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2867/* end confdefs.h. */ 2868 2869int 2870main () 2871{ 2872#ifndef __GNUC__ 2873 choke me 2874#endif 2875 2876 ; 2877 return 0; 2878} 2879_ACEOF 2880if ac_fn_c_try_compile "$LINENO"; then : 2881 ac_compiler_gnu=yes 2882else 2883 ac_compiler_gnu=no 2884fi 2885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2886ac_cv_c_compiler_gnu=$ac_compiler_gnu 2887 2888fi 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2890$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2891if test $ac_compiler_gnu = yes; then 2892 GCC=yes 2893else 2894 GCC= 2895fi 2896ac_test_CFLAGS=${CFLAGS+set} 2897ac_save_CFLAGS=$CFLAGS 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2899$as_echo_n "checking whether $CC accepts -g... " >&6; } 2900if ${ac_cv_prog_cc_g+:} false; then : 2901 $as_echo_n "(cached) " >&6 2902else 2903 ac_save_c_werror_flag=$ac_c_werror_flag 2904 ac_c_werror_flag=yes 2905 ac_cv_prog_cc_g=no 2906 CFLAGS="-g" 2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2908/* end confdefs.h. */ 2909 2910int 2911main () 2912{ 2913 2914 ; 2915 return 0; 2916} 2917_ACEOF 2918if ac_fn_c_try_compile "$LINENO"; then : 2919 ac_cv_prog_cc_g=yes 2920else 2921 CFLAGS="" 2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2923/* end confdefs.h. */ 2924 2925int 2926main () 2927{ 2928 2929 ; 2930 return 0; 2931} 2932_ACEOF 2933if ac_fn_c_try_compile "$LINENO"; then : 2934 2935else 2936 ac_c_werror_flag=$ac_save_c_werror_flag 2937 CFLAGS="-g" 2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2939/* end confdefs.h. */ 2940 2941int 2942main () 2943{ 2944 2945 ; 2946 return 0; 2947} 2948_ACEOF 2949if ac_fn_c_try_compile "$LINENO"; then : 2950 ac_cv_prog_cc_g=yes 2951fi 2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2953fi 2954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2955fi 2956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2957 ac_c_werror_flag=$ac_save_c_werror_flag 2958fi 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2960$as_echo "$ac_cv_prog_cc_g" >&6; } 2961if test "$ac_test_CFLAGS" = set; then 2962 CFLAGS=$ac_save_CFLAGS 2963elif test $ac_cv_prog_cc_g = yes; then 2964 if test "$GCC" = yes; then 2965 CFLAGS="-g -O2" 2966 else 2967 CFLAGS="-g" 2968 fi 2969else 2970 if test "$GCC" = yes; then 2971 CFLAGS="-O2" 2972 else 2973 CFLAGS= 2974 fi 2975fi 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2977$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2978if ${ac_cv_prog_cc_c89+:} false; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 ac_cv_prog_cc_c89=no 2982ac_save_CC=$CC 2983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2984/* end confdefs.h. */ 2985#include <stdarg.h> 2986#include <stdio.h> 2987struct stat; 2988/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2989struct buf { int x; }; 2990FILE * (*rcsopen) (struct buf *, struct stat *, int); 2991static char *e (p, i) 2992 char **p; 2993 int i; 2994{ 2995 return p[i]; 2996} 2997static char *f (char * (*g) (char **, int), char **p, ...) 2998{ 2999 char *s; 3000 va_list v; 3001 va_start (v,p); 3002 s = g (p, va_arg (v,int)); 3003 va_end (v); 3004 return s; 3005} 3006 3007/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3008 function prototypes and stuff, but not '\xHH' hex character constants. 3009 These don't provoke an error unfortunately, instead are silently treated 3010 as 'x'. The following induces an error, until -std is added to get 3011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3012 array size at least. It's necessary to write '\x00'==0 to get something 3013 that's true only with -std. */ 3014int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3015 3016/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3017 inside strings and character constants. */ 3018#define FOO(x) 'x' 3019int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3020 3021int test (int i, double x); 3022struct s1 {int (*f) (int a);}; 3023struct s2 {int (*f) (double a);}; 3024int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3025int argc; 3026char **argv; 3027int 3028main () 3029{ 3030return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3037do 3038 CC="$ac_save_CC $ac_arg" 3039 if ac_fn_c_try_compile "$LINENO"; then : 3040 ac_cv_prog_cc_c89=$ac_arg 3041fi 3042rm -f core conftest.err conftest.$ac_objext 3043 test "x$ac_cv_prog_cc_c89" != "xno" && break 3044done 3045rm -f conftest.$ac_ext 3046CC=$ac_save_CC 3047 3048fi 3049# AC_CACHE_VAL 3050case "x$ac_cv_prog_cc_c89" in 3051 x) 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3053$as_echo "none needed" >&6; } ;; 3054 xno) 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3056$as_echo "unsupported" >&6; } ;; 3057 *) 3058 CC="$CC $ac_cv_prog_cc_c89" 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3060$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3061esac 3062if test "x$ac_cv_prog_cc_c89" != xno; then : 3063 3064fi 3065 3066ac_ext=c 3067ac_cpp='$CPP $CPPFLAGS' 3068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3070ac_compiler_gnu=$ac_cv_c_compiler_gnu 3071 3072ac_ext=c 3073ac_cpp='$CPP $CPPFLAGS' 3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3076ac_compiler_gnu=$ac_cv_c_compiler_gnu 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3078$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3079if ${am_cv_prog_cc_c_o+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3083/* end confdefs.h. */ 3084 3085int 3086main () 3087{ 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093 # Make sure it works both with $CC and with simple cc. 3094 # Following AC_PROG_CC_C_O, we do the test twice because some 3095 # compilers refuse to overwrite an existing .o file with -o, 3096 # though they will create one. 3097 am_cv_prog_cc_c_o=yes 3098 for am_i in 1 2; do 3099 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3100 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3101 ac_status=$? 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3103 (exit $ac_status); } \ 3104 && test -f conftest2.$ac_objext; then 3105 : OK 3106 else 3107 am_cv_prog_cc_c_o=no 3108 break 3109 fi 3110 done 3111 rm -f core conftest* 3112 unset am_i 3113fi 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3115$as_echo "$am_cv_prog_cc_c_o" >&6; } 3116if test "$am_cv_prog_cc_c_o" != yes; then 3117 # Losing compiler, so override with the script. 3118 # FIXME: It is wrong to rewrite CC. 3119 # But if we don't then we get into trouble of one sort or another. 3120 # A longer-term fix would be to have automake use am__CC in this case, 3121 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3122 CC="$am_aux_dir/compile $CC" 3123fi 3124ac_ext=c 3125ac_cpp='$CPP $CPPFLAGS' 3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3128ac_compiler_gnu=$ac_cv_c_compiler_gnu 3129 3130 3131 3132ac_ext=c 3133ac_cpp='$CPP $CPPFLAGS' 3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3136ac_compiler_gnu=$ac_cv_c_compiler_gnu 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3138$as_echo_n "checking how to run the C preprocessor... " >&6; } 3139# On Suns, sometimes $CPP names a directory. 3140if test -n "$CPP" && test -d "$CPP"; then 3141 CPP= 3142fi 3143if test -z "$CPP"; then 3144 if ${ac_cv_prog_CPP+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 # Double quotes because CPP needs to be expanded 3148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3149 do 3150 ac_preproc_ok=false 3151for ac_c_preproc_warn_flag in '' yes 3152do 3153 # Use a header file that comes with gcc, so configuring glibc 3154 # with a fresh cross-compiler works. 3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3156 # <limits.h> exists even on freestanding compilers. 3157 # On the NeXT, cc -E runs the code through the compiler's parser, 3158 # not just through cpp. "Syntax error" is here to catch this case. 3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3160/* end confdefs.h. */ 3161#ifdef __STDC__ 3162# include <limits.h> 3163#else 3164# include <assert.h> 3165#endif 3166 Syntax error 3167_ACEOF 3168if ac_fn_c_try_cpp "$LINENO"; then : 3169 3170else 3171 # Broken: fails on valid input. 3172continue 3173fi 3174rm -f conftest.err conftest.i conftest.$ac_ext 3175 3176 # OK, works on sane cases. Now check whether nonexistent headers 3177 # can be detected and how. 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179/* end confdefs.h. */ 3180#include <ac_nonexistent.h> 3181_ACEOF 3182if ac_fn_c_try_cpp "$LINENO"; then : 3183 # Broken: success on invalid input. 3184continue 3185else 3186 # Passes both tests. 3187ac_preproc_ok=: 3188break 3189fi 3190rm -f conftest.err conftest.i conftest.$ac_ext 3191 3192done 3193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3194rm -f conftest.i conftest.err conftest.$ac_ext 3195if $ac_preproc_ok; then : 3196 break 3197fi 3198 3199 done 3200 ac_cv_prog_CPP=$CPP 3201 3202fi 3203 CPP=$ac_cv_prog_CPP 3204else 3205 ac_cv_prog_CPP=$CPP 3206fi 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3208$as_echo "$CPP" >&6; } 3209ac_preproc_ok=false 3210for ac_c_preproc_warn_flag in '' yes 3211do 3212 # Use a header file that comes with gcc, so configuring glibc 3213 # with a fresh cross-compiler works. 3214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3215 # <limits.h> exists even on freestanding compilers. 3216 # On the NeXT, cc -E runs the code through the compiler's parser, 3217 # not just through cpp. "Syntax error" is here to catch this case. 3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3219/* end confdefs.h. */ 3220#ifdef __STDC__ 3221# include <limits.h> 3222#else 3223# include <assert.h> 3224#endif 3225 Syntax error 3226_ACEOF 3227if ac_fn_c_try_cpp "$LINENO"; then : 3228 3229else 3230 # Broken: fails on valid input. 3231continue 3232fi 3233rm -f conftest.err conftest.i conftest.$ac_ext 3234 3235 # OK, works on sane cases. Now check whether nonexistent headers 3236 # can be detected and how. 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239#include <ac_nonexistent.h> 3240_ACEOF 3241if ac_fn_c_try_cpp "$LINENO"; then : 3242 # Broken: success on invalid input. 3243continue 3244else 3245 # Passes both tests. 3246ac_preproc_ok=: 3247break 3248fi 3249rm -f conftest.err conftest.i conftest.$ac_ext 3250 3251done 3252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3253rm -f conftest.i conftest.err conftest.$ac_ext 3254if $ac_preproc_ok; then : 3255 3256else 3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3259as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3260See \`config.log' for more details" "$LINENO" 5; } 3261fi 3262 3263ac_ext=c 3264ac_cpp='$CPP $CPPFLAGS' 3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3267ac_compiler_gnu=$ac_cv_c_compiler_gnu 3268 3269 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3271$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3272if ${ac_cv_path_GREP+:} false; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -z "$GREP"; then 3276 ac_path_GREP_found=false 3277 # Loop through the user's path and test for each of PROGNAME-LIST 3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3280do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_prog in grep ggrep; do 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3286 as_fn_executable_p "$ac_path_GREP" || continue 3287# Check for GNU ac_path_GREP and select it if it is found. 3288 # Check for GNU $ac_path_GREP 3289case `"$ac_path_GREP" --version 2>&1` in 3290*GNU*) 3291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3292*) 3293 ac_count=0 3294 $as_echo_n 0123456789 >"conftest.in" 3295 while : 3296 do 3297 cat "conftest.in" "conftest.in" >"conftest.tmp" 3298 mv "conftest.tmp" "conftest.in" 3299 cp "conftest.in" "conftest.nl" 3300 $as_echo 'GREP' >> "conftest.nl" 3301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3303 as_fn_arith $ac_count + 1 && ac_count=$as_val 3304 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3305 # Best one so far, save it but keep looking for a better one 3306 ac_cv_path_GREP="$ac_path_GREP" 3307 ac_path_GREP_max=$ac_count 3308 fi 3309 # 10*(2^10) chars as input seems more than enough 3310 test $ac_count -gt 10 && break 3311 done 3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3313esac 3314 3315 $ac_path_GREP_found && break 3 3316 done 3317 done 3318 done 3319IFS=$as_save_IFS 3320 if test -z "$ac_cv_path_GREP"; then 3321 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3322 fi 3323else 3324 ac_cv_path_GREP=$GREP 3325fi 3326 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3329$as_echo "$ac_cv_path_GREP" >&6; } 3330 GREP="$ac_cv_path_GREP" 3331 3332 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3334$as_echo_n "checking for egrep... " >&6; } 3335if ${ac_cv_path_EGREP+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3339 then ac_cv_path_EGREP="$GREP -E" 3340 else 3341 if test -z "$EGREP"; then 3342 ac_path_EGREP_found=false 3343 # Loop through the user's path and test for each of PROGNAME-LIST 3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_prog in egrep; do 3350 for ac_exec_ext in '' $ac_executable_extensions; do 3351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3352 as_fn_executable_p "$ac_path_EGREP" || continue 3353# Check for GNU ac_path_EGREP and select it if it is found. 3354 # Check for GNU $ac_path_EGREP 3355case `"$ac_path_EGREP" --version 2>&1` in 3356*GNU*) 3357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3358*) 3359 ac_count=0 3360 $as_echo_n 0123456789 >"conftest.in" 3361 while : 3362 do 3363 cat "conftest.in" "conftest.in" >"conftest.tmp" 3364 mv "conftest.tmp" "conftest.in" 3365 cp "conftest.in" "conftest.nl" 3366 $as_echo 'EGREP' >> "conftest.nl" 3367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3369 as_fn_arith $ac_count + 1 && ac_count=$as_val 3370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3371 # Best one so far, save it but keep looking for a better one 3372 ac_cv_path_EGREP="$ac_path_EGREP" 3373 ac_path_EGREP_max=$ac_count 3374 fi 3375 # 10*(2^10) chars as input seems more than enough 3376 test $ac_count -gt 10 && break 3377 done 3378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3379esac 3380 3381 $ac_path_EGREP_found && break 3 3382 done 3383 done 3384 done 3385IFS=$as_save_IFS 3386 if test -z "$ac_cv_path_EGREP"; then 3387 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3388 fi 3389else 3390 ac_cv_path_EGREP=$EGREP 3391fi 3392 3393 fi 3394fi 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3396$as_echo "$ac_cv_path_EGREP" >&6; } 3397 EGREP="$ac_cv_path_EGREP" 3398 3399 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3401$as_echo_n "checking for ANSI C header files... " >&6; } 3402if ${ac_cv_header_stdc+:} false; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3406/* end confdefs.h. */ 3407#include <stdlib.h> 3408#include <stdarg.h> 3409#include <string.h> 3410#include <float.h> 3411 3412int 3413main () 3414{ 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420if ac_fn_c_try_compile "$LINENO"; then : 3421 ac_cv_header_stdc=yes 3422else 3423 ac_cv_header_stdc=no 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426 3427if test $ac_cv_header_stdc = yes; then 3428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431#include <string.h> 3432 3433_ACEOF 3434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3435 $EGREP "memchr" >/dev/null 2>&1; then : 3436 3437else 3438 ac_cv_header_stdc=no 3439fi 3440rm -f conftest* 3441 3442fi 3443 3444if test $ac_cv_header_stdc = yes; then 3445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447/* end confdefs.h. */ 3448#include <stdlib.h> 3449 3450_ACEOF 3451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3452 $EGREP "free" >/dev/null 2>&1; then : 3453 3454else 3455 ac_cv_header_stdc=no 3456fi 3457rm -f conftest* 3458 3459fi 3460 3461if test $ac_cv_header_stdc = yes; then 3462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3463 if test "$cross_compiling" = yes; then : 3464 : 3465else 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468#include <ctype.h> 3469#include <stdlib.h> 3470#if ((' ' & 0x0FF) == 0x020) 3471# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3472# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3473#else 3474# define ISLOWER(c) \ 3475 (('a' <= (c) && (c) <= 'i') \ 3476 || ('j' <= (c) && (c) <= 'r') \ 3477 || ('s' <= (c) && (c) <= 'z')) 3478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3479#endif 3480 3481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3482int 3483main () 3484{ 3485 int i; 3486 for (i = 0; i < 256; i++) 3487 if (XOR (islower (i), ISLOWER (i)) 3488 || toupper (i) != TOUPPER (i)) 3489 return 2; 3490 return 0; 3491} 3492_ACEOF 3493if ac_fn_c_try_run "$LINENO"; then : 3494 3495else 3496 ac_cv_header_stdc=no 3497fi 3498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3499 conftest.$ac_objext conftest.beam conftest.$ac_ext 3500fi 3501 3502fi 3503fi 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3505$as_echo "$ac_cv_header_stdc" >&6; } 3506if test $ac_cv_header_stdc = yes; then 3507 3508$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3509 3510fi 3511 3512# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3514 inttypes.h stdint.h unistd.h 3515do : 3516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3517ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3518" 3519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3520 cat >>confdefs.h <<_ACEOF 3521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3522_ACEOF 3523 3524fi 3525 3526done 3527 3528 3529 3530 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3531if test "x$ac_cv_header_minix_config_h" = xyes; then : 3532 MINIX=yes 3533else 3534 MINIX= 3535fi 3536 3537 3538 if test "$MINIX" = yes; then 3539 3540$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3541 3542 3543$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3544 3545 3546$as_echo "#define _MINIX 1" >>confdefs.h 3547 3548 fi 3549 3550 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3552$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3553if ${ac_cv_safe_to_define___extensions__+:} false; then : 3554 $as_echo_n "(cached) " >&6 3555else 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557/* end confdefs.h. */ 3558 3559# define __EXTENSIONS__ 1 3560 $ac_includes_default 3561int 3562main () 3563{ 3564 3565 ; 3566 return 0; 3567} 3568_ACEOF 3569if ac_fn_c_try_compile "$LINENO"; then : 3570 ac_cv_safe_to_define___extensions__=yes 3571else 3572 ac_cv_safe_to_define___extensions__=no 3573fi 3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3577$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3578 test $ac_cv_safe_to_define___extensions__ = yes && 3579 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3580 3581 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3582 3583 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3584 3585 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3586 3587 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3588 3589 3590# Check whether --enable-largefile was given. 3591if test "${enable_largefile+set}" = set; then : 3592 enableval=$enable_largefile; 3593fi 3594 3595if test "$enable_largefile" != no; then 3596 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3598$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3599if ${ac_cv_sys_largefile_CC+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601else 3602 ac_cv_sys_largefile_CC=no 3603 if test "$GCC" != yes; then 3604 ac_save_CC=$CC 3605 while :; do 3606 # IRIX 6.2 and later do not support large files by default, 3607 # so use the C compiler's -n32 option if that helps. 3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610#include <sys/types.h> 3611 /* Check that off_t can represent 2**63 - 1 correctly. 3612 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3613 since some C++ compilers masquerading as C compilers 3614 incorrectly reject 9223372036854775807. */ 3615#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3617 && LARGE_OFF_T % 2147483647 == 1) 3618 ? 1 : -1]; 3619int 3620main () 3621{ 3622 3623 ; 3624 return 0; 3625} 3626_ACEOF 3627 if ac_fn_c_try_compile "$LINENO"; then : 3628 break 3629fi 3630rm -f core conftest.err conftest.$ac_objext 3631 CC="$CC -n32" 3632 if ac_fn_c_try_compile "$LINENO"; then : 3633 ac_cv_sys_largefile_CC=' -n32'; break 3634fi 3635rm -f core conftest.err conftest.$ac_objext 3636 break 3637 done 3638 CC=$ac_save_CC 3639 rm -f conftest.$ac_ext 3640 fi 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3643$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3644 if test "$ac_cv_sys_largefile_CC" != no; then 3645 CC=$CC$ac_cv_sys_largefile_CC 3646 fi 3647 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3649$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3650if ${ac_cv_sys_file_offset_bits+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 while :; do 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656#include <sys/types.h> 3657 /* Check that off_t can represent 2**63 - 1 correctly. 3658 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3659 since some C++ compilers masquerading as C compilers 3660 incorrectly reject 9223372036854775807. */ 3661#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3663 && LARGE_OFF_T % 2147483647 == 1) 3664 ? 1 : -1]; 3665int 3666main () 3667{ 3668 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673if ac_fn_c_try_compile "$LINENO"; then : 3674 ac_cv_sys_file_offset_bits=no; break 3675fi 3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679#define _FILE_OFFSET_BITS 64 3680#include <sys/types.h> 3681 /* Check that off_t can represent 2**63 - 1 correctly. 3682 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3683 since some C++ compilers masquerading as C compilers 3684 incorrectly reject 9223372036854775807. */ 3685#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3687 && LARGE_OFF_T % 2147483647 == 1) 3688 ? 1 : -1]; 3689int 3690main () 3691{ 3692 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697if ac_fn_c_try_compile "$LINENO"; then : 3698 ac_cv_sys_file_offset_bits=64; break 3699fi 3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701 ac_cv_sys_file_offset_bits=unknown 3702 break 3703done 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3706$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3707case $ac_cv_sys_file_offset_bits in #( 3708 no | unknown) ;; 3709 *) 3710cat >>confdefs.h <<_ACEOF 3711#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3712_ACEOF 3713;; 3714esac 3715rm -rf conftest* 3716 if test $ac_cv_sys_file_offset_bits = unknown; then 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3718$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3719if ${ac_cv_sys_large_files+:} false; then : 3720 $as_echo_n "(cached) " >&6 3721else 3722 while :; do 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725#include <sys/types.h> 3726 /* Check that off_t can represent 2**63 - 1 correctly. 3727 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3728 since some C++ compilers masquerading as C compilers 3729 incorrectly reject 9223372036854775807. */ 3730#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3732 && LARGE_OFF_T % 2147483647 == 1) 3733 ? 1 : -1]; 3734int 3735main () 3736{ 3737 3738 ; 3739 return 0; 3740} 3741_ACEOF 3742if ac_fn_c_try_compile "$LINENO"; then : 3743 ac_cv_sys_large_files=no; break 3744fi 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748#define _LARGE_FILES 1 3749#include <sys/types.h> 3750 /* Check that off_t can represent 2**63 - 1 correctly. 3751 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3752 since some C++ compilers masquerading as C compilers 3753 incorrectly reject 9223372036854775807. */ 3754#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3756 && LARGE_OFF_T % 2147483647 == 1) 3757 ? 1 : -1]; 3758int 3759main () 3760{ 3761 3762 ; 3763 return 0; 3764} 3765_ACEOF 3766if ac_fn_c_try_compile "$LINENO"; then : 3767 ac_cv_sys_large_files=1; break 3768fi 3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3770 ac_cv_sys_large_files=unknown 3771 break 3772done 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3775$as_echo "$ac_cv_sys_large_files" >&6; } 3776case $ac_cv_sys_large_files in #( 3777 no | unknown) ;; 3778 *) 3779cat >>confdefs.h <<_ACEOF 3780#define _LARGE_FILES $ac_cv_sys_large_files 3781_ACEOF 3782;; 3783esac 3784rm -rf conftest* 3785 fi 3786 3787 3788fi 3789 3790# Make sure we can run config.sub. 3791$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3792 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3793 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3795$as_echo_n "checking build system type... " >&6; } 3796if ${ac_cv_build+:} false; then : 3797 $as_echo_n "(cached) " >&6 3798else 3799 ac_build_alias=$build_alias 3800test "x$ac_build_alias" = x && 3801 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3802test "x$ac_build_alias" = x && 3803 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3804ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3805 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3806 3807fi 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3809$as_echo "$ac_cv_build" >&6; } 3810case $ac_cv_build in 3811*-*-*) ;; 3812*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3813esac 3814build=$ac_cv_build 3815ac_save_IFS=$IFS; IFS='-' 3816set x $ac_cv_build 3817shift 3818build_cpu=$1 3819build_vendor=$2 3820shift; shift 3821# Remember, the first character of IFS is used to create $*, 3822# except with old shells: 3823build_os=$* 3824IFS=$ac_save_IFS 3825case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3826 3827 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3829$as_echo_n "checking host system type... " >&6; } 3830if ${ac_cv_host+:} false; then : 3831 $as_echo_n "(cached) " >&6 3832else 3833 if test "x$host_alias" = x; then 3834 ac_cv_host=$ac_cv_build 3835else 3836 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3837 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3838fi 3839 3840fi 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3842$as_echo "$ac_cv_host" >&6; } 3843case $ac_cv_host in 3844*-*-*) ;; 3845*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3846esac 3847host=$ac_cv_host 3848ac_save_IFS=$IFS; IFS='-' 3849set x $ac_cv_host 3850shift 3851host_cpu=$1 3852host_vendor=$2 3853shift; shift 3854# Remember, the first character of IFS is used to create $*, 3855# except with old shells: 3856host_os=$* 3857IFS=$ac_save_IFS 3858case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3859 3860 3861 3862am__api_version='1.14' 3863 3864# Find a good install program. We prefer a C program (faster), 3865# so one script is as good as another. But avoid the broken or 3866# incompatible versions: 3867# SysV /etc/install, /usr/sbin/install 3868# SunOS /usr/etc/install 3869# IRIX /sbin/install 3870# AIX /bin/install 3871# AmigaOS /C/install, which installs bootblocks on floppy discs 3872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3873# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3875# OS/2's system install, which has a completely different semantic 3876# ./install, which can be erroneously created by make from ./install.sh. 3877# Reject install programs that cannot install multiple files. 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3879$as_echo_n "checking for a BSD-compatible install... " >&6; } 3880if test -z "$INSTALL"; then 3881if ${ac_cv_path_install+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3885for as_dir in $PATH 3886do 3887 IFS=$as_save_IFS 3888 test -z "$as_dir" && as_dir=. 3889 # Account for people who put trailing slashes in PATH elements. 3890case $as_dir/ in #(( 3891 ./ | .// | /[cC]/* | \ 3892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3893 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3894 /usr/ucb/* ) ;; 3895 *) 3896 # OSF1 and SCO ODT 3.0 have their own names for install. 3897 # Don't use installbsd from OSF since it installs stuff as root 3898 # by default. 3899 for ac_prog in ginstall scoinst install; do 3900 for ac_exec_ext in '' $ac_executable_extensions; do 3901 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3902 if test $ac_prog = install && 3903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3904 # AIX install. It has an incompatible calling convention. 3905 : 3906 elif test $ac_prog = install && 3907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3908 # program-specific install script used by HP pwplus--don't use. 3909 : 3910 else 3911 rm -rf conftest.one conftest.two conftest.dir 3912 echo one > conftest.one 3913 echo two > conftest.two 3914 mkdir conftest.dir 3915 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3916 test -s conftest.one && test -s conftest.two && 3917 test -s conftest.dir/conftest.one && 3918 test -s conftest.dir/conftest.two 3919 then 3920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3921 break 3 3922 fi 3923 fi 3924 fi 3925 done 3926 done 3927 ;; 3928esac 3929 3930 done 3931IFS=$as_save_IFS 3932 3933rm -rf conftest.one conftest.two conftest.dir 3934 3935fi 3936 if test "${ac_cv_path_install+set}" = set; then 3937 INSTALL=$ac_cv_path_install 3938 else 3939 # As a last resort, use the slow shell script. Don't cache a 3940 # value for INSTALL within a source directory, because that will 3941 # break other packages using the cache if that directory is 3942 # removed, or if the value is a relative name. 3943 INSTALL=$ac_install_sh 3944 fi 3945fi 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3947$as_echo "$INSTALL" >&6; } 3948 3949# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3950# It thinks the first close brace ends the variable substitution. 3951test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3952 3953test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3954 3955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3956 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3958$as_echo_n "checking whether build environment is sane... " >&6; } 3959# Reject unsafe characters in $srcdir or the absolute working directory 3960# name. Accept space and tab only in the latter. 3961am_lf=' 3962' 3963case `pwd` in 3964 *[\\\"\#\$\&\'\`$am_lf]*) 3965 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3966esac 3967case $srcdir in 3968 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3969 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3970esac 3971 3972# Do 'set' in a subshell so we don't clobber the current shell's 3973# arguments. Must try -L first in case configure is actually a 3974# symlink; some systems play weird games with the mod time of symlinks 3975# (eg FreeBSD returns the mod time of the symlink's containing 3976# directory). 3977if ( 3978 am_has_slept=no 3979 for am_try in 1 2; do 3980 echo "timestamp, slept: $am_has_slept" > conftest.file 3981 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3982 if test "$*" = "X"; then 3983 # -L didn't work. 3984 set X `ls -t "$srcdir/configure" conftest.file` 3985 fi 3986 if test "$*" != "X $srcdir/configure conftest.file" \ 3987 && test "$*" != "X conftest.file $srcdir/configure"; then 3988 3989 # If neither matched, then we have a broken ls. This can happen 3990 # if, for instance, CONFIG_SHELL is bash and it inherits a 3991 # broken ls alias from the environment. This has actually 3992 # happened. Such a system could not be considered "sane". 3993 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3994 alias in your environment" "$LINENO" 5 3995 fi 3996 if test "$2" = conftest.file || test $am_try -eq 2; then 3997 break 3998 fi 3999 # Just in case. 4000 sleep 1 4001 am_has_slept=yes 4002 done 4003 test "$2" = conftest.file 4004 ) 4005then 4006 # Ok. 4007 : 4008else 4009 as_fn_error $? "newly created file is older than distributed files! 4010Check your system clock" "$LINENO" 5 4011fi 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4013$as_echo "yes" >&6; } 4014# If we didn't sleep, we still need to ensure time stamps of config.status and 4015# generated files are strictly newer. 4016am_sleep_pid= 4017if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4018 ( sleep 1 ) & 4019 am_sleep_pid=$! 4020fi 4021 4022rm -f conftest.file 4023 4024test "$program_prefix" != NONE && 4025 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4026# Use a double $ so make ignores it. 4027test "$program_suffix" != NONE && 4028 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4029# Double any \ or $. 4030# By default was `s,x,x', remove it if useless. 4031ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4032program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4033 4034if test x"${MISSING+set}" != xset; then 4035 case $am_aux_dir in 4036 *\ * | *\ *) 4037 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4038 *) 4039 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4040 esac 4041fi 4042# Use eval to expand $SHELL 4043if eval "$MISSING --is-lightweight"; then 4044 am_missing_run="$MISSING " 4045else 4046 am_missing_run= 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4048$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4049fi 4050 4051if test x"${install_sh}" != xset; then 4052 case $am_aux_dir in 4053 *\ * | *\ *) 4054 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4055 *) 4056 install_sh="\${SHELL} $am_aux_dir/install-sh" 4057 esac 4058fi 4059 4060# Installed binaries are usually stripped using 'strip' when the user 4061# run "make install-strip". However 'strip' might not be the right 4062# tool to use in cross-compilation environments, therefore Automake 4063# will honor the 'STRIP' environment variable to overrule this program. 4064if test "$cross_compiling" != no; then 4065 if test -n "$ac_tool_prefix"; then 4066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4067set dummy ${ac_tool_prefix}strip; ac_word=$2 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4069$as_echo_n "checking for $ac_word... " >&6; } 4070if ${ac_cv_prog_STRIP+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 if test -n "$STRIP"; then 4074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4075else 4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4083 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087done 4088 done 4089IFS=$as_save_IFS 4090 4091fi 4092fi 4093STRIP=$ac_cv_prog_STRIP 4094if test -n "$STRIP"; then 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4096$as_echo "$STRIP" >&6; } 4097else 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099$as_echo "no" >&6; } 4100fi 4101 4102 4103fi 4104if test -z "$ac_cv_prog_STRIP"; then 4105 ac_ct_STRIP=$STRIP 4106 # Extract the first word of "strip", so it can be a program name with args. 4107set dummy strip; ac_word=$2 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4109$as_echo_n "checking for $ac_word... " >&6; } 4110if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 if test -n "$ac_ct_STRIP"; then 4114 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4115else 4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4117for as_dir in $PATH 4118do 4119 IFS=$as_save_IFS 4120 test -z "$as_dir" && as_dir=. 4121 for ac_exec_ext in '' $ac_executable_extensions; do 4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4123 ac_cv_prog_ac_ct_STRIP="strip" 4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4125 break 2 4126 fi 4127done 4128 done 4129IFS=$as_save_IFS 4130 4131fi 4132fi 4133ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4134if test -n "$ac_ct_STRIP"; then 4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4136$as_echo "$ac_ct_STRIP" >&6; } 4137else 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4139$as_echo "no" >&6; } 4140fi 4141 4142 if test "x$ac_ct_STRIP" = x; then 4143 STRIP=":" 4144 else 4145 case $cross_compiling:$ac_tool_warned in 4146yes:) 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4149ac_tool_warned=yes ;; 4150esac 4151 STRIP=$ac_ct_STRIP 4152 fi 4153else 4154 STRIP="$ac_cv_prog_STRIP" 4155fi 4156 4157fi 4158INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4159 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4161$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4162if test -z "$MKDIR_P"; then 4163 if ${ac_cv_path_mkdir+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in mkdir gmkdir; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4174 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4175 'mkdir (GNU coreutils) '* | \ 4176 'mkdir (coreutils) '* | \ 4177 'mkdir (fileutils) '4.1*) 4178 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4179 break 3;; 4180 esac 4181 done 4182 done 4183 done 4184IFS=$as_save_IFS 4185 4186fi 4187 4188 test -d ./--version && rmdir ./--version 4189 if test "${ac_cv_path_mkdir+set}" = set; then 4190 MKDIR_P="$ac_cv_path_mkdir -p" 4191 else 4192 # As a last resort, use the slow shell script. Don't cache a 4193 # value for MKDIR_P within a source directory, because that will 4194 # break other packages using the cache if that directory is 4195 # removed, or if the value is a relative name. 4196 MKDIR_P="$ac_install_sh -d" 4197 fi 4198fi 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4200$as_echo "$MKDIR_P" >&6; } 4201 4202for ac_prog in gawk mawk nawk awk 4203do 4204 # Extract the first word of "$ac_prog", so it can be a program name with args. 4205set dummy $ac_prog; ac_word=$2 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4207$as_echo_n "checking for $ac_word... " >&6; } 4208if ${ac_cv_prog_AWK+:} false; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if test -n "$AWK"; then 4212 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4213else 4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215for as_dir in $PATH 4216do 4217 IFS=$as_save_IFS 4218 test -z "$as_dir" && as_dir=. 4219 for ac_exec_ext in '' $ac_executable_extensions; do 4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4221 ac_cv_prog_AWK="$ac_prog" 4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4223 break 2 4224 fi 4225done 4226 done 4227IFS=$as_save_IFS 4228 4229fi 4230fi 4231AWK=$ac_cv_prog_AWK 4232if test -n "$AWK"; then 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4234$as_echo "$AWK" >&6; } 4235else 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4237$as_echo "no" >&6; } 4238fi 4239 4240 4241 test -n "$AWK" && break 4242done 4243 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4245$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4246set x ${MAKE-make} 4247ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4248if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 cat >conftest.make <<\_ACEOF 4252SHELL = /bin/sh 4253all: 4254 @echo '@@@%%%=$(MAKE)=@@@%%%' 4255_ACEOF 4256# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4257case `${MAKE-make} -f conftest.make 2>/dev/null` in 4258 *@@@%%%=?*=@@@%%%*) 4259 eval ac_cv_prog_make_${ac_make}_set=yes;; 4260 *) 4261 eval ac_cv_prog_make_${ac_make}_set=no;; 4262esac 4263rm -f conftest.make 4264fi 4265if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4267$as_echo "yes" >&6; } 4268 SET_MAKE= 4269else 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271$as_echo "no" >&6; } 4272 SET_MAKE="MAKE=${MAKE-make}" 4273fi 4274 4275rm -rf .tst 2>/dev/null 4276mkdir .tst 2>/dev/null 4277if test -d .tst; then 4278 am__leading_dot=. 4279else 4280 am__leading_dot=_ 4281fi 4282rmdir .tst 2>/dev/null 4283 4284DEPDIR="${am__leading_dot}deps" 4285 4286ac_config_commands="$ac_config_commands depfiles" 4287 4288 4289am_make=${MAKE-make} 4290cat > confinc << 'END' 4291am__doit: 4292 @echo this is the am__doit target 4293.PHONY: am__doit 4294END 4295# If we don't find an include directive, just comment out the code. 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4297$as_echo_n "checking for style of include used by $am_make... " >&6; } 4298am__include="#" 4299am__quote= 4300_am_result=none 4301# First try GNU make style include. 4302echo "include confinc" > confmf 4303# Ignore all kinds of additional output from 'make'. 4304case `$am_make -s -f confmf 2> /dev/null` in #( 4305*the\ am__doit\ target*) 4306 am__include=include 4307 am__quote= 4308 _am_result=GNU 4309 ;; 4310esac 4311# Now try BSD make style include. 4312if test "$am__include" = "#"; then 4313 echo '.include "confinc"' > confmf 4314 case `$am_make -s -f confmf 2> /dev/null` in #( 4315 *the\ am__doit\ target*) 4316 am__include=.include 4317 am__quote="\"" 4318 _am_result=BSD 4319 ;; 4320 esac 4321fi 4322 4323 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4325$as_echo "$_am_result" >&6; } 4326rm -f confinc confmf 4327 4328# Check whether --enable-dependency-tracking was given. 4329if test "${enable_dependency_tracking+set}" = set; then : 4330 enableval=$enable_dependency_tracking; 4331fi 4332 4333if test "x$enable_dependency_tracking" != xno; then 4334 am_depcomp="$ac_aux_dir/depcomp" 4335 AMDEPBACKSLASH='\' 4336 am__nodep='_no' 4337fi 4338 if test "x$enable_dependency_tracking" != xno; then 4339 AMDEP_TRUE= 4340 AMDEP_FALSE='#' 4341else 4342 AMDEP_TRUE='#' 4343 AMDEP_FALSE= 4344fi 4345 4346 4347# Check whether --enable-silent-rules was given. 4348if test "${enable_silent_rules+set}" = set; then : 4349 enableval=$enable_silent_rules; 4350fi 4351 4352case $enable_silent_rules in # ((( 4353 yes) AM_DEFAULT_VERBOSITY=0;; 4354 no) AM_DEFAULT_VERBOSITY=1;; 4355 *) AM_DEFAULT_VERBOSITY=1;; 4356esac 4357am_make=${MAKE-make} 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4359$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4360if ${am_cv_make_support_nested_variables+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 if $as_echo 'TRUE=$(BAR$(V)) 4364BAR0=false 4365BAR1=true 4366V=1 4367am__doit: 4368 @$(TRUE) 4369.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4370 am_cv_make_support_nested_variables=yes 4371else 4372 am_cv_make_support_nested_variables=no 4373fi 4374fi 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4376$as_echo "$am_cv_make_support_nested_variables" >&6; } 4377if test $am_cv_make_support_nested_variables = yes; then 4378 AM_V='$(V)' 4379 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4380else 4381 AM_V=$AM_DEFAULT_VERBOSITY 4382 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4383fi 4384AM_BACKSLASH='\' 4385 4386if test "`cd $srcdir && pwd`" != "`pwd`"; then 4387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4388 # is not polluted with repeated "-I." 4389 am__isrc=' -I$(srcdir)' 4390 # test to see if srcdir already configured 4391 if test -f $srcdir/config.status; then 4392 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4393 fi 4394fi 4395 4396# test whether we have cygpath 4397if test -z "$CYGPATH_W"; then 4398 if (cygpath --version) >/dev/null 2>/dev/null; then 4399 CYGPATH_W='cygpath -w' 4400 else 4401 CYGPATH_W=echo 4402 fi 4403fi 4404 4405 4406# Define the identity of the package. 4407 PACKAGE='libtsm' 4408 VERSION='3' 4409 4410 4411cat >>confdefs.h <<_ACEOF 4412#define PACKAGE "$PACKAGE" 4413_ACEOF 4414 4415 4416cat >>confdefs.h <<_ACEOF 4417#define VERSION "$VERSION" 4418_ACEOF 4419 4420# Some tools Automake needs. 4421 4422ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4423 4424 4425AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4426 4427 4428AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4429 4430 4431AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4432 4433 4434MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4435 4436# For better backward compatibility. To be removed once Automake 1.9.x 4437# dies out for good. For more background, see: 4438# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4439# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4440mkdir_p='$(MKDIR_P)' 4441 4442# We need awk for the "check" target. The system "awk" is bad on 4443# some platforms. 4444# Always define AMTAR for backward compatibility. Yes, it's still used 4445# in the wild :-( We should find a proper way to deprecate it ... 4446AMTAR='$${TAR-tar}' 4447 4448 4449# We'll loop over all known methods to create a tar archive until one works. 4450_am_tools='gnutar pax cpio none' 4451 4452 4453 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 4455$as_echo_n "checking how to create a pax tar archive... " >&6; } 4456 4457 # Go ahead even if we have the value already cached. We do so because we 4458 # need to set the values for the 'am__tar' and 'am__untar' variables. 4459 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 4460 4461 for _am_tool in $_am_tools; do 4462 case $_am_tool in 4463 gnutar) 4464 for _am_tar in tar gnutar gtar; do 4465 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4466 ($_am_tar --version) >&5 2>&5 4467 ac_status=$? 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); } && break 4470 done 4471 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 4472 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 4473 am__untar="$_am_tar -xf -" 4474 ;; 4475 plaintar) 4476 # Must skip GNU tar: if it does not support --format= it doesn't create 4477 # ustar tarball either. 4478 (tar --version) >/dev/null 2>&1 && continue 4479 am__tar='tar chf - "$$tardir"' 4480 am__tar_='tar chf - "$tardir"' 4481 am__untar='tar xf -' 4482 ;; 4483 pax) 4484 am__tar='pax -L -x pax -w "$$tardir"' 4485 am__tar_='pax -L -x pax -w "$tardir"' 4486 am__untar='pax -r' 4487 ;; 4488 cpio) 4489 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 4490 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 4491 am__untar='cpio -i -H pax -d' 4492 ;; 4493 none) 4494 am__tar=false 4495 am__tar_=false 4496 am__untar=false 4497 ;; 4498 esac 4499 4500 # If the value was cached, stop now. We just wanted to have am__tar 4501 # and am__untar set. 4502 test -n "${am_cv_prog_tar_pax}" && break 4503 4504 # tar/untar a dummy directory, and stop if the command works. 4505 rm -rf conftest.dir 4506 mkdir conftest.dir 4507 echo GrepMe > conftest.dir/file 4508 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4509 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4510 ac_status=$? 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); } 4513 rm -rf conftest.dir 4514 if test -s conftest.tar; then 4515 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4516 ($am__untar <conftest.tar) >&5 2>&5 4517 ac_status=$? 4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); } 4520 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4521 (cat conftest.dir/file) >&5 2>&5 4522 ac_status=$? 4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4524 (exit $ac_status); } 4525 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4526 fi 4527 done 4528 rm -rf conftest.dir 4529 4530 if ${am_cv_prog_tar_pax+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 am_cv_prog_tar_pax=$_am_tool 4534fi 4535 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 4537$as_echo "$am_cv_prog_tar_pax" >&6; } 4538 4539 4540 4541 4542 4543depcc="$CC" am_compiler_list= 4544 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4546$as_echo_n "checking dependency style of $depcc... " >&6; } 4547if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4548 $as_echo_n "(cached) " >&6 4549else 4550 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4551 # We make a subdir and do the tests there. Otherwise we can end up 4552 # making bogus files that we don't know about and never remove. For 4553 # instance it was reported that on HP-UX the gcc test will end up 4554 # making a dummy file named 'D' -- because '-MD' means "put the output 4555 # in D". 4556 rm -rf conftest.dir 4557 mkdir conftest.dir 4558 # Copy depcomp to subdir because otherwise we won't find it if we're 4559 # using a relative directory. 4560 cp "$am_depcomp" conftest.dir 4561 cd conftest.dir 4562 # We will build objects and dependencies in a subdirectory because 4563 # it helps to detect inapplicable dependency modes. For instance 4564 # both Tru64's cc and ICC support -MD to output dependencies as a 4565 # side effect of compilation, but ICC will put the dependencies in 4566 # the current directory while Tru64 will put them in the object 4567 # directory. 4568 mkdir sub 4569 4570 am_cv_CC_dependencies_compiler_type=none 4571 if test "$am_compiler_list" = ""; then 4572 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4573 fi 4574 am__universal=false 4575 case " $depcc " in #( 4576 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4577 esac 4578 4579 for depmode in $am_compiler_list; do 4580 # Setup a source with many dependencies, because some compilers 4581 # like to wrap large dependency lists on column 80 (with \), and 4582 # we should not choose a depcomp mode which is confused by this. 4583 # 4584 # We need to recreate these files for each test, as the compiler may 4585 # overwrite some of them when testing with obscure command lines. 4586 # This happens at least with the AIX C compiler. 4587 : > sub/conftest.c 4588 for i in 1 2 3 4 5 6; do 4589 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4590 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4591 # Solaris 10 /bin/sh. 4592 echo '/* dummy */' > sub/conftst$i.h 4593 done 4594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4595 4596 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4597 # mode. It turns out that the SunPro C++ compiler does not properly 4598 # handle '-M -o', and we need to detect this. Also, some Intel 4599 # versions had trouble with output in subdirs. 4600 am__obj=sub/conftest.${OBJEXT-o} 4601 am__minus_obj="-o $am__obj" 4602 case $depmode in 4603 gcc) 4604 # This depmode causes a compiler race in universal mode. 4605 test "$am__universal" = false || continue 4606 ;; 4607 nosideeffect) 4608 # After this tag, mechanisms are not by side-effect, so they'll 4609 # only be used when explicitly requested. 4610 if test "x$enable_dependency_tracking" = xyes; then 4611 continue 4612 else 4613 break 4614 fi 4615 ;; 4616 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4617 # This compiler won't grok '-c -o', but also, the minuso test has 4618 # not run yet. These depmodes are late enough in the game, and 4619 # so weak that their functioning should not be impacted. 4620 am__obj=conftest.${OBJEXT-o} 4621 am__minus_obj= 4622 ;; 4623 none) break ;; 4624 esac 4625 if depmode=$depmode \ 4626 source=sub/conftest.c object=$am__obj \ 4627 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4628 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4629 >/dev/null 2>conftest.err && 4630 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4631 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4632 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4633 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4634 # icc doesn't choke on unknown options, it will just issue warnings 4635 # or remarks (even with -Werror). So we grep stderr for any message 4636 # that says an option was ignored or not supported. 4637 # When given -MP, icc 7.0 and 7.1 complain thusly: 4638 # icc: Command line warning: ignoring option '-M'; no argument required 4639 # The diagnosis changed in icc 8.0: 4640 # icc: Command line remark: option '-MP' not supported 4641 if (grep 'ignoring option' conftest.err || 4642 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4643 am_cv_CC_dependencies_compiler_type=$depmode 4644 break 4645 fi 4646 fi 4647 done 4648 4649 cd .. 4650 rm -rf conftest.dir 4651else 4652 am_cv_CC_dependencies_compiler_type=none 4653fi 4654 4655fi 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4657$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4658CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4659 4660 if 4661 test "x$enable_dependency_tracking" != xno \ 4662 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4663 am__fastdepCC_TRUE= 4664 am__fastdepCC_FALSE='#' 4665else 4666 am__fastdepCC_TRUE='#' 4667 am__fastdepCC_FALSE= 4668fi 4669 4670 4671 4672# POSIX will say in a future version that running "rm -f" with no argument 4673# is OK; and we want to be able to make that assumption in our Makefile 4674# recipes. So use an aggressive probe to check that the usage we want is 4675# actually supported "in the wild" to an acceptable degree. 4676# See automake bug#10828. 4677# To make any issue more visible, cause the running configure to be aborted 4678# by default if the 'rm' program in use doesn't match our expectations; the 4679# user can still override this though. 4680if rm -f && rm -fr && rm -rf; then : OK; else 4681 cat >&2 <<'END' 4682Oops! 4683 4684Your 'rm' program seems unable to run without file operands specified 4685on the command line, even when the '-f' option is present. This is contrary 4686to the behaviour of most rm programs out there, and not conforming with 4687the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4688 4689Please tell bug-automake@gnu.org about your system, including the value 4690of your $PATH and any error possibly output before this message. This 4691can help us improve future automake versions. 4692 4693END 4694 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4695 echo 'Configuration will proceed anyway, since you have set the' >&2 4696 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4697 echo >&2 4698 else 4699 cat >&2 <<'END' 4700Aborting the configuration process, to ensure you take notice of the issue. 4701 4702You can download and install GNU coreutils to get an 'rm' implementation 4703that behaves properly: <http://www.gnu.org/software/coreutils/>. 4704 4705If you want to complete the configuration process using your problematic 4706'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4707to "yes", and re-run configure. 4708 4709END 4710 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4711 fi 4712fi 4713# Check whether --enable-silent-rules was given. 4714if test "${enable_silent_rules+set}" = set; then : 4715 enableval=$enable_silent_rules; 4716fi 4717 4718case $enable_silent_rules in # ((( 4719 yes) AM_DEFAULT_VERBOSITY=0;; 4720 no) AM_DEFAULT_VERBOSITY=1;; 4721 *) AM_DEFAULT_VERBOSITY=0;; 4722esac 4723am_make=${MAKE-make} 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4725$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4726if ${am_cv_make_support_nested_variables+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 if $as_echo 'TRUE=$(BAR$(V)) 4730BAR0=false 4731BAR1=true 4732V=1 4733am__doit: 4734 @$(TRUE) 4735.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4736 am_cv_make_support_nested_variables=yes 4737else 4738 am_cv_make_support_nested_variables=no 4739fi 4740fi 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4742$as_echo "$am_cv_make_support_nested_variables" >&6; } 4743if test $am_cv_make_support_nested_variables = yes; then 4744 AM_V='$(V)' 4745 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4746else 4747 AM_V=$AM_DEFAULT_VERBOSITY 4748 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4749fi 4750AM_BACKSLASH='\' 4751 4752 4753PACKAGE_DESCRIPTION="terminal-emulator state machine" 4754 4755 4756# 4757# Don't add a default "-g -O2" if CFLAGS wasn't specified. For debugging it is 4758# often more convenient to have "-g -O0". You can still override it by 4759# explicitly setting it on the command line. 4760# 4761 4762: ${CFLAGS=""} 4763 4764ac_ext=c 4765ac_cpp='$CPP $CPPFLAGS' 4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4768ac_compiler_gnu=$ac_cv_c_compiler_gnu 4769if test -n "$ac_tool_prefix"; then 4770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4771set dummy ${ac_tool_prefix}gcc; ac_word=$2 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4773$as_echo_n "checking for $ac_word... " >&6; } 4774if ${ac_cv_prog_CC+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 if test -n "$CC"; then 4778 ac_cv_prog_CC="$CC" # Let the user override the test. 4779else 4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4781for as_dir in $PATH 4782do 4783 IFS=$as_save_IFS 4784 test -z "$as_dir" && as_dir=. 4785 for ac_exec_ext in '' $ac_executable_extensions; do 4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4787 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4789 break 2 4790 fi 4791done 4792 done 4793IFS=$as_save_IFS 4794 4795fi 4796fi 4797CC=$ac_cv_prog_CC 4798if test -n "$CC"; then 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4800$as_echo "$CC" >&6; } 4801else 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4803$as_echo "no" >&6; } 4804fi 4805 4806 4807fi 4808if test -z "$ac_cv_prog_CC"; then 4809 ac_ct_CC=$CC 4810 # Extract the first word of "gcc", so it can be a program name with args. 4811set dummy gcc; ac_word=$2 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4813$as_echo_n "checking for $ac_word... " >&6; } 4814if ${ac_cv_prog_ac_ct_CC+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 if test -n "$ac_ct_CC"; then 4818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4819else 4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4821for as_dir in $PATH 4822do 4823 IFS=$as_save_IFS 4824 test -z "$as_dir" && as_dir=. 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4827 ac_cv_prog_ac_ct_CC="gcc" 4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4829 break 2 4830 fi 4831done 4832 done 4833IFS=$as_save_IFS 4834 4835fi 4836fi 4837ac_ct_CC=$ac_cv_prog_ac_ct_CC 4838if test -n "$ac_ct_CC"; then 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4840$as_echo "$ac_ct_CC" >&6; } 4841else 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4843$as_echo "no" >&6; } 4844fi 4845 4846 if test "x$ac_ct_CC" = x; then 4847 CC="" 4848 else 4849 case $cross_compiling:$ac_tool_warned in 4850yes:) 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4853ac_tool_warned=yes ;; 4854esac 4855 CC=$ac_ct_CC 4856 fi 4857else 4858 CC="$ac_cv_prog_CC" 4859fi 4860 4861if test -z "$CC"; then 4862 if test -n "$ac_tool_prefix"; then 4863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4864set dummy ${ac_tool_prefix}cc; ac_word=$2 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4866$as_echo_n "checking for $ac_word... " >&6; } 4867if ${ac_cv_prog_CC+:} false; then : 4868 $as_echo_n "(cached) " >&6 4869else 4870 if test -n "$CC"; then 4871 ac_cv_prog_CC="$CC" # Let the user override the test. 4872else 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4874for as_dir in $PATH 4875do 4876 IFS=$as_save_IFS 4877 test -z "$as_dir" && as_dir=. 4878 for ac_exec_ext in '' $ac_executable_extensions; do 4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4880 ac_cv_prog_CC="${ac_tool_prefix}cc" 4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4882 break 2 4883 fi 4884done 4885 done 4886IFS=$as_save_IFS 4887 4888fi 4889fi 4890CC=$ac_cv_prog_CC 4891if test -n "$CC"; then 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4893$as_echo "$CC" >&6; } 4894else 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4896$as_echo "no" >&6; } 4897fi 4898 4899 4900 fi 4901fi 4902if test -z "$CC"; then 4903 # Extract the first word of "cc", so it can be a program name with args. 4904set dummy cc; ac_word=$2 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4906$as_echo_n "checking for $ac_word... " >&6; } 4907if ${ac_cv_prog_CC+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 if test -n "$CC"; then 4911 ac_cv_prog_CC="$CC" # Let the user override the test. 4912else 4913 ac_prog_rejected=no 4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4915for as_dir in $PATH 4916do 4917 IFS=$as_save_IFS 4918 test -z "$as_dir" && as_dir=. 4919 for ac_exec_ext in '' $ac_executable_extensions; do 4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4922 ac_prog_rejected=yes 4923 continue 4924 fi 4925 ac_cv_prog_CC="cc" 4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4927 break 2 4928 fi 4929done 4930 done 4931IFS=$as_save_IFS 4932 4933if test $ac_prog_rejected = yes; then 4934 # We found a bogon in the path, so make sure we never use it. 4935 set dummy $ac_cv_prog_CC 4936 shift 4937 if test $# != 0; then 4938 # We chose a different compiler from the bogus one. 4939 # However, it has the same basename, so the bogon will be chosen 4940 # first if we set CC to just the basename; use the full file name. 4941 shift 4942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4943 fi 4944fi 4945fi 4946fi 4947CC=$ac_cv_prog_CC 4948if test -n "$CC"; then 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4950$as_echo "$CC" >&6; } 4951else 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4953$as_echo "no" >&6; } 4954fi 4955 4956 4957fi 4958if test -z "$CC"; then 4959 if test -n "$ac_tool_prefix"; then 4960 for ac_prog in cl.exe 4961 do 4962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4963set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4965$as_echo_n "checking for $ac_word... " >&6; } 4966if ${ac_cv_prog_CC+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 if test -n "$CC"; then 4970 ac_cv_prog_CC="$CC" # Let the user override the test. 4971else 4972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4973for as_dir in $PATH 4974do 4975 IFS=$as_save_IFS 4976 test -z "$as_dir" && as_dir=. 4977 for ac_exec_ext in '' $ac_executable_extensions; do 4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4981 break 2 4982 fi 4983done 4984 done 4985IFS=$as_save_IFS 4986 4987fi 4988fi 4989CC=$ac_cv_prog_CC 4990if test -n "$CC"; then 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4992$as_echo "$CC" >&6; } 4993else 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4995$as_echo "no" >&6; } 4996fi 4997 4998 4999 test -n "$CC" && break 5000 done 5001fi 5002if test -z "$CC"; then 5003 ac_ct_CC=$CC 5004 for ac_prog in cl.exe 5005do 5006 # Extract the first word of "$ac_prog", so it can be a program name with args. 5007set dummy $ac_prog; ac_word=$2 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5009$as_echo_n "checking for $ac_word... " >&6; } 5010if ${ac_cv_prog_ac_ct_CC+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 if test -n "$ac_ct_CC"; then 5014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5015else 5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5017for as_dir in $PATH 5018do 5019 IFS=$as_save_IFS 5020 test -z "$as_dir" && as_dir=. 5021 for ac_exec_ext in '' $ac_executable_extensions; do 5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5023 ac_cv_prog_ac_ct_CC="$ac_prog" 5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5025 break 2 5026 fi 5027done 5028 done 5029IFS=$as_save_IFS 5030 5031fi 5032fi 5033ac_ct_CC=$ac_cv_prog_ac_ct_CC 5034if test -n "$ac_ct_CC"; then 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5036$as_echo "$ac_ct_CC" >&6; } 5037else 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5039$as_echo "no" >&6; } 5040fi 5041 5042 5043 test -n "$ac_ct_CC" && break 5044done 5045 5046 if test "x$ac_ct_CC" = x; then 5047 CC="" 5048 else 5049 case $cross_compiling:$ac_tool_warned in 5050yes:) 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5053ac_tool_warned=yes ;; 5054esac 5055 CC=$ac_ct_CC 5056 fi 5057fi 5058 5059fi 5060 5061 5062test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5064as_fn_error $? "no acceptable C compiler found in \$PATH 5065See \`config.log' for more details" "$LINENO" 5; } 5066 5067# Provide some information about the compiler. 5068$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5069set X $ac_compile 5070ac_compiler=$2 5071for ac_option in --version -v -V -qversion; do 5072 { { ac_try="$ac_compiler $ac_option >&5" 5073case "(($ac_try" in 5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5075 *) ac_try_echo=$ac_try;; 5076esac 5077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5078$as_echo "$ac_try_echo"; } >&5 5079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5080 ac_status=$? 5081 if test -s conftest.err; then 5082 sed '10a\ 5083... rest of stderr output deleted ... 5084 10q' conftest.err >conftest.er1 5085 cat conftest.er1 >&5 5086 fi 5087 rm -f conftest.er1 conftest.err 5088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5089 test $ac_status = 0; } 5090done 5091 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5093$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5094if ${ac_cv_c_compiler_gnu+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099 5100int 5101main () 5102{ 5103#ifndef __GNUC__ 5104 choke me 5105#endif 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_compile "$LINENO"; then : 5112 ac_compiler_gnu=yes 5113else 5114 ac_compiler_gnu=no 5115fi 5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5117ac_cv_c_compiler_gnu=$ac_compiler_gnu 5118 5119fi 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5121$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5122if test $ac_compiler_gnu = yes; then 5123 GCC=yes 5124else 5125 GCC= 5126fi 5127ac_test_CFLAGS=${CFLAGS+set} 5128ac_save_CFLAGS=$CFLAGS 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5130$as_echo_n "checking whether $CC accepts -g... " >&6; } 5131if ${ac_cv_prog_cc_g+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 ac_save_c_werror_flag=$ac_c_werror_flag 5135 ac_c_werror_flag=yes 5136 ac_cv_prog_cc_g=no 5137 CFLAGS="-g" 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140 5141int 5142main () 5143{ 5144 5145 ; 5146 return 0; 5147} 5148_ACEOF 5149if ac_fn_c_try_compile "$LINENO"; then : 5150 ac_cv_prog_cc_g=yes 5151else 5152 CFLAGS="" 5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154/* end confdefs.h. */ 5155 5156int 5157main () 5158{ 5159 5160 ; 5161 return 0; 5162} 5163_ACEOF 5164if ac_fn_c_try_compile "$LINENO"; then : 5165 5166else 5167 ac_c_werror_flag=$ac_save_c_werror_flag 5168 CFLAGS="-g" 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171 5172int 5173main () 5174{ 5175 5176 ; 5177 return 0; 5178} 5179_ACEOF 5180if ac_fn_c_try_compile "$LINENO"; then : 5181 ac_cv_prog_cc_g=yes 5182fi 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184fi 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186fi 5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5188 ac_c_werror_flag=$ac_save_c_werror_flag 5189fi 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5191$as_echo "$ac_cv_prog_cc_g" >&6; } 5192if test "$ac_test_CFLAGS" = set; then 5193 CFLAGS=$ac_save_CFLAGS 5194elif test $ac_cv_prog_cc_g = yes; then 5195 if test "$GCC" = yes; then 5196 CFLAGS="-g -O2" 5197 else 5198 CFLAGS="-g" 5199 fi 5200else 5201 if test "$GCC" = yes; then 5202 CFLAGS="-O2" 5203 else 5204 CFLAGS= 5205 fi 5206fi 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5209if ${ac_cv_prog_cc_c89+:} false; then : 5210 $as_echo_n "(cached) " >&6 5211else 5212 ac_cv_prog_cc_c89=no 5213ac_save_CC=$CC 5214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215/* end confdefs.h. */ 5216#include <stdarg.h> 5217#include <stdio.h> 5218struct stat; 5219/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5220struct buf { int x; }; 5221FILE * (*rcsopen) (struct buf *, struct stat *, int); 5222static char *e (p, i) 5223 char **p; 5224 int i; 5225{ 5226 return p[i]; 5227} 5228static char *f (char * (*g) (char **, int), char **p, ...) 5229{ 5230 char *s; 5231 va_list v; 5232 va_start (v,p); 5233 s = g (p, va_arg (v,int)); 5234 va_end (v); 5235 return s; 5236} 5237 5238/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5239 function prototypes and stuff, but not '\xHH' hex character constants. 5240 These don't provoke an error unfortunately, instead are silently treated 5241 as 'x'. The following induces an error, until -std is added to get 5242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5243 array size at least. It's necessary to write '\x00'==0 to get something 5244 that's true only with -std. */ 5245int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5246 5247/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5248 inside strings and character constants. */ 5249#define FOO(x) 'x' 5250int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5251 5252int test (int i, double x); 5253struct s1 {int (*f) (int a);}; 5254struct s2 {int (*f) (double a);}; 5255int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5256int argc; 5257char **argv; 5258int 5259main () 5260{ 5261return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5268do 5269 CC="$ac_save_CC $ac_arg" 5270 if ac_fn_c_try_compile "$LINENO"; then : 5271 ac_cv_prog_cc_c89=$ac_arg 5272fi 5273rm -f core conftest.err conftest.$ac_objext 5274 test "x$ac_cv_prog_cc_c89" != "xno" && break 5275done 5276rm -f conftest.$ac_ext 5277CC=$ac_save_CC 5278 5279fi 5280# AC_CACHE_VAL 5281case "x$ac_cv_prog_cc_c89" in 5282 x) 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5284$as_echo "none needed" >&6; } ;; 5285 xno) 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5287$as_echo "unsupported" >&6; } ;; 5288 *) 5289 CC="$CC $ac_cv_prog_cc_c89" 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5291$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5292esac 5293if test "x$ac_cv_prog_cc_c89" != xno; then : 5294 5295fi 5296 5297ac_ext=c 5298ac_cpp='$CPP $CPPFLAGS' 5299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5301ac_compiler_gnu=$ac_cv_c_compiler_gnu 5302 5303ac_ext=c 5304ac_cpp='$CPP $CPPFLAGS' 5305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5307ac_compiler_gnu=$ac_cv_c_compiler_gnu 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5309$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5310if ${am_cv_prog_cc_c_o+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315 5316int 5317main () 5318{ 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324 # Make sure it works both with $CC and with simple cc. 5325 # Following AC_PROG_CC_C_O, we do the test twice because some 5326 # compilers refuse to overwrite an existing .o file with -o, 5327 # though they will create one. 5328 am_cv_prog_cc_c_o=yes 5329 for am_i in 1 2; do 5330 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5331 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5332 ac_status=$? 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5334 (exit $ac_status); } \ 5335 && test -f conftest2.$ac_objext; then 5336 : OK 5337 else 5338 am_cv_prog_cc_c_o=no 5339 break 5340 fi 5341 done 5342 rm -f core conftest* 5343 unset am_i 5344fi 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5346$as_echo "$am_cv_prog_cc_c_o" >&6; } 5347if test "$am_cv_prog_cc_c_o" != yes; then 5348 # Losing compiler, so override with the script. 5349 # FIXME: It is wrong to rewrite CC. 5350 # But if we don't then we get into trouble of one sort or another. 5351 # A longer-term fix would be to have automake use am__CC in this case, 5352 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5353 CC="$am_aux_dir/compile $CC" 5354fi 5355ac_ext=c 5356ac_cpp='$CPP $CPPFLAGS' 5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5359ac_compiler_gnu=$ac_cv_c_compiler_gnu 5360 5361 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5363$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5364if ${ac_cv_prog_cc_c99+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 ac_cv_prog_cc_c99=no 5368ac_save_CC=$CC 5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5370/* end confdefs.h. */ 5371#include <stdarg.h> 5372#include <stdbool.h> 5373#include <stdlib.h> 5374#include <wchar.h> 5375#include <stdio.h> 5376 5377// Check varargs macros. These examples are taken from C99 6.10.3.5. 5378#define debug(...) fprintf (stderr, __VA_ARGS__) 5379#define showlist(...) puts (#__VA_ARGS__) 5380#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5381static void 5382test_varargs_macros (void) 5383{ 5384 int x = 1234; 5385 int y = 5678; 5386 debug ("Flag"); 5387 debug ("X = %d\n", x); 5388 showlist (The first, second, and third items.); 5389 report (x>y, "x is %d but y is %d", x, y); 5390} 5391 5392// Check long long types. 5393#define BIG64 18446744073709551615ull 5394#define BIG32 4294967295ul 5395#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5396#if !BIG_OK 5397 your preprocessor is broken; 5398#endif 5399#if BIG_OK 5400#else 5401 your preprocessor is broken; 5402#endif 5403static long long int bignum = -9223372036854775807LL; 5404static unsigned long long int ubignum = BIG64; 5405 5406struct incomplete_array 5407{ 5408 int datasize; 5409 double data[]; 5410}; 5411 5412struct named_init { 5413 int number; 5414 const wchar_t *name; 5415 double average; 5416}; 5417 5418typedef const char *ccp; 5419 5420static inline int 5421test_restrict (ccp restrict text) 5422{ 5423 // See if C++-style comments work. 5424 // Iterate through items via the restricted pointer. 5425 // Also check for declarations in for loops. 5426 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5427 continue; 5428 return 0; 5429} 5430 5431// Check varargs and va_copy. 5432static void 5433test_varargs (const char *format, ...) 5434{ 5435 va_list args; 5436 va_start (args, format); 5437 va_list args_copy; 5438 va_copy (args_copy, args); 5439 5440 const char *str; 5441 int number; 5442 float fnumber; 5443 5444 while (*format) 5445 { 5446 switch (*format++) 5447 { 5448 case 's': // string 5449 str = va_arg (args_copy, const char *); 5450 break; 5451 case 'd': // int 5452 number = va_arg (args_copy, int); 5453 break; 5454 case 'f': // float 5455 fnumber = va_arg (args_copy, double); 5456 break; 5457 default: 5458 break; 5459 } 5460 } 5461 va_end (args_copy); 5462 va_end (args); 5463} 5464 5465int 5466main () 5467{ 5468 5469 // Check bool. 5470 _Bool success = false; 5471 5472 // Check restrict. 5473 if (test_restrict ("String literal") == 0) 5474 success = true; 5475 char *restrict newvar = "Another string"; 5476 5477 // Check varargs. 5478 test_varargs ("s, d' f .", "string", 65, 34.234); 5479 test_varargs_macros (); 5480 5481 // Check flexible array members. 5482 struct incomplete_array *ia = 5483 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5484 ia->datasize = 10; 5485 for (int i = 0; i < ia->datasize; ++i) 5486 ia->data[i] = i * 1.234; 5487 5488 // Check named initializers. 5489 struct named_init ni = { 5490 .number = 34, 5491 .name = L"Test wide string", 5492 .average = 543.34343, 5493 }; 5494 5495 ni.number = 58; 5496 5497 int dynamic_array[ni.number]; 5498 dynamic_array[ni.number - 1] = 543; 5499 5500 // work around unused variable warnings 5501 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5502 || dynamic_array[ni.number - 1] != 543); 5503 5504 ; 5505 return 0; 5506} 5507_ACEOF 5508for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5509do 5510 CC="$ac_save_CC $ac_arg" 5511 if ac_fn_c_try_compile "$LINENO"; then : 5512 ac_cv_prog_cc_c99=$ac_arg 5513fi 5514rm -f core conftest.err conftest.$ac_objext 5515 test "x$ac_cv_prog_cc_c99" != "xno" && break 5516done 5517rm -f conftest.$ac_ext 5518CC=$ac_save_CC 5519 5520fi 5521# AC_CACHE_VAL 5522case "x$ac_cv_prog_cc_c99" in 5523 x) 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5525$as_echo "none needed" >&6; } ;; 5526 xno) 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5528$as_echo "unsupported" >&6; } ;; 5529 *) 5530 CC="$CC $ac_cv_prog_cc_c99" 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5532$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5533esac 5534if test "x$ac_cv_prog_cc_c99" != xno; then : 5535 5536fi 5537 5538 5539 5540if test -n "$ac_tool_prefix"; then 5541 for ac_prog in ar lib "link -lib" 5542 do 5543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5544set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5546$as_echo_n "checking for $ac_word... " >&6; } 5547if ${ac_cv_prog_AR+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 if test -n "$AR"; then 5551 ac_cv_prog_AR="$AR" # Let the user override the test. 5552else 5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5554for as_dir in $PATH 5555do 5556 IFS=$as_save_IFS 5557 test -z "$as_dir" && as_dir=. 5558 for ac_exec_ext in '' $ac_executable_extensions; do 5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5560 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5562 break 2 5563 fi 5564done 5565 done 5566IFS=$as_save_IFS 5567 5568fi 5569fi 5570AR=$ac_cv_prog_AR 5571if test -n "$AR"; then 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5573$as_echo "$AR" >&6; } 5574else 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5576$as_echo "no" >&6; } 5577fi 5578 5579 5580 test -n "$AR" && break 5581 done 5582fi 5583if test -z "$AR"; then 5584 ac_ct_AR=$AR 5585 for ac_prog in ar lib "link -lib" 5586do 5587 # Extract the first word of "$ac_prog", so it can be a program name with args. 5588set dummy $ac_prog; ac_word=$2 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5590$as_echo_n "checking for $ac_word... " >&6; } 5591if ${ac_cv_prog_ac_ct_AR+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 if test -n "$ac_ct_AR"; then 5595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5596else 5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5598for as_dir in $PATH 5599do 5600 IFS=$as_save_IFS 5601 test -z "$as_dir" && as_dir=. 5602 for ac_exec_ext in '' $ac_executable_extensions; do 5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5604 ac_cv_prog_ac_ct_AR="$ac_prog" 5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5606 break 2 5607 fi 5608done 5609 done 5610IFS=$as_save_IFS 5611 5612fi 5613fi 5614ac_ct_AR=$ac_cv_prog_ac_ct_AR 5615if test -n "$ac_ct_AR"; then 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5617$as_echo "$ac_ct_AR" >&6; } 5618else 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5620$as_echo "no" >&6; } 5621fi 5622 5623 5624 test -n "$ac_ct_AR" && break 5625done 5626 5627 if test "x$ac_ct_AR" = x; then 5628 AR="false" 5629 else 5630 case $cross_compiling:$ac_tool_warned in 5631yes:) 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5634ac_tool_warned=yes ;; 5635esac 5636 AR=$ac_ct_AR 5637 fi 5638fi 5639 5640: ${AR=ar} 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5643$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5644if ${am_cv_ar_interface+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 ac_ext=c 5648ac_cpp='$CPP $CPPFLAGS' 5649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5651ac_compiler_gnu=$ac_cv_c_compiler_gnu 5652 5653 am_cv_ar_interface=ar 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int some_variable = 0; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO"; then : 5659 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5661 (eval $am_ar_try) 2>&5 5662 ac_status=$? 5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5664 test $ac_status = 0; } 5665 if test "$ac_status" -eq 0; then 5666 am_cv_ar_interface=ar 5667 else 5668 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5670 (eval $am_ar_try) 2>&5 5671 ac_status=$? 5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5673 test $ac_status = 0; } 5674 if test "$ac_status" -eq 0; then 5675 am_cv_ar_interface=lib 5676 else 5677 am_cv_ar_interface=unknown 5678 fi 5679 fi 5680 rm -f conftest.lib libconftest.a 5681 5682fi 5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5684 ac_ext=c 5685ac_cpp='$CPP $CPPFLAGS' 5686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5688ac_compiler_gnu=$ac_cv_c_compiler_gnu 5689 5690fi 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5692$as_echo "$am_cv_ar_interface" >&6; } 5693 5694case $am_cv_ar_interface in 5695ar) 5696 ;; 5697lib) 5698 # Microsoft lib, so override with the ar-lib wrapper script. 5699 # FIXME: It is wrong to rewrite AR. 5700 # But if we don't then we get into trouble of one sort or another. 5701 # A longer-term fix would be to have automake use am__AR in this case, 5702 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5703 # similar. 5704 AR="$am_aux_dir/ar-lib $AR" 5705 ;; 5706unknown) 5707 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5708 ;; 5709esac 5710 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5712$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5713if ${ac_cv_path_SED+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5717 for ac_i in 1 2 3 4 5 6 7; do 5718 ac_script="$ac_script$as_nl$ac_script" 5719 done 5720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5721 { ac_script=; unset ac_script;} 5722 if test -z "$SED"; then 5723 ac_path_SED_found=false 5724 # Loop through the user's path and test for each of PROGNAME-LIST 5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_prog in sed gsed; do 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5733 as_fn_executable_p "$ac_path_SED" || continue 5734# Check for GNU ac_path_SED and select it if it is found. 5735 # Check for GNU $ac_path_SED 5736case `"$ac_path_SED" --version 2>&1` in 5737*GNU*) 5738 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5739*) 5740 ac_count=0 5741 $as_echo_n 0123456789 >"conftest.in" 5742 while : 5743 do 5744 cat "conftest.in" "conftest.in" >"conftest.tmp" 5745 mv "conftest.tmp" "conftest.in" 5746 cp "conftest.in" "conftest.nl" 5747 $as_echo '' >> "conftest.nl" 5748 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5750 as_fn_arith $ac_count + 1 && ac_count=$as_val 5751 if test $ac_count -gt ${ac_path_SED_max-0}; then 5752 # Best one so far, save it but keep looking for a better one 5753 ac_cv_path_SED="$ac_path_SED" 5754 ac_path_SED_max=$ac_count 5755 fi 5756 # 10*(2^10) chars as input seems more than enough 5757 test $ac_count -gt 10 && break 5758 done 5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5760esac 5761 5762 $ac_path_SED_found && break 3 5763 done 5764 done 5765 done 5766IFS=$as_save_IFS 5767 if test -z "$ac_cv_path_SED"; then 5768 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5769 fi 5770else 5771 ac_cv_path_SED=$SED 5772fi 5773 5774fi 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5776$as_echo "$ac_cv_path_SED" >&6; } 5777 SED="$ac_cv_path_SED" 5778 rm -f conftest.sed 5779 5780 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5782$as_echo_n "checking whether ln -s works... " >&6; } 5783LN_S=$as_ln_s 5784if test "$LN_S" = "ln -s"; then 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5786$as_echo "yes" >&6; } 5787else 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5789$as_echo "no, using $LN_S" >&6; } 5790fi 5791 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5793$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5794if ${ac_cv_path_GREP+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 if test -z "$GREP"; then 5798 ac_path_GREP_found=false 5799 # Loop through the user's path and test for each of PROGNAME-LIST 5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5802do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_prog in grep ggrep; do 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5808 as_fn_executable_p "$ac_path_GREP" || continue 5809# Check for GNU ac_path_GREP and select it if it is found. 5810 # Check for GNU $ac_path_GREP 5811case `"$ac_path_GREP" --version 2>&1` in 5812*GNU*) 5813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5814*) 5815 ac_count=0 5816 $as_echo_n 0123456789 >"conftest.in" 5817 while : 5818 do 5819 cat "conftest.in" "conftest.in" >"conftest.tmp" 5820 mv "conftest.tmp" "conftest.in" 5821 cp "conftest.in" "conftest.nl" 5822 $as_echo 'GREP' >> "conftest.nl" 5823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5825 as_fn_arith $ac_count + 1 && ac_count=$as_val 5826 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5827 # Best one so far, save it but keep looking for a better one 5828 ac_cv_path_GREP="$ac_path_GREP" 5829 ac_path_GREP_max=$ac_count 5830 fi 5831 # 10*(2^10) chars as input seems more than enough 5832 test $ac_count -gt 10 && break 5833 done 5834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5835esac 5836 5837 $ac_path_GREP_found && break 3 5838 done 5839 done 5840 done 5841IFS=$as_save_IFS 5842 if test -z "$ac_cv_path_GREP"; then 5843 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5844 fi 5845else 5846 ac_cv_path_GREP=$GREP 5847fi 5848 5849fi 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5851$as_echo "$ac_cv_path_GREP" >&6; } 5852 GREP="$ac_cv_path_GREP" 5853 5854 5855for ac_prog in gawk mawk nawk awk 5856do 5857 # Extract the first word of "$ac_prog", so it can be a program name with args. 5858set dummy $ac_prog; ac_word=$2 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860$as_echo_n "checking for $ac_word... " >&6; } 5861if ${ac_cv_prog_AWK+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863else 5864 if test -n "$AWK"; then 5865 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5866else 5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH 5869do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5874 ac_cv_prog_AWK="$ac_prog" 5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878done 5879 done 5880IFS=$as_save_IFS 5881 5882fi 5883fi 5884AWK=$ac_cv_prog_AWK 5885if test -n "$AWK"; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5887$as_echo "$AWK" >&6; } 5888else 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5890$as_echo "no" >&6; } 5891fi 5892 5893 5894 test -n "$AWK" && break 5895done 5896 5897 5898 5899case `pwd` in 5900 *\ * | *\ *) 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5902$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5903esac 5904 5905 5906 5907macro_version='2.4.2' 5908macro_revision='1.3337' 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922ltmain="$ac_aux_dir/ltmain.sh" 5923 5924# Backslashify metacharacters that are still active within 5925# double-quoted strings. 5926sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5927 5928# Same as above, but do not quote variable references. 5929double_quote_subst='s/\(["`\\]\)/\\\1/g' 5930 5931# Sed substitution to delay expansion of an escaped shell variable in a 5932# double_quote_subst'ed string. 5933delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5934 5935# Sed substitution to delay expansion of an escaped single quote. 5936delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5937 5938# Sed substitution to avoid accidental globbing in evaled expressions 5939no_glob_subst='s/\*/\\\*/g' 5940 5941ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5944 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5946$as_echo_n "checking how to print strings... " >&6; } 5947# Test print first, because it will be a builtin if present. 5948if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5950 ECHO='print -r --' 5951elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5952 ECHO='printf %s\n' 5953else 5954 # Use this function as a fallback that always works. 5955 func_fallback_echo () 5956 { 5957 eval 'cat <<_LTECHO_EOF 5958$1 5959_LTECHO_EOF' 5960 } 5961 ECHO='func_fallback_echo' 5962fi 5963 5964# func_echo_all arg... 5965# Invoke $ECHO with all args, space-separated. 5966func_echo_all () 5967{ 5968 $ECHO "" 5969} 5970 5971case "$ECHO" in 5972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5973$as_echo "printf" >&6; } ;; 5974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5975$as_echo "print -r" >&6; } ;; 5976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5977$as_echo "cat" >&6; } ;; 5978esac 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5994$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5995if ${ac_cv_path_SED+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5999 for ac_i in 1 2 3 4 5 6 7; do 6000 ac_script="$ac_script$as_nl$ac_script" 6001 done 6002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6003 { ac_script=; unset ac_script;} 6004 if test -z "$SED"; then 6005 ac_path_SED_found=false 6006 # Loop through the user's path and test for each of PROGNAME-LIST 6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6008for as_dir in $PATH 6009do 6010 IFS=$as_save_IFS 6011 test -z "$as_dir" && as_dir=. 6012 for ac_prog in sed gsed; do 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6015 as_fn_executable_p "$ac_path_SED" || continue 6016# Check for GNU ac_path_SED and select it if it is found. 6017 # Check for GNU $ac_path_SED 6018case `"$ac_path_SED" --version 2>&1` in 6019*GNU*) 6020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6021*) 6022 ac_count=0 6023 $as_echo_n 0123456789 >"conftest.in" 6024 while : 6025 do 6026 cat "conftest.in" "conftest.in" >"conftest.tmp" 6027 mv "conftest.tmp" "conftest.in" 6028 cp "conftest.in" "conftest.nl" 6029 $as_echo '' >> "conftest.nl" 6030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6032 as_fn_arith $ac_count + 1 && ac_count=$as_val 6033 if test $ac_count -gt ${ac_path_SED_max-0}; then 6034 # Best one so far, save it but keep looking for a better one 6035 ac_cv_path_SED="$ac_path_SED" 6036 ac_path_SED_max=$ac_count 6037 fi 6038 # 10*(2^10) chars as input seems more than enough 6039 test $ac_count -gt 10 && break 6040 done 6041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6042esac 6043 6044 $ac_path_SED_found && break 3 6045 done 6046 done 6047 done 6048IFS=$as_save_IFS 6049 if test -z "$ac_cv_path_SED"; then 6050 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6051 fi 6052else 6053 ac_cv_path_SED=$SED 6054fi 6055 6056fi 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6058$as_echo "$ac_cv_path_SED" >&6; } 6059 SED="$ac_cv_path_SED" 6060 rm -f conftest.sed 6061 6062test -z "$SED" && SED=sed 6063Xsed="$SED -e 1s/^X//" 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6076$as_echo_n "checking for fgrep... " >&6; } 6077if ${ac_cv_path_FGREP+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6081 then ac_cv_path_FGREP="$GREP -F" 6082 else 6083 if test -z "$FGREP"; then 6084 ac_path_FGREP_found=false 6085 # Loop through the user's path and test for each of PROGNAME-LIST 6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6088do 6089 IFS=$as_save_IFS 6090 test -z "$as_dir" && as_dir=. 6091 for ac_prog in fgrep; do 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6094 as_fn_executable_p "$ac_path_FGREP" || continue 6095# Check for GNU ac_path_FGREP and select it if it is found. 6096 # Check for GNU $ac_path_FGREP 6097case `"$ac_path_FGREP" --version 2>&1` in 6098*GNU*) 6099 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6100*) 6101 ac_count=0 6102 $as_echo_n 0123456789 >"conftest.in" 6103 while : 6104 do 6105 cat "conftest.in" "conftest.in" >"conftest.tmp" 6106 mv "conftest.tmp" "conftest.in" 6107 cp "conftest.in" "conftest.nl" 6108 $as_echo 'FGREP' >> "conftest.nl" 6109 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6111 as_fn_arith $ac_count + 1 && ac_count=$as_val 6112 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6113 # Best one so far, save it but keep looking for a better one 6114 ac_cv_path_FGREP="$ac_path_FGREP" 6115 ac_path_FGREP_max=$ac_count 6116 fi 6117 # 10*(2^10) chars as input seems more than enough 6118 test $ac_count -gt 10 && break 6119 done 6120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6121esac 6122 6123 $ac_path_FGREP_found && break 3 6124 done 6125 done 6126 done 6127IFS=$as_save_IFS 6128 if test -z "$ac_cv_path_FGREP"; then 6129 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6130 fi 6131else 6132 ac_cv_path_FGREP=$FGREP 6133fi 6134 6135 fi 6136fi 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6138$as_echo "$ac_cv_path_FGREP" >&6; } 6139 FGREP="$ac_cv_path_FGREP" 6140 6141 6142test -z "$GREP" && GREP=grep 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162# Check whether --with-gnu-ld was given. 6163if test "${with_gnu_ld+set}" = set; then : 6164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6165else 6166 with_gnu_ld=no 6167fi 6168 6169ac_prog=ld 6170if test "$GCC" = yes; then 6171 # Check if gcc -print-prog-name=ld gives a path. 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6173$as_echo_n "checking for ld used by $CC... " >&6; } 6174 case $host in 6175 *-*-mingw*) 6176 # gcc leaves a trailing carriage return which upsets mingw 6177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6178 *) 6179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6180 esac 6181 case $ac_prog in 6182 # Accept absolute paths. 6183 [\\/]* | ?:[\\/]*) 6184 re_direlt='/[^/][^/]*/\.\./' 6185 # Canonicalize the pathname of ld 6186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6189 done 6190 test -z "$LD" && LD="$ac_prog" 6191 ;; 6192 "") 6193 # If it fails, then pretend we aren't using GCC. 6194 ac_prog=ld 6195 ;; 6196 *) 6197 # If it is relative, then search for the first ld in PATH. 6198 with_gnu_ld=unknown 6199 ;; 6200 esac 6201elif test "$with_gnu_ld" = yes; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6203$as_echo_n "checking for GNU ld... " >&6; } 6204else 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6206$as_echo_n "checking for non-GNU ld... " >&6; } 6207fi 6208if ${lt_cv_path_LD+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 if test -z "$LD"; then 6212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6213 for ac_dir in $PATH; do 6214 IFS="$lt_save_ifs" 6215 test -z "$ac_dir" && ac_dir=. 6216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6217 lt_cv_path_LD="$ac_dir/$ac_prog" 6218 # Check to see if the program is GNU ld. I'd rather use --version, 6219 # but apparently some variants of GNU ld only accept -v. 6220 # Break only if it was the GNU/non-GNU ld that we prefer. 6221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6222 *GNU* | *'with BFD'*) 6223 test "$with_gnu_ld" != no && break 6224 ;; 6225 *) 6226 test "$with_gnu_ld" != yes && break 6227 ;; 6228 esac 6229 fi 6230 done 6231 IFS="$lt_save_ifs" 6232else 6233 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6234fi 6235fi 6236 6237LD="$lt_cv_path_LD" 6238if test -n "$LD"; then 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6240$as_echo "$LD" >&6; } 6241else 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6243$as_echo "no" >&6; } 6244fi 6245test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6247$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6248if ${lt_cv_prog_gnu_ld+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6252case `$LD -v 2>&1 </dev/null` in 6253*GNU* | *'with BFD'*) 6254 lt_cv_prog_gnu_ld=yes 6255 ;; 6256*) 6257 lt_cv_prog_gnu_ld=no 6258 ;; 6259esac 6260fi 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6262$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6263with_gnu_ld=$lt_cv_prog_gnu_ld 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6274$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6275if ${lt_cv_path_NM+:} false; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 if test -n "$NM"; then 6279 # Let the user override the test. 6280 lt_cv_path_NM="$NM" 6281else 6282 lt_nm_to_check="${ac_tool_prefix}nm" 6283 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6284 lt_nm_to_check="$lt_nm_to_check nm" 6285 fi 6286 for lt_tmp_nm in $lt_nm_to_check; do 6287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6288 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6289 IFS="$lt_save_ifs" 6290 test -z "$ac_dir" && ac_dir=. 6291 tmp_nm="$ac_dir/$lt_tmp_nm" 6292 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6293 # Check to see if the nm accepts a BSD-compat flag. 6294 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6295 # nm: unknown option "B" ignored 6296 # Tru64's nm complains that /dev/null is an invalid object file 6297 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6298 */dev/null* | *'Invalid file or object type'*) 6299 lt_cv_path_NM="$tmp_nm -B" 6300 break 6301 ;; 6302 *) 6303 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6304 */dev/null*) 6305 lt_cv_path_NM="$tmp_nm -p" 6306 break 6307 ;; 6308 *) 6309 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6310 continue # so that we can try to find one that supports BSD flags 6311 ;; 6312 esac 6313 ;; 6314 esac 6315 fi 6316 done 6317 IFS="$lt_save_ifs" 6318 done 6319 : ${lt_cv_path_NM=no} 6320fi 6321fi 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6323$as_echo "$lt_cv_path_NM" >&6; } 6324if test "$lt_cv_path_NM" != "no"; then 6325 NM="$lt_cv_path_NM" 6326else 6327 # Didn't find any BSD compatible name lister, look for dumpbin. 6328 if test -n "$DUMPBIN"; then : 6329 # Let the user override the test. 6330 else 6331 if test -n "$ac_tool_prefix"; then 6332 for ac_prog in dumpbin "link -dump" 6333 do 6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337$as_echo_n "checking for $ac_word... " >&6; } 6338if ${ac_cv_prog_DUMPBIN+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test -n "$DUMPBIN"; then 6342 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6343else 6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345for as_dir in $PATH 6346do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361DUMPBIN=$ac_cv_prog_DUMPBIN 6362if test -n "$DUMPBIN"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6364$as_echo "$DUMPBIN" >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367$as_echo "no" >&6; } 6368fi 6369 6370 6371 test -n "$DUMPBIN" && break 6372 done 6373fi 6374if test -z "$DUMPBIN"; then 6375 ac_ct_DUMPBIN=$DUMPBIN 6376 for ac_prog in dumpbin "link -dump" 6377do 6378 # Extract the first word of "$ac_prog", so it can be a program name with args. 6379set dummy $ac_prog; ac_word=$2 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6381$as_echo_n "checking for $ac_word... " >&6; } 6382if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 if test -n "$ac_ct_DUMPBIN"; then 6386 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6387else 6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6389for as_dir in $PATH 6390do 6391 IFS=$as_save_IFS 6392 test -z "$as_dir" && as_dir=. 6393 for ac_exec_ext in '' $ac_executable_extensions; do 6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6395 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6397 break 2 6398 fi 6399done 6400 done 6401IFS=$as_save_IFS 6402 6403fi 6404fi 6405ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6406if test -n "$ac_ct_DUMPBIN"; then 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6408$as_echo "$ac_ct_DUMPBIN" >&6; } 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6411$as_echo "no" >&6; } 6412fi 6413 6414 6415 test -n "$ac_ct_DUMPBIN" && break 6416done 6417 6418 if test "x$ac_ct_DUMPBIN" = x; then 6419 DUMPBIN=":" 6420 else 6421 case $cross_compiling:$ac_tool_warned in 6422yes:) 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6425ac_tool_warned=yes ;; 6426esac 6427 DUMPBIN=$ac_ct_DUMPBIN 6428 fi 6429fi 6430 6431 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6432 *COFF*) 6433 DUMPBIN="$DUMPBIN -symbols" 6434 ;; 6435 *) 6436 DUMPBIN=: 6437 ;; 6438 esac 6439 fi 6440 6441 if test "$DUMPBIN" != ":"; then 6442 NM="$DUMPBIN" 6443 fi 6444fi 6445test -z "$NM" && NM=nm 6446 6447 6448 6449 6450 6451 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6453$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6454if ${lt_cv_nm_interface+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 lt_cv_nm_interface="BSD nm" 6458 echo "int some_variable = 0;" > conftest.$ac_ext 6459 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6460 (eval "$ac_compile" 2>conftest.err) 6461 cat conftest.err >&5 6462 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6463 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6464 cat conftest.err >&5 6465 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6466 cat conftest.out >&5 6467 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6468 lt_cv_nm_interface="MS dumpbin" 6469 fi 6470 rm -f conftest* 6471fi 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6473$as_echo "$lt_cv_nm_interface" >&6; } 6474 6475# find the maximum length of command line arguments 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6477$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6478if ${lt_cv_sys_max_cmd_len+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 i=0 6482 teststring="ABCD" 6483 6484 case $build_os in 6485 msdosdjgpp*) 6486 # On DJGPP, this test can blow up pretty badly due to problems in libc 6487 # (any single argument exceeding 2000 bytes causes a buffer overrun 6488 # during glob expansion). Even if it were fixed, the result of this 6489 # check would be larger than it should be. 6490 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6491 ;; 6492 6493 gnu*) 6494 # Under GNU Hurd, this test is not required because there is 6495 # no limit to the length of command line arguments. 6496 # Libtool will interpret -1 as no limit whatsoever 6497 lt_cv_sys_max_cmd_len=-1; 6498 ;; 6499 6500 cygwin* | mingw* | cegcc*) 6501 # On Win9x/ME, this test blows up -- it succeeds, but takes 6502 # about 5 minutes as the teststring grows exponentially. 6503 # Worse, since 9x/ME are not pre-emptively multitasking, 6504 # you end up with a "frozen" computer, even though with patience 6505 # the test eventually succeeds (with a max line length of 256k). 6506 # Instead, let's just punt: use the minimum linelength reported by 6507 # all of the supported platforms: 8192 (on NT/2K/XP). 6508 lt_cv_sys_max_cmd_len=8192; 6509 ;; 6510 6511 mint*) 6512 # On MiNT this can take a long time and run out of memory. 6513 lt_cv_sys_max_cmd_len=8192; 6514 ;; 6515 6516 amigaos*) 6517 # On AmigaOS with pdksh, this test takes hours, literally. 6518 # So we just punt and use a minimum line length of 8192. 6519 lt_cv_sys_max_cmd_len=8192; 6520 ;; 6521 6522 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6523 # This has been around since 386BSD, at least. Likely further. 6524 if test -x /sbin/sysctl; then 6525 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6526 elif test -x /usr/sbin/sysctl; then 6527 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6528 else 6529 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6530 fi 6531 # And add a safety zone 6532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6534 ;; 6535 6536 interix*) 6537 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6538 lt_cv_sys_max_cmd_len=196608 6539 ;; 6540 6541 os2*) 6542 # The test takes a long time on OS/2. 6543 lt_cv_sys_max_cmd_len=8192 6544 ;; 6545 6546 osf*) 6547 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6548 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6549 # nice to cause kernel panics so lets avoid the loop below. 6550 # First set a reasonable default. 6551 lt_cv_sys_max_cmd_len=16384 6552 # 6553 if test -x /sbin/sysconfig; then 6554 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6555 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6556 esac 6557 fi 6558 ;; 6559 sco3.2v5*) 6560 lt_cv_sys_max_cmd_len=102400 6561 ;; 6562 sysv5* | sco5v6* | sysv4.2uw2*) 6563 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6564 if test -n "$kargmax"; then 6565 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6566 else 6567 lt_cv_sys_max_cmd_len=32768 6568 fi 6569 ;; 6570 *) 6571 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6572 if test -n "$lt_cv_sys_max_cmd_len"; then 6573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6575 else 6576 # Make teststring a little bigger before we do anything with it. 6577 # a 1K string should be a reasonable start. 6578 for i in 1 2 3 4 5 6 7 8 ; do 6579 teststring=$teststring$teststring 6580 done 6581 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6582 # If test is not a shell built-in, we'll probably end up computing a 6583 # maximum length that is only half of the actual maximum length, but 6584 # we can't tell. 6585 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6586 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6587 test $i != 17 # 1/2 MB should be enough 6588 do 6589 i=`expr $i + 1` 6590 teststring=$teststring$teststring 6591 done 6592 # Only check the string length outside the loop. 6593 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6594 teststring= 6595 # Add a significant safety factor because C++ compilers can tack on 6596 # massive amounts of additional arguments before passing them to the 6597 # linker. It appears as though 1/2 is a usable value. 6598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6599 fi 6600 ;; 6601 esac 6602 6603fi 6604 6605if test -n $lt_cv_sys_max_cmd_len ; then 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6607$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6608else 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6610$as_echo "none" >&6; } 6611fi 6612max_cmd_len=$lt_cv_sys_max_cmd_len 6613 6614 6615 6616 6617 6618 6619: ${CP="cp -f"} 6620: ${MV="mv -f"} 6621: ${RM="rm -f"} 6622 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6624$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6625# Try some XSI features 6626xsi_shell=no 6627( _lt_dummy="a/b/c" 6628 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6629 = c,a/b,b/c, \ 6630 && eval 'test $(( 1 + 1 )) -eq 2 \ 6631 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6632 && xsi_shell=yes 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6634$as_echo "$xsi_shell" >&6; } 6635 6636 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6638$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6639lt_shell_append=no 6640( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6641 >/dev/null 2>&1 \ 6642 && lt_shell_append=yes 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6644$as_echo "$lt_shell_append" >&6; } 6645 6646 6647if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6648 lt_unset=unset 6649else 6650 lt_unset=false 6651fi 6652 6653 6654 6655 6656 6657# test EBCDIC or ASCII 6658case `echo X|tr X '\101'` in 6659 A) # ASCII based system 6660 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6661 lt_SP2NL='tr \040 \012' 6662 lt_NL2SP='tr \015\012 \040\040' 6663 ;; 6664 *) # EBCDIC based system 6665 lt_SP2NL='tr \100 \n' 6666 lt_NL2SP='tr \r\n \100\100' 6667 ;; 6668esac 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6679$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6680if ${lt_cv_to_host_file_cmd+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 case $host in 6684 *-*-mingw* ) 6685 case $build in 6686 *-*-mingw* ) # actually msys 6687 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6688 ;; 6689 *-*-cygwin* ) 6690 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6691 ;; 6692 * ) # otherwise, assume *nix 6693 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6694 ;; 6695 esac 6696 ;; 6697 *-*-cygwin* ) 6698 case $build in 6699 *-*-mingw* ) # actually msys 6700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6701 ;; 6702 *-*-cygwin* ) 6703 lt_cv_to_host_file_cmd=func_convert_file_noop 6704 ;; 6705 * ) # otherwise, assume *nix 6706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6707 ;; 6708 esac 6709 ;; 6710 * ) # unhandled hosts (and "normal" native builds) 6711 lt_cv_to_host_file_cmd=func_convert_file_noop 6712 ;; 6713esac 6714 6715fi 6716 6717to_host_file_cmd=$lt_cv_to_host_file_cmd 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6719$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6720 6721 6722 6723 6724 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6726$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6727if ${lt_cv_to_tool_file_cmd+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 #assume ordinary cross tools, or native build. 6731lt_cv_to_tool_file_cmd=func_convert_file_noop 6732case $host in 6733 *-*-mingw* ) 6734 case $build in 6735 *-*-mingw* ) # actually msys 6736 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6737 ;; 6738 esac 6739 ;; 6740esac 6741 6742fi 6743 6744to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6746$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6747 6748 6749 6750 6751 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6753$as_echo_n "checking for $LD option to reload object files... " >&6; } 6754if ${lt_cv_ld_reload_flag+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 lt_cv_ld_reload_flag='-r' 6758fi 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6760$as_echo "$lt_cv_ld_reload_flag" >&6; } 6761reload_flag=$lt_cv_ld_reload_flag 6762case $reload_flag in 6763"" | " "*) ;; 6764*) reload_flag=" $reload_flag" ;; 6765esac 6766reload_cmds='$LD$reload_flag -o $output$reload_objs' 6767case $host_os in 6768 cygwin* | mingw* | pw32* | cegcc*) 6769 if test "$GCC" != yes; then 6770 reload_cmds=false 6771 fi 6772 ;; 6773 darwin*) 6774 if test "$GCC" = yes; then 6775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6776 else 6777 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6778 fi 6779 ;; 6780esac 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790if test -n "$ac_tool_prefix"; then 6791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6792set dummy ${ac_tool_prefix}objdump; ac_word=$2 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6794$as_echo_n "checking for $ac_word... " >&6; } 6795if ${ac_cv_prog_OBJDUMP+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 if test -n "$OBJDUMP"; then 6799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6800else 6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6802for as_dir in $PATH 6803do 6804 IFS=$as_save_IFS 6805 test -z "$as_dir" && as_dir=. 6806 for ac_exec_ext in '' $ac_executable_extensions; do 6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6810 break 2 6811 fi 6812done 6813 done 6814IFS=$as_save_IFS 6815 6816fi 6817fi 6818OBJDUMP=$ac_cv_prog_OBJDUMP 6819if test -n "$OBJDUMP"; then 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6821$as_echo "$OBJDUMP" >&6; } 6822else 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6824$as_echo "no" >&6; } 6825fi 6826 6827 6828fi 6829if test -z "$ac_cv_prog_OBJDUMP"; then 6830 ac_ct_OBJDUMP=$OBJDUMP 6831 # Extract the first word of "objdump", so it can be a program name with args. 6832set dummy objdump; ac_word=$2 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6834$as_echo_n "checking for $ac_word... " >&6; } 6835if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 if test -n "$ac_ct_OBJDUMP"; then 6839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6840else 6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6842for as_dir in $PATH 6843do 6844 IFS=$as_save_IFS 6845 test -z "$as_dir" && as_dir=. 6846 for ac_exec_ext in '' $ac_executable_extensions; do 6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6848 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6850 break 2 6851 fi 6852done 6853 done 6854IFS=$as_save_IFS 6855 6856fi 6857fi 6858ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6859if test -n "$ac_ct_OBJDUMP"; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6861$as_echo "$ac_ct_OBJDUMP" >&6; } 6862else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864$as_echo "no" >&6; } 6865fi 6866 6867 if test "x$ac_ct_OBJDUMP" = x; then 6868 OBJDUMP="false" 6869 else 6870 case $cross_compiling:$ac_tool_warned in 6871yes:) 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6874ac_tool_warned=yes ;; 6875esac 6876 OBJDUMP=$ac_ct_OBJDUMP 6877 fi 6878else 6879 OBJDUMP="$ac_cv_prog_OBJDUMP" 6880fi 6881 6882test -z "$OBJDUMP" && OBJDUMP=objdump 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6893$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6894if ${lt_cv_deplibs_check_method+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 lt_cv_file_magic_cmd='$MAGIC_CMD' 6898lt_cv_file_magic_test_file= 6899lt_cv_deplibs_check_method='unknown' 6900# Need to set the preceding variable on all platforms that support 6901# interlibrary dependencies. 6902# 'none' -- dependencies not supported. 6903# `unknown' -- same as none, but documents that we really don't know. 6904# 'pass_all' -- all dependencies passed with no checks. 6905# 'test_compile' -- check by making test program. 6906# 'file_magic [[regex]]' -- check by looking for files in library path 6907# which responds to the $file_magic_cmd with a given extended regex. 6908# If you have `file' or equivalent on your system and you're not sure 6909# whether `pass_all' will *always* work, you probably want this one. 6910 6911case $host_os in 6912aix[4-9]*) 6913 lt_cv_deplibs_check_method=pass_all 6914 ;; 6915 6916beos*) 6917 lt_cv_deplibs_check_method=pass_all 6918 ;; 6919 6920bsdi[45]*) 6921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6922 lt_cv_file_magic_cmd='/usr/bin/file -L' 6923 lt_cv_file_magic_test_file=/shlib/libc.so 6924 ;; 6925 6926cygwin*) 6927 # func_win32_libid is a shell function defined in ltmain.sh 6928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6929 lt_cv_file_magic_cmd='func_win32_libid' 6930 ;; 6931 6932mingw* | pw32*) 6933 # Base MSYS/MinGW do not provide the 'file' command needed by 6934 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6935 # unless we find 'file', for example because we are cross-compiling. 6936 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6937 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6939 lt_cv_file_magic_cmd='func_win32_libid' 6940 else 6941 # Keep this pattern in sync with the one in func_win32_libid. 6942 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6943 lt_cv_file_magic_cmd='$OBJDUMP -f' 6944 fi 6945 ;; 6946 6947cegcc*) 6948 # use the weaker test based on 'objdump'. See mingw*. 6949 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6950 lt_cv_file_magic_cmd='$OBJDUMP -f' 6951 ;; 6952 6953darwin* | rhapsody*) 6954 lt_cv_deplibs_check_method=pass_all 6955 ;; 6956 6957freebsd* | dragonfly*) 6958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6959 case $host_cpu in 6960 i*86 ) 6961 # Not sure whether the presence of OpenBSD here was a mistake. 6962 # Let's accept both of them until this is cleared up. 6963 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6964 lt_cv_file_magic_cmd=/usr/bin/file 6965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6966 ;; 6967 esac 6968 else 6969 lt_cv_deplibs_check_method=pass_all 6970 fi 6971 ;; 6972 6973gnu*) 6974 lt_cv_deplibs_check_method=pass_all 6975 ;; 6976 6977haiku*) 6978 lt_cv_deplibs_check_method=pass_all 6979 ;; 6980 6981hpux10.20* | hpux11*) 6982 lt_cv_file_magic_cmd=/usr/bin/file 6983 case $host_cpu in 6984 ia64*) 6985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6986 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6987 ;; 6988 hppa*64*) 6989 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]' 6990 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6991 ;; 6992 *) 6993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6994 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6995 ;; 6996 esac 6997 ;; 6998 6999interix[3-9]*) 7000 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7002 ;; 7003 7004irix5* | irix6* | nonstopux*) 7005 case $LD in 7006 *-32|*"-32 ") libmagic=32-bit;; 7007 *-n32|*"-n32 ") libmagic=N32;; 7008 *-64|*"-64 ") libmagic=64-bit;; 7009 *) libmagic=never-match;; 7010 esac 7011 lt_cv_deplibs_check_method=pass_all 7012 ;; 7013 7014# This must be glibc/ELF. 7015linux* | k*bsd*-gnu | kopensolaris*-gnu) 7016 lt_cv_deplibs_check_method=pass_all 7017 ;; 7018 7019netbsd*) 7020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7022 else 7023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7024 fi 7025 ;; 7026 7027newos6*) 7028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7029 lt_cv_file_magic_cmd=/usr/bin/file 7030 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7031 ;; 7032 7033*nto* | *qnx*) 7034 lt_cv_deplibs_check_method=pass_all 7035 ;; 7036 7037openbsd*) 7038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7040 else 7041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7042 fi 7043 ;; 7044 7045osf3* | osf4* | osf5*) 7046 lt_cv_deplibs_check_method=pass_all 7047 ;; 7048 7049rdos*) 7050 lt_cv_deplibs_check_method=pass_all 7051 ;; 7052 7053solaris*) 7054 lt_cv_deplibs_check_method=pass_all 7055 ;; 7056 7057sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7058 lt_cv_deplibs_check_method=pass_all 7059 ;; 7060 7061sysv4 | sysv4.3*) 7062 case $host_vendor in 7063 motorola) 7064 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]' 7065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7066 ;; 7067 ncr) 7068 lt_cv_deplibs_check_method=pass_all 7069 ;; 7070 sequent) 7071 lt_cv_file_magic_cmd='/bin/file' 7072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7073 ;; 7074 sni) 7075 lt_cv_file_magic_cmd='/bin/file' 7076 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7077 lt_cv_file_magic_test_file=/lib/libc.so 7078 ;; 7079 siemens) 7080 lt_cv_deplibs_check_method=pass_all 7081 ;; 7082 pc) 7083 lt_cv_deplibs_check_method=pass_all 7084 ;; 7085 esac 7086 ;; 7087 7088tpf*) 7089 lt_cv_deplibs_check_method=pass_all 7090 ;; 7091esac 7092 7093fi 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7095$as_echo "$lt_cv_deplibs_check_method" >&6; } 7096 7097file_magic_glob= 7098want_nocaseglob=no 7099if test "$build" = "$host"; then 7100 case $host_os in 7101 mingw* | pw32*) 7102 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7103 want_nocaseglob=yes 7104 else 7105 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7106 fi 7107 ;; 7108 esac 7109fi 7110 7111file_magic_cmd=$lt_cv_file_magic_cmd 7112deplibs_check_method=$lt_cv_deplibs_check_method 7113test -z "$deplibs_check_method" && deplibs_check_method=unknown 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136if test -n "$ac_tool_prefix"; then 7137 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7138set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7140$as_echo_n "checking for $ac_word... " >&6; } 7141if ${ac_cv_prog_DLLTOOL+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 if test -n "$DLLTOOL"; then 7145 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7146else 7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7148for as_dir in $PATH 7149do 7150 IFS=$as_save_IFS 7151 test -z "$as_dir" && as_dir=. 7152 for ac_exec_ext in '' $ac_executable_extensions; do 7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7154 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7156 break 2 7157 fi 7158done 7159 done 7160IFS=$as_save_IFS 7161 7162fi 7163fi 7164DLLTOOL=$ac_cv_prog_DLLTOOL 7165if test -n "$DLLTOOL"; then 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7167$as_echo "$DLLTOOL" >&6; } 7168else 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7170$as_echo "no" >&6; } 7171fi 7172 7173 7174fi 7175if test -z "$ac_cv_prog_DLLTOOL"; then 7176 ac_ct_DLLTOOL=$DLLTOOL 7177 # Extract the first word of "dlltool", so it can be a program name with args. 7178set dummy dlltool; ac_word=$2 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7180$as_echo_n "checking for $ac_word... " >&6; } 7181if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 if test -n "$ac_ct_DLLTOOL"; then 7185 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7186else 7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7188for as_dir in $PATH 7189do 7190 IFS=$as_save_IFS 7191 test -z "$as_dir" && as_dir=. 7192 for ac_exec_ext in '' $ac_executable_extensions; do 7193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7194 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7196 break 2 7197 fi 7198done 7199 done 7200IFS=$as_save_IFS 7201 7202fi 7203fi 7204ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7205if test -n "$ac_ct_DLLTOOL"; then 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7207$as_echo "$ac_ct_DLLTOOL" >&6; } 7208else 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7210$as_echo "no" >&6; } 7211fi 7212 7213 if test "x$ac_ct_DLLTOOL" = x; then 7214 DLLTOOL="false" 7215 else 7216 case $cross_compiling:$ac_tool_warned in 7217yes:) 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7220ac_tool_warned=yes ;; 7221esac 7222 DLLTOOL=$ac_ct_DLLTOOL 7223 fi 7224else 7225 DLLTOOL="$ac_cv_prog_DLLTOOL" 7226fi 7227 7228test -z "$DLLTOOL" && DLLTOOL=dlltool 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7240$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7241if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 lt_cv_sharedlib_from_linklib_cmd='unknown' 7245 7246case $host_os in 7247cygwin* | mingw* | pw32* | cegcc*) 7248 # two different shell functions defined in ltmain.sh 7249 # decide which to use based on capabilities of $DLLTOOL 7250 case `$DLLTOOL --help 2>&1` in 7251 *--identify-strict*) 7252 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7253 ;; 7254 *) 7255 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7256 ;; 7257 esac 7258 ;; 7259*) 7260 # fallback: assume linklib IS sharedlib 7261 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7262 ;; 7263esac 7264 7265fi 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7267$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7268sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7269test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7270 7271 7272 7273 7274 7275 7276 7277if test -n "$ac_tool_prefix"; then 7278 for ac_prog in ar 7279 do 7280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7281set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7283$as_echo_n "checking for $ac_word... " >&6; } 7284if ${ac_cv_prog_AR+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 if test -n "$AR"; then 7288 ac_cv_prog_AR="$AR" # Let the user override the test. 7289else 7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305fi 7306fi 7307AR=$ac_cv_prog_AR 7308if test -n "$AR"; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7310$as_echo "$AR" >&6; } 7311else 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313$as_echo "no" >&6; } 7314fi 7315 7316 7317 test -n "$AR" && break 7318 done 7319fi 7320if test -z "$AR"; then 7321 ac_ct_AR=$AR 7322 for ac_prog in ar 7323do 7324 # Extract the first word of "$ac_prog", so it can be a program name with args. 7325set dummy $ac_prog; ac_word=$2 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327$as_echo_n "checking for $ac_word... " >&6; } 7328if ${ac_cv_prog_ac_ct_AR+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 if test -n "$ac_ct_AR"; then 7332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7333else 7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335for as_dir in $PATH 7336do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7341 ac_cv_prog_ac_ct_AR="$ac_prog" 7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345done 7346 done 7347IFS=$as_save_IFS 7348 7349fi 7350fi 7351ac_ct_AR=$ac_cv_prog_ac_ct_AR 7352if test -n "$ac_ct_AR"; then 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7354$as_echo "$ac_ct_AR" >&6; } 7355else 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7357$as_echo "no" >&6; } 7358fi 7359 7360 7361 test -n "$ac_ct_AR" && break 7362done 7363 7364 if test "x$ac_ct_AR" = x; then 7365 AR="false" 7366 else 7367 case $cross_compiling:$ac_tool_warned in 7368yes:) 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7371ac_tool_warned=yes ;; 7372esac 7373 AR=$ac_ct_AR 7374 fi 7375fi 7376 7377: ${AR=ar} 7378: ${AR_FLAGS=cru} 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7391$as_echo_n "checking for archiver @FILE support... " >&6; } 7392if ${lt_cv_ar_at_file+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 lt_cv_ar_at_file=no 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398 7399int 7400main () 7401{ 7402 7403 ; 7404 return 0; 7405} 7406_ACEOF 7407if ac_fn_c_try_compile "$LINENO"; then : 7408 echo conftest.$ac_objext > conftest.lst 7409 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7411 (eval $lt_ar_try) 2>&5 7412 ac_status=$? 7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7414 test $ac_status = 0; } 7415 if test "$ac_status" -eq 0; then 7416 # Ensure the archiver fails upon bogus file names. 7417 rm -f conftest.$ac_objext libconftest.a 7418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7419 (eval $lt_ar_try) 2>&5 7420 ac_status=$? 7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7422 test $ac_status = 0; } 7423 if test "$ac_status" -ne 0; then 7424 lt_cv_ar_at_file=@ 7425 fi 7426 fi 7427 rm -f conftest.* libconftest.a 7428 7429fi 7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7431 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7434$as_echo "$lt_cv_ar_at_file" >&6; } 7435 7436if test "x$lt_cv_ar_at_file" = xno; then 7437 archiver_list_spec= 7438else 7439 archiver_list_spec=$lt_cv_ar_at_file 7440fi 7441 7442 7443 7444 7445 7446 7447 7448if test -n "$ac_tool_prefix"; then 7449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7450set dummy ${ac_tool_prefix}strip; ac_word=$2 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452$as_echo_n "checking for $ac_word... " >&6; } 7453if ${ac_cv_prog_STRIP+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 if test -n "$STRIP"; then 7457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7458else 7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7460for as_dir in $PATH 7461do 7462 IFS=$as_save_IFS 7463 test -z "$as_dir" && as_dir=. 7464 for ac_exec_ext in '' $ac_executable_extensions; do 7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7466 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7468 break 2 7469 fi 7470done 7471 done 7472IFS=$as_save_IFS 7473 7474fi 7475fi 7476STRIP=$ac_cv_prog_STRIP 7477if test -n "$STRIP"; then 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7479$as_echo "$STRIP" >&6; } 7480else 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7482$as_echo "no" >&6; } 7483fi 7484 7485 7486fi 7487if test -z "$ac_cv_prog_STRIP"; then 7488 ac_ct_STRIP=$STRIP 7489 # Extract the first word of "strip", so it can be a program name with args. 7490set dummy strip; ac_word=$2 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492$as_echo_n "checking for $ac_word... " >&6; } 7493if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 if test -n "$ac_ct_STRIP"; then 7497 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7498else 7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7500for as_dir in $PATH 7501do 7502 IFS=$as_save_IFS 7503 test -z "$as_dir" && as_dir=. 7504 for ac_exec_ext in '' $ac_executable_extensions; do 7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7506 ac_cv_prog_ac_ct_STRIP="strip" 7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7508 break 2 7509 fi 7510done 7511 done 7512IFS=$as_save_IFS 7513 7514fi 7515fi 7516ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7517if test -n "$ac_ct_STRIP"; then 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7519$as_echo "$ac_ct_STRIP" >&6; } 7520else 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7522$as_echo "no" >&6; } 7523fi 7524 7525 if test "x$ac_ct_STRIP" = x; then 7526 STRIP=":" 7527 else 7528 case $cross_compiling:$ac_tool_warned in 7529yes:) 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7532ac_tool_warned=yes ;; 7533esac 7534 STRIP=$ac_ct_STRIP 7535 fi 7536else 7537 STRIP="$ac_cv_prog_STRIP" 7538fi 7539 7540test -z "$STRIP" && STRIP=: 7541 7542 7543 7544 7545 7546 7547if test -n "$ac_tool_prefix"; then 7548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7549set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551$as_echo_n "checking for $ac_word... " >&6; } 7552if ${ac_cv_prog_RANLIB+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 if test -n "$RANLIB"; then 7556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7557else 7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570 done 7571IFS=$as_save_IFS 7572 7573fi 7574fi 7575RANLIB=$ac_cv_prog_RANLIB 7576if test -n "$RANLIB"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7578$as_echo "$RANLIB" >&6; } 7579else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581$as_echo "no" >&6; } 7582fi 7583 7584 7585fi 7586if test -z "$ac_cv_prog_RANLIB"; then 7587 ac_ct_RANLIB=$RANLIB 7588 # Extract the first word of "ranlib", so it can be a program name with args. 7589set dummy ranlib; ac_word=$2 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7591$as_echo_n "checking for $ac_word... " >&6; } 7592if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 if test -n "$ac_ct_RANLIB"; then 7596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7597else 7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7599for as_dir in $PATH 7600do 7601 IFS=$as_save_IFS 7602 test -z "$as_dir" && as_dir=. 7603 for ac_exec_ext in '' $ac_executable_extensions; do 7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7605 ac_cv_prog_ac_ct_RANLIB="ranlib" 7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7607 break 2 7608 fi 7609done 7610 done 7611IFS=$as_save_IFS 7612 7613fi 7614fi 7615ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7616if test -n "$ac_ct_RANLIB"; then 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7618$as_echo "$ac_ct_RANLIB" >&6; } 7619else 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7621$as_echo "no" >&6; } 7622fi 7623 7624 if test "x$ac_ct_RANLIB" = x; then 7625 RANLIB=":" 7626 else 7627 case $cross_compiling:$ac_tool_warned in 7628yes:) 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7631ac_tool_warned=yes ;; 7632esac 7633 RANLIB=$ac_ct_RANLIB 7634 fi 7635else 7636 RANLIB="$ac_cv_prog_RANLIB" 7637fi 7638 7639test -z "$RANLIB" && RANLIB=: 7640 7641 7642 7643 7644 7645 7646# Determine commands to create old-style static archives. 7647old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7648old_postinstall_cmds='chmod 644 $oldlib' 7649old_postuninstall_cmds= 7650 7651if test -n "$RANLIB"; then 7652 case $host_os in 7653 openbsd*) 7654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7655 ;; 7656 *) 7657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7658 ;; 7659 esac 7660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7661fi 7662 7663case $host_os in 7664 darwin*) 7665 lock_old_archive_extraction=yes ;; 7666 *) 7667 lock_old_archive_extraction=no ;; 7668esac 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708# If no C compiler was specified, use CC. 7709LTCC=${LTCC-"$CC"} 7710 7711# If no C compiler flags were specified, use CFLAGS. 7712LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7713 7714# Allow CC to be a program name with arguments. 7715compiler=$CC 7716 7717 7718# Check for command to grab the raw symbol name followed by C symbol from nm. 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7720$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7721if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 7725# These are sane defaults that work on at least a few old systems. 7726# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7727 7728# Character class describing NM global symbol codes. 7729symcode='[BCDEGRST]' 7730 7731# Regexp to match symbols that can be accessed directly from C. 7732sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7733 7734# Define system-specific variables. 7735case $host_os in 7736aix*) 7737 symcode='[BCDT]' 7738 ;; 7739cygwin* | mingw* | pw32* | cegcc*) 7740 symcode='[ABCDGISTW]' 7741 ;; 7742hpux*) 7743 if test "$host_cpu" = ia64; then 7744 symcode='[ABCDEGRST]' 7745 fi 7746 ;; 7747irix* | nonstopux*) 7748 symcode='[BCDEGRST]' 7749 ;; 7750osf*) 7751 symcode='[BCDEGQRST]' 7752 ;; 7753solaris*) 7754 symcode='[BDRT]' 7755 ;; 7756sco3.2v5*) 7757 symcode='[DT]' 7758 ;; 7759sysv4.2uw2*) 7760 symcode='[DT]' 7761 ;; 7762sysv5* | sco5v6* | unixware* | OpenUNIX*) 7763 symcode='[ABDT]' 7764 ;; 7765sysv4) 7766 symcode='[DFNSTU]' 7767 ;; 7768esac 7769 7770# If we're using GNU nm, then use its standard symbol codes. 7771case `$NM -V 2>&1` in 7772*GNU* | *'with BFD'*) 7773 symcode='[ABCDGIRSTW]' ;; 7774esac 7775 7776# Transform an extracted symbol line into a proper C declaration. 7777# Some systems (esp. on ia64) link data and code symbols differently, 7778# so use this general approach. 7779lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7780 7781# Transform an extracted symbol line into symbol name and symbol address 7782lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7783lt_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'" 7784 7785# Handle CRLF in mingw tool chain 7786opt_cr= 7787case $build_os in 7788mingw*) 7789 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7790 ;; 7791esac 7792 7793# Try without a prefix underscore, then with it. 7794for ac_symprfx in "" "_"; do 7795 7796 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7797 symxfrm="\\1 $ac_symprfx\\2 \\2" 7798 7799 # Write the raw and C identifiers. 7800 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7801 # Fake it for dumpbin and say T for any non-static function 7802 # and D for any global variable. 7803 # Also find C++ and __fastcall symbols from MSVC++, 7804 # which start with @ or ?. 7805 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7806" {last_section=section; section=\$ 3};"\ 7807" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7808" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7809" \$ 0!~/External *\|/{next};"\ 7810" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7811" {if(hide[section]) next};"\ 7812" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7813" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7814" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7815" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7816" ' prfx=^$ac_symprfx" 7817 else 7818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7819 fi 7820 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7821 7822 # Check to see that the pipe works correctly. 7823 pipe_works=no 7824 7825 rm -f conftest* 7826 cat > conftest.$ac_ext <<_LT_EOF 7827#ifdef __cplusplus 7828extern "C" { 7829#endif 7830char nm_test_var; 7831void nm_test_func(void); 7832void nm_test_func(void){} 7833#ifdef __cplusplus 7834} 7835#endif 7836int main(){nm_test_var='a';nm_test_func();return(0);} 7837_LT_EOF 7838 7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7840 (eval $ac_compile) 2>&5 7841 ac_status=$? 7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7843 test $ac_status = 0; }; then 7844 # Now try to grab the symbols. 7845 nlist=conftest.nm 7846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7847 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7848 ac_status=$? 7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7850 test $ac_status = 0; } && test -s "$nlist"; then 7851 # Try sorting and uniquifying the output. 7852 if sort "$nlist" | uniq > "$nlist"T; then 7853 mv -f "$nlist"T "$nlist" 7854 else 7855 rm -f "$nlist"T 7856 fi 7857 7858 # Make sure that we snagged all the symbols we need. 7859 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7860 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7861 cat <<_LT_EOF > conftest.$ac_ext 7862/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7863#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7864/* DATA imports from DLLs on WIN32 con't be const, because runtime 7865 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7866# define LT_DLSYM_CONST 7867#elif defined(__osf__) 7868/* This system does not cope well with relocations in const data. */ 7869# define LT_DLSYM_CONST 7870#else 7871# define LT_DLSYM_CONST const 7872#endif 7873 7874#ifdef __cplusplus 7875extern "C" { 7876#endif 7877 7878_LT_EOF 7879 # Now generate the symbol file. 7880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7881 7882 cat <<_LT_EOF >> conftest.$ac_ext 7883 7884/* The mapping between symbol names and symbols. */ 7885LT_DLSYM_CONST struct { 7886 const char *name; 7887 void *address; 7888} 7889lt__PROGRAM__LTX_preloaded_symbols[] = 7890{ 7891 { "@PROGRAM@", (void *) 0 }, 7892_LT_EOF 7893 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7894 cat <<\_LT_EOF >> conftest.$ac_ext 7895 {0, (void *) 0} 7896}; 7897 7898/* This works around a problem in FreeBSD linker */ 7899#ifdef FREEBSD_WORKAROUND 7900static const void *lt_preloaded_setup() { 7901 return lt__PROGRAM__LTX_preloaded_symbols; 7902} 7903#endif 7904 7905#ifdef __cplusplus 7906} 7907#endif 7908_LT_EOF 7909 # Now try linking the two files. 7910 mv conftest.$ac_objext conftstm.$ac_objext 7911 lt_globsym_save_LIBS=$LIBS 7912 lt_globsym_save_CFLAGS=$CFLAGS 7913 LIBS="conftstm.$ac_objext" 7914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7916 (eval $ac_link) 2>&5 7917 ac_status=$? 7918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7920 pipe_works=yes 7921 fi 7922 LIBS=$lt_globsym_save_LIBS 7923 CFLAGS=$lt_globsym_save_CFLAGS 7924 else 7925 echo "cannot find nm_test_func in $nlist" >&5 7926 fi 7927 else 7928 echo "cannot find nm_test_var in $nlist" >&5 7929 fi 7930 else 7931 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7932 fi 7933 else 7934 echo "$progname: failed program was:" >&5 7935 cat conftest.$ac_ext >&5 7936 fi 7937 rm -rf conftest* conftst* 7938 7939 # Do not use the global_symbol_pipe unless it works. 7940 if test "$pipe_works" = yes; then 7941 break 7942 else 7943 lt_cv_sys_global_symbol_pipe= 7944 fi 7945done 7946 7947fi 7948 7949if test -z "$lt_cv_sys_global_symbol_pipe"; then 7950 lt_cv_sys_global_symbol_to_cdecl= 7951fi 7952if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7954$as_echo "failed" >&6; } 7955else 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7957$as_echo "ok" >&6; } 7958fi 7959 7960# Response file support. 7961if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7962 nm_file_list_spec='@' 7963elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7964 nm_file_list_spec='@' 7965fi 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7994$as_echo_n "checking for sysroot... " >&6; } 7995 7996# Check whether --with-sysroot was given. 7997if test "${with_sysroot+set}" = set; then : 7998 withval=$with_sysroot; 7999else 8000 with_sysroot=no 8001fi 8002 8003 8004lt_sysroot= 8005case ${with_sysroot} in #( 8006 yes) 8007 if test "$GCC" = yes; then 8008 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8009 fi 8010 ;; #( 8011 /*) 8012 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8013 ;; #( 8014 no|'') 8015 ;; #( 8016 *) 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8018$as_echo "${with_sysroot}" >&6; } 8019 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8020 ;; 8021esac 8022 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8024$as_echo "${lt_sysroot:-no}" >&6; } 8025 8026 8027 8028 8029 8030# Check whether --enable-libtool-lock was given. 8031if test "${enable_libtool_lock+set}" = set; then : 8032 enableval=$enable_libtool_lock; 8033fi 8034 8035test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8036 8037# Some flags need to be propagated to the compiler or linker for good 8038# libtool support. 8039case $host in 8040ia64-*-hpux*) 8041 # Find out which ABI we are using. 8042 echo 'int i;' > conftest.$ac_ext 8043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8044 (eval $ac_compile) 2>&5 8045 ac_status=$? 8046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8047 test $ac_status = 0; }; then 8048 case `/usr/bin/file conftest.$ac_objext` in 8049 *ELF-32*) 8050 HPUX_IA64_MODE="32" 8051 ;; 8052 *ELF-64*) 8053 HPUX_IA64_MODE="64" 8054 ;; 8055 esac 8056 fi 8057 rm -rf conftest* 8058 ;; 8059*-*-irix6*) 8060 # Find out which ABI we are using. 8061 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8063 (eval $ac_compile) 2>&5 8064 ac_status=$? 8065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8066 test $ac_status = 0; }; then 8067 if test "$lt_cv_prog_gnu_ld" = yes; then 8068 case `/usr/bin/file conftest.$ac_objext` in 8069 *32-bit*) 8070 LD="${LD-ld} -melf32bsmip" 8071 ;; 8072 *N32*) 8073 LD="${LD-ld} -melf32bmipn32" 8074 ;; 8075 *64-bit*) 8076 LD="${LD-ld} -melf64bmip" 8077 ;; 8078 esac 8079 else 8080 case `/usr/bin/file conftest.$ac_objext` in 8081 *32-bit*) 8082 LD="${LD-ld} -32" 8083 ;; 8084 *N32*) 8085 LD="${LD-ld} -n32" 8086 ;; 8087 *64-bit*) 8088 LD="${LD-ld} -64" 8089 ;; 8090 esac 8091 fi 8092 fi 8093 rm -rf conftest* 8094 ;; 8095 8096x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8097s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8098 # Find out which ABI we are using. 8099 echo 'int i;' > conftest.$ac_ext 8100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8101 (eval $ac_compile) 2>&5 8102 ac_status=$? 8103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8104 test $ac_status = 0; }; then 8105 case `/usr/bin/file conftest.o` in 8106 *32-bit*) 8107 case $host in 8108 x86_64-*kfreebsd*-gnu) 8109 LD="${LD-ld} -m elf_i386_fbsd" 8110 ;; 8111 x86_64-*linux*) 8112 LD="${LD-ld} -m elf_i386" 8113 ;; 8114 ppc64-*linux*|powerpc64-*linux*) 8115 LD="${LD-ld} -m elf32ppclinux" 8116 ;; 8117 s390x-*linux*) 8118 LD="${LD-ld} -m elf_s390" 8119 ;; 8120 sparc64-*linux*) 8121 LD="${LD-ld} -m elf32_sparc" 8122 ;; 8123 esac 8124 ;; 8125 *64-bit*) 8126 case $host in 8127 x86_64-*kfreebsd*-gnu) 8128 LD="${LD-ld} -m elf_x86_64_fbsd" 8129 ;; 8130 x86_64-*linux*) 8131 LD="${LD-ld} -m elf_x86_64" 8132 ;; 8133 ppc*-*linux*|powerpc*-*linux*) 8134 LD="${LD-ld} -m elf64ppc" 8135 ;; 8136 s390*-*linux*|s390*-*tpf*) 8137 LD="${LD-ld} -m elf64_s390" 8138 ;; 8139 sparc*-*linux*) 8140 LD="${LD-ld} -m elf64_sparc" 8141 ;; 8142 esac 8143 ;; 8144 esac 8145 fi 8146 rm -rf conftest* 8147 ;; 8148 8149*-*-sco3.2v5*) 8150 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8151 SAVE_CFLAGS="$CFLAGS" 8152 CFLAGS="$CFLAGS -belf" 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8154$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8155if ${lt_cv_cc_needs_belf+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 ac_ext=c 8159ac_cpp='$CPP $CPPFLAGS' 8160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8162ac_compiler_gnu=$ac_cv_c_compiler_gnu 8163 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166 8167int 8168main () 8169{ 8170 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO"; then : 8176 lt_cv_cc_needs_belf=yes 8177else 8178 lt_cv_cc_needs_belf=no 8179fi 8180rm -f core conftest.err conftest.$ac_objext \ 8181 conftest$ac_exeext conftest.$ac_ext 8182 ac_ext=c 8183ac_cpp='$CPP $CPPFLAGS' 8184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8186ac_compiler_gnu=$ac_cv_c_compiler_gnu 8187 8188fi 8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8190$as_echo "$lt_cv_cc_needs_belf" >&6; } 8191 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8193 CFLAGS="$SAVE_CFLAGS" 8194 fi 8195 ;; 8196*-*solaris*) 8197 # Find out which ABI we are using. 8198 echo 'int i;' > conftest.$ac_ext 8199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8200 (eval $ac_compile) 2>&5 8201 ac_status=$? 8202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8203 test $ac_status = 0; }; then 8204 case `/usr/bin/file conftest.o` in 8205 *64-bit*) 8206 case $lt_cv_prog_gnu_ld in 8207 yes*) 8208 case $host in 8209 i?86-*-solaris*) 8210 LD="${LD-ld} -m elf_x86_64" 8211 ;; 8212 sparc*-*-solaris*) 8213 LD="${LD-ld} -m elf64_sparc" 8214 ;; 8215 esac 8216 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8217 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8218 LD="${LD-ld}_sol2" 8219 fi 8220 ;; 8221 *) 8222 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8223 LD="${LD-ld} -64" 8224 fi 8225 ;; 8226 esac 8227 ;; 8228 esac 8229 fi 8230 rm -rf conftest* 8231 ;; 8232esac 8233 8234need_locks="$enable_libtool_lock" 8235 8236if test -n "$ac_tool_prefix"; then 8237 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8238set dummy ${ac_tool_prefix}mt; ac_word=$2 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8240$as_echo_n "checking for $ac_word... " >&6; } 8241if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 if test -n "$MANIFEST_TOOL"; then 8245 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8246else 8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8248for as_dir in $PATH 8249do 8250 IFS=$as_save_IFS 8251 test -z "$as_dir" && as_dir=. 8252 for ac_exec_ext in '' $ac_executable_extensions; do 8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8254 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8256 break 2 8257 fi 8258done 8259 done 8260IFS=$as_save_IFS 8261 8262fi 8263fi 8264MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8265if test -n "$MANIFEST_TOOL"; then 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8267$as_echo "$MANIFEST_TOOL" >&6; } 8268else 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8270$as_echo "no" >&6; } 8271fi 8272 8273 8274fi 8275if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8276 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8277 # Extract the first word of "mt", so it can be a program name with args. 8278set dummy mt; ac_word=$2 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8280$as_echo_n "checking for $ac_word... " >&6; } 8281if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 if test -n "$ac_ct_MANIFEST_TOOL"; then 8285 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8286else 8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8288for as_dir in $PATH 8289do 8290 IFS=$as_save_IFS 8291 test -z "$as_dir" && as_dir=. 8292 for ac_exec_ext in '' $ac_executable_extensions; do 8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8294 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8296 break 2 8297 fi 8298done 8299 done 8300IFS=$as_save_IFS 8301 8302fi 8303fi 8304ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8305if test -n "$ac_ct_MANIFEST_TOOL"; then 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8307$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8308else 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8310$as_echo "no" >&6; } 8311fi 8312 8313 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8314 MANIFEST_TOOL=":" 8315 else 8316 case $cross_compiling:$ac_tool_warned in 8317yes:) 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8320ac_tool_warned=yes ;; 8321esac 8322 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8323 fi 8324else 8325 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8326fi 8327 8328test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8330$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8331if ${lt_cv_path_mainfest_tool+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 lt_cv_path_mainfest_tool=no 8335 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8336 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8337 cat conftest.err >&5 8338 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8339 lt_cv_path_mainfest_tool=yes 8340 fi 8341 rm -f conftest* 8342fi 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8344$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8345if test "x$lt_cv_path_mainfest_tool" != xyes; then 8346 MANIFEST_TOOL=: 8347fi 8348 8349 8350 8351 8352 8353 8354 case $host_os in 8355 rhapsody* | darwin*) 8356 if test -n "$ac_tool_prefix"; then 8357 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8358set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360$as_echo_n "checking for $ac_word... " >&6; } 8361if ${ac_cv_prog_DSYMUTIL+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 if test -n "$DSYMUTIL"; then 8365 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 test -z "$as_dir" && as_dir=. 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8374 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8376 break 2 8377 fi 8378done 8379 done 8380IFS=$as_save_IFS 8381 8382fi 8383fi 8384DSYMUTIL=$ac_cv_prog_DSYMUTIL 8385if test -n "$DSYMUTIL"; then 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8387$as_echo "$DSYMUTIL" >&6; } 8388else 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391fi 8392 8393 8394fi 8395if test -z "$ac_cv_prog_DSYMUTIL"; then 8396 ac_ct_DSYMUTIL=$DSYMUTIL 8397 # Extract the first word of "dsymutil", so it can be a program name with args. 8398set dummy dsymutil; ac_word=$2 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8400$as_echo_n "checking for $ac_word... " >&6; } 8401if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403else 8404 if test -n "$ac_ct_DSYMUTIL"; then 8405 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8406else 8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8408for as_dir in $PATH 8409do 8410 IFS=$as_save_IFS 8411 test -z "$as_dir" && as_dir=. 8412 for ac_exec_ext in '' $ac_executable_extensions; do 8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8414 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8416 break 2 8417 fi 8418done 8419 done 8420IFS=$as_save_IFS 8421 8422fi 8423fi 8424ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8425if test -n "$ac_ct_DSYMUTIL"; then 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8427$as_echo "$ac_ct_DSYMUTIL" >&6; } 8428else 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8430$as_echo "no" >&6; } 8431fi 8432 8433 if test "x$ac_ct_DSYMUTIL" = x; then 8434 DSYMUTIL=":" 8435 else 8436 case $cross_compiling:$ac_tool_warned in 8437yes:) 8438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8440ac_tool_warned=yes ;; 8441esac 8442 DSYMUTIL=$ac_ct_DSYMUTIL 8443 fi 8444else 8445 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8446fi 8447 8448 if test -n "$ac_tool_prefix"; then 8449 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8450set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8452$as_echo_n "checking for $ac_word... " >&6; } 8453if ${ac_cv_prog_NMEDIT+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 if test -n "$NMEDIT"; then 8457 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8458else 8459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8460for as_dir in $PATH 8461do 8462 IFS=$as_save_IFS 8463 test -z "$as_dir" && as_dir=. 8464 for ac_exec_ext in '' $ac_executable_extensions; do 8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8466 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8468 break 2 8469 fi 8470done 8471 done 8472IFS=$as_save_IFS 8473 8474fi 8475fi 8476NMEDIT=$ac_cv_prog_NMEDIT 8477if test -n "$NMEDIT"; then 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8479$as_echo "$NMEDIT" >&6; } 8480else 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8482$as_echo "no" >&6; } 8483fi 8484 8485 8486fi 8487if test -z "$ac_cv_prog_NMEDIT"; then 8488 ac_ct_NMEDIT=$NMEDIT 8489 # Extract the first word of "nmedit", so it can be a program name with args. 8490set dummy nmedit; ac_word=$2 8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8492$as_echo_n "checking for $ac_word... " >&6; } 8493if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 if test -n "$ac_ct_NMEDIT"; then 8497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8498else 8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8500for as_dir in $PATH 8501do 8502 IFS=$as_save_IFS 8503 test -z "$as_dir" && as_dir=. 8504 for ac_exec_ext in '' $ac_executable_extensions; do 8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8506 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8508 break 2 8509 fi 8510done 8511 done 8512IFS=$as_save_IFS 8513 8514fi 8515fi 8516ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8517if test -n "$ac_ct_NMEDIT"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8519$as_echo "$ac_ct_NMEDIT" >&6; } 8520else 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8522$as_echo "no" >&6; } 8523fi 8524 8525 if test "x$ac_ct_NMEDIT" = x; then 8526 NMEDIT=":" 8527 else 8528 case $cross_compiling:$ac_tool_warned in 8529yes:) 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8532ac_tool_warned=yes ;; 8533esac 8534 NMEDIT=$ac_ct_NMEDIT 8535 fi 8536else 8537 NMEDIT="$ac_cv_prog_NMEDIT" 8538fi 8539 8540 if test -n "$ac_tool_prefix"; then 8541 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8542set dummy ${ac_tool_prefix}lipo; ac_word=$2 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8544$as_echo_n "checking for $ac_word... " >&6; } 8545if ${ac_cv_prog_LIPO+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 if test -n "$LIPO"; then 8549 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8550else 8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8552for as_dir in $PATH 8553do 8554 IFS=$as_save_IFS 8555 test -z "$as_dir" && as_dir=. 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8558 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562done 8563 done 8564IFS=$as_save_IFS 8565 8566fi 8567fi 8568LIPO=$ac_cv_prog_LIPO 8569if test -n "$LIPO"; then 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8571$as_echo "$LIPO" >&6; } 8572else 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8574$as_echo "no" >&6; } 8575fi 8576 8577 8578fi 8579if test -z "$ac_cv_prog_LIPO"; then 8580 ac_ct_LIPO=$LIPO 8581 # Extract the first word of "lipo", so it can be a program name with args. 8582set dummy lipo; ac_word=$2 8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8584$as_echo_n "checking for $ac_word... " >&6; } 8585if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587else 8588 if test -n "$ac_ct_LIPO"; then 8589 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8590else 8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8592for as_dir in $PATH 8593do 8594 IFS=$as_save_IFS 8595 test -z "$as_dir" && as_dir=. 8596 for ac_exec_ext in '' $ac_executable_extensions; do 8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8598 ac_cv_prog_ac_ct_LIPO="lipo" 8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8600 break 2 8601 fi 8602done 8603 done 8604IFS=$as_save_IFS 8605 8606fi 8607fi 8608ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8609if test -n "$ac_ct_LIPO"; then 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8611$as_echo "$ac_ct_LIPO" >&6; } 8612else 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8614$as_echo "no" >&6; } 8615fi 8616 8617 if test "x$ac_ct_LIPO" = x; then 8618 LIPO=":" 8619 else 8620 case $cross_compiling:$ac_tool_warned in 8621yes:) 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8624ac_tool_warned=yes ;; 8625esac 8626 LIPO=$ac_ct_LIPO 8627 fi 8628else 8629 LIPO="$ac_cv_prog_LIPO" 8630fi 8631 8632 if test -n "$ac_tool_prefix"; then 8633 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8634set dummy ${ac_tool_prefix}otool; ac_word=$2 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8636$as_echo_n "checking for $ac_word... " >&6; } 8637if ${ac_cv_prog_OTOOL+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 if test -n "$OTOOL"; then 8641 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8642else 8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8644for as_dir in $PATH 8645do 8646 IFS=$as_save_IFS 8647 test -z "$as_dir" && as_dir=. 8648 for ac_exec_ext in '' $ac_executable_extensions; do 8649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8650 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8652 break 2 8653 fi 8654done 8655 done 8656IFS=$as_save_IFS 8657 8658fi 8659fi 8660OTOOL=$ac_cv_prog_OTOOL 8661if test -n "$OTOOL"; then 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8663$as_echo "$OTOOL" >&6; } 8664else 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8666$as_echo "no" >&6; } 8667fi 8668 8669 8670fi 8671if test -z "$ac_cv_prog_OTOOL"; then 8672 ac_ct_OTOOL=$OTOOL 8673 # Extract the first word of "otool", so it can be a program name with args. 8674set dummy otool; ac_word=$2 8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8676$as_echo_n "checking for $ac_word... " >&6; } 8677if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 if test -n "$ac_ct_OTOOL"; then 8681 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8682else 8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8684for as_dir in $PATH 8685do 8686 IFS=$as_save_IFS 8687 test -z "$as_dir" && as_dir=. 8688 for ac_exec_ext in '' $ac_executable_extensions; do 8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8690 ac_cv_prog_ac_ct_OTOOL="otool" 8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8692 break 2 8693 fi 8694done 8695 done 8696IFS=$as_save_IFS 8697 8698fi 8699fi 8700ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8701if test -n "$ac_ct_OTOOL"; then 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8703$as_echo "$ac_ct_OTOOL" >&6; } 8704else 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8706$as_echo "no" >&6; } 8707fi 8708 8709 if test "x$ac_ct_OTOOL" = x; then 8710 OTOOL=":" 8711 else 8712 case $cross_compiling:$ac_tool_warned in 8713yes:) 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8716ac_tool_warned=yes ;; 8717esac 8718 OTOOL=$ac_ct_OTOOL 8719 fi 8720else 8721 OTOOL="$ac_cv_prog_OTOOL" 8722fi 8723 8724 if test -n "$ac_tool_prefix"; then 8725 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8726set dummy ${ac_tool_prefix}otool64; ac_word=$2 8727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8728$as_echo_n "checking for $ac_word... " >&6; } 8729if ${ac_cv_prog_OTOOL64+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731else 8732 if test -n "$OTOOL64"; then 8733 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8734else 8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8736for as_dir in $PATH 8737do 8738 IFS=$as_save_IFS 8739 test -z "$as_dir" && as_dir=. 8740 for ac_exec_ext in '' $ac_executable_extensions; do 8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8744 break 2 8745 fi 8746done 8747 done 8748IFS=$as_save_IFS 8749 8750fi 8751fi 8752OTOOL64=$ac_cv_prog_OTOOL64 8753if test -n "$OTOOL64"; then 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8755$as_echo "$OTOOL64" >&6; } 8756else 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8758$as_echo "no" >&6; } 8759fi 8760 8761 8762fi 8763if test -z "$ac_cv_prog_OTOOL64"; then 8764 ac_ct_OTOOL64=$OTOOL64 8765 # Extract the first word of "otool64", so it can be a program name with args. 8766set dummy otool64; ac_word=$2 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8768$as_echo_n "checking for $ac_word... " >&6; } 8769if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8770 $as_echo_n "(cached) " >&6 8771else 8772 if test -n "$ac_ct_OTOOL64"; then 8773 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8774else 8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8776for as_dir in $PATH 8777do 8778 IFS=$as_save_IFS 8779 test -z "$as_dir" && as_dir=. 8780 for ac_exec_ext in '' $ac_executable_extensions; do 8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8782 ac_cv_prog_ac_ct_OTOOL64="otool64" 8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8784 break 2 8785 fi 8786done 8787 done 8788IFS=$as_save_IFS 8789 8790fi 8791fi 8792ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8793if test -n "$ac_ct_OTOOL64"; then 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8795$as_echo "$ac_ct_OTOOL64" >&6; } 8796else 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8798$as_echo "no" >&6; } 8799fi 8800 8801 if test "x$ac_ct_OTOOL64" = x; then 8802 OTOOL64=":" 8803 else 8804 case $cross_compiling:$ac_tool_warned in 8805yes:) 8806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8808ac_tool_warned=yes ;; 8809esac 8810 OTOOL64=$ac_ct_OTOOL64 8811 fi 8812else 8813 OTOOL64="$ac_cv_prog_OTOOL64" 8814fi 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8843$as_echo_n "checking for -single_module linker flag... " >&6; } 8844if ${lt_cv_apple_cc_single_mod+:} false; then : 8845 $as_echo_n "(cached) " >&6 8846else 8847 lt_cv_apple_cc_single_mod=no 8848 if test -z "${LT_MULTI_MODULE}"; then 8849 # By default we will add the -single_module flag. You can override 8850 # by either setting the environment variable LT_MULTI_MODULE 8851 # non-empty at configure time, or by adding -multi_module to the 8852 # link flags. 8853 rm -rf libconftest.dylib* 8854 echo "int foo(void){return 1;}" > conftest.c 8855 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8856-dynamiclib -Wl,-single_module conftest.c" >&5 8857 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8858 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8859 _lt_result=$? 8860 # If there is a non-empty error log, and "single_module" 8861 # appears in it, assume the flag caused a linker warning 8862 if test -s conftest.err && $GREP single_module conftest.err; then 8863 cat conftest.err >&5 8864 # Otherwise, if the output was created with a 0 exit code from 8865 # the compiler, it worked. 8866 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8867 lt_cv_apple_cc_single_mod=yes 8868 else 8869 cat conftest.err >&5 8870 fi 8871 rm -rf libconftest.dylib* 8872 rm -f conftest.* 8873 fi 8874fi 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8876$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8877 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8879$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8880if ${lt_cv_ld_exported_symbols_list+:} false; then : 8881 $as_echo_n "(cached) " >&6 8882else 8883 lt_cv_ld_exported_symbols_list=no 8884 save_LDFLAGS=$LDFLAGS 8885 echo "_main" > conftest.sym 8886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888/* end confdefs.h. */ 8889 8890int 8891main () 8892{ 8893 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898if ac_fn_c_try_link "$LINENO"; then : 8899 lt_cv_ld_exported_symbols_list=yes 8900else 8901 lt_cv_ld_exported_symbols_list=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext \ 8904 conftest$ac_exeext conftest.$ac_ext 8905 LDFLAGS="$save_LDFLAGS" 8906 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8909$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8910 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8912$as_echo_n "checking for -force_load linker flag... " >&6; } 8913if ${lt_cv_ld_force_load+:} false; then : 8914 $as_echo_n "(cached) " >&6 8915else 8916 lt_cv_ld_force_load=no 8917 cat > conftest.c << _LT_EOF 8918int forced_loaded() { return 2;} 8919_LT_EOF 8920 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8921 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8922 echo "$AR cru libconftest.a conftest.o" >&5 8923 $AR cru libconftest.a conftest.o 2>&5 8924 echo "$RANLIB libconftest.a" >&5 8925 $RANLIB libconftest.a 2>&5 8926 cat > conftest.c << _LT_EOF 8927int main() { return 0;} 8928_LT_EOF 8929 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8930 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8931 _lt_result=$? 8932 if test -s conftest.err && $GREP force_load conftest.err; then 8933 cat conftest.err >&5 8934 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8935 lt_cv_ld_force_load=yes 8936 else 8937 cat conftest.err >&5 8938 fi 8939 rm -f conftest.err libconftest.a conftest conftest.c 8940 rm -rf conftest.dSYM 8941 8942fi 8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8944$as_echo "$lt_cv_ld_force_load" >&6; } 8945 case $host_os in 8946 rhapsody* | darwin1.[012]) 8947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8948 darwin1.*) 8949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8950 darwin*) # darwin 5.x on 8951 # if running on 10.5 or later, the deployment target defaults 8952 # to the OS version, if on x86, and 10.4, the deployment 8953 # target defaults to 10.4. Don't you love it? 8954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8955 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8957 10.[012]*) 8958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8959 10.*) 8960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8961 esac 8962 ;; 8963 esac 8964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8965 _lt_dar_single_mod='$single_module' 8966 fi 8967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8969 else 8970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8971 fi 8972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8973 _lt_dsymutil='~$DSYMUTIL $lib || :' 8974 else 8975 _lt_dsymutil= 8976 fi 8977 ;; 8978 esac 8979 8980for ac_header in dlfcn.h 8981do : 8982 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8983" 8984if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8985 cat >>confdefs.h <<_ACEOF 8986#define HAVE_DLFCN_H 1 8987_ACEOF 8988 8989fi 8990 8991done 8992 8993 8994 8995 8996 8997# Set options 8998 8999 9000 9001 enable_dlopen=no 9002 9003 9004 enable_win32_dll=no 9005 9006 9007 # Check whether --enable-shared was given. 9008if test "${enable_shared+set}" = set; then : 9009 enableval=$enable_shared; p=${PACKAGE-default} 9010 case $enableval in 9011 yes) enable_shared=yes ;; 9012 no) enable_shared=no ;; 9013 *) 9014 enable_shared=no 9015 # Look at the argument we got. We use all the common list separators. 9016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9017 for pkg in $enableval; do 9018 IFS="$lt_save_ifs" 9019 if test "X$pkg" = "X$p"; then 9020 enable_shared=yes 9021 fi 9022 done 9023 IFS="$lt_save_ifs" 9024 ;; 9025 esac 9026else 9027 enable_shared=yes 9028fi 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 # Check whether --enable-static was given. 9039if test "${enable_static+set}" = set; then : 9040 enableval=$enable_static; p=${PACKAGE-default} 9041 case $enableval in 9042 yes) enable_static=yes ;; 9043 no) enable_static=no ;; 9044 *) 9045 enable_static=no 9046 # Look at the argument we got. We use all the common list separators. 9047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9048 for pkg in $enableval; do 9049 IFS="$lt_save_ifs" 9050 if test "X$pkg" = "X$p"; then 9051 enable_static=yes 9052 fi 9053 done 9054 IFS="$lt_save_ifs" 9055 ;; 9056 esac 9057else 9058 enable_static=yes 9059fi 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070# Check whether --with-pic was given. 9071if test "${with_pic+set}" = set; then : 9072 withval=$with_pic; lt_p=${PACKAGE-default} 9073 case $withval in 9074 yes|no) pic_mode=$withval ;; 9075 *) 9076 pic_mode=default 9077 # Look at the argument we got. We use all the common list separators. 9078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9079 for lt_pkg in $withval; do 9080 IFS="$lt_save_ifs" 9081 if test "X$lt_pkg" = "X$lt_p"; then 9082 pic_mode=yes 9083 fi 9084 done 9085 IFS="$lt_save_ifs" 9086 ;; 9087 esac 9088else 9089 pic_mode=default 9090fi 9091 9092 9093test -z "$pic_mode" && pic_mode=default 9094 9095 9096 9097 9098 9099 9100 9101 # Check whether --enable-fast-install was given. 9102if test "${enable_fast_install+set}" = set; then : 9103 enableval=$enable_fast_install; p=${PACKAGE-default} 9104 case $enableval in 9105 yes) enable_fast_install=yes ;; 9106 no) enable_fast_install=no ;; 9107 *) 9108 enable_fast_install=no 9109 # Look at the argument we got. We use all the common list separators. 9110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9111 for pkg in $enableval; do 9112 IFS="$lt_save_ifs" 9113 if test "X$pkg" = "X$p"; then 9114 enable_fast_install=yes 9115 fi 9116 done 9117 IFS="$lt_save_ifs" 9118 ;; 9119 esac 9120else 9121 enable_fast_install=yes 9122fi 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134# This can be used to rebuild libtool when needed 9135LIBTOOL_DEPS="$ltmain" 9136 9137# Always use our own libtool. 9138LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169test -z "$LN_S" && LN_S="ln -s" 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184if test -n "${ZSH_VERSION+set}" ; then 9185 setopt NO_GLOB_SUBST 9186fi 9187 9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9189$as_echo_n "checking for objdir... " >&6; } 9190if ${lt_cv_objdir+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 rm -f .libs 2>/dev/null 9194mkdir .libs 2>/dev/null 9195if test -d .libs; then 9196 lt_cv_objdir=.libs 9197else 9198 # MS-DOS does not allow filenames that begin with a dot. 9199 lt_cv_objdir=_libs 9200fi 9201rmdir .libs 2>/dev/null 9202fi 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9204$as_echo "$lt_cv_objdir" >&6; } 9205objdir=$lt_cv_objdir 9206 9207 9208 9209 9210 9211cat >>confdefs.h <<_ACEOF 9212#define LT_OBJDIR "$lt_cv_objdir/" 9213_ACEOF 9214 9215 9216 9217 9218case $host_os in 9219aix3*) 9220 # AIX sometimes has problems with the GCC collect2 program. For some 9221 # reason, if we set the COLLECT_NAMES environment variable, the problems 9222 # vanish in a puff of smoke. 9223 if test "X${COLLECT_NAMES+set}" != Xset; then 9224 COLLECT_NAMES= 9225 export COLLECT_NAMES 9226 fi 9227 ;; 9228esac 9229 9230# Global variables: 9231ofile=libtool 9232can_build_shared=yes 9233 9234# All known linkers require a `.a' archive for static linking (except MSVC, 9235# which needs '.lib'). 9236libext=a 9237 9238with_gnu_ld="$lt_cv_prog_gnu_ld" 9239 9240old_CC="$CC" 9241old_CFLAGS="$CFLAGS" 9242 9243# Set sane defaults for various variables 9244test -z "$CC" && CC=cc 9245test -z "$LTCC" && LTCC=$CC 9246test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9247test -z "$LD" && LD=ld 9248test -z "$ac_objext" && ac_objext=o 9249 9250for cc_temp in $compiler""; do 9251 case $cc_temp in 9252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9254 \-*) ;; 9255 *) break;; 9256 esac 9257done 9258cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9259 9260 9261# Only perform the check for file, if the check method requires it 9262test -z "$MAGIC_CMD" && MAGIC_CMD=file 9263case $deplibs_check_method in 9264file_magic*) 9265 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9267$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9268if ${lt_cv_path_MAGIC_CMD+:} false; then : 9269 $as_echo_n "(cached) " >&6 9270else 9271 case $MAGIC_CMD in 9272[\\/*] | ?:[\\/]*) 9273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9274 ;; 9275*) 9276 lt_save_MAGIC_CMD="$MAGIC_CMD" 9277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9279 for ac_dir in $ac_dummy; do 9280 IFS="$lt_save_ifs" 9281 test -z "$ac_dir" && ac_dir=. 9282 if test -f $ac_dir/${ac_tool_prefix}file; then 9283 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9284 if test -n "$file_magic_test_file"; then 9285 case $deplibs_check_method in 9286 "file_magic "*) 9287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9290 $EGREP "$file_magic_regex" > /dev/null; then 9291 : 9292 else 9293 cat <<_LT_EOF 1>&2 9294 9295*** Warning: the command libtool uses to detect shared libraries, 9296*** $file_magic_cmd, produces output that libtool cannot recognize. 9297*** The result is that libtool may fail to recognize shared libraries 9298*** as such. This will affect the creation of libtool libraries that 9299*** depend on shared libraries, but programs linked with such libtool 9300*** libraries will work regardless of this problem. Nevertheless, you 9301*** may want to report the problem to your system manager and/or to 9302*** bug-libtool@gnu.org 9303 9304_LT_EOF 9305 fi ;; 9306 esac 9307 fi 9308 break 9309 fi 9310 done 9311 IFS="$lt_save_ifs" 9312 MAGIC_CMD="$lt_save_MAGIC_CMD" 9313 ;; 9314esac 9315fi 9316 9317MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9318if test -n "$MAGIC_CMD"; then 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9320$as_echo "$MAGIC_CMD" >&6; } 9321else 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9323$as_echo "no" >&6; } 9324fi 9325 9326 9327 9328 9329 9330if test -z "$lt_cv_path_MAGIC_CMD"; then 9331 if test -n "$ac_tool_prefix"; then 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9333$as_echo_n "checking for file... " >&6; } 9334if ${lt_cv_path_MAGIC_CMD+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 case $MAGIC_CMD in 9338[\\/*] | ?:[\\/]*) 9339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9340 ;; 9341*) 9342 lt_save_MAGIC_CMD="$MAGIC_CMD" 9343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9345 for ac_dir in $ac_dummy; do 9346 IFS="$lt_save_ifs" 9347 test -z "$ac_dir" && ac_dir=. 9348 if test -f $ac_dir/file; then 9349 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9350 if test -n "$file_magic_test_file"; then 9351 case $deplibs_check_method in 9352 "file_magic "*) 9353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9356 $EGREP "$file_magic_regex" > /dev/null; then 9357 : 9358 else 9359 cat <<_LT_EOF 1>&2 9360 9361*** Warning: the command libtool uses to detect shared libraries, 9362*** $file_magic_cmd, produces output that libtool cannot recognize. 9363*** The result is that libtool may fail to recognize shared libraries 9364*** as such. This will affect the creation of libtool libraries that 9365*** depend on shared libraries, but programs linked with such libtool 9366*** libraries will work regardless of this problem. Nevertheless, you 9367*** may want to report the problem to your system manager and/or to 9368*** bug-libtool@gnu.org 9369 9370_LT_EOF 9371 fi ;; 9372 esac 9373 fi 9374 break 9375 fi 9376 done 9377 IFS="$lt_save_ifs" 9378 MAGIC_CMD="$lt_save_MAGIC_CMD" 9379 ;; 9380esac 9381fi 9382 9383MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9384if test -n "$MAGIC_CMD"; then 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9386$as_echo "$MAGIC_CMD" >&6; } 9387else 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9389$as_echo "no" >&6; } 9390fi 9391 9392 9393 else 9394 MAGIC_CMD=: 9395 fi 9396fi 9397 9398 fi 9399 ;; 9400esac 9401 9402# Use C for the default configuration in the libtool script 9403 9404lt_save_CC="$CC" 9405ac_ext=c 9406ac_cpp='$CPP $CPPFLAGS' 9407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9409ac_compiler_gnu=$ac_cv_c_compiler_gnu 9410 9411 9412# Source file extension for C test sources. 9413ac_ext=c 9414 9415# Object file extension for compiled C test sources. 9416objext=o 9417objext=$objext 9418 9419# Code to be used in simple compile tests 9420lt_simple_compile_test_code="int some_variable = 0;" 9421 9422# Code to be used in simple link tests 9423lt_simple_link_test_code='int main(){return(0);}' 9424 9425 9426 9427 9428 9429 9430 9431# If no C compiler was specified, use CC. 9432LTCC=${LTCC-"$CC"} 9433 9434# If no C compiler flags were specified, use CFLAGS. 9435LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9436 9437# Allow CC to be a program name with arguments. 9438compiler=$CC 9439 9440# Save the default compiler, since it gets overwritten when the other 9441# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9442compiler_DEFAULT=$CC 9443 9444# save warnings/boilerplate of simple test code 9445ac_outfile=conftest.$ac_objext 9446echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9447eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9448_lt_compiler_boilerplate=`cat conftest.err` 9449$RM conftest* 9450 9451ac_outfile=conftest.$ac_objext 9452echo "$lt_simple_link_test_code" >conftest.$ac_ext 9453eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9454_lt_linker_boilerplate=`cat conftest.err` 9455$RM -r conftest* 9456 9457 9458## CAVEAT EMPTOR: 9459## There is no encapsulation within the following macros, do not change 9460## the running order or otherwise move them around unless you know exactly 9461## what you are doing... 9462if test -n "$compiler"; then 9463 9464lt_prog_compiler_no_builtin_flag= 9465 9466if test "$GCC" = yes; then 9467 case $cc_basename in 9468 nvcc*) 9469 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9470 *) 9471 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9472 esac 9473 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9475$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9476if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 lt_cv_prog_compiler_rtti_exceptions=no 9480 ac_outfile=conftest.$ac_objext 9481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9482 lt_compiler_flag="-fno-rtti -fno-exceptions" 9483 # Insert the option either (1) after the last *FLAGS variable, or 9484 # (2) before a word containing "conftest.", or (3) at the end. 9485 # Note that $ac_compile itself does not contain backslashes and begins 9486 # with a dollar sign (not a hyphen), so the echo should work correctly. 9487 # The option is referenced via a variable to avoid confusing sed. 9488 lt_compile=`echo "$ac_compile" | $SED \ 9489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9491 -e 's:$: $lt_compiler_flag:'` 9492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9493 (eval "$lt_compile" 2>conftest.err) 9494 ac_status=$? 9495 cat conftest.err >&5 9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9497 if (exit $ac_status) && test -s "$ac_outfile"; then 9498 # The compiler can only warn and ignore the option if not recognized 9499 # So say no if there are warnings other than the usual output. 9500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9503 lt_cv_prog_compiler_rtti_exceptions=yes 9504 fi 9505 fi 9506 $RM conftest* 9507 9508fi 9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9510$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9511 9512if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9513 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9514else 9515 : 9516fi 9517 9518fi 9519 9520 9521 9522 9523 9524 9525 lt_prog_compiler_wl= 9526lt_prog_compiler_pic= 9527lt_prog_compiler_static= 9528 9529 9530 if test "$GCC" = yes; then 9531 lt_prog_compiler_wl='-Wl,' 9532 lt_prog_compiler_static='-static' 9533 9534 case $host_os in 9535 aix*) 9536 # All AIX code is PIC. 9537 if test "$host_cpu" = ia64; then 9538 # AIX 5 now supports IA64 processor 9539 lt_prog_compiler_static='-Bstatic' 9540 fi 9541 ;; 9542 9543 amigaos*) 9544 case $host_cpu in 9545 powerpc) 9546 # see comment about AmigaOS4 .so support 9547 lt_prog_compiler_pic='-fPIC' 9548 ;; 9549 m68k) 9550 # FIXME: we need at least 68020 code to build shared libraries, but 9551 # adding the `-m68020' flag to GCC prevents building anything better, 9552 # like `-m68040'. 9553 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9554 ;; 9555 esac 9556 ;; 9557 9558 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9559 # PIC is the default for these OSes. 9560 ;; 9561 9562 mingw* | cygwin* | pw32* | os2* | cegcc*) 9563 # This hack is so that the source file can tell whether it is being 9564 # built for inclusion in a dll (and should export symbols for example). 9565 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9566 # (--disable-auto-import) libraries 9567 lt_prog_compiler_pic='-DDLL_EXPORT' 9568 ;; 9569 9570 darwin* | rhapsody*) 9571 # PIC is the default on this platform 9572 # Common symbols not allowed in MH_DYLIB files 9573 lt_prog_compiler_pic='-fno-common' 9574 ;; 9575 9576 haiku*) 9577 # PIC is the default for Haiku. 9578 # The "-static" flag exists, but is broken. 9579 lt_prog_compiler_static= 9580 ;; 9581 9582 hpux*) 9583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9585 # sets the default TLS model and affects inlining. 9586 case $host_cpu in 9587 hppa*64*) 9588 # +Z the default 9589 ;; 9590 *) 9591 lt_prog_compiler_pic='-fPIC' 9592 ;; 9593 esac 9594 ;; 9595 9596 interix[3-9]*) 9597 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9598 # Instead, we relocate shared libraries at runtime. 9599 ;; 9600 9601 msdosdjgpp*) 9602 # Just because we use GCC doesn't mean we suddenly get shared libraries 9603 # on systems that don't support them. 9604 lt_prog_compiler_can_build_shared=no 9605 enable_shared=no 9606 ;; 9607 9608 *nto* | *qnx*) 9609 # QNX uses GNU C++, but need to define -shared option too, otherwise 9610 # it will coredump. 9611 lt_prog_compiler_pic='-fPIC -shared' 9612 ;; 9613 9614 sysv4*MP*) 9615 if test -d /usr/nec; then 9616 lt_prog_compiler_pic=-Kconform_pic 9617 fi 9618 ;; 9619 9620 *) 9621 lt_prog_compiler_pic='-fPIC' 9622 ;; 9623 esac 9624 9625 case $cc_basename in 9626 nvcc*) # Cuda Compiler Driver 2.2 9627 lt_prog_compiler_wl='-Xlinker ' 9628 if test -n "$lt_prog_compiler_pic"; then 9629 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9630 fi 9631 ;; 9632 esac 9633 else 9634 # PORTME Check for flag to pass linker flags through the system compiler. 9635 case $host_os in 9636 aix*) 9637 lt_prog_compiler_wl='-Wl,' 9638 if test "$host_cpu" = ia64; then 9639 # AIX 5 now supports IA64 processor 9640 lt_prog_compiler_static='-Bstatic' 9641 else 9642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9643 fi 9644 ;; 9645 9646 mingw* | cygwin* | pw32* | os2* | cegcc*) 9647 # This hack is so that the source file can tell whether it is being 9648 # built for inclusion in a dll (and should export symbols for example). 9649 lt_prog_compiler_pic='-DDLL_EXPORT' 9650 ;; 9651 9652 hpux9* | hpux10* | hpux11*) 9653 lt_prog_compiler_wl='-Wl,' 9654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9655 # not for PA HP-UX. 9656 case $host_cpu in 9657 hppa*64*|ia64*) 9658 # +Z the default 9659 ;; 9660 *) 9661 lt_prog_compiler_pic='+Z' 9662 ;; 9663 esac 9664 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9665 lt_prog_compiler_static='${wl}-a ${wl}archive' 9666 ;; 9667 9668 irix5* | irix6* | nonstopux*) 9669 lt_prog_compiler_wl='-Wl,' 9670 # PIC (with -KPIC) is the default. 9671 lt_prog_compiler_static='-non_shared' 9672 ;; 9673 9674 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9675 case $cc_basename in 9676 # old Intel for x86_64 which still supported -KPIC. 9677 ecc*) 9678 lt_prog_compiler_wl='-Wl,' 9679 lt_prog_compiler_pic='-KPIC' 9680 lt_prog_compiler_static='-static' 9681 ;; 9682 # icc used to be incompatible with GCC. 9683 # ICC 10 doesn't accept -KPIC any more. 9684 icc* | ifort*) 9685 lt_prog_compiler_wl='-Wl,' 9686 lt_prog_compiler_pic='-fPIC' 9687 lt_prog_compiler_static='-static' 9688 ;; 9689 # Lahey Fortran 8.1. 9690 lf95*) 9691 lt_prog_compiler_wl='-Wl,' 9692 lt_prog_compiler_pic='--shared' 9693 lt_prog_compiler_static='--static' 9694 ;; 9695 nagfor*) 9696 # NAG Fortran compiler 9697 lt_prog_compiler_wl='-Wl,-Wl,,' 9698 lt_prog_compiler_pic='-PIC' 9699 lt_prog_compiler_static='-Bstatic' 9700 ;; 9701 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9702 # Portland Group compilers (*not* the Pentium gcc compiler, 9703 # which looks to be a dead project) 9704 lt_prog_compiler_wl='-Wl,' 9705 lt_prog_compiler_pic='-fpic' 9706 lt_prog_compiler_static='-Bstatic' 9707 ;; 9708 ccc*) 9709 lt_prog_compiler_wl='-Wl,' 9710 # All Alpha code is PIC. 9711 lt_prog_compiler_static='-non_shared' 9712 ;; 9713 xl* | bgxl* | bgf* | mpixl*) 9714 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9715 lt_prog_compiler_wl='-Wl,' 9716 lt_prog_compiler_pic='-qpic' 9717 lt_prog_compiler_static='-qstaticlink' 9718 ;; 9719 *) 9720 case `$CC -V 2>&1 | sed 5q` in 9721 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9722 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9723 lt_prog_compiler_pic='-KPIC' 9724 lt_prog_compiler_static='-Bstatic' 9725 lt_prog_compiler_wl='' 9726 ;; 9727 *Sun\ F* | *Sun*Fortran*) 9728 lt_prog_compiler_pic='-KPIC' 9729 lt_prog_compiler_static='-Bstatic' 9730 lt_prog_compiler_wl='-Qoption ld ' 9731 ;; 9732 *Sun\ C*) 9733 # Sun C 5.9 9734 lt_prog_compiler_pic='-KPIC' 9735 lt_prog_compiler_static='-Bstatic' 9736 lt_prog_compiler_wl='-Wl,' 9737 ;; 9738 *Intel*\ [CF]*Compiler*) 9739 lt_prog_compiler_wl='-Wl,' 9740 lt_prog_compiler_pic='-fPIC' 9741 lt_prog_compiler_static='-static' 9742 ;; 9743 *Portland\ Group*) 9744 lt_prog_compiler_wl='-Wl,' 9745 lt_prog_compiler_pic='-fpic' 9746 lt_prog_compiler_static='-Bstatic' 9747 ;; 9748 esac 9749 ;; 9750 esac 9751 ;; 9752 9753 newsos6) 9754 lt_prog_compiler_pic='-KPIC' 9755 lt_prog_compiler_static='-Bstatic' 9756 ;; 9757 9758 *nto* | *qnx*) 9759 # QNX uses GNU C++, but need to define -shared option too, otherwise 9760 # it will coredump. 9761 lt_prog_compiler_pic='-fPIC -shared' 9762 ;; 9763 9764 osf3* | osf4* | osf5*) 9765 lt_prog_compiler_wl='-Wl,' 9766 # All OSF/1 code is PIC. 9767 lt_prog_compiler_static='-non_shared' 9768 ;; 9769 9770 rdos*) 9771 lt_prog_compiler_static='-non_shared' 9772 ;; 9773 9774 solaris*) 9775 lt_prog_compiler_pic='-KPIC' 9776 lt_prog_compiler_static='-Bstatic' 9777 case $cc_basename in 9778 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9779 lt_prog_compiler_wl='-Qoption ld ';; 9780 *) 9781 lt_prog_compiler_wl='-Wl,';; 9782 esac 9783 ;; 9784 9785 sunos4*) 9786 lt_prog_compiler_wl='-Qoption ld ' 9787 lt_prog_compiler_pic='-PIC' 9788 lt_prog_compiler_static='-Bstatic' 9789 ;; 9790 9791 sysv4 | sysv4.2uw2* | sysv4.3*) 9792 lt_prog_compiler_wl='-Wl,' 9793 lt_prog_compiler_pic='-KPIC' 9794 lt_prog_compiler_static='-Bstatic' 9795 ;; 9796 9797 sysv4*MP*) 9798 if test -d /usr/nec ;then 9799 lt_prog_compiler_pic='-Kconform_pic' 9800 lt_prog_compiler_static='-Bstatic' 9801 fi 9802 ;; 9803 9804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9805 lt_prog_compiler_wl='-Wl,' 9806 lt_prog_compiler_pic='-KPIC' 9807 lt_prog_compiler_static='-Bstatic' 9808 ;; 9809 9810 unicos*) 9811 lt_prog_compiler_wl='-Wl,' 9812 lt_prog_compiler_can_build_shared=no 9813 ;; 9814 9815 uts4*) 9816 lt_prog_compiler_pic='-pic' 9817 lt_prog_compiler_static='-Bstatic' 9818 ;; 9819 9820 *) 9821 lt_prog_compiler_can_build_shared=no 9822 ;; 9823 esac 9824 fi 9825 9826case $host_os in 9827 # For platforms which do not support PIC, -DPIC is meaningless: 9828 *djgpp*) 9829 lt_prog_compiler_pic= 9830 ;; 9831 *) 9832 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9833 ;; 9834esac 9835 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9837$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9838if ${lt_cv_prog_compiler_pic+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840else 9841 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9842fi 9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9844$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9845lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9846 9847# 9848# Check to make sure the PIC flag actually works. 9849# 9850if test -n "$lt_prog_compiler_pic"; then 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9852$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9853if ${lt_cv_prog_compiler_pic_works+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 lt_cv_prog_compiler_pic_works=no 9857 ac_outfile=conftest.$ac_objext 9858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9860 # Insert the option either (1) after the last *FLAGS variable, or 9861 # (2) before a word containing "conftest.", or (3) at the end. 9862 # Note that $ac_compile itself does not contain backslashes and begins 9863 # with a dollar sign (not a hyphen), so the echo should work correctly. 9864 # The option is referenced via a variable to avoid confusing sed. 9865 lt_compile=`echo "$ac_compile" | $SED \ 9866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9868 -e 's:$: $lt_compiler_flag:'` 9869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9870 (eval "$lt_compile" 2>conftest.err) 9871 ac_status=$? 9872 cat conftest.err >&5 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 if (exit $ac_status) && test -s "$ac_outfile"; then 9875 # The compiler can only warn and ignore the option if not recognized 9876 # So say no if there are warnings other than the usual output. 9877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9880 lt_cv_prog_compiler_pic_works=yes 9881 fi 9882 fi 9883 $RM conftest* 9884 9885fi 9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9887$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9888 9889if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9890 case $lt_prog_compiler_pic in 9891 "" | " "*) ;; 9892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9893 esac 9894else 9895 lt_prog_compiler_pic= 9896 lt_prog_compiler_can_build_shared=no 9897fi 9898 9899fi 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911# 9912# Check to make sure the static flag actually works. 9913# 9914wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9916$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9917if ${lt_cv_prog_compiler_static_works+:} false; then : 9918 $as_echo_n "(cached) " >&6 9919else 9920 lt_cv_prog_compiler_static_works=no 9921 save_LDFLAGS="$LDFLAGS" 9922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9923 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9925 # The linker can only warn and ignore the option if not recognized 9926 # So say no if there are warnings 9927 if test -s conftest.err; then 9928 # Append any errors to the config.log. 9929 cat conftest.err 1>&5 9930 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9932 if diff conftest.exp conftest.er2 >/dev/null; then 9933 lt_cv_prog_compiler_static_works=yes 9934 fi 9935 else 9936 lt_cv_prog_compiler_static_works=yes 9937 fi 9938 fi 9939 $RM -r conftest* 9940 LDFLAGS="$save_LDFLAGS" 9941 9942fi 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9944$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9945 9946if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9947 : 9948else 9949 lt_prog_compiler_static= 9950fi 9951 9952 9953 9954 9955 9956 9957 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9959$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9960if ${lt_cv_prog_compiler_c_o+:} false; then : 9961 $as_echo_n "(cached) " >&6 9962else 9963 lt_cv_prog_compiler_c_o=no 9964 $RM -r conftest 2>/dev/null 9965 mkdir conftest 9966 cd conftest 9967 mkdir out 9968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9969 9970 lt_compiler_flag="-o out/conftest2.$ac_objext" 9971 # Insert the option either (1) after the last *FLAGS variable, or 9972 # (2) before a word containing "conftest.", or (3) at the end. 9973 # Note that $ac_compile itself does not contain backslashes and begins 9974 # with a dollar sign (not a hyphen), so the echo should work correctly. 9975 lt_compile=`echo "$ac_compile" | $SED \ 9976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9978 -e 's:$: $lt_compiler_flag:'` 9979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9980 (eval "$lt_compile" 2>out/conftest.err) 9981 ac_status=$? 9982 cat out/conftest.err >&5 9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9985 then 9986 # The compiler can only warn and ignore the option if not recognized 9987 # So say no if there are warnings 9988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9991 lt_cv_prog_compiler_c_o=yes 9992 fi 9993 fi 9994 chmod u+w . 2>&5 9995 $RM conftest* 9996 # SGI C++ compiler will create directory out/ii_files/ for 9997 # template instantiation 9998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9999 $RM out/* && rmdir out 10000 cd .. 10001 $RM -r conftest 10002 $RM conftest* 10003 10004fi 10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10006$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10007 10008 10009 10010 10011 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10014$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10015if ${lt_cv_prog_compiler_c_o+:} false; then : 10016 $as_echo_n "(cached) " >&6 10017else 10018 lt_cv_prog_compiler_c_o=no 10019 $RM -r conftest 2>/dev/null 10020 mkdir conftest 10021 cd conftest 10022 mkdir out 10023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10024 10025 lt_compiler_flag="-o out/conftest2.$ac_objext" 10026 # Insert the option either (1) after the last *FLAGS variable, or 10027 # (2) before a word containing "conftest.", or (3) at the end. 10028 # Note that $ac_compile itself does not contain backslashes and begins 10029 # with a dollar sign (not a hyphen), so the echo should work correctly. 10030 lt_compile=`echo "$ac_compile" | $SED \ 10031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10033 -e 's:$: $lt_compiler_flag:'` 10034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10035 (eval "$lt_compile" 2>out/conftest.err) 10036 ac_status=$? 10037 cat out/conftest.err >&5 10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10039 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10040 then 10041 # The compiler can only warn and ignore the option if not recognized 10042 # So say no if there are warnings 10043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10046 lt_cv_prog_compiler_c_o=yes 10047 fi 10048 fi 10049 chmod u+w . 2>&5 10050 $RM conftest* 10051 # SGI C++ compiler will create directory out/ii_files/ for 10052 # template instantiation 10053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10054 $RM out/* && rmdir out 10055 cd .. 10056 $RM -r conftest 10057 $RM conftest* 10058 10059fi 10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10061$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10062 10063 10064 10065 10066hard_links="nottested" 10067if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10068 # do not overwrite the value of need_locks provided by the user 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10070$as_echo_n "checking if we can lock with hard links... " >&6; } 10071 hard_links=yes 10072 $RM conftest* 10073 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10074 touch conftest.a 10075 ln conftest.a conftest.b 2>&5 || hard_links=no 10076 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10078$as_echo "$hard_links" >&6; } 10079 if test "$hard_links" = no; then 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10081$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10082 need_locks=warn 10083 fi 10084else 10085 need_locks=no 10086fi 10087 10088 10089 10090 10091 10092 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10094$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10095 10096 runpath_var= 10097 allow_undefined_flag= 10098 always_export_symbols=no 10099 archive_cmds= 10100 archive_expsym_cmds= 10101 compiler_needs_object=no 10102 enable_shared_with_static_runtimes=no 10103 export_dynamic_flag_spec= 10104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10105 hardcode_automatic=no 10106 hardcode_direct=no 10107 hardcode_direct_absolute=no 10108 hardcode_libdir_flag_spec= 10109 hardcode_libdir_separator= 10110 hardcode_minus_L=no 10111 hardcode_shlibpath_var=unsupported 10112 inherit_rpath=no 10113 link_all_deplibs=unknown 10114 module_cmds= 10115 module_expsym_cmds= 10116 old_archive_from_new_cmds= 10117 old_archive_from_expsyms_cmds= 10118 thread_safe_flag_spec= 10119 whole_archive_flag_spec= 10120 # include_expsyms should be a list of space-separated symbols to be *always* 10121 # included in the symbol list 10122 include_expsyms= 10123 # exclude_expsyms can be an extended regexp of symbols to exclude 10124 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10126 # as well as any symbol that contains `d'. 10127 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10129 # platforms (ab)use it in PIC code, but their linkers get confused if 10130 # the symbol is explicitly referenced. Since portable code cannot 10131 # rely on this symbol name, it's probably fine to never include it in 10132 # preloaded symbol tables. 10133 # Exclude shared library initialization/finalization symbols. 10134 extract_expsyms_cmds= 10135 10136 case $host_os in 10137 cygwin* | mingw* | pw32* | cegcc*) 10138 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10139 # When not using gcc, we currently assume that we are using 10140 # Microsoft Visual C++. 10141 if test "$GCC" != yes; then 10142 with_gnu_ld=no 10143 fi 10144 ;; 10145 interix*) 10146 # we just hope/assume this is gcc and not c89 (= MSVC++) 10147 with_gnu_ld=yes 10148 ;; 10149 openbsd*) 10150 with_gnu_ld=no 10151 ;; 10152 esac 10153 10154 ld_shlibs=yes 10155 10156 # On some targets, GNU ld is compatible enough with the native linker 10157 # that we're better off using the native interface for both. 10158 lt_use_gnu_ld_interface=no 10159 if test "$with_gnu_ld" = yes; then 10160 case $host_os in 10161 aix*) 10162 # The AIX port of GNU ld has always aspired to compatibility 10163 # with the native linker. However, as the warning in the GNU ld 10164 # block says, versions before 2.19.5* couldn't really create working 10165 # shared libraries, regardless of the interface used. 10166 case `$LD -v 2>&1` in 10167 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10168 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10169 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10170 *) 10171 lt_use_gnu_ld_interface=yes 10172 ;; 10173 esac 10174 ;; 10175 *) 10176 lt_use_gnu_ld_interface=yes 10177 ;; 10178 esac 10179 fi 10180 10181 if test "$lt_use_gnu_ld_interface" = yes; then 10182 # If archive_cmds runs LD, not CC, wlarc should be empty 10183 wlarc='${wl}' 10184 10185 # Set some defaults for GNU ld with shared library support. These 10186 # are reset later if shared libraries are not supported. Putting them 10187 # here allows them to be overridden if necessary. 10188 runpath_var=LD_RUN_PATH 10189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10190 export_dynamic_flag_spec='${wl}--export-dynamic' 10191 # ancient GNU ld didn't support --whole-archive et. al. 10192 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10193 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10194 else 10195 whole_archive_flag_spec= 10196 fi 10197 supports_anon_versioning=no 10198 case `$LD -v 2>&1` in 10199 *GNU\ gold*) supports_anon_versioning=yes ;; 10200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10203 *\ 2.11.*) ;; # other 2.11 versions 10204 *) supports_anon_versioning=yes ;; 10205 esac 10206 10207 # See if GNU ld supports shared libraries. 10208 case $host_os in 10209 aix[3-9]*) 10210 # On AIX/PPC, the GNU linker is very broken 10211 if test "$host_cpu" != ia64; then 10212 ld_shlibs=no 10213 cat <<_LT_EOF 1>&2 10214 10215*** Warning: the GNU linker, at least up to release 2.19, is reported 10216*** to be unable to reliably create shared libraries on AIX. 10217*** Therefore, libtool is disabling shared libraries support. If you 10218*** really care for shared libraries, you may want to install binutils 10219*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10220*** You will then need to restart the configuration process. 10221 10222_LT_EOF 10223 fi 10224 ;; 10225 10226 amigaos*) 10227 case $host_cpu in 10228 powerpc) 10229 # see comment about AmigaOS4 .so support 10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10231 archive_expsym_cmds='' 10232 ;; 10233 m68k) 10234 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)' 10235 hardcode_libdir_flag_spec='-L$libdir' 10236 hardcode_minus_L=yes 10237 ;; 10238 esac 10239 ;; 10240 10241 beos*) 10242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10243 allow_undefined_flag=unsupported 10244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10245 # support --undefined. This deserves some investigation. FIXME 10246 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10247 else 10248 ld_shlibs=no 10249 fi 10250 ;; 10251 10252 cygwin* | mingw* | pw32* | cegcc*) 10253 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10254 # as there is no search path for DLLs. 10255 hardcode_libdir_flag_spec='-L$libdir' 10256 export_dynamic_flag_spec='${wl}--export-all-symbols' 10257 allow_undefined_flag=unsupported 10258 always_export_symbols=no 10259 enable_shared_with_static_runtimes=yes 10260 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' 10261 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10262 10263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10265 # If the export-symbols file already is a .def file (1st line 10266 # is EXPORTS), use it as is; otherwise, prepend... 10267 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10268 cp $export_symbols $output_objdir/$soname.def; 10269 else 10270 echo EXPORTS > $output_objdir/$soname.def; 10271 cat $export_symbols >> $output_objdir/$soname.def; 10272 fi~ 10273 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10274 else 10275 ld_shlibs=no 10276 fi 10277 ;; 10278 10279 haiku*) 10280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10281 link_all_deplibs=yes 10282 ;; 10283 10284 interix[3-9]*) 10285 hardcode_direct=no 10286 hardcode_shlibpath_var=no 10287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10288 export_dynamic_flag_spec='${wl}-E' 10289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10290 # Instead, shared libraries are loaded at an image base (0x10000000 by 10291 # default) and relocated if they conflict, which is a slow very memory 10292 # consuming and fragmenting process. To avoid this, we pick a random, 10293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10294 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10296 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' 10297 ;; 10298 10299 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10300 tmp_diet=no 10301 if test "$host_os" = linux-dietlibc; then 10302 case $cc_basename in 10303 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10304 esac 10305 fi 10306 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10307 && test "$tmp_diet" = no 10308 then 10309 tmp_addflag=' $pic_flag' 10310 tmp_sharedflag='-shared' 10311 case $cc_basename,$host_cpu in 10312 pgcc*) # Portland Group C compiler 10313 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' 10314 tmp_addflag=' $pic_flag' 10315 ;; 10316 pgf77* | pgf90* | pgf95* | pgfortran*) 10317 # Portland Group f77 and f90 compilers 10318 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' 10319 tmp_addflag=' $pic_flag -Mnomain' ;; 10320 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10321 tmp_addflag=' -i_dynamic' ;; 10322 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10323 tmp_addflag=' -i_dynamic -nofor_main' ;; 10324 ifc* | ifort*) # Intel Fortran compiler 10325 tmp_addflag=' -nofor_main' ;; 10326 lf95*) # Lahey Fortran 8.1 10327 whole_archive_flag_spec= 10328 tmp_sharedflag='--shared' ;; 10329 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10330 tmp_sharedflag='-qmkshrobj' 10331 tmp_addflag= ;; 10332 nvcc*) # Cuda Compiler Driver 2.2 10333 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' 10334 compiler_needs_object=yes 10335 ;; 10336 esac 10337 case `$CC -V 2>&1 | sed 5q` in 10338 *Sun\ C*) # Sun C 5.9 10339 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' 10340 compiler_needs_object=yes 10341 tmp_sharedflag='-G' ;; 10342 *Sun\ F*) # Sun Fortran 8.3 10343 tmp_sharedflag='-G' ;; 10344 esac 10345 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10346 10347 if test "x$supports_anon_versioning" = xyes; then 10348 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10350 echo "local: *; };" >> $output_objdir/$libname.ver~ 10351 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10352 fi 10353 10354 case $cc_basename in 10355 xlf* | bgf* | bgxlf* | mpixlf*) 10356 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10357 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10359 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10360 if test "x$supports_anon_versioning" = xyes; then 10361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10363 echo "local: *; };" >> $output_objdir/$libname.ver~ 10364 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10365 fi 10366 ;; 10367 esac 10368 else 10369 ld_shlibs=no 10370 fi 10371 ;; 10372 10373 netbsd*) 10374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10375 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10376 wlarc= 10377 else 10378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10379 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10380 fi 10381 ;; 10382 10383 solaris*) 10384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10385 ld_shlibs=no 10386 cat <<_LT_EOF 1>&2 10387 10388*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10389*** create shared libraries on Solaris systems. Therefore, libtool 10390*** is disabling shared libraries support. We urge you to upgrade GNU 10391*** binutils to release 2.9.1 or newer. Another option is to modify 10392*** your PATH or compiler configuration so that the native linker is 10393*** used, and then restart. 10394 10395_LT_EOF 10396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10399 else 10400 ld_shlibs=no 10401 fi 10402 ;; 10403 10404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10405 case `$LD -v 2>&1` in 10406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10407 ld_shlibs=no 10408 cat <<_LT_EOF 1>&2 10409 10410*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10411*** reliably create shared libraries on SCO systems. Therefore, libtool 10412*** is disabling shared libraries support. We urge you to upgrade GNU 10413*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10414*** your PATH or compiler configuration so that the native linker is 10415*** used, and then restart. 10416 10417_LT_EOF 10418 ;; 10419 *) 10420 # For security reasons, it is highly recommended that you always 10421 # use absolute paths for naming shared libraries, and exclude the 10422 # DT_RUNPATH tag from executables and libraries. But doing so 10423 # requires that you compile everything twice, which is a pain. 10424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10428 else 10429 ld_shlibs=no 10430 fi 10431 ;; 10432 esac 10433 ;; 10434 10435 sunos4*) 10436 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10437 wlarc= 10438 hardcode_direct=yes 10439 hardcode_shlibpath_var=no 10440 ;; 10441 10442 *) 10443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10445 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10446 else 10447 ld_shlibs=no 10448 fi 10449 ;; 10450 esac 10451 10452 if test "$ld_shlibs" = no; then 10453 runpath_var= 10454 hardcode_libdir_flag_spec= 10455 export_dynamic_flag_spec= 10456 whole_archive_flag_spec= 10457 fi 10458 else 10459 # PORTME fill in a description of your system's linker (not GNU ld) 10460 case $host_os in 10461 aix3*) 10462 allow_undefined_flag=unsupported 10463 always_export_symbols=yes 10464 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' 10465 # Note: this linker hardcodes the directories in LIBPATH if there 10466 # are no directories specified by -L. 10467 hardcode_minus_L=yes 10468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10469 # Neither direct hardcoding nor static linking is supported with a 10470 # broken collect2. 10471 hardcode_direct=unsupported 10472 fi 10473 ;; 10474 10475 aix[4-9]*) 10476 if test "$host_cpu" = ia64; then 10477 # On IA64, the linker does run time linking by default, so we don't 10478 # have to do anything special. 10479 aix_use_runtimelinking=no 10480 exp_sym_flag='-Bexport' 10481 no_entry_flag="" 10482 else 10483 # If we're using GNU nm, then we don't want the "-C" option. 10484 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10485 # Also, AIX nm treats weak defined symbols like other global 10486 # defined symbols, whereas GNU nm marks them as "W". 10487 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10488 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' 10489 else 10490 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' 10491 fi 10492 aix_use_runtimelinking=no 10493 10494 # Test if we are trying to use run time linking or normal 10495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10496 # need to do runtime linking. 10497 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10498 for ld_flag in $LDFLAGS; do 10499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10500 aix_use_runtimelinking=yes 10501 break 10502 fi 10503 done 10504 ;; 10505 esac 10506 10507 exp_sym_flag='-bexport' 10508 no_entry_flag='-bnoentry' 10509 fi 10510 10511 # When large executables or shared objects are built, AIX ld can 10512 # have problems creating the table of contents. If linking a library 10513 # or program results in "error TOC overflow" add -mminimal-toc to 10514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10516 10517 archive_cmds='' 10518 hardcode_direct=yes 10519 hardcode_direct_absolute=yes 10520 hardcode_libdir_separator=':' 10521 link_all_deplibs=yes 10522 file_list_spec='${wl}-f,' 10523 10524 if test "$GCC" = yes; then 10525 case $host_os in aix4.[012]|aix4.[012].*) 10526 # We only want to do this on AIX 4.2 and lower, the check 10527 # below for broken collect2 doesn't work under 4.3+ 10528 collect2name=`${CC} -print-prog-name=collect2` 10529 if test -f "$collect2name" && 10530 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10531 then 10532 # We have reworked collect2 10533 : 10534 else 10535 # We have old collect2 10536 hardcode_direct=unsupported 10537 # It fails to find uninstalled libraries when the uninstalled 10538 # path is not listed in the libpath. Setting hardcode_minus_L 10539 # to unsupported forces relinking 10540 hardcode_minus_L=yes 10541 hardcode_libdir_flag_spec='-L$libdir' 10542 hardcode_libdir_separator= 10543 fi 10544 ;; 10545 esac 10546 shared_flag='-shared' 10547 if test "$aix_use_runtimelinking" = yes; then 10548 shared_flag="$shared_flag "'${wl}-G' 10549 fi 10550 else 10551 # not using gcc 10552 if test "$host_cpu" = ia64; then 10553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10554 # chokes on -Wl,-G. The following line is correct: 10555 shared_flag='-G' 10556 else 10557 if test "$aix_use_runtimelinking" = yes; then 10558 shared_flag='${wl}-G' 10559 else 10560 shared_flag='${wl}-bM:SRE' 10561 fi 10562 fi 10563 fi 10564 10565 export_dynamic_flag_spec='${wl}-bexpall' 10566 # It seems that -bexpall does not export symbols beginning with 10567 # underscore (_), so it is better to generate a list of symbols to export. 10568 always_export_symbols=yes 10569 if test "$aix_use_runtimelinking" = yes; then 10570 # Warning - without using the other runtime loading flags (-brtl), 10571 # -berok will link without error, but may produce a broken library. 10572 allow_undefined_flag='-berok' 10573 # Determine the default libpath from the value encoded in an 10574 # empty executable. 10575 if test "${lt_cv_aix_libpath+set}" = set; then 10576 aix_libpath=$lt_cv_aix_libpath 10577else 10578 if ${lt_cv_aix_libpath_+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580else 10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10582/* end confdefs.h. */ 10583 10584int 10585main () 10586{ 10587 10588 ; 10589 return 0; 10590} 10591_ACEOF 10592if ac_fn_c_try_link "$LINENO"; then : 10593 10594 lt_aix_libpath_sed=' 10595 /Import File Strings/,/^$/ { 10596 /^0/ { 10597 s/^0 *\([^ ]*\) *$/\1/ 10598 p 10599 } 10600 }' 10601 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10602 # Check for a 64-bit object if we didn't find anything. 10603 if test -z "$lt_cv_aix_libpath_"; then 10604 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10605 fi 10606fi 10607rm -f core conftest.err conftest.$ac_objext \ 10608 conftest$ac_exeext conftest.$ac_ext 10609 if test -z "$lt_cv_aix_libpath_"; then 10610 lt_cv_aix_libpath_="/usr/lib:/lib" 10611 fi 10612 10613fi 10614 10615 aix_libpath=$lt_cv_aix_libpath_ 10616fi 10617 10618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10619 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" 10620 else 10621 if test "$host_cpu" = ia64; then 10622 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10623 allow_undefined_flag="-z nodefs" 10624 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" 10625 else 10626 # Determine the default libpath from the value encoded in an 10627 # empty executable. 10628 if test "${lt_cv_aix_libpath+set}" = set; then 10629 aix_libpath=$lt_cv_aix_libpath 10630else 10631 if ${lt_cv_aix_libpath_+:} false; then : 10632 $as_echo_n "(cached) " >&6 10633else 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636 10637int 10638main () 10639{ 10640 10641 ; 10642 return 0; 10643} 10644_ACEOF 10645if ac_fn_c_try_link "$LINENO"; then : 10646 10647 lt_aix_libpath_sed=' 10648 /Import File Strings/,/^$/ { 10649 /^0/ { 10650 s/^0 *\([^ ]*\) *$/\1/ 10651 p 10652 } 10653 }' 10654 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10655 # Check for a 64-bit object if we didn't find anything. 10656 if test -z "$lt_cv_aix_libpath_"; then 10657 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10658 fi 10659fi 10660rm -f core conftest.err conftest.$ac_objext \ 10661 conftest$ac_exeext conftest.$ac_ext 10662 if test -z "$lt_cv_aix_libpath_"; then 10663 lt_cv_aix_libpath_="/usr/lib:/lib" 10664 fi 10665 10666fi 10667 10668 aix_libpath=$lt_cv_aix_libpath_ 10669fi 10670 10671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10672 # Warning - without using the other run time loading flags, 10673 # -berok will link without error, but may produce a broken library. 10674 no_undefined_flag=' ${wl}-bernotok' 10675 allow_undefined_flag=' ${wl}-berok' 10676 if test "$with_gnu_ld" = yes; then 10677 # We only use this code for GNU lds that support --whole-archive. 10678 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10679 else 10680 # Exported symbols can be pulled into shared objects from archives 10681 whole_archive_flag_spec='$convenience' 10682 fi 10683 archive_cmds_need_lc=yes 10684 # This is similar to how AIX traditionally builds its shared libraries. 10685 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' 10686 fi 10687 fi 10688 ;; 10689 10690 amigaos*) 10691 case $host_cpu in 10692 powerpc) 10693 # see comment about AmigaOS4 .so support 10694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10695 archive_expsym_cmds='' 10696 ;; 10697 m68k) 10698 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)' 10699 hardcode_libdir_flag_spec='-L$libdir' 10700 hardcode_minus_L=yes 10701 ;; 10702 esac 10703 ;; 10704 10705 bsdi[45]*) 10706 export_dynamic_flag_spec=-rdynamic 10707 ;; 10708 10709 cygwin* | mingw* | pw32* | cegcc*) 10710 # When not using gcc, we currently assume that we are using 10711 # Microsoft Visual C++. 10712 # hardcode_libdir_flag_spec is actually meaningless, as there is 10713 # no search path for DLLs. 10714 case $cc_basename in 10715 cl*) 10716 # Native MSVC 10717 hardcode_libdir_flag_spec=' ' 10718 allow_undefined_flag=unsupported 10719 always_export_symbols=yes 10720 file_list_spec='@' 10721 # Tell ltmain to make .lib files, not .a files. 10722 libext=lib 10723 # Tell ltmain to make .dll files, not .so files. 10724 shrext_cmds=".dll" 10725 # FIXME: Setting linknames here is a bad hack. 10726 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10727 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10728 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10729 else 10730 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10731 fi~ 10732 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10733 linknames=' 10734 # The linker will not automatically build a static lib if we build a DLL. 10735 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10736 enable_shared_with_static_runtimes=yes 10737 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10739 # Don't use ranlib 10740 old_postinstall_cmds='chmod 644 $oldlib' 10741 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10742 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10743 case $lt_outputfile in 10744 *.exe|*.EXE) ;; 10745 *) 10746 lt_outputfile="$lt_outputfile.exe" 10747 lt_tool_outputfile="$lt_tool_outputfile.exe" 10748 ;; 10749 esac~ 10750 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10751 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10752 $RM "$lt_outputfile.manifest"; 10753 fi' 10754 ;; 10755 *) 10756 # Assume MSVC wrapper 10757 hardcode_libdir_flag_spec=' ' 10758 allow_undefined_flag=unsupported 10759 # Tell ltmain to make .lib files, not .a files. 10760 libext=lib 10761 # Tell ltmain to make .dll files, not .so files. 10762 shrext_cmds=".dll" 10763 # FIXME: Setting linknames here is a bad hack. 10764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10765 # The linker will automatically build a .lib file if we build a DLL. 10766 old_archive_from_new_cmds='true' 10767 # FIXME: Should let the user specify the lib program. 10768 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10769 enable_shared_with_static_runtimes=yes 10770 ;; 10771 esac 10772 ;; 10773 10774 darwin* | rhapsody*) 10775 10776 10777 archive_cmds_need_lc=no 10778 hardcode_direct=no 10779 hardcode_automatic=yes 10780 hardcode_shlibpath_var=unsupported 10781 if test "$lt_cv_ld_force_load" = "yes"; then 10782 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\"`' 10783 10784 else 10785 whole_archive_flag_spec='' 10786 fi 10787 link_all_deplibs=yes 10788 allow_undefined_flag="$_lt_dar_allow_undefined" 10789 case $cc_basename in 10790 ifort*) _lt_dar_can_shared=yes ;; 10791 *) _lt_dar_can_shared=$GCC ;; 10792 esac 10793 if test "$_lt_dar_can_shared" = "yes"; then 10794 output_verbose_link_cmd=func_echo_all 10795 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10796 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10797 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}" 10798 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}" 10799 10800 else 10801 ld_shlibs=no 10802 fi 10803 10804 ;; 10805 10806 dgux*) 10807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10808 hardcode_libdir_flag_spec='-L$libdir' 10809 hardcode_shlibpath_var=no 10810 ;; 10811 10812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10813 # support. Future versions do this automatically, but an explicit c++rt0.o 10814 # does not break anything, and helps significantly (at the cost of a little 10815 # extra space). 10816 freebsd2.2*) 10817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10818 hardcode_libdir_flag_spec='-R$libdir' 10819 hardcode_direct=yes 10820 hardcode_shlibpath_var=no 10821 ;; 10822 10823 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10824 freebsd2.*) 10825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10826 hardcode_direct=yes 10827 hardcode_minus_L=yes 10828 hardcode_shlibpath_var=no 10829 ;; 10830 10831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10832 freebsd* | dragonfly*) 10833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10834 hardcode_libdir_flag_spec='-R$libdir' 10835 hardcode_direct=yes 10836 hardcode_shlibpath_var=no 10837 ;; 10838 10839 hpux9*) 10840 if test "$GCC" = yes; then 10841 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' 10842 else 10843 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' 10844 fi 10845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10846 hardcode_libdir_separator=: 10847 hardcode_direct=yes 10848 10849 # hardcode_minus_L: Not really in the search PATH, 10850 # but as the default location of the library. 10851 hardcode_minus_L=yes 10852 export_dynamic_flag_spec='${wl}-E' 10853 ;; 10854 10855 hpux10*) 10856 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10857 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10858 else 10859 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10860 fi 10861 if test "$with_gnu_ld" = no; then 10862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10863 hardcode_libdir_separator=: 10864 hardcode_direct=yes 10865 hardcode_direct_absolute=yes 10866 export_dynamic_flag_spec='${wl}-E' 10867 # hardcode_minus_L: Not really in the search PATH, 10868 # but as the default location of the library. 10869 hardcode_minus_L=yes 10870 fi 10871 ;; 10872 10873 hpux11*) 10874 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10875 case $host_cpu in 10876 hppa*64*) 10877 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10878 ;; 10879 ia64*) 10880 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10881 ;; 10882 *) 10883 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10884 ;; 10885 esac 10886 else 10887 case $host_cpu in 10888 hppa*64*) 10889 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10890 ;; 10891 ia64*) 10892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10893 ;; 10894 *) 10895 10896 # Older versions of the 11.00 compiler do not understand -b yet 10897 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10899$as_echo_n "checking if $CC understands -b... " >&6; } 10900if ${lt_cv_prog_compiler__b+:} false; then : 10901 $as_echo_n "(cached) " >&6 10902else 10903 lt_cv_prog_compiler__b=no 10904 save_LDFLAGS="$LDFLAGS" 10905 LDFLAGS="$LDFLAGS -b" 10906 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10908 # The linker can only warn and ignore the option if not recognized 10909 # So say no if there are warnings 10910 if test -s conftest.err; then 10911 # Append any errors to the config.log. 10912 cat conftest.err 1>&5 10913 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10915 if diff conftest.exp conftest.er2 >/dev/null; then 10916 lt_cv_prog_compiler__b=yes 10917 fi 10918 else 10919 lt_cv_prog_compiler__b=yes 10920 fi 10921 fi 10922 $RM -r conftest* 10923 LDFLAGS="$save_LDFLAGS" 10924 10925fi 10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10927$as_echo "$lt_cv_prog_compiler__b" >&6; } 10928 10929if test x"$lt_cv_prog_compiler__b" = xyes; then 10930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10931else 10932 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10933fi 10934 10935 ;; 10936 esac 10937 fi 10938 if test "$with_gnu_ld" = no; then 10939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10940 hardcode_libdir_separator=: 10941 10942 case $host_cpu in 10943 hppa*64*|ia64*) 10944 hardcode_direct=no 10945 hardcode_shlibpath_var=no 10946 ;; 10947 *) 10948 hardcode_direct=yes 10949 hardcode_direct_absolute=yes 10950 export_dynamic_flag_spec='${wl}-E' 10951 10952 # hardcode_minus_L: Not really in the search PATH, 10953 # but as the default location of the library. 10954 hardcode_minus_L=yes 10955 ;; 10956 esac 10957 fi 10958 ;; 10959 10960 irix5* | irix6* | nonstopux*) 10961 if test "$GCC" = yes; then 10962 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' 10963 # Try to use the -exported_symbol ld option, if it does not 10964 # work, assume that -exports_file does not work either and 10965 # implicitly export all symbols. 10966 # This should be the same for all languages, so no per-tag cache variable. 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10968$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10969if ${lt_cv_irix_exported_symbol+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971else 10972 save_LDFLAGS="$LDFLAGS" 10973 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975/* end confdefs.h. */ 10976int foo (void) { return 0; } 10977_ACEOF 10978if ac_fn_c_try_link "$LINENO"; then : 10979 lt_cv_irix_exported_symbol=yes 10980else 10981 lt_cv_irix_exported_symbol=no 10982fi 10983rm -f core conftest.err conftest.$ac_objext \ 10984 conftest$ac_exeext conftest.$ac_ext 10985 LDFLAGS="$save_LDFLAGS" 10986fi 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10988$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10989 if test "$lt_cv_irix_exported_symbol" = yes; then 10990 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' 10991 fi 10992 else 10993 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' 10994 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' 10995 fi 10996 archive_cmds_need_lc='no' 10997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10998 hardcode_libdir_separator=: 10999 inherit_rpath=yes 11000 link_all_deplibs=yes 11001 ;; 11002 11003 netbsd*) 11004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11006 else 11007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11008 fi 11009 hardcode_libdir_flag_spec='-R$libdir' 11010 hardcode_direct=yes 11011 hardcode_shlibpath_var=no 11012 ;; 11013 11014 newsos6) 11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11016 hardcode_direct=yes 11017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11018 hardcode_libdir_separator=: 11019 hardcode_shlibpath_var=no 11020 ;; 11021 11022 *nto* | *qnx*) 11023 ;; 11024 11025 openbsd*) 11026 if test -f /usr/libexec/ld.so; then 11027 hardcode_direct=yes 11028 hardcode_shlibpath_var=no 11029 hardcode_direct_absolute=yes 11030 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11032 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11034 export_dynamic_flag_spec='${wl}-E' 11035 else 11036 case $host_os in 11037 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11039 hardcode_libdir_flag_spec='-R$libdir' 11040 ;; 11041 *) 11042 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11044 ;; 11045 esac 11046 fi 11047 else 11048 ld_shlibs=no 11049 fi 11050 ;; 11051 11052 os2*) 11053 hardcode_libdir_flag_spec='-L$libdir' 11054 hardcode_minus_L=yes 11055 allow_undefined_flag=unsupported 11056 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' 11057 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11058 ;; 11059 11060 osf3*) 11061 if test "$GCC" = yes; then 11062 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11063 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' 11064 else 11065 allow_undefined_flag=' -expect_unresolved \*' 11066 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' 11067 fi 11068 archive_cmds_need_lc='no' 11069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11070 hardcode_libdir_separator=: 11071 ;; 11072 11073 osf4* | osf5*) # as osf3* with the addition of -msym flag 11074 if test "$GCC" = yes; then 11075 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11076 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' 11077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11078 else 11079 allow_undefined_flag=' -expect_unresolved \*' 11080 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' 11081 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~ 11082 $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' 11083 11084 # Both c and cxx compiler support -rpath directly 11085 hardcode_libdir_flag_spec='-rpath $libdir' 11086 fi 11087 archive_cmds_need_lc='no' 11088 hardcode_libdir_separator=: 11089 ;; 11090 11091 solaris*) 11092 no_undefined_flag=' -z defs' 11093 if test "$GCC" = yes; then 11094 wlarc='${wl}' 11095 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11097 $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' 11098 else 11099 case `$CC -V 2>&1` in 11100 *"Compilers 5.0"*) 11101 wlarc='' 11102 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11104 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11105 ;; 11106 *) 11107 wlarc='${wl}' 11108 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11110 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11111 ;; 11112 esac 11113 fi 11114 hardcode_libdir_flag_spec='-R$libdir' 11115 hardcode_shlibpath_var=no 11116 case $host_os in 11117 solaris2.[0-5] | solaris2.[0-5].*) ;; 11118 *) 11119 # The compiler driver will combine and reorder linker options, 11120 # but understands `-z linker_flag'. GCC discards it without `$wl', 11121 # but is careful enough not to reorder. 11122 # Supported since Solaris 2.6 (maybe 2.5.1?) 11123 if test "$GCC" = yes; then 11124 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11125 else 11126 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11127 fi 11128 ;; 11129 esac 11130 link_all_deplibs=yes 11131 ;; 11132 11133 sunos4*) 11134 if test "x$host_vendor" = xsequent; then 11135 # Use $CC to link under sequent, because it throws in some extra .o 11136 # files that make .init and .fini sections work. 11137 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11138 else 11139 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11140 fi 11141 hardcode_libdir_flag_spec='-L$libdir' 11142 hardcode_direct=yes 11143 hardcode_minus_L=yes 11144 hardcode_shlibpath_var=no 11145 ;; 11146 11147 sysv4) 11148 case $host_vendor in 11149 sni) 11150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11151 hardcode_direct=yes # is this really true??? 11152 ;; 11153 siemens) 11154 ## LD is ld it makes a PLAMLIB 11155 ## CC just makes a GrossModule. 11156 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11157 reload_cmds='$CC -r -o $output$reload_objs' 11158 hardcode_direct=no 11159 ;; 11160 motorola) 11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11162 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11163 ;; 11164 esac 11165 runpath_var='LD_RUN_PATH' 11166 hardcode_shlibpath_var=no 11167 ;; 11168 11169 sysv4.3*) 11170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11171 hardcode_shlibpath_var=no 11172 export_dynamic_flag_spec='-Bexport' 11173 ;; 11174 11175 sysv4*MP*) 11176 if test -d /usr/nec; then 11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11178 hardcode_shlibpath_var=no 11179 runpath_var=LD_RUN_PATH 11180 hardcode_runpath_var=yes 11181 ld_shlibs=yes 11182 fi 11183 ;; 11184 11185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11186 no_undefined_flag='${wl}-z,text' 11187 archive_cmds_need_lc=no 11188 hardcode_shlibpath_var=no 11189 runpath_var='LD_RUN_PATH' 11190 11191 if test "$GCC" = yes; then 11192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11194 else 11195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11197 fi 11198 ;; 11199 11200 sysv5* | sco3.2v5* | sco5v6*) 11201 # Note: We can NOT use -z defs as we might desire, because we do not 11202 # link with -lc, and that would cause any symbols used from libc to 11203 # always be unresolved, which means just about no library would 11204 # ever link correctly. If we're not using GNU ld we use -z text 11205 # though, which does catch some bad symbols but isn't as heavy-handed 11206 # as -z defs. 11207 no_undefined_flag='${wl}-z,text' 11208 allow_undefined_flag='${wl}-z,nodefs' 11209 archive_cmds_need_lc=no 11210 hardcode_shlibpath_var=no 11211 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11212 hardcode_libdir_separator=':' 11213 link_all_deplibs=yes 11214 export_dynamic_flag_spec='${wl}-Bexport' 11215 runpath_var='LD_RUN_PATH' 11216 11217 if test "$GCC" = yes; then 11218 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11219 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11220 else 11221 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11222 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11223 fi 11224 ;; 11225 11226 uts4*) 11227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11228 hardcode_libdir_flag_spec='-L$libdir' 11229 hardcode_shlibpath_var=no 11230 ;; 11231 11232 *) 11233 ld_shlibs=no 11234 ;; 11235 esac 11236 11237 if test x$host_vendor = xsni; then 11238 case $host in 11239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11240 export_dynamic_flag_spec='${wl}-Blargedynsym' 11241 ;; 11242 esac 11243 fi 11244 fi 11245 11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11247$as_echo "$ld_shlibs" >&6; } 11248test "$ld_shlibs" = no && can_build_shared=no 11249 11250with_gnu_ld=$with_gnu_ld 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266# 11267# Do we need to explicitly link libc? 11268# 11269case "x$archive_cmds_need_lc" in 11270x|xyes) 11271 # Assume -lc should be added 11272 archive_cmds_need_lc=yes 11273 11274 if test "$enable_shared" = yes && test "$GCC" = yes; then 11275 case $archive_cmds in 11276 *'~'*) 11277 # FIXME: we may have to deal with multi-command sequences. 11278 ;; 11279 '$CC '*) 11280 # Test whether the compiler implicitly links with -lc since on some 11281 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11282 # to ld, don't add -lc before -lgcc. 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11284$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11285if ${lt_cv_archive_cmds_need_lc+:} false; then : 11286 $as_echo_n "(cached) " >&6 11287else 11288 $RM conftest* 11289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11290 11291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11292 (eval $ac_compile) 2>&5 11293 ac_status=$? 11294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11295 test $ac_status = 0; } 2>conftest.err; then 11296 soname=conftest 11297 lib=conftest 11298 libobjs=conftest.$ac_objext 11299 deplibs= 11300 wl=$lt_prog_compiler_wl 11301 pic_flag=$lt_prog_compiler_pic 11302 compiler_flags=-v 11303 linker_flags=-v 11304 verstring= 11305 output_objdir=. 11306 libname=conftest 11307 lt_save_allow_undefined_flag=$allow_undefined_flag 11308 allow_undefined_flag= 11309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11310 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11311 ac_status=$? 11312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11313 test $ac_status = 0; } 11314 then 11315 lt_cv_archive_cmds_need_lc=no 11316 else 11317 lt_cv_archive_cmds_need_lc=yes 11318 fi 11319 allow_undefined_flag=$lt_save_allow_undefined_flag 11320 else 11321 cat conftest.err 1>&5 11322 fi 11323 $RM conftest* 11324 11325fi 11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11327$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11328 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11329 ;; 11330 esac 11331 fi 11332 ;; 11333esac 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11487$as_echo_n "checking dynamic linker characteristics... " >&6; } 11488 11489if test "$GCC" = yes; then 11490 case $host_os in 11491 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11492 *) lt_awk_arg="/^libraries:/" ;; 11493 esac 11494 case $host_os in 11495 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11496 *) lt_sed_strip_eq="s,=/,/,g" ;; 11497 esac 11498 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11499 case $lt_search_path_spec in 11500 *\;*) 11501 # if the path contains ";" then we assume it to be the separator 11502 # otherwise default to the standard path separator (i.e. ":") - it is 11503 # assumed that no part of a normal pathname contains ";" but that should 11504 # okay in the real world where ";" in dirpaths is itself problematic. 11505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11506 ;; 11507 *) 11508 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11509 ;; 11510 esac 11511 # Ok, now we have the path, separated by spaces, we can step through it 11512 # and add multilib dir if necessary. 11513 lt_tmp_lt_search_path_spec= 11514 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11515 for lt_sys_path in $lt_search_path_spec; do 11516 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11517 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11518 else 11519 test -d "$lt_sys_path" && \ 11520 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11521 fi 11522 done 11523 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11524BEGIN {RS=" "; FS="/|\n";} { 11525 lt_foo=""; 11526 lt_count=0; 11527 for (lt_i = NF; lt_i > 0; lt_i--) { 11528 if ($lt_i != "" && $lt_i != ".") { 11529 if ($lt_i == "..") { 11530 lt_count++; 11531 } else { 11532 if (lt_count == 0) { 11533 lt_foo="/" $lt_i lt_foo; 11534 } else { 11535 lt_count--; 11536 } 11537 } 11538 } 11539 } 11540 if (lt_foo != "") { lt_freq[lt_foo]++; } 11541 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11542}'` 11543 # AWK program above erroneously prepends '/' to C:/dos/paths 11544 # for these hosts. 11545 case $host_os in 11546 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11547 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11548 esac 11549 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11550else 11551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11552fi 11553library_names_spec= 11554libname_spec='lib$name' 11555soname_spec= 11556shrext_cmds=".so" 11557postinstall_cmds= 11558postuninstall_cmds= 11559finish_cmds= 11560finish_eval= 11561shlibpath_var= 11562shlibpath_overrides_runpath=unknown 11563version_type=none 11564dynamic_linker="$host_os ld.so" 11565sys_lib_dlsearch_path_spec="/lib /usr/lib" 11566need_lib_prefix=unknown 11567hardcode_into_libs=no 11568 11569# when you set need_version to no, make sure it does not cause -set_version 11570# flags to be left without arguments 11571need_version=unknown 11572 11573case $host_os in 11574aix3*) 11575 version_type=linux # correct to gnu/linux during the next big refactor 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11577 shlibpath_var=LIBPATH 11578 11579 # AIX 3 has no versioning support, so we append a major version to the name. 11580 soname_spec='${libname}${release}${shared_ext}$major' 11581 ;; 11582 11583aix[4-9]*) 11584 version_type=linux # correct to gnu/linux during the next big refactor 11585 need_lib_prefix=no 11586 need_version=no 11587 hardcode_into_libs=yes 11588 if test "$host_cpu" = ia64; then 11589 # AIX 5 supports IA64 11590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11591 shlibpath_var=LD_LIBRARY_PATH 11592 else 11593 # With GCC up to 2.95.x, collect2 would create an import file 11594 # for dependence libraries. The import file would start with 11595 # the line `#! .'. This would cause the generated library to 11596 # depend on `.', always an invalid library. This was fixed in 11597 # development snapshots of GCC prior to 3.0. 11598 case $host_os in 11599 aix4 | aix4.[01] | aix4.[01].*) 11600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11601 echo ' yes ' 11602 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11603 : 11604 else 11605 can_build_shared=no 11606 fi 11607 ;; 11608 esac 11609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11610 # soname into executable. Probably we can add versioning support to 11611 # collect2, so additional links can be useful in future. 11612 if test "$aix_use_runtimelinking" = yes; then 11613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11614 # instead of lib<name>.a to let people know that these are not 11615 # typical AIX shared libraries. 11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11617 else 11618 # We preserve .a as extension for shared libraries through AIX4.2 11619 # and later when we are not doing run time linking. 11620 library_names_spec='${libname}${release}.a $libname.a' 11621 soname_spec='${libname}${release}${shared_ext}$major' 11622 fi 11623 shlibpath_var=LIBPATH 11624 fi 11625 ;; 11626 11627amigaos*) 11628 case $host_cpu in 11629 powerpc) 11630 # Since July 2007 AmigaOS4 officially supports .so libraries. 11631 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11633 ;; 11634 m68k) 11635 library_names_spec='$libname.ixlibrary $libname.a' 11636 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11637 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' 11638 ;; 11639 esac 11640 ;; 11641 11642beos*) 11643 library_names_spec='${libname}${shared_ext}' 11644 dynamic_linker="$host_os ld.so" 11645 shlibpath_var=LIBRARY_PATH 11646 ;; 11647 11648bsdi[45]*) 11649 version_type=linux # correct to gnu/linux during the next big refactor 11650 need_version=no 11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11652 soname_spec='${libname}${release}${shared_ext}$major' 11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11654 shlibpath_var=LD_LIBRARY_PATH 11655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11657 # the default ld.so.conf also contains /usr/contrib/lib and 11658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11659 # libtool to hard-code these into programs 11660 ;; 11661 11662cygwin* | mingw* | pw32* | cegcc*) 11663 version_type=windows 11664 shrext_cmds=".dll" 11665 need_version=no 11666 need_lib_prefix=no 11667 11668 case $GCC,$cc_basename in 11669 yes,*) 11670 # gcc 11671 library_names_spec='$libname.dll.a' 11672 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11673 postinstall_cmds='base_file=`basename \${file}`~ 11674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11675 dldir=$destdir/`dirname \$dlpath`~ 11676 test -d \$dldir || mkdir -p \$dldir~ 11677 $install_prog $dir/$dlname \$dldir/$dlname~ 11678 chmod a+x \$dldir/$dlname~ 11679 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11680 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11681 fi' 11682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11683 dlpath=$dir/\$dldll~ 11684 $RM \$dlpath' 11685 shlibpath_overrides_runpath=yes 11686 11687 case $host_os in 11688 cygwin*) 11689 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11691 11692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11693 ;; 11694 mingw* | cegcc*) 11695 # MinGW DLLs use traditional 'lib' prefix 11696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11697 ;; 11698 pw32*) 11699 # pw32 DLLs use 'pw' prefix rather than 'lib' 11700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11701 ;; 11702 esac 11703 dynamic_linker='Win32 ld.exe' 11704 ;; 11705 11706 *,cl*) 11707 # Native MSVC 11708 libname_spec='$name' 11709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11710 library_names_spec='${libname}.dll.lib' 11711 11712 case $build_os in 11713 mingw*) 11714 sys_lib_search_path_spec= 11715 lt_save_ifs=$IFS 11716 IFS=';' 11717 for lt_path in $LIB 11718 do 11719 IFS=$lt_save_ifs 11720 # Let DOS variable expansion print the short 8.3 style file name. 11721 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11722 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11723 done 11724 IFS=$lt_save_ifs 11725 # Convert to MSYS style. 11726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11727 ;; 11728 cygwin*) 11729 # Convert to unix form, then to dos form, then back to unix form 11730 # but this time dos style (no spaces!) so that the unix form looks 11731 # like /cygdrive/c/PROGRA~1:/cygdr... 11732 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11733 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11734 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11735 ;; 11736 *) 11737 sys_lib_search_path_spec="$LIB" 11738 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11739 # It is most probably a Windows format PATH. 11740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11741 else 11742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11743 fi 11744 # FIXME: find the short name or the path components, as spaces are 11745 # common. (e.g. "Program Files" -> "PROGRA~1") 11746 ;; 11747 esac 11748 11749 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11750 postinstall_cmds='base_file=`basename \${file}`~ 11751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11752 dldir=$destdir/`dirname \$dlpath`~ 11753 test -d \$dldir || mkdir -p \$dldir~ 11754 $install_prog $dir/$dlname \$dldir/$dlname' 11755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11756 dlpath=$dir/\$dldll~ 11757 $RM \$dlpath' 11758 shlibpath_overrides_runpath=yes 11759 dynamic_linker='Win32 link.exe' 11760 ;; 11761 11762 *) 11763 # Assume MSVC wrapper 11764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11765 dynamic_linker='Win32 ld.exe' 11766 ;; 11767 esac 11768 # FIXME: first we should search . and the directory the executable is in 11769 shlibpath_var=PATH 11770 ;; 11771 11772darwin* | rhapsody*) 11773 dynamic_linker="$host_os dyld" 11774 version_type=darwin 11775 need_lib_prefix=no 11776 need_version=no 11777 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11778 soname_spec='${libname}${release}${major}$shared_ext' 11779 shlibpath_overrides_runpath=yes 11780 shlibpath_var=DYLD_LIBRARY_PATH 11781 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11782 11783 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11785 ;; 11786 11787dgux*) 11788 version_type=linux # correct to gnu/linux during the next big refactor 11789 need_lib_prefix=no 11790 need_version=no 11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11792 soname_spec='${libname}${release}${shared_ext}$major' 11793 shlibpath_var=LD_LIBRARY_PATH 11794 ;; 11795 11796freebsd* | dragonfly*) 11797 # DragonFly does not have aout. When/if they implement a new 11798 # versioning mechanism, adjust this. 11799 if test -x /usr/bin/objformat; then 11800 objformat=`/usr/bin/objformat` 11801 else 11802 case $host_os in 11803 freebsd[23].*) objformat=aout ;; 11804 *) objformat=elf ;; 11805 esac 11806 fi 11807 version_type=freebsd-$objformat 11808 case $version_type in 11809 freebsd-elf*) 11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11811 need_version=no 11812 need_lib_prefix=no 11813 ;; 11814 freebsd-*) 11815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11816 need_version=yes 11817 ;; 11818 esac 11819 shlibpath_var=LD_LIBRARY_PATH 11820 case $host_os in 11821 freebsd2.*) 11822 shlibpath_overrides_runpath=yes 11823 ;; 11824 freebsd3.[01]* | freebsdelf3.[01]*) 11825 shlibpath_overrides_runpath=yes 11826 hardcode_into_libs=yes 11827 ;; 11828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11830 shlibpath_overrides_runpath=no 11831 hardcode_into_libs=yes 11832 ;; 11833 *) # from 4.6 on, and DragonFly 11834 shlibpath_overrides_runpath=yes 11835 hardcode_into_libs=yes 11836 ;; 11837 esac 11838 ;; 11839 11840gnu*) 11841 version_type=linux # correct to gnu/linux during the next big refactor 11842 need_lib_prefix=no 11843 need_version=no 11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11845 soname_spec='${libname}${release}${shared_ext}$major' 11846 shlibpath_var=LD_LIBRARY_PATH 11847 shlibpath_overrides_runpath=no 11848 hardcode_into_libs=yes 11849 ;; 11850 11851haiku*) 11852 version_type=linux # correct to gnu/linux during the next big refactor 11853 need_lib_prefix=no 11854 need_version=no 11855 dynamic_linker="$host_os runtime_loader" 11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11857 soname_spec='${libname}${release}${shared_ext}$major' 11858 shlibpath_var=LIBRARY_PATH 11859 shlibpath_overrides_runpath=yes 11860 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11861 hardcode_into_libs=yes 11862 ;; 11863 11864hpux9* | hpux10* | hpux11*) 11865 # Give a soname corresponding to the major version so that dld.sl refuses to 11866 # link against other versions. 11867 version_type=sunos 11868 need_lib_prefix=no 11869 need_version=no 11870 case $host_cpu in 11871 ia64*) 11872 shrext_cmds='.so' 11873 hardcode_into_libs=yes 11874 dynamic_linker="$host_os dld.so" 11875 shlibpath_var=LD_LIBRARY_PATH 11876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11878 soname_spec='${libname}${release}${shared_ext}$major' 11879 if test "X$HPUX_IA64_MODE" = X32; then 11880 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11881 else 11882 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11883 fi 11884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11885 ;; 11886 hppa*64*) 11887 shrext_cmds='.sl' 11888 hardcode_into_libs=yes 11889 dynamic_linker="$host_os dld.sl" 11890 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11893 soname_spec='${libname}${release}${shared_ext}$major' 11894 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11896 ;; 11897 *) 11898 shrext_cmds='.sl' 11899 dynamic_linker="$host_os dld.sl" 11900 shlibpath_var=SHLIB_PATH 11901 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11903 soname_spec='${libname}${release}${shared_ext}$major' 11904 ;; 11905 esac 11906 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11907 postinstall_cmds='chmod 555 $lib' 11908 # or fails outright, so override atomically: 11909 install_override_mode=555 11910 ;; 11911 11912interix[3-9]*) 11913 version_type=linux # correct to gnu/linux during the next big refactor 11914 need_lib_prefix=no 11915 need_version=no 11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11917 soname_spec='${libname}${release}${shared_ext}$major' 11918 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11919 shlibpath_var=LD_LIBRARY_PATH 11920 shlibpath_overrides_runpath=no 11921 hardcode_into_libs=yes 11922 ;; 11923 11924irix5* | irix6* | nonstopux*) 11925 case $host_os in 11926 nonstopux*) version_type=nonstopux ;; 11927 *) 11928 if test "$lt_cv_prog_gnu_ld" = yes; then 11929 version_type=linux # correct to gnu/linux during the next big refactor 11930 else 11931 version_type=irix 11932 fi ;; 11933 esac 11934 need_lib_prefix=no 11935 need_version=no 11936 soname_spec='${libname}${release}${shared_ext}$major' 11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11938 case $host_os in 11939 irix5* | nonstopux*) 11940 libsuff= shlibsuff= 11941 ;; 11942 *) 11943 case $LD in # libtool.m4 will add one of these switches to LD 11944 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11945 libsuff= shlibsuff= libmagic=32-bit;; 11946 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11947 libsuff=32 shlibsuff=N32 libmagic=N32;; 11948 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11949 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11950 *) libsuff= shlibsuff= libmagic=never-match;; 11951 esac 11952 ;; 11953 esac 11954 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11955 shlibpath_overrides_runpath=no 11956 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11957 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11958 hardcode_into_libs=yes 11959 ;; 11960 11961# No shared lib support for Linux oldld, aout, or coff. 11962linux*oldld* | linux*aout* | linux*coff*) 11963 dynamic_linker=no 11964 ;; 11965 11966# This must be glibc/ELF. 11967linux* | k*bsd*-gnu | kopensolaris*-gnu) 11968 version_type=linux # correct to gnu/linux during the next big refactor 11969 need_lib_prefix=no 11970 need_version=no 11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11972 soname_spec='${libname}${release}${shared_ext}$major' 11973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11974 shlibpath_var=LD_LIBRARY_PATH 11975 shlibpath_overrides_runpath=no 11976 11977 # Some binutils ld are patched to set DT_RUNPATH 11978 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11979 $as_echo_n "(cached) " >&6 11980else 11981 lt_cv_shlibpath_overrides_runpath=no 11982 save_LDFLAGS=$LDFLAGS 11983 save_libdir=$libdir 11984 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11985 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11987/* end confdefs.h. */ 11988 11989int 11990main () 11991{ 11992 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_c_try_link "$LINENO"; then : 11998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11999 lt_cv_shlibpath_overrides_runpath=yes 12000fi 12001fi 12002rm -f core conftest.err conftest.$ac_objext \ 12003 conftest$ac_exeext conftest.$ac_ext 12004 LDFLAGS=$save_LDFLAGS 12005 libdir=$save_libdir 12006 12007fi 12008 12009 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12010 12011 # This implies no fast_install, which is unacceptable. 12012 # Some rework will be needed to allow for fast_install 12013 # before this can be enabled. 12014 hardcode_into_libs=yes 12015 12016 # Append ld.so.conf contents to the search path 12017 if test -f /etc/ld.so.conf; then 12018 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' ' '` 12019 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12020 fi 12021 12022 # We used to test for /lib/ld.so.1 and disable shared libraries on 12023 # powerpc, because MkLinux only supported shared libraries with the 12024 # GNU dynamic linker. Since this was broken with cross compilers, 12025 # most powerpc-linux boxes support dynamic linking these days and 12026 # people can always --disable-shared, the test was removed, and we 12027 # assume the GNU/Linux dynamic linker is in use. 12028 dynamic_linker='GNU/Linux ld.so' 12029 ;; 12030 12031netbsd*) 12032 version_type=sunos 12033 need_lib_prefix=no 12034 need_version=no 12035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12038 dynamic_linker='NetBSD (a.out) ld.so' 12039 else 12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12041 soname_spec='${libname}${release}${shared_ext}$major' 12042 dynamic_linker='NetBSD ld.elf_so' 12043 fi 12044 shlibpath_var=LD_LIBRARY_PATH 12045 shlibpath_overrides_runpath=yes 12046 hardcode_into_libs=yes 12047 ;; 12048 12049newsos6) 12050 version_type=linux # correct to gnu/linux during the next big refactor 12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12052 shlibpath_var=LD_LIBRARY_PATH 12053 shlibpath_overrides_runpath=yes 12054 ;; 12055 12056*nto* | *qnx*) 12057 version_type=qnx 12058 need_lib_prefix=no 12059 need_version=no 12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12061 soname_spec='${libname}${release}${shared_ext}$major' 12062 shlibpath_var=LD_LIBRARY_PATH 12063 shlibpath_overrides_runpath=no 12064 hardcode_into_libs=yes 12065 dynamic_linker='ldqnx.so' 12066 ;; 12067 12068openbsd*) 12069 version_type=sunos 12070 sys_lib_dlsearch_path_spec="/usr/lib" 12071 need_lib_prefix=no 12072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12073 case $host_os in 12074 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12075 *) need_version=no ;; 12076 esac 12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12079 shlibpath_var=LD_LIBRARY_PATH 12080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12081 case $host_os in 12082 openbsd2.[89] | openbsd2.[89].*) 12083 shlibpath_overrides_runpath=no 12084 ;; 12085 *) 12086 shlibpath_overrides_runpath=yes 12087 ;; 12088 esac 12089 else 12090 shlibpath_overrides_runpath=yes 12091 fi 12092 ;; 12093 12094os2*) 12095 libname_spec='$name' 12096 shrext_cmds=".dll" 12097 need_lib_prefix=no 12098 library_names_spec='$libname${shared_ext} $libname.a' 12099 dynamic_linker='OS/2 ld.exe' 12100 shlibpath_var=LIBPATH 12101 ;; 12102 12103osf3* | osf4* | osf5*) 12104 version_type=osf 12105 need_lib_prefix=no 12106 need_version=no 12107 soname_spec='${libname}${release}${shared_ext}$major' 12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12109 shlibpath_var=LD_LIBRARY_PATH 12110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12112 ;; 12113 12114rdos*) 12115 dynamic_linker=no 12116 ;; 12117 12118solaris*) 12119 version_type=linux # correct to gnu/linux during the next big refactor 12120 need_lib_prefix=no 12121 need_version=no 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12123 soname_spec='${libname}${release}${shared_ext}$major' 12124 shlibpath_var=LD_LIBRARY_PATH 12125 shlibpath_overrides_runpath=yes 12126 hardcode_into_libs=yes 12127 # ldd complains unless libraries are executable 12128 postinstall_cmds='chmod +x $lib' 12129 ;; 12130 12131sunos4*) 12132 version_type=sunos 12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12135 shlibpath_var=LD_LIBRARY_PATH 12136 shlibpath_overrides_runpath=yes 12137 if test "$with_gnu_ld" = yes; then 12138 need_lib_prefix=no 12139 fi 12140 need_version=yes 12141 ;; 12142 12143sysv4 | sysv4.3*) 12144 version_type=linux # correct to gnu/linux during the next big refactor 12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12146 soname_spec='${libname}${release}${shared_ext}$major' 12147 shlibpath_var=LD_LIBRARY_PATH 12148 case $host_vendor in 12149 sni) 12150 shlibpath_overrides_runpath=no 12151 need_lib_prefix=no 12152 runpath_var=LD_RUN_PATH 12153 ;; 12154 siemens) 12155 need_lib_prefix=no 12156 ;; 12157 motorola) 12158 need_lib_prefix=no 12159 need_version=no 12160 shlibpath_overrides_runpath=no 12161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12162 ;; 12163 esac 12164 ;; 12165 12166sysv4*MP*) 12167 if test -d /usr/nec ;then 12168 version_type=linux # correct to gnu/linux during the next big refactor 12169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12170 soname_spec='$libname${shared_ext}.$major' 12171 shlibpath_var=LD_LIBRARY_PATH 12172 fi 12173 ;; 12174 12175sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12176 version_type=freebsd-elf 12177 need_lib_prefix=no 12178 need_version=no 12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12180 soname_spec='${libname}${release}${shared_ext}$major' 12181 shlibpath_var=LD_LIBRARY_PATH 12182 shlibpath_overrides_runpath=yes 12183 hardcode_into_libs=yes 12184 if test "$with_gnu_ld" = yes; then 12185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12186 else 12187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12188 case $host_os in 12189 sco3.2v5*) 12190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12191 ;; 12192 esac 12193 fi 12194 sys_lib_dlsearch_path_spec='/usr/lib' 12195 ;; 12196 12197tpf*) 12198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12199 version_type=linux # correct to gnu/linux during the next big refactor 12200 need_lib_prefix=no 12201 need_version=no 12202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12203 shlibpath_var=LD_LIBRARY_PATH 12204 shlibpath_overrides_runpath=no 12205 hardcode_into_libs=yes 12206 ;; 12207 12208uts4*) 12209 version_type=linux # correct to gnu/linux during the next big refactor 12210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12211 soname_spec='${libname}${release}${shared_ext}$major' 12212 shlibpath_var=LD_LIBRARY_PATH 12213 ;; 12214 12215*) 12216 dynamic_linker=no 12217 ;; 12218esac 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12220$as_echo "$dynamic_linker" >&6; } 12221test "$dynamic_linker" = no && can_build_shared=no 12222 12223variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12224if test "$GCC" = yes; then 12225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12226fi 12227 12228if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12229 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12230fi 12231if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12232 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12233fi 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12327$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12328hardcode_action= 12329if test -n "$hardcode_libdir_flag_spec" || 12330 test -n "$runpath_var" || 12331 test "X$hardcode_automatic" = "Xyes" ; then 12332 12333 # We can hardcode non-existent directories. 12334 if test "$hardcode_direct" != no && 12335 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12336 # have to relink, otherwise we might link with an installed library 12337 # when we should be linking with a yet-to-be-installed one 12338 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12339 test "$hardcode_minus_L" != no; then 12340 # Linking always hardcodes the temporary library directory. 12341 hardcode_action=relink 12342 else 12343 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12344 hardcode_action=immediate 12345 fi 12346else 12347 # We cannot hardcode anything, or else we can only hardcode existing 12348 # directories. 12349 hardcode_action=unsupported 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12352$as_echo "$hardcode_action" >&6; } 12353 12354if test "$hardcode_action" = relink || 12355 test "$inherit_rpath" = yes; then 12356 # Fast installation is not supported 12357 enable_fast_install=no 12358elif test "$shlibpath_overrides_runpath" = yes || 12359 test "$enable_shared" = no; then 12360 # Fast installation is not necessary 12361 enable_fast_install=needless 12362fi 12363 12364 12365 12366 12367 12368 12369 if test "x$enable_dlopen" != xyes; then 12370 enable_dlopen=unknown 12371 enable_dlopen_self=unknown 12372 enable_dlopen_self_static=unknown 12373else 12374 lt_cv_dlopen=no 12375 lt_cv_dlopen_libs= 12376 12377 case $host_os in 12378 beos*) 12379 lt_cv_dlopen="load_add_on" 12380 lt_cv_dlopen_libs= 12381 lt_cv_dlopen_self=yes 12382 ;; 12383 12384 mingw* | pw32* | cegcc*) 12385 lt_cv_dlopen="LoadLibrary" 12386 lt_cv_dlopen_libs= 12387 ;; 12388 12389 cygwin*) 12390 lt_cv_dlopen="dlopen" 12391 lt_cv_dlopen_libs= 12392 ;; 12393 12394 darwin*) 12395 # if libdl is installed we need to link against it 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12397$as_echo_n "checking for dlopen in -ldl... " >&6; } 12398if ${ac_cv_lib_dl_dlopen+:} false; then : 12399 $as_echo_n "(cached) " >&6 12400else 12401 ac_check_lib_save_LIBS=$LIBS 12402LIBS="-ldl $LIBS" 12403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405 12406/* Override any GCC internal prototype to avoid an error. 12407 Use char because int might match the return type of a GCC 12408 builtin and then its argument prototype would still apply. */ 12409#ifdef __cplusplus 12410extern "C" 12411#endif 12412char dlopen (); 12413int 12414main () 12415{ 12416return dlopen (); 12417 ; 12418 return 0; 12419} 12420_ACEOF 12421if ac_fn_c_try_link "$LINENO"; then : 12422 ac_cv_lib_dl_dlopen=yes 12423else 12424 ac_cv_lib_dl_dlopen=no 12425fi 12426rm -f core conftest.err conftest.$ac_objext \ 12427 conftest$ac_exeext conftest.$ac_ext 12428LIBS=$ac_check_lib_save_LIBS 12429fi 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12431$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12432if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12434else 12435 12436 lt_cv_dlopen="dyld" 12437 lt_cv_dlopen_libs= 12438 lt_cv_dlopen_self=yes 12439 12440fi 12441 12442 ;; 12443 12444 *) 12445 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12446if test "x$ac_cv_func_shl_load" = xyes; then : 12447 lt_cv_dlopen="shl_load" 12448else 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12450$as_echo_n "checking for shl_load in -ldld... " >&6; } 12451if ${ac_cv_lib_dld_shl_load+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453else 12454 ac_check_lib_save_LIBS=$LIBS 12455LIBS="-ldld $LIBS" 12456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457/* end confdefs.h. */ 12458 12459/* Override any GCC internal prototype to avoid an error. 12460 Use char because int might match the return type of a GCC 12461 builtin and then its argument prototype would still apply. */ 12462#ifdef __cplusplus 12463extern "C" 12464#endif 12465char shl_load (); 12466int 12467main () 12468{ 12469return shl_load (); 12470 ; 12471 return 0; 12472} 12473_ACEOF 12474if ac_fn_c_try_link "$LINENO"; then : 12475 ac_cv_lib_dld_shl_load=yes 12476else 12477 ac_cv_lib_dld_shl_load=no 12478fi 12479rm -f core conftest.err conftest.$ac_objext \ 12480 conftest$ac_exeext conftest.$ac_ext 12481LIBS=$ac_check_lib_save_LIBS 12482fi 12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12484$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12485if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12487else 12488 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12489if test "x$ac_cv_func_dlopen" = xyes; then : 12490 lt_cv_dlopen="dlopen" 12491else 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12493$as_echo_n "checking for dlopen in -ldl... " >&6; } 12494if ${ac_cv_lib_dl_dlopen+:} false; then : 12495 $as_echo_n "(cached) " >&6 12496else 12497 ac_check_lib_save_LIBS=$LIBS 12498LIBS="-ldl $LIBS" 12499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502/* Override any GCC internal prototype to avoid an error. 12503 Use char because int might match the return type of a GCC 12504 builtin and then its argument prototype would still apply. */ 12505#ifdef __cplusplus 12506extern "C" 12507#endif 12508char dlopen (); 12509int 12510main () 12511{ 12512return dlopen (); 12513 ; 12514 return 0; 12515} 12516_ACEOF 12517if ac_fn_c_try_link "$LINENO"; then : 12518 ac_cv_lib_dl_dlopen=yes 12519else 12520 ac_cv_lib_dl_dlopen=no 12521fi 12522rm -f core conftest.err conftest.$ac_objext \ 12523 conftest$ac_exeext conftest.$ac_ext 12524LIBS=$ac_check_lib_save_LIBS 12525fi 12526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12527$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12528if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12530else 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12532$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12533if ${ac_cv_lib_svld_dlopen+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 ac_check_lib_save_LIBS=$LIBS 12537LIBS="-lsvld $LIBS" 12538cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12539/* end confdefs.h. */ 12540 12541/* Override any GCC internal prototype to avoid an error. 12542 Use char because int might match the return type of a GCC 12543 builtin and then its argument prototype would still apply. */ 12544#ifdef __cplusplus 12545extern "C" 12546#endif 12547char dlopen (); 12548int 12549main () 12550{ 12551return dlopen (); 12552 ; 12553 return 0; 12554} 12555_ACEOF 12556if ac_fn_c_try_link "$LINENO"; then : 12557 ac_cv_lib_svld_dlopen=yes 12558else 12559 ac_cv_lib_svld_dlopen=no 12560fi 12561rm -f core conftest.err conftest.$ac_objext \ 12562 conftest$ac_exeext conftest.$ac_ext 12563LIBS=$ac_check_lib_save_LIBS 12564fi 12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12566$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12567if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12569else 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12571$as_echo_n "checking for dld_link in -ldld... " >&6; } 12572if ${ac_cv_lib_dld_dld_link+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574else 12575 ac_check_lib_save_LIBS=$LIBS 12576LIBS="-ldld $LIBS" 12577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579 12580/* Override any GCC internal prototype to avoid an error. 12581 Use char because int might match the return type of a GCC 12582 builtin and then its argument prototype would still apply. */ 12583#ifdef __cplusplus 12584extern "C" 12585#endif 12586char dld_link (); 12587int 12588main () 12589{ 12590return dld_link (); 12591 ; 12592 return 0; 12593} 12594_ACEOF 12595if ac_fn_c_try_link "$LINENO"; then : 12596 ac_cv_lib_dld_dld_link=yes 12597else 12598 ac_cv_lib_dld_dld_link=no 12599fi 12600rm -f core conftest.err conftest.$ac_objext \ 12601 conftest$ac_exeext conftest.$ac_ext 12602LIBS=$ac_check_lib_save_LIBS 12603fi 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12605$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12606if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12607 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12608fi 12609 12610 12611fi 12612 12613 12614fi 12615 12616 12617fi 12618 12619 12620fi 12621 12622 12623fi 12624 12625 ;; 12626 esac 12627 12628 if test "x$lt_cv_dlopen" != xno; then 12629 enable_dlopen=yes 12630 else 12631 enable_dlopen=no 12632 fi 12633 12634 case $lt_cv_dlopen in 12635 dlopen) 12636 save_CPPFLAGS="$CPPFLAGS" 12637 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12638 12639 save_LDFLAGS="$LDFLAGS" 12640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12641 12642 save_LIBS="$LIBS" 12643 LIBS="$lt_cv_dlopen_libs $LIBS" 12644 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12646$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12647if ${lt_cv_dlopen_self+:} false; then : 12648 $as_echo_n "(cached) " >&6 12649else 12650 if test "$cross_compiling" = yes; then : 12651 lt_cv_dlopen_self=cross 12652else 12653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12654 lt_status=$lt_dlunknown 12655 cat > conftest.$ac_ext <<_LT_EOF 12656#line $LINENO "configure" 12657#include "confdefs.h" 12658 12659#if HAVE_DLFCN_H 12660#include <dlfcn.h> 12661#endif 12662 12663#include <stdio.h> 12664 12665#ifdef RTLD_GLOBAL 12666# define LT_DLGLOBAL RTLD_GLOBAL 12667#else 12668# ifdef DL_GLOBAL 12669# define LT_DLGLOBAL DL_GLOBAL 12670# else 12671# define LT_DLGLOBAL 0 12672# endif 12673#endif 12674 12675/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12676 find out it does not work in some platform. */ 12677#ifndef LT_DLLAZY_OR_NOW 12678# ifdef RTLD_LAZY 12679# define LT_DLLAZY_OR_NOW RTLD_LAZY 12680# else 12681# ifdef DL_LAZY 12682# define LT_DLLAZY_OR_NOW DL_LAZY 12683# else 12684# ifdef RTLD_NOW 12685# define LT_DLLAZY_OR_NOW RTLD_NOW 12686# else 12687# ifdef DL_NOW 12688# define LT_DLLAZY_OR_NOW DL_NOW 12689# else 12690# define LT_DLLAZY_OR_NOW 0 12691# endif 12692# endif 12693# endif 12694# endif 12695#endif 12696 12697/* When -fvisbility=hidden is used, assume the code has been annotated 12698 correspondingly for the symbols needed. */ 12699#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12700int fnord () __attribute__((visibility("default"))); 12701#endif 12702 12703int fnord () { return 42; } 12704int main () 12705{ 12706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12707 int status = $lt_dlunknown; 12708 12709 if (self) 12710 { 12711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12712 else 12713 { 12714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12715 else puts (dlerror ()); 12716 } 12717 /* dlclose (self); */ 12718 } 12719 else 12720 puts (dlerror ()); 12721 12722 return status; 12723} 12724_LT_EOF 12725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12726 (eval $ac_link) 2>&5 12727 ac_status=$? 12728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12730 (./conftest; exit; ) >&5 2>/dev/null 12731 lt_status=$? 12732 case x$lt_status in 12733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12735 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12736 esac 12737 else : 12738 # compilation failed 12739 lt_cv_dlopen_self=no 12740 fi 12741fi 12742rm -fr conftest* 12743 12744 12745fi 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12747$as_echo "$lt_cv_dlopen_self" >&6; } 12748 12749 if test "x$lt_cv_dlopen_self" = xyes; then 12750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12752$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12753if ${lt_cv_dlopen_self_static+:} false; then : 12754 $as_echo_n "(cached) " >&6 12755else 12756 if test "$cross_compiling" = yes; then : 12757 lt_cv_dlopen_self_static=cross 12758else 12759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12760 lt_status=$lt_dlunknown 12761 cat > conftest.$ac_ext <<_LT_EOF 12762#line $LINENO "configure" 12763#include "confdefs.h" 12764 12765#if HAVE_DLFCN_H 12766#include <dlfcn.h> 12767#endif 12768 12769#include <stdio.h> 12770 12771#ifdef RTLD_GLOBAL 12772# define LT_DLGLOBAL RTLD_GLOBAL 12773#else 12774# ifdef DL_GLOBAL 12775# define LT_DLGLOBAL DL_GLOBAL 12776# else 12777# define LT_DLGLOBAL 0 12778# endif 12779#endif 12780 12781/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12782 find out it does not work in some platform. */ 12783#ifndef LT_DLLAZY_OR_NOW 12784# ifdef RTLD_LAZY 12785# define LT_DLLAZY_OR_NOW RTLD_LAZY 12786# else 12787# ifdef DL_LAZY 12788# define LT_DLLAZY_OR_NOW DL_LAZY 12789# else 12790# ifdef RTLD_NOW 12791# define LT_DLLAZY_OR_NOW RTLD_NOW 12792# else 12793# ifdef DL_NOW 12794# define LT_DLLAZY_OR_NOW DL_NOW 12795# else 12796# define LT_DLLAZY_OR_NOW 0 12797# endif 12798# endif 12799# endif 12800# endif 12801#endif 12802 12803/* When -fvisbility=hidden is used, assume the code has been annotated 12804 correspondingly for the symbols needed. */ 12805#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12806int fnord () __attribute__((visibility("default"))); 12807#endif 12808 12809int fnord () { return 42; } 12810int main () 12811{ 12812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12813 int status = $lt_dlunknown; 12814 12815 if (self) 12816 { 12817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12818 else 12819 { 12820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12821 else puts (dlerror ()); 12822 } 12823 /* dlclose (self); */ 12824 } 12825 else 12826 puts (dlerror ()); 12827 12828 return status; 12829} 12830_LT_EOF 12831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12832 (eval $ac_link) 2>&5 12833 ac_status=$? 12834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12836 (./conftest; exit; ) >&5 2>/dev/null 12837 lt_status=$? 12838 case x$lt_status in 12839 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12840 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12841 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12842 esac 12843 else : 12844 # compilation failed 12845 lt_cv_dlopen_self_static=no 12846 fi 12847fi 12848rm -fr conftest* 12849 12850 12851fi 12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12853$as_echo "$lt_cv_dlopen_self_static" >&6; } 12854 fi 12855 12856 CPPFLAGS="$save_CPPFLAGS" 12857 LDFLAGS="$save_LDFLAGS" 12858 LIBS="$save_LIBS" 12859 ;; 12860 esac 12861 12862 case $lt_cv_dlopen_self in 12863 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12864 *) enable_dlopen_self=unknown ;; 12865 esac 12866 12867 case $lt_cv_dlopen_self_static in 12868 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12869 *) enable_dlopen_self_static=unknown ;; 12870 esac 12871fi 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889striplib= 12890old_striplib= 12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12892$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12893if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12895 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12897$as_echo "yes" >&6; } 12898else 12899# FIXME - insert some real tests, host_os isn't really good enough 12900 case $host_os in 12901 darwin*) 12902 if test -n "$STRIP" ; then 12903 striplib="$STRIP -x" 12904 old_striplib="$STRIP -S" 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12906$as_echo "yes" >&6; } 12907 else 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12909$as_echo "no" >&6; } 12910 fi 12911 ;; 12912 *) 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914$as_echo "no" >&6; } 12915 ;; 12916 esac 12917fi 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 # Report which library types will actually be built 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12932$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12934$as_echo "$can_build_shared" >&6; } 12935 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12937$as_echo_n "checking whether to build shared libraries... " >&6; } 12938 test "$can_build_shared" = "no" && enable_shared=no 12939 12940 # On AIX, shared libraries and static libraries use the same namespace, and 12941 # are all built from PIC. 12942 case $host_os in 12943 aix3*) 12944 test "$enable_shared" = yes && enable_static=no 12945 if test -n "$RANLIB"; then 12946 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12947 postinstall_cmds='$RANLIB $lib' 12948 fi 12949 ;; 12950 12951 aix[4-9]*) 12952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12953 test "$enable_shared" = yes && enable_static=no 12954 fi 12955 ;; 12956 esac 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12958$as_echo "$enable_shared" >&6; } 12959 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12961$as_echo_n "checking whether to build static libraries... " >&6; } 12962 # Make sure either enable_shared or enable_static is yes. 12963 test "$enable_shared" = yes || enable_static=yes 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12965$as_echo "$enable_static" >&6; } 12966 12967 12968 12969 12970fi 12971ac_ext=c 12972ac_cpp='$CPP $CPPFLAGS' 12973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12975ac_compiler_gnu=$ac_cv_c_compiler_gnu 12976 12977CC="$lt_save_CC" 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 ac_config_commands="$ac_config_commands libtool" 12994 12995 12996 12997 12998# Only expand once: 12999 13000 13001 13002# 13003# We need xkbcommon for keysym definitions. If it's not found, we use our own 13004# private copy of xkbcommon-keysyms.h. 13005# 13006 13007 13008 13009 13010 13011 13012 13013 13014if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13015 if test -n "$ac_tool_prefix"; then 13016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13017set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13019$as_echo_n "checking for $ac_word... " >&6; } 13020if ${ac_cv_path_PKG_CONFIG+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 case $PKG_CONFIG in 13024 [\\/]* | ?:[\\/]*) 13025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13026 ;; 13027 *) 13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13029for as_dir in $PATH 13030do 13031 IFS=$as_save_IFS 13032 test -z "$as_dir" && as_dir=. 13033 for ac_exec_ext in '' $ac_executable_extensions; do 13034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13037 break 2 13038 fi 13039done 13040 done 13041IFS=$as_save_IFS 13042 13043 ;; 13044esac 13045fi 13046PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13047if test -n "$PKG_CONFIG"; then 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13049$as_echo "$PKG_CONFIG" >&6; } 13050else 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13052$as_echo "no" >&6; } 13053fi 13054 13055 13056fi 13057if test -z "$ac_cv_path_PKG_CONFIG"; then 13058 ac_pt_PKG_CONFIG=$PKG_CONFIG 13059 # Extract the first word of "pkg-config", so it can be a program name with args. 13060set dummy pkg-config; ac_word=$2 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13062$as_echo_n "checking for $ac_word... " >&6; } 13063if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 case $ac_pt_PKG_CONFIG in 13067 [\\/]* | ?:[\\/]*) 13068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13069 ;; 13070 *) 13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13072for as_dir in $PATH 13073do 13074 IFS=$as_save_IFS 13075 test -z "$as_dir" && as_dir=. 13076 for ac_exec_ext in '' $ac_executable_extensions; do 13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13078 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13080 break 2 13081 fi 13082done 13083 done 13084IFS=$as_save_IFS 13085 13086 ;; 13087esac 13088fi 13089ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13090if test -n "$ac_pt_PKG_CONFIG"; then 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13092$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13093else 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13095$as_echo "no" >&6; } 13096fi 13097 13098 if test "x$ac_pt_PKG_CONFIG" = x; then 13099 PKG_CONFIG="" 13100 else 13101 case $cross_compiling:$ac_tool_warned in 13102yes:) 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13105ac_tool_warned=yes ;; 13106esac 13107 PKG_CONFIG=$ac_pt_PKG_CONFIG 13108 fi 13109else 13110 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13111fi 13112 13113fi 13114if test -n "$PKG_CONFIG"; then 13115 _pkg_min_version=0.9.0 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13117$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13118 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13120$as_echo "yes" >&6; } 13121 else 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13123$as_echo "no" >&6; } 13124 PKG_CONFIG="" 13125 fi 13126fi 13127 13128pkg_failed=no 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBCOMMON" >&5 13130$as_echo_n "checking for XKBCOMMON... " >&6; } 13131 13132if test -n "$XKBCOMMON_CFLAGS"; then 13133 pkg_cv_XKBCOMMON_CFLAGS="$XKBCOMMON_CFLAGS" 13134 elif test -n "$PKG_CONFIG"; then 13135 if test -n "$PKG_CONFIG" && \ 13136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbcommon\""; } >&5 13137 ($PKG_CONFIG --exists --print-errors "xkbcommon") 2>&5 13138 ac_status=$? 13139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13140 test $ac_status = 0; }; then 13141 pkg_cv_XKBCOMMON_CFLAGS=`$PKG_CONFIG --cflags "xkbcommon" 2>/dev/null` 13142 test "x$?" != "x0" && pkg_failed=yes 13143else 13144 pkg_failed=yes 13145fi 13146 else 13147 pkg_failed=untried 13148fi 13149if test -n "$XKBCOMMON_LIBS"; then 13150 pkg_cv_XKBCOMMON_LIBS="$XKBCOMMON_LIBS" 13151 elif test -n "$PKG_CONFIG"; then 13152 if test -n "$PKG_CONFIG" && \ 13153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbcommon\""; } >&5 13154 ($PKG_CONFIG --exists --print-errors "xkbcommon") 2>&5 13155 ac_status=$? 13156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13157 test $ac_status = 0; }; then 13158 pkg_cv_XKBCOMMON_LIBS=`$PKG_CONFIG --libs "xkbcommon" 2>/dev/null` 13159 test "x$?" != "x0" && pkg_failed=yes 13160else 13161 pkg_failed=yes 13162fi 13163 else 13164 pkg_failed=untried 13165fi 13166 13167 13168 13169if test $pkg_failed = yes; then 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13171$as_echo "no" >&6; } 13172 13173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13174 _pkg_short_errors_supported=yes 13175else 13176 _pkg_short_errors_supported=no 13177fi 13178 if test $_pkg_short_errors_supported = yes; then 13179 XKBCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbcommon" 2>&1` 13180 else 13181 XKBCOMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbcommon" 2>&1` 13182 fi 13183 # Put the nasty error message in config.log where it belongs 13184 echo "$XKBCOMMON_PKG_ERRORS" >&5 13185 13186 have_xkbcommon=no 13187elif test $pkg_failed = untried; then 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13189$as_echo "no" >&6; } 13190 have_xkbcommon=no 13191else 13192 XKBCOMMON_CFLAGS=$pkg_cv_XKBCOMMON_CFLAGS 13193 XKBCOMMON_LIBS=$pkg_cv_XKBCOMMON_LIBS 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13195$as_echo "yes" >&6; } 13196 have_xkbcommon=yes 13197fi 13198 13199if test "x$have_xkbcommon" = "xyes" ; then 13200 13201$as_echo "#define BUILD_HAVE_XKBCOMMON 1" >>confdefs.h 13202 13203fi 13204 if test "x$have_xkbcommon" = "xyes"; then 13205 BUILD_HAVE_XKBCOMMON_TRUE= 13206 BUILD_HAVE_XKBCOMMON_FALSE='#' 13207else 13208 BUILD_HAVE_XKBCOMMON_TRUE='#' 13209 BUILD_HAVE_XKBCOMMON_FALSE= 13210fi 13211 13212 13213# 13214# Test for "check" which we use for our test-suite. If not found, we disable 13215# all tests. 13216# 13217 13218 13219pkg_failed=no 13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 13221$as_echo_n "checking for CHECK... " >&6; } 13222 13223if test -n "$CHECK_CFLAGS"; then 13224 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 13225 elif test -n "$PKG_CONFIG"; then 13226 if test -n "$PKG_CONFIG" && \ 13227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5 13228 ($PKG_CONFIG --exists --print-errors "check") 2>&5 13229 ac_status=$? 13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13231 test $ac_status = 0; }; then 13232 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check" 2>/dev/null` 13233 test "x$?" != "x0" && pkg_failed=yes 13234else 13235 pkg_failed=yes 13236fi 13237 else 13238 pkg_failed=untried 13239fi 13240if test -n "$CHECK_LIBS"; then 13241 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 13242 elif test -n "$PKG_CONFIG"; then 13243 if test -n "$PKG_CONFIG" && \ 13244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5 13245 ($PKG_CONFIG --exists --print-errors "check") 2>&5 13246 ac_status=$? 13247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13248 test $ac_status = 0; }; then 13249 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check" 2>/dev/null` 13250 test "x$?" != "x0" && pkg_failed=yes 13251else 13252 pkg_failed=yes 13253fi 13254 else 13255 pkg_failed=untried 13256fi 13257 13258 13259 13260if test $pkg_failed = yes; then 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13262$as_echo "no" >&6; } 13263 13264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13265 _pkg_short_errors_supported=yes 13266else 13267 _pkg_short_errors_supported=no 13268fi 13269 if test $_pkg_short_errors_supported = yes; then 13270 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check" 2>&1` 13271 else 13272 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check" 2>&1` 13273 fi 13274 # Put the nasty error message in config.log where it belongs 13275 echo "$CHECK_PKG_ERRORS" >&5 13276 13277 have_check=no 13278elif test $pkg_failed = untried; then 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13280$as_echo "no" >&6; } 13281 have_check=no 13282else 13283 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 13284 CHECK_LIBS=$pkg_cv_CHECK_LIBS 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13286$as_echo "yes" >&6; } 13287 have_check=yes 13288fi 13289 13290 13291 if test "x$have_check" = "xyes"; then 13292 BUILD_HAVE_CHECK_TRUE= 13293 BUILD_HAVE_CHECK_FALSE='#' 13294else 13295 BUILD_HAVE_CHECK_TRUE='#' 13296 BUILD_HAVE_CHECK_FALSE= 13297fi 13298 13299 13300# 13301# debug mode 13302# If --enable-debug is given, we enable several non-standard debug options. We 13303# enable a lot of debug options by default, so this option is really only for 13304# extended developer debug modes. 13305# 13306 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with debugging on" >&5 13308$as_echo_n "checking whether to build with debugging on... " >&6; } 13309# Check whether --enable-debug was given. 13310if test "${enable_debug+set}" = set; then : 13311 enableval=$enable_debug; 13312fi 13313 13314if test "x$enable_debug" = "x" ; then 13315 enable_debug="yes (default)" 13316fi 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 13318$as_echo "$enable_debug" >&6; } 13319 13320if test "x${enable_debug% *}" = "xyes" ; then 13321 enable_debug="yes" 13322 13323$as_echo "#define BUILD_ENABLE_DEBUG 1" >>confdefs.h 13324 13325else 13326 enable_debug="no" 13327 13328$as_echo "#define NDEBUG 1" >>confdefs.h 13329 13330fi 13331 if test "x$enable_debug" = "xyes"; then 13332 BUILD_ENABLE_DEBUG_TRUE= 13333 BUILD_ENABLE_DEBUG_FALSE='#' 13334else 13335 BUILD_ENABLE_DEBUG_TRUE='#' 13336 BUILD_ENABLE_DEBUG_FALSE= 13337fi 13338 13339 13340# 13341# Enable gcc compiler optimizations. We enable them by default but allow 13342# disabling them for better backtraces during debugging. 13343# 13344 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable code optimizations" >&5 13346$as_echo_n "checking whether to enable code optimizations... " >&6; } 13347# Check whether --enable-optimizations was given. 13348if test "${enable_optimizations+set}" = set; then : 13349 enableval=$enable_optimizations; 13350fi 13351 13352if test "x$enable_optimizations" = "x" ; then 13353 enable_optimizations="yes (default)" 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optimizations" >&5 13356$as_echo "$enable_optimizations" >&6; } 13357 13358if test "x${enable_optimizations% *}" = "xyes" ; then 13359 enable_optimizations="yes" 13360else 13361 enable_optimizations="no" 13362fi 13363 if test "x$enable_optimizations" = "xyes"; then 13364 BUILD_ENABLE_OPTIMIZATIONS_TRUE= 13365 BUILD_ENABLE_OPTIMIZATIONS_FALSE='#' 13366else 13367 BUILD_ENABLE_OPTIMIZATIONS_TRUE='#' 13368 BUILD_ENABLE_OPTIMIZATIONS_FALSE= 13369fi 13370 13371 13372# 13373# Makefile vars 13374# After everything is configured, we create all makefiles. 13375# 13376 13377ac_config_files="$ac_config_files Makefile docs/libtsm.pc" 13378 13379cat >confcache <<\_ACEOF 13380# This file is a shell script that caches the results of configure 13381# tests run on this system so they can be shared between configure 13382# scripts and configure runs, see configure's option --config-cache. 13383# It is not useful on other systems. If it contains results you don't 13384# want to keep, you may remove or edit it. 13385# 13386# config.status only pays attention to the cache file if you give it 13387# the --recheck option to rerun configure. 13388# 13389# `ac_cv_env_foo' variables (set or unset) will be overridden when 13390# loading this file, other *unset* `ac_cv_foo' will be assigned the 13391# following values. 13392 13393_ACEOF 13394 13395# The following way of writing the cache mishandles newlines in values, 13396# but we know of no workaround that is simple, portable, and efficient. 13397# So, we kill variables containing newlines. 13398# Ultrix sh set writes to stderr and can't be redirected directly, 13399# and sets the high bit in the cache file unless we assign to the vars. 13400( 13401 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13402 eval ac_val=\$$ac_var 13403 case $ac_val in #( 13404 *${as_nl}*) 13405 case $ac_var in #( 13406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13408 esac 13409 case $ac_var in #( 13410 _ | IFS | as_nl) ;; #( 13411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13412 *) { eval $ac_var=; unset $ac_var;} ;; 13413 esac ;; 13414 esac 13415 done 13416 13417 (set) 2>&1 | 13418 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13419 *${as_nl}ac_space=\ *) 13420 # `set' does not quote correctly, so add quotes: double-quote 13421 # substitution turns \\\\ into \\, and sed turns \\ into \. 13422 sed -n \ 13423 "s/'/'\\\\''/g; 13424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13425 ;; #( 13426 *) 13427 # `set' quotes correctly as required by POSIX, so do not add quotes. 13428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13429 ;; 13430 esac | 13431 sort 13432) | 13433 sed ' 13434 /^ac_cv_env_/b end 13435 t clear 13436 :clear 13437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13438 t end 13439 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13440 :end' >>confcache 13441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13442 if test -w "$cache_file"; then 13443 if test "x$cache_file" != "x/dev/null"; then 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13445$as_echo "$as_me: updating cache $cache_file" >&6;} 13446 if test ! -f "$cache_file" || test -h "$cache_file"; then 13447 cat confcache >"$cache_file" 13448 else 13449 case $cache_file in #( 13450 */* | ?:*) 13451 mv -f confcache "$cache_file"$$ && 13452 mv -f "$cache_file"$$ "$cache_file" ;; #( 13453 *) 13454 mv -f confcache "$cache_file" ;; 13455 esac 13456 fi 13457 fi 13458 else 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13460$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13461 fi 13462fi 13463rm -f confcache 13464 13465test "x$prefix" = xNONE && prefix=$ac_default_prefix 13466# Let make expand exec_prefix. 13467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13468 13469DEFS=-DHAVE_CONFIG_H 13470 13471ac_libobjs= 13472ac_ltlibobjs= 13473U= 13474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13475 # 1. Remove the extension, and $U if already installed. 13476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13477 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13479 # will be set to the directory where LIBOBJS objects are built. 13480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13482done 13483LIBOBJS=$ac_libobjs 13484 13485LTLIBOBJS=$ac_ltlibobjs 13486 13487 13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13489$as_echo_n "checking that generated files are newer than configure... " >&6; } 13490 if test -n "$am_sleep_pid"; then 13491 # Hide warnings about reused PIDs. 13492 wait $am_sleep_pid 2>/dev/null 13493 fi 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13495$as_echo "done" >&6; } 13496if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13497 as_fn_error $? "conditional \"AMDEP\" was never defined. 13498Usually this means the macro was only invoked conditionally." "$LINENO" 5 13499fi 13500if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13502Usually this means the macro was only invoked conditionally." "$LINENO" 5 13503fi 13504 if test -n "$EXEEXT"; then 13505 am__EXEEXT_TRUE= 13506 am__EXEEXT_FALSE='#' 13507else 13508 am__EXEEXT_TRUE='#' 13509 am__EXEEXT_FALSE= 13510fi 13511 13512if test -z "${BUILD_HAVE_XKBCOMMON_TRUE}" && test -z "${BUILD_HAVE_XKBCOMMON_FALSE}"; then 13513 as_fn_error $? "conditional \"BUILD_HAVE_XKBCOMMON\" was never defined. 13514Usually this means the macro was only invoked conditionally." "$LINENO" 5 13515fi 13516if test -z "${BUILD_HAVE_CHECK_TRUE}" && test -z "${BUILD_HAVE_CHECK_FALSE}"; then 13517 as_fn_error $? "conditional \"BUILD_HAVE_CHECK\" was never defined. 13518Usually this means the macro was only invoked conditionally." "$LINENO" 5 13519fi 13520if test -z "${BUILD_ENABLE_DEBUG_TRUE}" && test -z "${BUILD_ENABLE_DEBUG_FALSE}"; then 13521 as_fn_error $? "conditional \"BUILD_ENABLE_DEBUG\" was never defined. 13522Usually this means the macro was only invoked conditionally." "$LINENO" 5 13523fi 13524if test -z "${BUILD_ENABLE_OPTIMIZATIONS_TRUE}" && test -z "${BUILD_ENABLE_OPTIMIZATIONS_FALSE}"; then 13525 as_fn_error $? "conditional \"BUILD_ENABLE_OPTIMIZATIONS\" was never defined. 13526Usually this means the macro was only invoked conditionally." "$LINENO" 5 13527fi 13528 13529: "${CONFIG_STATUS=./config.status}" 13530ac_write_fail=0 13531ac_clean_files_save=$ac_clean_files 13532ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13533{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13534$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13535as_write_fail=0 13536cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13537#! $SHELL 13538# Generated by $as_me. 13539# Run this file to recreate the current configuration. 13540# Compiler output produced by configure, useful for debugging 13541# configure, is in config.log if it exists. 13542 13543debug=false 13544ac_cs_recheck=false 13545ac_cs_silent=false 13546 13547SHELL=\${CONFIG_SHELL-$SHELL} 13548export SHELL 13549_ASEOF 13550cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13551## -------------------- ## 13552## M4sh Initialization. ## 13553## -------------------- ## 13554 13555# Be more Bourne compatible 13556DUALCASE=1; export DUALCASE # for MKS sh 13557if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13558 emulate sh 13559 NULLCMD=: 13560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13561 # is contrary to our usage. Disable this feature. 13562 alias -g '${1+"$@"}'='"$@"' 13563 setopt NO_GLOB_SUBST 13564else 13565 case `(set -o) 2>/dev/null` in #( 13566 *posix*) : 13567 set -o posix ;; #( 13568 *) : 13569 ;; 13570esac 13571fi 13572 13573 13574as_nl=' 13575' 13576export as_nl 13577# Printing a long string crashes Solaris 7 /usr/bin/printf. 13578as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13579as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13580as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13581# Prefer a ksh shell builtin over an external printf program on Solaris, 13582# but without wasting forks for bash or zsh. 13583if test -z "$BASH_VERSION$ZSH_VERSION" \ 13584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13585 as_echo='print -r --' 13586 as_echo_n='print -rn --' 13587elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13588 as_echo='printf %s\n' 13589 as_echo_n='printf %s' 13590else 13591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13593 as_echo_n='/usr/ucb/echo -n' 13594 else 13595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13596 as_echo_n_body='eval 13597 arg=$1; 13598 case $arg in #( 13599 *"$as_nl"*) 13600 expr "X$arg" : "X\\(.*\\)$as_nl"; 13601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13602 esac; 13603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13604 ' 13605 export as_echo_n_body 13606 as_echo_n='sh -c $as_echo_n_body as_echo' 13607 fi 13608 export as_echo_body 13609 as_echo='sh -c $as_echo_body as_echo' 13610fi 13611 13612# The user is always right. 13613if test "${PATH_SEPARATOR+set}" != set; then 13614 PATH_SEPARATOR=: 13615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13617 PATH_SEPARATOR=';' 13618 } 13619fi 13620 13621 13622# IFS 13623# We need space, tab and new line, in precisely that order. Quoting is 13624# there to prevent editors from complaining about space-tab. 13625# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13626# splitting by setting IFS to empty value.) 13627IFS=" "" $as_nl" 13628 13629# Find who we are. Look in the path if we contain no directory separator. 13630as_myself= 13631case $0 in #(( 13632 *[\\/]* ) as_myself=$0 ;; 13633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13634for as_dir in $PATH 13635do 13636 IFS=$as_save_IFS 13637 test -z "$as_dir" && as_dir=. 13638 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13639 done 13640IFS=$as_save_IFS 13641 13642 ;; 13643esac 13644# We did not find ourselves, most probably we were run as `sh COMMAND' 13645# in which case we are not to be found in the path. 13646if test "x$as_myself" = x; then 13647 as_myself=$0 13648fi 13649if test ! -f "$as_myself"; then 13650 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13651 exit 1 13652fi 13653 13654# Unset variables that we do not need and which cause bugs (e.g. in 13655# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13656# suppresses any "Segmentation fault" message there. '((' could 13657# trigger a bug in pdksh 5.2.14. 13658for as_var in BASH_ENV ENV MAIL MAILPATH 13659do eval test x\${$as_var+set} = xset \ 13660 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13661done 13662PS1='$ ' 13663PS2='> ' 13664PS4='+ ' 13665 13666# NLS nuisances. 13667LC_ALL=C 13668export LC_ALL 13669LANGUAGE=C 13670export LANGUAGE 13671 13672# CDPATH. 13673(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13674 13675 13676# as_fn_error STATUS ERROR [LINENO LOG_FD] 13677# ---------------------------------------- 13678# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13679# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13680# script with STATUS, using 1 if that was 0. 13681as_fn_error () 13682{ 13683 as_status=$1; test $as_status -eq 0 && as_status=1 13684 if test "$4"; then 13685 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13686 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13687 fi 13688 $as_echo "$as_me: error: $2" >&2 13689 as_fn_exit $as_status 13690} # as_fn_error 13691 13692 13693# as_fn_set_status STATUS 13694# ----------------------- 13695# Set $? to STATUS, without forking. 13696as_fn_set_status () 13697{ 13698 return $1 13699} # as_fn_set_status 13700 13701# as_fn_exit STATUS 13702# ----------------- 13703# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13704as_fn_exit () 13705{ 13706 set +e 13707 as_fn_set_status $1 13708 exit $1 13709} # as_fn_exit 13710 13711# as_fn_unset VAR 13712# --------------- 13713# Portably unset VAR. 13714as_fn_unset () 13715{ 13716 { eval $1=; unset $1;} 13717} 13718as_unset=as_fn_unset 13719# as_fn_append VAR VALUE 13720# ---------------------- 13721# Append the text in VALUE to the end of the definition contained in VAR. Take 13722# advantage of any shell optimizations that allow amortized linear growth over 13723# repeated appends, instead of the typical quadratic growth present in naive 13724# implementations. 13725if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13726 eval 'as_fn_append () 13727 { 13728 eval $1+=\$2 13729 }' 13730else 13731 as_fn_append () 13732 { 13733 eval $1=\$$1\$2 13734 } 13735fi # as_fn_append 13736 13737# as_fn_arith ARG... 13738# ------------------ 13739# Perform arithmetic evaluation on the ARGs, and store the result in the 13740# global $as_val. Take advantage of shells that can avoid forks. The arguments 13741# must be portable across $(()) and expr. 13742if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13743 eval 'as_fn_arith () 13744 { 13745 as_val=$(( $* )) 13746 }' 13747else 13748 as_fn_arith () 13749 { 13750 as_val=`expr "$@" || test $? -eq 1` 13751 } 13752fi # as_fn_arith 13753 13754 13755if expr a : '\(a\)' >/dev/null 2>&1 && 13756 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13757 as_expr=expr 13758else 13759 as_expr=false 13760fi 13761 13762if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13763 as_basename=basename 13764else 13765 as_basename=false 13766fi 13767 13768if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13769 as_dirname=dirname 13770else 13771 as_dirname=false 13772fi 13773 13774as_me=`$as_basename -- "$0" || 13775$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13776 X"$0" : 'X\(//\)$' \| \ 13777 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13778$as_echo X/"$0" | 13779 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13780 s//\1/ 13781 q 13782 } 13783 /^X\/\(\/\/\)$/{ 13784 s//\1/ 13785 q 13786 } 13787 /^X\/\(\/\).*/{ 13788 s//\1/ 13789 q 13790 } 13791 s/.*/./; q'` 13792 13793# Avoid depending upon Character Ranges. 13794as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13795as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13796as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13797as_cr_digits='0123456789' 13798as_cr_alnum=$as_cr_Letters$as_cr_digits 13799 13800ECHO_C= ECHO_N= ECHO_T= 13801case `echo -n x` in #((((( 13802-n*) 13803 case `echo 'xy\c'` in 13804 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13805 xy) ECHO_C='\c';; 13806 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13807 ECHO_T=' ';; 13808 esac;; 13809*) 13810 ECHO_N='-n';; 13811esac 13812 13813rm -f conf$$ conf$$.exe conf$$.file 13814if test -d conf$$.dir; then 13815 rm -f conf$$.dir/conf$$.file 13816else 13817 rm -f conf$$.dir 13818 mkdir conf$$.dir 2>/dev/null 13819fi 13820if (echo >conf$$.file) 2>/dev/null; then 13821 if ln -s conf$$.file conf$$ 2>/dev/null; then 13822 as_ln_s='ln -s' 13823 # ... but there are two gotchas: 13824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13826 # In both cases, we have to default to `cp -pR'. 13827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13828 as_ln_s='cp -pR' 13829 elif ln conf$$.file conf$$ 2>/dev/null; then 13830 as_ln_s=ln 13831 else 13832 as_ln_s='cp -pR' 13833 fi 13834else 13835 as_ln_s='cp -pR' 13836fi 13837rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13838rmdir conf$$.dir 2>/dev/null 13839 13840 13841# as_fn_mkdir_p 13842# ------------- 13843# Create "$as_dir" as a directory, including parents if necessary. 13844as_fn_mkdir_p () 13845{ 13846 13847 case $as_dir in #( 13848 -*) as_dir=./$as_dir;; 13849 esac 13850 test -d "$as_dir" || eval $as_mkdir_p || { 13851 as_dirs= 13852 while :; do 13853 case $as_dir in #( 13854 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13855 *) as_qdir=$as_dir;; 13856 esac 13857 as_dirs="'$as_qdir' $as_dirs" 13858 as_dir=`$as_dirname -- "$as_dir" || 13859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13860 X"$as_dir" : 'X\(//\)[^/]' \| \ 13861 X"$as_dir" : 'X\(//\)$' \| \ 13862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13863$as_echo X"$as_dir" | 13864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13865 s//\1/ 13866 q 13867 } 13868 /^X\(\/\/\)[^/].*/{ 13869 s//\1/ 13870 q 13871 } 13872 /^X\(\/\/\)$/{ 13873 s//\1/ 13874 q 13875 } 13876 /^X\(\/\).*/{ 13877 s//\1/ 13878 q 13879 } 13880 s/.*/./; q'` 13881 test -d "$as_dir" && break 13882 done 13883 test -z "$as_dirs" || eval "mkdir $as_dirs" 13884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13885 13886 13887} # as_fn_mkdir_p 13888if mkdir -p . 2>/dev/null; then 13889 as_mkdir_p='mkdir -p "$as_dir"' 13890else 13891 test -d ./-p && rmdir ./-p 13892 as_mkdir_p=false 13893fi 13894 13895 13896# as_fn_executable_p FILE 13897# ----------------------- 13898# Test if FILE is an executable regular file. 13899as_fn_executable_p () 13900{ 13901 test -f "$1" && test -x "$1" 13902} # as_fn_executable_p 13903as_test_x='test -x' 13904as_executable_p=as_fn_executable_p 13905 13906# Sed expression to map a string onto a valid CPP name. 13907as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13908 13909# Sed expression to map a string onto a valid variable name. 13910as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13911 13912 13913exec 6>&1 13914## ----------------------------------- ## 13915## Main body of $CONFIG_STATUS script. ## 13916## ----------------------------------- ## 13917_ASEOF 13918test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13919 13920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13921# Save the log message, to keep $0 and so on meaningful, and to 13922# report actual input values of CONFIG_FILES etc. instead of their 13923# values after options handling. 13924ac_log=" 13925This file was extended by libtsm $as_me 3, which was 13926generated by GNU Autoconf 2.69. Invocation command line was 13927 13928 CONFIG_FILES = $CONFIG_FILES 13929 CONFIG_HEADERS = $CONFIG_HEADERS 13930 CONFIG_LINKS = $CONFIG_LINKS 13931 CONFIG_COMMANDS = $CONFIG_COMMANDS 13932 $ $0 $@ 13933 13934on `(hostname || uname -n) 2>/dev/null | sed 1q` 13935" 13936 13937_ACEOF 13938 13939case $ac_config_files in *" 13940"*) set x $ac_config_files; shift; ac_config_files=$*;; 13941esac 13942 13943case $ac_config_headers in *" 13944"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13945esac 13946 13947 13948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13949# Files that config.status was made for. 13950config_files="$ac_config_files" 13951config_headers="$ac_config_headers" 13952config_commands="$ac_config_commands" 13953 13954_ACEOF 13955 13956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13957ac_cs_usage="\ 13958\`$as_me' instantiates files and other configuration actions 13959from templates according to the current configuration. Unless the files 13960and actions are specified as TAGs, all are instantiated by default. 13961 13962Usage: $0 [OPTION]... [TAG]... 13963 13964 -h, --help print this help, then exit 13965 -V, --version print version number and configuration settings, then exit 13966 --config print configuration, then exit 13967 -q, --quiet, --silent 13968 do not print progress messages 13969 -d, --debug don't remove temporary files 13970 --recheck update $as_me by reconfiguring in the same conditions 13971 --file=FILE[:TEMPLATE] 13972 instantiate the configuration file FILE 13973 --header=FILE[:TEMPLATE] 13974 instantiate the configuration header FILE 13975 13976Configuration files: 13977$config_files 13978 13979Configuration headers: 13980$config_headers 13981 13982Configuration commands: 13983$config_commands 13984 13985Report bugs to <https://github.com/dvdhrm/libtsm/issues>. 13986libtsm home page: <http://dvdhrm.github.io/libtsm>." 13987 13988_ACEOF 13989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13990ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13991ac_cs_version="\\ 13992libtsm config.status 3 13993configured by $0, generated by GNU Autoconf 2.69, 13994 with options \\"\$ac_cs_config\\" 13995 13996Copyright (C) 2012 Free Software Foundation, Inc. 13997This config.status script is free software; the Free Software Foundation 13998gives unlimited permission to copy, distribute and modify it." 13999 14000ac_pwd='$ac_pwd' 14001srcdir='$srcdir' 14002INSTALL='$INSTALL' 14003MKDIR_P='$MKDIR_P' 14004AWK='$AWK' 14005test -n "\$AWK" || AWK=awk 14006_ACEOF 14007 14008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14009# The default lists apply if the user does not specify any file. 14010ac_need_defaults=: 14011while test $# != 0 14012do 14013 case $1 in 14014 --*=?*) 14015 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14017 ac_shift=: 14018 ;; 14019 --*=) 14020 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14021 ac_optarg= 14022 ac_shift=: 14023 ;; 14024 *) 14025 ac_option=$1 14026 ac_optarg=$2 14027 ac_shift=shift 14028 ;; 14029 esac 14030 14031 case $ac_option in 14032 # Handling of the options. 14033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14034 ac_cs_recheck=: ;; 14035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14036 $as_echo "$ac_cs_version"; exit ;; 14037 --config | --confi | --conf | --con | --co | --c ) 14038 $as_echo "$ac_cs_config"; exit ;; 14039 --debug | --debu | --deb | --de | --d | -d ) 14040 debug=: ;; 14041 --file | --fil | --fi | --f ) 14042 $ac_shift 14043 case $ac_optarg in 14044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14045 '') as_fn_error $? "missing file argument" ;; 14046 esac 14047 as_fn_append CONFIG_FILES " '$ac_optarg'" 14048 ac_need_defaults=false;; 14049 --header | --heade | --head | --hea ) 14050 $ac_shift 14051 case $ac_optarg in 14052 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14053 esac 14054 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14055 ac_need_defaults=false;; 14056 --he | --h) 14057 # Conflict between --help and --header 14058 as_fn_error $? "ambiguous option: \`$1' 14059Try \`$0 --help' for more information.";; 14060 --help | --hel | -h ) 14061 $as_echo "$ac_cs_usage"; exit ;; 14062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14063 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14064 ac_cs_silent=: ;; 14065 14066 # This is an error. 14067 -*) as_fn_error $? "unrecognized option: \`$1' 14068Try \`$0 --help' for more information." ;; 14069 14070 *) as_fn_append ac_config_targets " $1" 14071 ac_need_defaults=false ;; 14072 14073 esac 14074 shift 14075done 14076 14077ac_configure_extra_args= 14078 14079if $ac_cs_silent; then 14080 exec 6>/dev/null 14081 ac_configure_extra_args="$ac_configure_extra_args --silent" 14082fi 14083 14084_ACEOF 14085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14086if \$ac_cs_recheck; then 14087 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14088 shift 14089 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14090 CONFIG_SHELL='$SHELL' 14091 export CONFIG_SHELL 14092 exec "\$@" 14093fi 14094 14095_ACEOF 14096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14097exec 5>>config.log 14098{ 14099 echo 14100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14101## Running $as_me. ## 14102_ASBOX 14103 $as_echo "$ac_log" 14104} >&5 14105 14106_ACEOF 14107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14108# 14109# INIT-COMMANDS 14110# 14111AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14112 14113 14114# The HP-UX ksh and POSIX shell print the target directory to stdout 14115# if CDPATH is set. 14116(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14117 14118sed_quote_subst='$sed_quote_subst' 14119double_quote_subst='$double_quote_subst' 14120delay_variable_subst='$delay_variable_subst' 14121macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14122macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14123enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14124enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14125pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14126enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14127SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14128ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14129PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14130host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14131host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14132host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14133build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14134build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14135build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14136SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14137Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14138GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14139EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14140FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14141LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14142NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14143LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14144max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14145ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14146exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14147lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14148lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14149lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14150lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14151lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14152reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14153reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14154OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14155deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14156file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14157file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14158want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14159DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14160sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14161AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14162AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14163archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14164STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14165RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14166old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14167old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14168old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14169lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14170CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14171CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14172compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14173GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14174lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14175lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14176lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14177lt_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"`' 14178nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14179lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14180objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14181MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14182lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14183lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14184lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14185lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14186lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14187need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14188MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14189DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14190NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14191LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14192OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14193OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14194libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14195shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14196extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14197archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14198enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14199export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14200whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14201compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14202old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14203old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14204archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14205archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14206module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14207module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14208with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14209allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14210no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14211hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14212hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14213hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14214hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14215hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14216hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14217hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14218inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14219link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14220always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14221export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14222exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14223include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14224prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14225postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14226file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14227variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14228need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14229need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14230version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14231runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14232shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14233shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14234libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14235library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14236soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14237install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14238postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14239postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14240finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14241finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14242hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14243sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14244sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14245hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14246enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14247enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14248enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14249old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14250striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14251 14252LTCC='$LTCC' 14253LTCFLAGS='$LTCFLAGS' 14254compiler='$compiler_DEFAULT' 14255 14256# A function that is used when there is no print builtin or printf. 14257func_fallback_echo () 14258{ 14259 eval 'cat <<_LTECHO_EOF 14260\$1 14261_LTECHO_EOF' 14262} 14263 14264# Quote evaled strings. 14265for var in SHELL \ 14266ECHO \ 14267PATH_SEPARATOR \ 14268SED \ 14269GREP \ 14270EGREP \ 14271FGREP \ 14272LD \ 14273NM \ 14274LN_S \ 14275lt_SP2NL \ 14276lt_NL2SP \ 14277reload_flag \ 14278OBJDUMP \ 14279deplibs_check_method \ 14280file_magic_cmd \ 14281file_magic_glob \ 14282want_nocaseglob \ 14283DLLTOOL \ 14284sharedlib_from_linklib_cmd \ 14285AR \ 14286AR_FLAGS \ 14287archiver_list_spec \ 14288STRIP \ 14289RANLIB \ 14290CC \ 14291CFLAGS \ 14292compiler \ 14293lt_cv_sys_global_symbol_pipe \ 14294lt_cv_sys_global_symbol_to_cdecl \ 14295lt_cv_sys_global_symbol_to_c_name_address \ 14296lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14297nm_file_list_spec \ 14298lt_prog_compiler_no_builtin_flag \ 14299lt_prog_compiler_pic \ 14300lt_prog_compiler_wl \ 14301lt_prog_compiler_static \ 14302lt_cv_prog_compiler_c_o \ 14303need_locks \ 14304MANIFEST_TOOL \ 14305DSYMUTIL \ 14306NMEDIT \ 14307LIPO \ 14308OTOOL \ 14309OTOOL64 \ 14310shrext_cmds \ 14311export_dynamic_flag_spec \ 14312whole_archive_flag_spec \ 14313compiler_needs_object \ 14314with_gnu_ld \ 14315allow_undefined_flag \ 14316no_undefined_flag \ 14317hardcode_libdir_flag_spec \ 14318hardcode_libdir_separator \ 14319exclude_expsyms \ 14320include_expsyms \ 14321file_list_spec \ 14322variables_saved_for_relink \ 14323libname_spec \ 14324library_names_spec \ 14325soname_spec \ 14326install_override_mode \ 14327finish_eval \ 14328old_striplib \ 14329striplib; do 14330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14331 *[\\\\\\\`\\"\\\$]*) 14332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14333 ;; 14334 *) 14335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14336 ;; 14337 esac 14338done 14339 14340# Double-quote double-evaled strings. 14341for var in reload_cmds \ 14342old_postinstall_cmds \ 14343old_postuninstall_cmds \ 14344old_archive_cmds \ 14345extract_expsyms_cmds \ 14346old_archive_from_new_cmds \ 14347old_archive_from_expsyms_cmds \ 14348archive_cmds \ 14349archive_expsym_cmds \ 14350module_cmds \ 14351module_expsym_cmds \ 14352export_symbols_cmds \ 14353prelink_cmds \ 14354postlink_cmds \ 14355postinstall_cmds \ 14356postuninstall_cmds \ 14357finish_cmds \ 14358sys_lib_search_path_spec \ 14359sys_lib_dlsearch_path_spec; do 14360 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14361 *[\\\\\\\`\\"\\\$]*) 14362 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14363 ;; 14364 *) 14365 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14366 ;; 14367 esac 14368done 14369 14370ac_aux_dir='$ac_aux_dir' 14371xsi_shell='$xsi_shell' 14372lt_shell_append='$lt_shell_append' 14373 14374# See if we are running on zsh, and set the options which allow our 14375# commands through without removal of \ escapes INIT. 14376if test -n "\${ZSH_VERSION+set}" ; then 14377 setopt NO_GLOB_SUBST 14378fi 14379 14380 14381 PACKAGE='$PACKAGE' 14382 VERSION='$VERSION' 14383 TIMESTAMP='$TIMESTAMP' 14384 RM='$RM' 14385 ofile='$ofile' 14386 14387 14388 14389 14390_ACEOF 14391 14392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14393 14394# Handling of arguments. 14395for ac_config_target in $ac_config_targets 14396do 14397 case $ac_config_target in 14398 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14399 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14400 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14402 "docs/libtsm.pc") CONFIG_FILES="$CONFIG_FILES docs/libtsm.pc" ;; 14403 14404 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14405 esac 14406done 14407 14408 14409# If the user did not use the arguments to specify the items to instantiate, 14410# then the envvar interface is used. Set only those that are not. 14411# We use the long form for the default assignment because of an extremely 14412# bizarre bug on SunOS 4.1.3. 14413if $ac_need_defaults; then 14414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14416 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14417fi 14418 14419# Have a temporary directory for convenience. Make it in the build tree 14420# simply because there is no reason against having it here, and in addition, 14421# creating and moving files from /tmp can sometimes cause problems. 14422# Hook for its removal unless debugging. 14423# Note that there is a small window in which the directory will not be cleaned: 14424# after its creation but before its name has been assigned to `$tmp'. 14425$debug || 14426{ 14427 tmp= ac_tmp= 14428 trap 'exit_status=$? 14429 : "${ac_tmp:=$tmp}" 14430 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14431' 0 14432 trap 'as_fn_exit 1' 1 2 13 15 14433} 14434# Create a (secure) tmp directory for tmp files. 14435 14436{ 14437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14438 test -d "$tmp" 14439} || 14440{ 14441 tmp=./conf$$-$RANDOM 14442 (umask 077 && mkdir "$tmp") 14443} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14444ac_tmp=$tmp 14445 14446# Set up the scripts for CONFIG_FILES section. 14447# No need to generate them if there are no CONFIG_FILES. 14448# This happens for instance with `./config.status config.h'. 14449if test -n "$CONFIG_FILES"; then 14450 14451 14452ac_cr=`echo X | tr X '\015'` 14453# On cygwin, bash can eat \r inside `` if the user requested igncr. 14454# But we know of no other shell where ac_cr would be empty at this 14455# point, so we can use a bashism as a fallback. 14456if test "x$ac_cr" = x; then 14457 eval ac_cr=\$\'\\r\' 14458fi 14459ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14460if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14461 ac_cs_awk_cr='\\r' 14462else 14463 ac_cs_awk_cr=$ac_cr 14464fi 14465 14466echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14467_ACEOF 14468 14469 14470{ 14471 echo "cat >conf$$subs.awk <<_ACEOF" && 14472 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14473 echo "_ACEOF" 14474} >conf$$subs.sh || 14475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14476ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14477ac_delim='%!_!# ' 14478for ac_last_try in false false false false false :; do 14479 . ./conf$$subs.sh || 14480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14481 14482 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14483 if test $ac_delim_n = $ac_delim_num; then 14484 break 14485 elif $ac_last_try; then 14486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14487 else 14488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14489 fi 14490done 14491rm -f conf$$subs.sh 14492 14493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14494cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14495_ACEOF 14496sed -n ' 14497h 14498s/^/S["/; s/!.*/"]=/ 14499p 14500g 14501s/^[^!]*!// 14502:repl 14503t repl 14504s/'"$ac_delim"'$// 14505t delim 14506:nl 14507h 14508s/\(.\{148\}\)..*/\1/ 14509t more1 14510s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14511p 14512n 14513b repl 14514:more1 14515s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14516p 14517g 14518s/.\{148\}// 14519t nl 14520:delim 14521h 14522s/\(.\{148\}\)..*/\1/ 14523t more2 14524s/["\\]/\\&/g; s/^/"/; s/$/"/ 14525p 14526b 14527:more2 14528s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14529p 14530g 14531s/.\{148\}// 14532t delim 14533' <conf$$subs.awk | sed ' 14534/^[^""]/{ 14535 N 14536 s/\n// 14537} 14538' >>$CONFIG_STATUS || ac_write_fail=1 14539rm -f conf$$subs.awk 14540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14541_ACAWK 14542cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14543 for (key in S) S_is_set[key] = 1 14544 FS = "" 14545 14546} 14547{ 14548 line = $ 0 14549 nfields = split(line, field, "@") 14550 substed = 0 14551 len = length(field[1]) 14552 for (i = 2; i < nfields; i++) { 14553 key = field[i] 14554 keylen = length(key) 14555 if (S_is_set[key]) { 14556 value = S[key] 14557 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14558 len += length(value) + length(field[++i]) 14559 substed = 1 14560 } else 14561 len += 1 + keylen 14562 } 14563 14564 print line 14565} 14566 14567_ACAWK 14568_ACEOF 14569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14570if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14571 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14572else 14573 cat 14574fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14575 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14576_ACEOF 14577 14578# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14579# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14580# trailing colons and then remove the whole line if VPATH becomes empty 14581# (actually we leave an empty line to preserve line numbers). 14582if test "x$srcdir" = x.; then 14583 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14584h 14585s/// 14586s/^/:/ 14587s/[ ]*$/:/ 14588s/:\$(srcdir):/:/g 14589s/:\${srcdir}:/:/g 14590s/:@srcdir@:/:/g 14591s/^:*// 14592s/:*$// 14593x 14594s/\(=[ ]*\).*/\1/ 14595G 14596s/\n// 14597s/^[^=]*=[ ]*$// 14598}' 14599fi 14600 14601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14602fi # test -n "$CONFIG_FILES" 14603 14604# Set up the scripts for CONFIG_HEADERS section. 14605# No need to generate them if there are no CONFIG_HEADERS. 14606# This happens for instance with `./config.status Makefile'. 14607if test -n "$CONFIG_HEADERS"; then 14608cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14609BEGIN { 14610_ACEOF 14611 14612# Transform confdefs.h into an awk script `defines.awk', embedded as 14613# here-document in config.status, that substitutes the proper values into 14614# config.h.in to produce config.h. 14615 14616# Create a delimiter string that does not exist in confdefs.h, to ease 14617# handling of long lines. 14618ac_delim='%!_!# ' 14619for ac_last_try in false false :; do 14620 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14621 if test -z "$ac_tt"; then 14622 break 14623 elif $ac_last_try; then 14624 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14625 else 14626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14627 fi 14628done 14629 14630# For the awk script, D is an array of macro values keyed by name, 14631# likewise P contains macro parameters if any. Preserve backslash 14632# newline sequences. 14633 14634ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14635sed -n ' 14636s/.\{148\}/&'"$ac_delim"'/g 14637t rset 14638:rset 14639s/^[ ]*#[ ]*define[ ][ ]*/ / 14640t def 14641d 14642:def 14643s/\\$// 14644t bsnl 14645s/["\\]/\\&/g 14646s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14647D["\1"]=" \3"/p 14648s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14649d 14650:bsnl 14651s/["\\]/\\&/g 14652s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14653D["\1"]=" \3\\\\\\n"\\/p 14654t cont 14655s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14656t cont 14657d 14658:cont 14659n 14660s/.\{148\}/&'"$ac_delim"'/g 14661t clear 14662:clear 14663s/\\$// 14664t bsnlc 14665s/["\\]/\\&/g; s/^/"/; s/$/"/p 14666d 14667:bsnlc 14668s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14669b cont 14670' <confdefs.h | sed ' 14671s/'"$ac_delim"'/"\\\ 14672"/g' >>$CONFIG_STATUS || ac_write_fail=1 14673 14674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14675 for (key in D) D_is_set[key] = 1 14676 FS = "" 14677} 14678/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14679 line = \$ 0 14680 split(line, arg, " ") 14681 if (arg[1] == "#") { 14682 defundef = arg[2] 14683 mac1 = arg[3] 14684 } else { 14685 defundef = substr(arg[1], 2) 14686 mac1 = arg[2] 14687 } 14688 split(mac1, mac2, "(") #) 14689 macro = mac2[1] 14690 prefix = substr(line, 1, index(line, defundef) - 1) 14691 if (D_is_set[macro]) { 14692 # Preserve the white space surrounding the "#". 14693 print prefix "define", macro P[macro] D[macro] 14694 next 14695 } else { 14696 # Replace #undef with comments. This is necessary, for example, 14697 # in the case of _POSIX_SOURCE, which is predefined and required 14698 # on some systems where configure will not decide to define it. 14699 if (defundef == "undef") { 14700 print "/*", prefix defundef, macro, "*/" 14701 next 14702 } 14703 } 14704} 14705{ print } 14706_ACAWK 14707_ACEOF 14708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14709 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14710fi # test -n "$CONFIG_HEADERS" 14711 14712 14713eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14714shift 14715for ac_tag 14716do 14717 case $ac_tag in 14718 :[FHLC]) ac_mode=$ac_tag; continue;; 14719 esac 14720 case $ac_mode$ac_tag in 14721 :[FHL]*:*);; 14722 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14723 :[FH]-) ac_tag=-:-;; 14724 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14725 esac 14726 ac_save_IFS=$IFS 14727 IFS=: 14728 set x $ac_tag 14729 IFS=$ac_save_IFS 14730 shift 14731 ac_file=$1 14732 shift 14733 14734 case $ac_mode in 14735 :L) ac_source=$1;; 14736 :[FH]) 14737 ac_file_inputs= 14738 for ac_f 14739 do 14740 case $ac_f in 14741 -) ac_f="$ac_tmp/stdin";; 14742 *) # Look for the file first in the build tree, then in the source tree 14743 # (if the path is not absolute). The absolute path cannot be DOS-style, 14744 # because $ac_f cannot contain `:'. 14745 test -f "$ac_f" || 14746 case $ac_f in 14747 [\\/$]*) false;; 14748 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14749 esac || 14750 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14751 esac 14752 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14753 as_fn_append ac_file_inputs " '$ac_f'" 14754 done 14755 14756 # Let's still pretend it is `configure' which instantiates (i.e., don't 14757 # use $as_me), people would be surprised to read: 14758 # /* config.h. Generated by config.status. */ 14759 configure_input='Generated from '` 14760 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14761 `' by configure.' 14762 if test x"$ac_file" != x-; then 14763 configure_input="$ac_file. $configure_input" 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14765$as_echo "$as_me: creating $ac_file" >&6;} 14766 fi 14767 # Neutralize special characters interpreted by sed in replacement strings. 14768 case $configure_input in #( 14769 *\&* | *\|* | *\\* ) 14770 ac_sed_conf_input=`$as_echo "$configure_input" | 14771 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14772 *) ac_sed_conf_input=$configure_input;; 14773 esac 14774 14775 case $ac_tag in 14776 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14778 esac 14779 ;; 14780 esac 14781 14782 ac_dir=`$as_dirname -- "$ac_file" || 14783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14784 X"$ac_file" : 'X\(//\)[^/]' \| \ 14785 X"$ac_file" : 'X\(//\)$' \| \ 14786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14787$as_echo X"$ac_file" | 14788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14789 s//\1/ 14790 q 14791 } 14792 /^X\(\/\/\)[^/].*/{ 14793 s//\1/ 14794 q 14795 } 14796 /^X\(\/\/\)$/{ 14797 s//\1/ 14798 q 14799 } 14800 /^X\(\/\).*/{ 14801 s//\1/ 14802 q 14803 } 14804 s/.*/./; q'` 14805 as_dir="$ac_dir"; as_fn_mkdir_p 14806 ac_builddir=. 14807 14808case "$ac_dir" in 14809.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14810*) 14811 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14812 # A ".." for each directory in $ac_dir_suffix. 14813 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14814 case $ac_top_builddir_sub in 14815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14817 esac ;; 14818esac 14819ac_abs_top_builddir=$ac_pwd 14820ac_abs_builddir=$ac_pwd$ac_dir_suffix 14821# for backward compatibility: 14822ac_top_builddir=$ac_top_build_prefix 14823 14824case $srcdir in 14825 .) # We are building in place. 14826 ac_srcdir=. 14827 ac_top_srcdir=$ac_top_builddir_sub 14828 ac_abs_top_srcdir=$ac_pwd ;; 14829 [\\/]* | ?:[\\/]* ) # Absolute name. 14830 ac_srcdir=$srcdir$ac_dir_suffix; 14831 ac_top_srcdir=$srcdir 14832 ac_abs_top_srcdir=$srcdir ;; 14833 *) # Relative name. 14834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14835 ac_top_srcdir=$ac_top_build_prefix$srcdir 14836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14837esac 14838ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14839 14840 14841 case $ac_mode in 14842 :F) 14843 # 14844 # CONFIG_FILE 14845 # 14846 14847 case $INSTALL in 14848 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14849 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14850 esac 14851 ac_MKDIR_P=$MKDIR_P 14852 case $MKDIR_P in 14853 [\\/$]* | ?:[\\/]* ) ;; 14854 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14855 esac 14856_ACEOF 14857 14858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14859# If the template does not know about datarootdir, expand it. 14860# FIXME: This hack should be removed a few years after 2.60. 14861ac_datarootdir_hack=; ac_datarootdir_seen= 14862ac_sed_dataroot=' 14863/datarootdir/ { 14864 p 14865 q 14866} 14867/@datadir@/p 14868/@docdir@/p 14869/@infodir@/p 14870/@localedir@/p 14871/@mandir@/p' 14872case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14873*datarootdir*) ac_datarootdir_seen=yes;; 14874*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14876$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14877_ACEOF 14878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14879 ac_datarootdir_hack=' 14880 s&@datadir@&$datadir&g 14881 s&@docdir@&$docdir&g 14882 s&@infodir@&$infodir&g 14883 s&@localedir@&$localedir&g 14884 s&@mandir@&$mandir&g 14885 s&\\\${datarootdir}&$datarootdir&g' ;; 14886esac 14887_ACEOF 14888 14889# Neutralize VPATH when `$srcdir' = `.'. 14890# Shell code in configure.ac might set extrasub. 14891# FIXME: do we really want to maintain this feature? 14892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14893ac_sed_extra="$ac_vpsub 14894$extrasub 14895_ACEOF 14896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14897:t 14898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14899s|@configure_input@|$ac_sed_conf_input|;t t 14900s&@top_builddir@&$ac_top_builddir_sub&;t t 14901s&@top_build_prefix@&$ac_top_build_prefix&;t t 14902s&@srcdir@&$ac_srcdir&;t t 14903s&@abs_srcdir@&$ac_abs_srcdir&;t t 14904s&@top_srcdir@&$ac_top_srcdir&;t t 14905s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14906s&@builddir@&$ac_builddir&;t t 14907s&@abs_builddir@&$ac_abs_builddir&;t t 14908s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14909s&@INSTALL@&$ac_INSTALL&;t t 14910s&@MKDIR_P@&$ac_MKDIR_P&;t t 14911$ac_datarootdir_hack 14912" 14913eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14914 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14915 14916test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14917 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14918 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14919 "$ac_tmp/out"`; test -z "$ac_out"; } && 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14921which seems to be undefined. Please make sure it is defined" >&5 14922$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14923which seems to be undefined. Please make sure it is defined" >&2;} 14924 14925 rm -f "$ac_tmp/stdin" 14926 case $ac_file in 14927 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14928 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14929 esac \ 14930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14931 ;; 14932 :H) 14933 # 14934 # CONFIG_HEADER 14935 # 14936 if test x"$ac_file" != x-; then 14937 { 14938 $as_echo "/* $configure_input */" \ 14939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14940 } >"$ac_tmp/config.h" \ 14941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14942 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14944$as_echo "$as_me: $ac_file is unchanged" >&6;} 14945 else 14946 rm -f "$ac_file" 14947 mv "$ac_tmp/config.h" "$ac_file" \ 14948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14949 fi 14950 else 14951 $as_echo "/* $configure_input */" \ 14952 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14953 || as_fn_error $? "could not create -" "$LINENO" 5 14954 fi 14955# Compute "$ac_file"'s index in $config_headers. 14956_am_arg="$ac_file" 14957_am_stamp_count=1 14958for _am_header in $config_headers :; do 14959 case $_am_header in 14960 $_am_arg | $_am_arg:* ) 14961 break ;; 14962 * ) 14963 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14964 esac 14965done 14966echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14967$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14968 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14969 X"$_am_arg" : 'X\(//\)$' \| \ 14970 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14971$as_echo X"$_am_arg" | 14972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14973 s//\1/ 14974 q 14975 } 14976 /^X\(\/\/\)[^/].*/{ 14977 s//\1/ 14978 q 14979 } 14980 /^X\(\/\/\)$/{ 14981 s//\1/ 14982 q 14983 } 14984 /^X\(\/\).*/{ 14985 s//\1/ 14986 q 14987 } 14988 s/.*/./; q'`/stamp-h$_am_stamp_count 14989 ;; 14990 14991 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14992$as_echo "$as_me: executing $ac_file commands" >&6;} 14993 ;; 14994 esac 14995 14996 14997 case $ac_file$ac_mode in 14998 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14999 # Older Autoconf quotes --file arguments for eval, but not when files 15000 # are listed without --file. Let's play safe and only enable the eval 15001 # if we detect the quoting. 15002 case $CONFIG_FILES in 15003 *\'*) eval set x "$CONFIG_FILES" ;; 15004 *) set x $CONFIG_FILES ;; 15005 esac 15006 shift 15007 for mf 15008 do 15009 # Strip MF so we end up with the name of the file. 15010 mf=`echo "$mf" | sed -e 's/:.*$//'` 15011 # Check whether this is an Automake generated Makefile or not. 15012 # We used to match only the files named 'Makefile.in', but 15013 # some people rename them; so instead we look at the file content. 15014 # Grep'ing the first line is not enough: some people post-process 15015 # each Makefile.in and add a new line on top of each file to say so. 15016 # Grep'ing the whole file is not good either: AIX grep has a line 15017 # limit of 2048, but all sed's we know have understand at least 4000. 15018 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15019 dirpart=`$as_dirname -- "$mf" || 15020$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15021 X"$mf" : 'X\(//\)[^/]' \| \ 15022 X"$mf" : 'X\(//\)$' \| \ 15023 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15024$as_echo X"$mf" | 15025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15026 s//\1/ 15027 q 15028 } 15029 /^X\(\/\/\)[^/].*/{ 15030 s//\1/ 15031 q 15032 } 15033 /^X\(\/\/\)$/{ 15034 s//\1/ 15035 q 15036 } 15037 /^X\(\/\).*/{ 15038 s//\1/ 15039 q 15040 } 15041 s/.*/./; q'` 15042 else 15043 continue 15044 fi 15045 # Extract the definition of DEPDIR, am__include, and am__quote 15046 # from the Makefile without running 'make'. 15047 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15048 test -z "$DEPDIR" && continue 15049 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15050 test -z "$am__include" && continue 15051 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15052 # Find all dependency output files, they are included files with 15053 # $(DEPDIR) in their names. We invoke sed twice because it is the 15054 # simplest approach to changing $(DEPDIR) to its actual value in the 15055 # expansion. 15056 for file in `sed -n " 15057 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15058 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15059 # Make sure the directory exists. 15060 test -f "$dirpart/$file" && continue 15061 fdir=`$as_dirname -- "$file" || 15062$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15063 X"$file" : 'X\(//\)[^/]' \| \ 15064 X"$file" : 'X\(//\)$' \| \ 15065 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15066$as_echo X"$file" | 15067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15068 s//\1/ 15069 q 15070 } 15071 /^X\(\/\/\)[^/].*/{ 15072 s//\1/ 15073 q 15074 } 15075 /^X\(\/\/\)$/{ 15076 s//\1/ 15077 q 15078 } 15079 /^X\(\/\).*/{ 15080 s//\1/ 15081 q 15082 } 15083 s/.*/./; q'` 15084 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15085 # echo "creating $dirpart/$file" 15086 echo '# dummy' > "$dirpart/$file" 15087 done 15088 done 15089} 15090 ;; 15091 "libtool":C) 15092 15093 # See if we are running on zsh, and set the options which allow our 15094 # commands through without removal of \ escapes. 15095 if test -n "${ZSH_VERSION+set}" ; then 15096 setopt NO_GLOB_SUBST 15097 fi 15098 15099 cfgfile="${ofile}T" 15100 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15101 $RM "$cfgfile" 15102 15103 cat <<_LT_EOF >> "$cfgfile" 15104#! $SHELL 15105 15106# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15107# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15108# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15109# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15110# 15111# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15112# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15113# Foundation, Inc. 15114# Written by Gordon Matzigkeit, 1996 15115# 15116# This file is part of GNU Libtool. 15117# 15118# GNU Libtool is free software; you can redistribute it and/or 15119# modify it under the terms of the GNU General Public License as 15120# published by the Free Software Foundation; either version 2 of 15121# the License, or (at your option) any later version. 15122# 15123# As a special exception to the GNU General Public License, 15124# if you distribute this file as part of a program or library that 15125# is built using GNU Libtool, you may include this file under the 15126# same distribution terms that you use for the rest of that program. 15127# 15128# GNU Libtool is distributed in the hope that it will be useful, 15129# but WITHOUT ANY WARRANTY; without even the implied warranty of 15130# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15131# GNU General Public License for more details. 15132# 15133# You should have received a copy of the GNU General Public License 15134# along with GNU Libtool; see the file COPYING. If not, a copy 15135# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15136# obtained by writing to the Free Software Foundation, Inc., 15137# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15138 15139 15140# The names of the tagged configurations supported by this script. 15141available_tags="" 15142 15143# ### BEGIN LIBTOOL CONFIG 15144 15145# Which release of libtool.m4 was used? 15146macro_version=$macro_version 15147macro_revision=$macro_revision 15148 15149# Whether or not to build shared libraries. 15150build_libtool_libs=$enable_shared 15151 15152# Whether or not to build static libraries. 15153build_old_libs=$enable_static 15154 15155# What type of objects to build. 15156pic_mode=$pic_mode 15157 15158# Whether or not to optimize for fast installation. 15159fast_install=$enable_fast_install 15160 15161# Shell to use when invoking shell scripts. 15162SHELL=$lt_SHELL 15163 15164# An echo program that protects backslashes. 15165ECHO=$lt_ECHO 15166 15167# The PATH separator for the build system. 15168PATH_SEPARATOR=$lt_PATH_SEPARATOR 15169 15170# The host system. 15171host_alias=$host_alias 15172host=$host 15173host_os=$host_os 15174 15175# The build system. 15176build_alias=$build_alias 15177build=$build 15178build_os=$build_os 15179 15180# A sed program that does not truncate output. 15181SED=$lt_SED 15182 15183# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15184Xsed="\$SED -e 1s/^X//" 15185 15186# A grep program that handles long lines. 15187GREP=$lt_GREP 15188 15189# An ERE matcher. 15190EGREP=$lt_EGREP 15191 15192# A literal string matcher. 15193FGREP=$lt_FGREP 15194 15195# A BSD- or MS-compatible name lister. 15196NM=$lt_NM 15197 15198# Whether we need soft or hard links. 15199LN_S=$lt_LN_S 15200 15201# What is the maximum length of a command? 15202max_cmd_len=$max_cmd_len 15203 15204# Object file suffix (normally "o"). 15205objext=$ac_objext 15206 15207# Executable file suffix (normally ""). 15208exeext=$exeext 15209 15210# whether the shell understands "unset". 15211lt_unset=$lt_unset 15212 15213# turn spaces into newlines. 15214SP2NL=$lt_lt_SP2NL 15215 15216# turn newlines into spaces. 15217NL2SP=$lt_lt_NL2SP 15218 15219# convert \$build file names to \$host format. 15220to_host_file_cmd=$lt_cv_to_host_file_cmd 15221 15222# convert \$build files to toolchain format. 15223to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15224 15225# An object symbol dumper. 15226OBJDUMP=$lt_OBJDUMP 15227 15228# Method to check whether dependent libraries are shared objects. 15229deplibs_check_method=$lt_deplibs_check_method 15230 15231# Command to use when deplibs_check_method = "file_magic". 15232file_magic_cmd=$lt_file_magic_cmd 15233 15234# How to find potential files when deplibs_check_method = "file_magic". 15235file_magic_glob=$lt_file_magic_glob 15236 15237# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15238want_nocaseglob=$lt_want_nocaseglob 15239 15240# DLL creation program. 15241DLLTOOL=$lt_DLLTOOL 15242 15243# Command to associate shared and link libraries. 15244sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15245 15246# The archiver. 15247AR=$lt_AR 15248 15249# Flags to create an archive. 15250AR_FLAGS=$lt_AR_FLAGS 15251 15252# How to feed a file listing to the archiver. 15253archiver_list_spec=$lt_archiver_list_spec 15254 15255# A symbol stripping program. 15256STRIP=$lt_STRIP 15257 15258# Commands used to install an old-style archive. 15259RANLIB=$lt_RANLIB 15260old_postinstall_cmds=$lt_old_postinstall_cmds 15261old_postuninstall_cmds=$lt_old_postuninstall_cmds 15262 15263# Whether to use a lock for old archive extraction. 15264lock_old_archive_extraction=$lock_old_archive_extraction 15265 15266# A C compiler. 15267LTCC=$lt_CC 15268 15269# LTCC compiler flags. 15270LTCFLAGS=$lt_CFLAGS 15271 15272# Take the output of nm and produce a listing of raw symbols and C names. 15273global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15274 15275# Transform the output of nm in a proper C declaration. 15276global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15277 15278# Transform the output of nm in a C name address pair. 15279global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15280 15281# Transform the output of nm in a C name address pair when lib prefix is needed. 15282global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15283 15284# Specify filename containing input files for \$NM. 15285nm_file_list_spec=$lt_nm_file_list_spec 15286 15287# The root where to search for dependent libraries,and in which our libraries should be installed. 15288lt_sysroot=$lt_sysroot 15289 15290# The name of the directory that contains temporary libtool files. 15291objdir=$objdir 15292 15293# Used to examine libraries when file_magic_cmd begins with "file". 15294MAGIC_CMD=$MAGIC_CMD 15295 15296# Must we lock files when doing compilation? 15297need_locks=$lt_need_locks 15298 15299# Manifest tool. 15300MANIFEST_TOOL=$lt_MANIFEST_TOOL 15301 15302# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15303DSYMUTIL=$lt_DSYMUTIL 15304 15305# Tool to change global to local symbols on Mac OS X. 15306NMEDIT=$lt_NMEDIT 15307 15308# Tool to manipulate fat objects and archives on Mac OS X. 15309LIPO=$lt_LIPO 15310 15311# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15312OTOOL=$lt_OTOOL 15313 15314# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15315OTOOL64=$lt_OTOOL64 15316 15317# Old archive suffix (normally "a"). 15318libext=$libext 15319 15320# Shared library suffix (normally ".so"). 15321shrext_cmds=$lt_shrext_cmds 15322 15323# The commands to extract the exported symbol list from a shared archive. 15324extract_expsyms_cmds=$lt_extract_expsyms_cmds 15325 15326# Variables whose values should be saved in libtool wrapper scripts and 15327# restored at link time. 15328variables_saved_for_relink=$lt_variables_saved_for_relink 15329 15330# Do we need the "lib" prefix for modules? 15331need_lib_prefix=$need_lib_prefix 15332 15333# Do we need a version for libraries? 15334need_version=$need_version 15335 15336# Library versioning type. 15337version_type=$version_type 15338 15339# Shared library runtime path variable. 15340runpath_var=$runpath_var 15341 15342# Shared library path variable. 15343shlibpath_var=$shlibpath_var 15344 15345# Is shlibpath searched before the hard-coded library search path? 15346shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15347 15348# Format of library name prefix. 15349libname_spec=$lt_libname_spec 15350 15351# List of archive names. First name is the real one, the rest are links. 15352# The last name is the one that the linker finds with -lNAME 15353library_names_spec=$lt_library_names_spec 15354 15355# The coded name of the library, if different from the real name. 15356soname_spec=$lt_soname_spec 15357 15358# Permission mode override for installation of shared libraries. 15359install_override_mode=$lt_install_override_mode 15360 15361# Command to use after installation of a shared archive. 15362postinstall_cmds=$lt_postinstall_cmds 15363 15364# Command to use after uninstallation of a shared archive. 15365postuninstall_cmds=$lt_postuninstall_cmds 15366 15367# Commands used to finish a libtool library installation in a directory. 15368finish_cmds=$lt_finish_cmds 15369 15370# As "finish_cmds", except a single script fragment to be evaled but 15371# not shown. 15372finish_eval=$lt_finish_eval 15373 15374# Whether we should hardcode library paths into libraries. 15375hardcode_into_libs=$hardcode_into_libs 15376 15377# Compile-time system search path for libraries. 15378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15379 15380# Run-time system search path for libraries. 15381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15382 15383# Whether dlopen is supported. 15384dlopen_support=$enable_dlopen 15385 15386# Whether dlopen of programs is supported. 15387dlopen_self=$enable_dlopen_self 15388 15389# Whether dlopen of statically linked programs is supported. 15390dlopen_self_static=$enable_dlopen_self_static 15391 15392# Commands to strip libraries. 15393old_striplib=$lt_old_striplib 15394striplib=$lt_striplib 15395 15396 15397# The linker used to build libraries. 15398LD=$lt_LD 15399 15400# How to create reloadable object files. 15401reload_flag=$lt_reload_flag 15402reload_cmds=$lt_reload_cmds 15403 15404# Commands used to build an old-style archive. 15405old_archive_cmds=$lt_old_archive_cmds 15406 15407# A language specific compiler. 15408CC=$lt_compiler 15409 15410# Is the compiler the GNU compiler? 15411with_gcc=$GCC 15412 15413# Compiler flag to turn off builtin functions. 15414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15415 15416# Additional compiler flags for building library objects. 15417pic_flag=$lt_lt_prog_compiler_pic 15418 15419# How to pass a linker flag through the compiler. 15420wl=$lt_lt_prog_compiler_wl 15421 15422# Compiler flag to prevent dynamic linking. 15423link_static_flag=$lt_lt_prog_compiler_static 15424 15425# Does compiler simultaneously support -c and -o options? 15426compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15427 15428# Whether or not to add -lc for building shared libraries. 15429build_libtool_need_lc=$archive_cmds_need_lc 15430 15431# Whether or not to disallow shared libs when runtime libs are static. 15432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15433 15434# Compiler flag to allow reflexive dlopens. 15435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15436 15437# Compiler flag to generate shared objects directly from archives. 15438whole_archive_flag_spec=$lt_whole_archive_flag_spec 15439 15440# Whether the compiler copes with passing no objects directly. 15441compiler_needs_object=$lt_compiler_needs_object 15442 15443# Create an old-style archive from a shared archive. 15444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15445 15446# Create a temporary old-style archive to link instead of a shared archive. 15447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15448 15449# Commands used to build a shared archive. 15450archive_cmds=$lt_archive_cmds 15451archive_expsym_cmds=$lt_archive_expsym_cmds 15452 15453# Commands used to build a loadable module if different from building 15454# a shared archive. 15455module_cmds=$lt_module_cmds 15456module_expsym_cmds=$lt_module_expsym_cmds 15457 15458# Whether we are building with GNU ld or not. 15459with_gnu_ld=$lt_with_gnu_ld 15460 15461# Flag that allows shared libraries with undefined symbols to be built. 15462allow_undefined_flag=$lt_allow_undefined_flag 15463 15464# Flag that enforces no undefined symbols. 15465no_undefined_flag=$lt_no_undefined_flag 15466 15467# Flag to hardcode \$libdir into a binary during linking. 15468# This must work even if \$libdir does not exist 15469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15470 15471# Whether we need a single "-rpath" flag with a separated argument. 15472hardcode_libdir_separator=$lt_hardcode_libdir_separator 15473 15474# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15475# DIR into the resulting binary. 15476hardcode_direct=$hardcode_direct 15477 15478# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15479# DIR into the resulting binary and the resulting library dependency is 15480# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15481# library is relocated. 15482hardcode_direct_absolute=$hardcode_direct_absolute 15483 15484# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15485# into the resulting binary. 15486hardcode_minus_L=$hardcode_minus_L 15487 15488# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15489# into the resulting binary. 15490hardcode_shlibpath_var=$hardcode_shlibpath_var 15491 15492# Set to "yes" if building a shared library automatically hardcodes DIR 15493# into the library and all subsequent libraries and executables linked 15494# against it. 15495hardcode_automatic=$hardcode_automatic 15496 15497# Set to yes if linker adds runtime paths of dependent libraries 15498# to runtime path list. 15499inherit_rpath=$inherit_rpath 15500 15501# Whether libtool must link a program against all its dependency libraries. 15502link_all_deplibs=$link_all_deplibs 15503 15504# Set to "yes" if exported symbols are required. 15505always_export_symbols=$always_export_symbols 15506 15507# The commands to list exported symbols. 15508export_symbols_cmds=$lt_export_symbols_cmds 15509 15510# Symbols that should not be listed in the preloaded symbols. 15511exclude_expsyms=$lt_exclude_expsyms 15512 15513# Symbols that must always be exported. 15514include_expsyms=$lt_include_expsyms 15515 15516# Commands necessary for linking programs (against libraries) with templates. 15517prelink_cmds=$lt_prelink_cmds 15518 15519# Commands necessary for finishing linking programs. 15520postlink_cmds=$lt_postlink_cmds 15521 15522# Specify filename containing input files. 15523file_list_spec=$lt_file_list_spec 15524 15525# How to hardcode a shared library path into an executable. 15526hardcode_action=$hardcode_action 15527 15528# ### END LIBTOOL CONFIG 15529 15530_LT_EOF 15531 15532 case $host_os in 15533 aix3*) 15534 cat <<\_LT_EOF >> "$cfgfile" 15535# AIX sometimes has problems with the GCC collect2 program. For some 15536# reason, if we set the COLLECT_NAMES environment variable, the problems 15537# vanish in a puff of smoke. 15538if test "X${COLLECT_NAMES+set}" != Xset; then 15539 COLLECT_NAMES= 15540 export COLLECT_NAMES 15541fi 15542_LT_EOF 15543 ;; 15544 esac 15545 15546 15547ltmain="$ac_aux_dir/ltmain.sh" 15548 15549 15550 # We use sed instead of cat because bash on DJGPP gets confused if 15551 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15552 # text mode, it properly converts lines to CR/LF. This bash problem 15553 # is reportedly fixed, but why not run on old versions too? 15554 sed '$q' "$ltmain" >> "$cfgfile" \ 15555 || (rm -f "$cfgfile"; exit 1) 15556 15557 if test x"$xsi_shell" = xyes; then 15558 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15559func_dirname ()\ 15560{\ 15561\ case ${1} in\ 15562\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15563\ * ) func_dirname_result="${3}" ;;\ 15564\ esac\ 15565} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15566 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15568test 0 -eq $? || _lt_function_replace_fail=: 15569 15570 15571 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15572func_basename ()\ 15573{\ 15574\ func_basename_result="${1##*/}"\ 15575} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15576 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15578test 0 -eq $? || _lt_function_replace_fail=: 15579 15580 15581 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15582func_dirname_and_basename ()\ 15583{\ 15584\ case ${1} in\ 15585\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15586\ * ) func_dirname_result="${3}" ;;\ 15587\ esac\ 15588\ func_basename_result="${1##*/}"\ 15589} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15590 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15592test 0 -eq $? || _lt_function_replace_fail=: 15593 15594 15595 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15596func_stripname ()\ 15597{\ 15598\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15599\ # positional parameters, so assign one to ordinary parameter first.\ 15600\ func_stripname_result=${3}\ 15601\ func_stripname_result=${func_stripname_result#"${1}"}\ 15602\ func_stripname_result=${func_stripname_result%"${2}"}\ 15603} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15604 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15606test 0 -eq $? || _lt_function_replace_fail=: 15607 15608 15609 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15610func_split_long_opt ()\ 15611{\ 15612\ func_split_long_opt_name=${1%%=*}\ 15613\ func_split_long_opt_arg=${1#*=}\ 15614} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15615 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15617test 0 -eq $? || _lt_function_replace_fail=: 15618 15619 15620 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15621func_split_short_opt ()\ 15622{\ 15623\ func_split_short_opt_arg=${1#??}\ 15624\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15625} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15626 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15628test 0 -eq $? || _lt_function_replace_fail=: 15629 15630 15631 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15632func_lo2o ()\ 15633{\ 15634\ case ${1} in\ 15635\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15636\ *) func_lo2o_result=${1} ;;\ 15637\ esac\ 15638} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15639 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15641test 0 -eq $? || _lt_function_replace_fail=: 15642 15643 15644 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15645func_xform ()\ 15646{\ 15647 func_xform_result=${1%.*}.lo\ 15648} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15649 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15650 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15651test 0 -eq $? || _lt_function_replace_fail=: 15652 15653 15654 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15655func_arith ()\ 15656{\ 15657 func_arith_result=$(( $* ))\ 15658} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15659 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15661test 0 -eq $? || _lt_function_replace_fail=: 15662 15663 15664 sed -e '/^func_len ()$/,/^} # func_len /c\ 15665func_len ()\ 15666{\ 15667 func_len_result=${#1}\ 15668} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15669 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15671test 0 -eq $? || _lt_function_replace_fail=: 15672 15673fi 15674 15675if test x"$lt_shell_append" = xyes; then 15676 sed -e '/^func_append ()$/,/^} # func_append /c\ 15677func_append ()\ 15678{\ 15679 eval "${1}+=\\${2}"\ 15680} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15681 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15683test 0 -eq $? || _lt_function_replace_fail=: 15684 15685 15686 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15687func_append_quoted ()\ 15688{\ 15689\ func_quote_for_eval "${2}"\ 15690\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15691} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15692 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15694test 0 -eq $? || _lt_function_replace_fail=: 15695 15696 15697 # Save a `func_append' function call where possible by direct use of '+=' 15698 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15699 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15701 test 0 -eq $? || _lt_function_replace_fail=: 15702else 15703 # Save a `func_append' function call even when '+=' is not available 15704 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15705 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15707 test 0 -eq $? || _lt_function_replace_fail=: 15708fi 15709 15710if test x"$_lt_function_replace_fail" = x":"; then 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15712$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15713fi 15714 15715 15716 mv -f "$cfgfile" "$ofile" || 15717 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15718 chmod +x "$ofile" 15719 15720 ;; 15721 15722 esac 15723done # for ac_tag 15724 15725 15726as_fn_exit 0 15727_ACEOF 15728ac_clean_files=$ac_clean_files_save 15729 15730test $ac_write_fail = 0 || 15731 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15732 15733 15734# configure is writing to config.log, and then calls config.status. 15735# config.status does its own redirection, appending to config.log. 15736# Unfortunately, on DOS this fails, as config.log is still kept open 15737# by configure, so config.status won't be able to write to it; its 15738# output is simply discarded. So we exec the FD to /dev/null, 15739# effectively closing config.log, so it can be properly (re)opened and 15740# appended to by config.status. When coming back to configure, we 15741# need to make the FD available again. 15742if test "$no_create" != yes; then 15743 ac_cs_success=: 15744 ac_config_status_args= 15745 test "$silent" = yes && 15746 ac_config_status_args="$ac_config_status_args --quiet" 15747 exec 5>/dev/null 15748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15749 exec 5>>config.log 15750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15751 # would make configure fail if this is the last instruction. 15752 $ac_cs_success || as_fn_exit 1 15753fi 15754if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15756$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15757fi 15758 15759 15760# 15761# Configuration output 15762# Show configuration to the user so they can check whether everything was 15763# configured as expected. 15764# 15765 15766{ $as_echo "$as_me:${as_lineno-$LINENO}: Build configuration: 15767 15768 prefix: $prefix 15769 exec-prefix: $exec_prefix 15770 libdir: $libdir 15771 includedir: $includedir 15772 15773 Miscellaneous Options: 15774 debug: $enable_debug 15775 optimizations: $enable_optimizations 15776 building tests: $have_check 15777 15778 Run \"${MAKE-make}\" to start compilation process" >&5 15779$as_echo "$as_me: Build configuration: 15780 15781 prefix: $prefix 15782 exec-prefix: $exec_prefix 15783 libdir: $libdir 15784 includedir: $includedir 15785 15786 Miscellaneous Options: 15787 debug: $enable_debug 15788 optimizations: $enable_optimizations 15789 building tests: $have_check 15790 15791 Run \"${MAKE-make}\" to start compilation process" >&6;} 15792