1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libevdev 1.12.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libevdev' 624PACKAGE_TARNAME='libevdev' 625PACKAGE_VERSION='1.12.1' 626PACKAGE_STRING='libevdev 1.12.1' 627PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev' 628PACKAGE_URL='http://freedesktop.org/wiki/Software/libevdev/' 629 630ac_unique_file="libevdev/libevdev.c" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE 668ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE 669HAVE_NM_FALSE 670HAVE_NM_TRUE 671pkgpyexecdir 672pyexecdir 673pkgpythondir 674pythondir 675PYTHON_EXEC_PREFIX 676PYTHON_PREFIX 677PYTHON_PLATFORM 678PYTHON_VERSION 679PYTHON 680GCOV_LDFLAGS 681GCOV_CFLAGS 682GCOV_ENABLED_FALSE 683GCOV_ENABLED_TRUE 684HAVE_DOXYGEN_FALSE 685HAVE_DOXYGEN_TRUE 686DOXYGEN 687GCC_CFLAGS 688ENABLE_STATIC_LINK_TEST_FALSE 689ENABLE_STATIC_LINK_TEST_TRUE 690ENABLE_RUNTIME_TESTS_FALSE 691ENABLE_RUNTIME_TESTS_TRUE 692HAVE_VALGRIND_FALSE 693HAVE_VALGRIND_TRUE 694VALGRIND 695CHECK_LIBS 696CHECK_CFLAGS 697PKG_CONFIG_LIBDIR 698PKG_CONFIG_PATH 699PKG_CONFIG 700OS 701GNU_LD_FLAGS 702LT_SYS_LIBRARY_PATH 703OTOOL64 704OTOOL 705LIPO 706NMEDIT 707DSYMUTIL 708MANIFEST_TOOL 709RANLIB 710ac_ct_AR 711AR 712DLLTOOL 713OBJDUMP 714LN_S 715NM 716ac_ct_DUMPBIN 717DUMPBIN 718LD 719FGREP 720EGREP 721GREP 722SED 723host_os 724host_vendor 725host_cpu 726host 727build_os 728build_vendor 729build_cpu 730build 731LIBTOOL 732LIBEVDEV_LT_VERSION 733AM_BACKSLASH 734AM_DEFAULT_VERBOSITY 735AM_DEFAULT_V 736AM_V 737CSCOPE 738ETAGS 739CTAGS 740am__fastdepCC_FALSE 741am__fastdepCC_TRUE 742CCDEPMODE 743am__nodep 744AMDEPBACKSLASH 745AMDEP_FALSE 746AMDEP_TRUE 747am__include 748DEPDIR 749am__untar 750am__tar 751AMTAR 752am__leading_dot 753SET_MAKE 754AWK 755mkdir_p 756MKDIR_P 757INSTALL_STRIP_PROGRAM 758STRIP 759install_sh 760MAKEINFO 761AUTOHEADER 762AUTOMAKE 763AUTOCONF 764ACLOCAL 765VERSION 766PACKAGE 767CYGPATH_W 768am__isrc 769INSTALL_DATA 770INSTALL_SCRIPT 771INSTALL_PROGRAM 772OBJEXT 773EXEEXT 774ac_ct_CC 775CPPFLAGS 776LDFLAGS 777CFLAGS 778CC 779target_alias 780host_alias 781build_alias 782LIBS 783ECHO_T 784ECHO_N 785ECHO_C 786DEFS 787mandir 788localedir 789libdir 790psdir 791pdfdir 792dvidir 793htmldir 794infodir 795docdir 796oldincludedir 797includedir 798runstatedir 799localstatedir 800sharedstatedir 801sysconfdir 802datadir 803datarootdir 804libexecdir 805sbindir 806bindir 807program_transform_name 808prefix 809exec_prefix 810PACKAGE_URL 811PACKAGE_BUGREPORT 812PACKAGE_STRING 813PACKAGE_VERSION 814PACKAGE_TARNAME 815PACKAGE_NAME 816PATH_SEPARATOR 817SHELL 818am__quote' 819ac_subst_files='' 820ac_user_opts=' 821enable_option_checking 822enable_dependency_tracking 823enable_silent_rules 824enable_shared 825enable_static 826with_pic 827enable_fast_install 828with_aix_soname 829with_gnu_ld 830with_sysroot 831enable_libtool_lock 832enable_gcov 833enable_coverity 834with_python_sys_prefix 835with_python_prefix 836with_python_exec_prefix 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846LT_SYS_LIBRARY_PATH 847PKG_CONFIG 848PKG_CONFIG_PATH 849PKG_CONFIG_LIBDIR 850CHECK_CFLAGS 851CHECK_LIBS 852PYTHON' 853 854 855# Initialize some variables set by options. 856ac_init_help= 857ac_init_version=false 858ac_unrecognized_opts= 859ac_unrecognized_sep= 860# The variables have the same names as the options, with 861# dashes changed to underlines. 862cache_file=/dev/null 863exec_prefix=NONE 864no_create= 865no_recursion= 866prefix=NONE 867program_prefix=NONE 868program_suffix=NONE 869program_transform_name=s,x,x, 870silent= 871site= 872srcdir= 873verbose= 874x_includes=NONE 875x_libraries=NONE 876 877# Installation directory options. 878# These are left unexpanded so users can "make install exec_prefix=/foo" 879# and all the variables that are supposed to be based on exec_prefix 880# by default will actually change. 881# Use braces instead of parens because sh, perl, etc. also accept them. 882# (The list follows the same order as the GNU Coding Standards.) 883bindir='${exec_prefix}/bin' 884sbindir='${exec_prefix}/sbin' 885libexecdir='${exec_prefix}/libexec' 886datarootdir='${prefix}/share' 887datadir='${datarootdir}' 888sysconfdir='${prefix}/etc' 889sharedstatedir='${prefix}/com' 890localstatedir='${prefix}/var' 891runstatedir='${localstatedir}/run' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 case $ac_dashdash$ac_option in 922 --) 923 ac_dashdash=yes ;; 924 925 -bindir | --bindir | --bindi | --bind | --bin | --bi) 926 ac_prev=bindir ;; 927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 928 bindir=$ac_optarg ;; 929 930 -build | --build | --buil | --bui | --bu) 931 ac_prev=build_alias ;; 932 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 933 build_alias=$ac_optarg ;; 934 935 -cache-file | --cache-file | --cache-fil | --cache-fi \ 936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 937 ac_prev=cache_file ;; 938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 940 cache_file=$ac_optarg ;; 941 942 --config-cache | -C) 943 cache_file=config.cache ;; 944 945 -datadir | --datadir | --datadi | --datad) 946 ac_prev=datadir ;; 947 -datadir=* | --datadir=* | --datadi=* | --datad=*) 948 datadir=$ac_optarg ;; 949 950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 951 | --dataroo | --dataro | --datar) 952 ac_prev=datarootdir ;; 953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 955 datarootdir=$ac_optarg ;; 956 957 -disable-* | --disable-*) 958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 959 # Reject names that are not valid shell variable names. 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 as_fn_error $? "invalid feature name: \`$ac_useropt'" 962 ac_useropt_orig=$ac_useropt 963 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 964 case $ac_user_opts in 965 *" 966"enable_$ac_useropt" 967"*) ;; 968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 969 ac_unrecognized_sep=', ';; 970 esac 971 eval enable_$ac_useropt=no ;; 972 973 -docdir | --docdir | --docdi | --doc | --do) 974 ac_prev=docdir ;; 975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 976 docdir=$ac_optarg ;; 977 978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 979 ac_prev=dvidir ;; 980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 981 dvidir=$ac_optarg ;; 982 983 -enable-* | --enable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: \`$ac_useropt'" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992"enable_$ac_useropt" 993"*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=\$ac_optarg ;; 998 999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1001 | --exec | --exe | --ex) 1002 ac_prev=exec_prefix ;; 1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1005 | --exec=* | --exe=* | --ex=*) 1006 exec_prefix=$ac_optarg ;; 1007 1008 -gas | --gas | --ga | --g) 1009 # Obsolete; use --with-gas. 1010 with_gas=yes ;; 1011 1012 -help | --help | --hel | --he | -h) 1013 ac_init_help=long ;; 1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1015 ac_init_help=recursive ;; 1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1017 ac_init_help=short ;; 1018 1019 -host | --host | --hos | --ho) 1020 ac_prev=host_alias ;; 1021 -host=* | --host=* | --hos=* | --ho=*) 1022 host_alias=$ac_optarg ;; 1023 1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1025 ac_prev=htmldir ;; 1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1027 | --ht=*) 1028 htmldir=$ac_optarg ;; 1029 1030 -includedir | --includedir | --includedi | --included | --include \ 1031 | --includ | --inclu | --incl | --inc) 1032 ac_prev=includedir ;; 1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1034 | --includ=* | --inclu=* | --incl=* | --inc=*) 1035 includedir=$ac_optarg ;; 1036 1037 -infodir | --infodir | --infodi | --infod | --info | --inf) 1038 ac_prev=infodir ;; 1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1040 infodir=$ac_optarg ;; 1041 1042 -libdir | --libdir | --libdi | --libd) 1043 ac_prev=libdir ;; 1044 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1045 libdir=$ac_optarg ;; 1046 1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1048 | --libexe | --libex | --libe) 1049 ac_prev=libexecdir ;; 1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1051 | --libexe=* | --libex=* | --libe=*) 1052 libexecdir=$ac_optarg ;; 1053 1054 -localedir | --localedir | --localedi | --localed | --locale) 1055 ac_prev=localedir ;; 1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1057 localedir=$ac_optarg ;; 1058 1059 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1060 | --localstate | --localstat | --localsta | --localst | --locals) 1061 ac_prev=localstatedir ;; 1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1064 localstatedir=$ac_optarg ;; 1065 1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1067 ac_prev=mandir ;; 1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1069 mandir=$ac_optarg ;; 1070 1071 -nfp | --nfp | --nf) 1072 # Obsolete; use --without-fp. 1073 with_fp=no ;; 1074 1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1076 | --no-cr | --no-c | -n) 1077 no_create=yes ;; 1078 1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1081 no_recursion=yes ;; 1082 1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1085 | --oldin | --oldi | --old | --ol | --o) 1086 ac_prev=oldincludedir ;; 1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1090 oldincludedir=$ac_optarg ;; 1091 1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1093 ac_prev=prefix ;; 1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1095 prefix=$ac_optarg ;; 1096 1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1098 | --program-pre | --program-pr | --program-p) 1099 ac_prev=program_prefix ;; 1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1102 program_prefix=$ac_optarg ;; 1103 1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1105 | --program-suf | --program-su | --program-s) 1106 ac_prev=program_suffix ;; 1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1109 program_suffix=$ac_optarg ;; 1110 1111 -program-transform-name | --program-transform-name \ 1112 | --program-transform-nam | --program-transform-na \ 1113 | --program-transform-n | --program-transform- \ 1114 | --program-transform | --program-transfor \ 1115 | --program-transfo | --program-transf \ 1116 | --program-trans | --program-tran \ 1117 | --progr-tra | --program-tr | --program-t) 1118 ac_prev=program_transform_name ;; 1119 -program-transform-name=* | --program-transform-name=* \ 1120 | --program-transform-nam=* | --program-transform-na=* \ 1121 | --program-transform-n=* | --program-transform-=* \ 1122 | --program-transform=* | --program-transfor=* \ 1123 | --program-transfo=* | --program-transf=* \ 1124 | --program-trans=* | --program-tran=* \ 1125 | --progr-tra=* | --program-tr=* | --program-t=*) 1126 program_transform_name=$ac_optarg ;; 1127 1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1129 ac_prev=pdfdir ;; 1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1131 pdfdir=$ac_optarg ;; 1132 1133 -psdir | --psdir | --psdi | --psd | --ps) 1134 ac_prev=psdir ;; 1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1136 psdir=$ac_optarg ;; 1137 1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1139 | -silent | --silent | --silen | --sile | --sil) 1140 silent=yes ;; 1141 1142 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1143 | --runstate | --runstat | --runsta | --runst | --runs \ 1144 | --run | --ru | --r) 1145 ac_prev=runstatedir ;; 1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1148 | --run=* | --ru=* | --r=*) 1149 runstatedir=$ac_optarg ;; 1150 1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1152 ac_prev=sbindir ;; 1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1154 | --sbi=* | --sb=*) 1155 sbindir=$ac_optarg ;; 1156 1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1159 | --sharedst | --shareds | --shared | --share | --shar \ 1160 | --sha | --sh) 1161 ac_prev=sharedstatedir ;; 1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1165 | --sha=* | --sh=*) 1166 sharedstatedir=$ac_optarg ;; 1167 1168 -site | --site | --sit) 1169 ac_prev=site ;; 1170 -site=* | --site=* | --sit=*) 1171 site=$ac_optarg ;; 1172 1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1174 ac_prev=srcdir ;; 1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1176 srcdir=$ac_optarg ;; 1177 1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1179 | --syscon | --sysco | --sysc | --sys | --sy) 1180 ac_prev=sysconfdir ;; 1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1183 sysconfdir=$ac_optarg ;; 1184 1185 -target | --target | --targe | --targ | --tar | --ta | --t) 1186 ac_prev=target_alias ;; 1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1188 target_alias=$ac_optarg ;; 1189 1190 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1191 verbose=yes ;; 1192 1193 -version | --version | --versio | --versi | --vers | -V) 1194 ac_init_version=: ;; 1195 1196 -with-* | --with-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: \`$ac_useropt'" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205"with_$ac_useropt" 1206"*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=\$ac_optarg ;; 1211 1212 -without-* | --without-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: \`$ac_useropt'" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221"with_$ac_useropt" 1222"*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1247Try \`$0 --help' for more information" 1248 ;; 1249 1250 *=*) 1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1252 # Reject names that are not valid shell variable names. 1253 case $ac_envvar in #( 1254 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1256 esac 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1266 ;; 1267 1268 esac 1269done 1270 1271if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 as_fn_error $? "missing argument to $ac_option" 1274fi 1275 1276if test -n "$ac_unrecognized_opts"; then 1277 case $enable_option_checking in 1278 no) ;; 1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1280 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1281 esac 1282fi 1283 1284# Check all directory arguments for consistency. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir runstatedir 1289do 1290 eval ac_val=\$$ac_var 1291 # Remove trailing slashes. 1292 case $ac_val in 1293 */ ) 1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1295 eval $ac_var=\$ac_val;; 1296 esac 1297 # Be sure to have absolute directory names. 1298 case $ac_val in 1299 [\\/$]* | ?:[\\/]* ) continue;; 1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1301 esac 1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1303done 1304 1305# There might be people who depend on the old broken behavior: `$host' 1306# used to hold the argument of --host etc. 1307# FIXME: To remove some day. 1308build=$build_alias 1309host=$host_alias 1310target=$target_alias 1311 1312# FIXME: To remove some day. 1313if test "x$host_alias" != x; then 1314 if test "x$build_alias" = x; then 1315 cross_compiling=maybe 1316 elif test "x$build_alias" != "x$host_alias"; then 1317 cross_compiling=yes 1318 fi 1319fi 1320 1321ac_tool_prefix= 1322test -n "$host_alias" && ac_tool_prefix=$host_alias- 1323 1324test "$silent" = yes && exec 6>/dev/null 1325 1326 1327ac_pwd=`pwd` && test -n "$ac_pwd" && 1328ac_ls_di=`ls -di .` && 1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1330 as_fn_error $? "working directory cannot be determined" 1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1332 as_fn_error $? "pwd does not report name of working directory" 1333 1334 1335# Find the source files, if location was not specified. 1336if test -z "$srcdir"; then 1337 ac_srcdir_defaulted=yes 1338 # Try the directory containing this script, then the parent directory. 1339 ac_confdir=`$as_dirname -- "$as_myself" || 1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341 X"$as_myself" : 'X\(//\)[^/]' \| \ 1342 X"$as_myself" : 'X\(//\)$' \| \ 1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1344printf "%s\n" X"$as_myself" | 1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)[^/].*/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\).*/{ 1358 s//\1/ 1359 q 1360 } 1361 s/.*/./; q'` 1362 srcdir=$ac_confdir 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 srcdir=.. 1365 fi 1366else 1367 ac_srcdir_defaulted=no 1368fi 1369if test ! -r "$srcdir/$ac_unique_file"; then 1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1372fi 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures libevdev 1.12.1 to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking ...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libevdev] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of libevdev 1.12.1:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-static[=PKGS] build static libraries [default=yes] 1488 --enable-fast-install[=PKGS] 1489 optimize for fast installation [default=yes] 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --enable-gcov Whether to enable coverage testing 1492 (default:disabled) 1493 --enable-coverity Whether to build with coverity support (default: 1494 disabled) 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1500 both] 1501 --with-aix-soname=aix|svr4|both 1502 shared library versioning (aka "SONAME") variant to 1503 provide on AIX, [default=aix]. 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1506 compiler's sysroot if not specified). 1507 --with-python-sys-prefix 1508 use Python's sys.prefix and sys.exec_prefix values 1509 --with-python_prefix override the default PYTHON_PREFIX 1510 --with-python_exec_prefix 1511 override the default PYTHON_EXEC_PREFIX 1512 1513Some influential environment variables: 1514 CC C compiler command 1515 CFLAGS C compiler flags 1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1517 nonstandard directory <lib dir> 1518 LIBS libraries to pass to the linker, e.g. -l<library> 1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1520 you have headers in a nonstandard directory <include dir> 1521 LT_SYS_LIBRARY_PATH 1522 User-defined run-time library search path. 1523 PKG_CONFIG path to pkg-config utility 1524 PKG_CONFIG_PATH 1525 directories to add to pkg-config's search path 1526 PKG_CONFIG_LIBDIR 1527 path overriding pkg-config's built-in search path 1528 CHECK_CFLAGS 1529 C compiler flags for CHECK, overriding pkg-config 1530 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1531 PYTHON the Python interpreter 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>. 1537libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for configure.gnu first; this name is used for a wrapper for 1584 # Metaconfig's "Configure" on case-insensitive file systems. 1585 if test -f "$ac_srcdir/configure.gnu"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1588 elif test -f "$ac_srcdir/configure"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure" --help=recursive 1591 else 1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1593 fi || ac_status=$? 1594 cd "$ac_pwd" || { ac_status=$?; break; } 1595 done 1596fi 1597 1598test -n "$ac_init_help" && exit $ac_status 1599if $ac_init_version; then 1600 cat <<\_ACEOF 1601libevdev configure 1.12.1 1602generated by GNU Autoconf 2.71 1603 1604Copyright (C) 2021 Free Software Foundation, Inc. 1605This configure script is free software; the Free Software Foundation 1606gives unlimited permission to copy, distribute and modify it. 1607_ACEOF 1608 exit 1609fi 1610 1611## ------------------------ ## 1612## Autoconf initialization. ## 1613## ------------------------ ## 1614 1615# ac_fn_c_try_compile LINENO 1616# -------------------------- 1617# Try to compile conftest.$ac_ext, and return whether this succeeded. 1618ac_fn_c_try_compile () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 rm -f conftest.$ac_objext conftest.beam 1622 if { { ac_try="$ac_compile" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628printf "%s\n" "$ac_try_echo"; } >&5 1629 (eval "$ac_compile") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } && { 1638 test -z "$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 } && test -s conftest.$ac_objext 1641then : 1642 ac_retval=0 1643else $as_nop 1644 printf "%s\n" "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_compile 1653 1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1655# ------------------------------------------------------- 1656# Tests whether HEADER exists and can be compiled using the include files in 1657# INCLUDES, setting the cache variable VAR accordingly. 1658ac_fn_c_check_header_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662printf %s "checking for $2... " >&6; } 1663if eval test \${$3+y} 1664then : 1665 printf %s "(cached) " >&6 1666else $as_nop 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668/* end confdefs.h. */ 1669$4 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_compile "$LINENO" 1673then : 1674 eval "$3=yes" 1675else $as_nop 1676 eval "$3=no" 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1679fi 1680eval ac_res=\$$3 1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682printf "%s\n" "$ac_res" >&6; } 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685} # ac_fn_c_check_header_compile 1686 1687# ac_fn_c_try_link LINENO 1688# ----------------------- 1689# Try to link conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_link () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1694 if { { ac_try="$ac_link" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700printf "%s\n" "$ac_try_echo"; } >&5 1701 (eval "$ac_link") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest$ac_exeext && { 1713 test "$cross_compiling" = yes || 1714 test -x conftest$ac_exeext 1715 } 1716then : 1717 ac_retval=0 1718else $as_nop 1719 printf "%s\n" "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=1 1723fi 1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1726 # interfere with the next link command; also delete a directory that is 1727 # left behind by Apple's compiler. We do this before executing the actions. 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_link 1733 1734# ac_fn_c_check_func LINENO FUNC VAR 1735# ---------------------------------- 1736# Tests whether FUNC exists, setting the cache variable VAR accordingly 1737ac_fn_c_check_func () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741printf %s "checking for $2... " >&6; } 1742if eval test \${$3+y} 1743then : 1744 printf %s "(cached) " >&6 1745else $as_nop 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. */ 1754 1755#include <limits.h> 1756#undef $2 1757 1758/* Override any GCC internal prototype to avoid an error. 1759 Use char because int might match the return type of a GCC 1760 builtin and then its argument prototype would still apply. */ 1761#ifdef __cplusplus 1762extern "C" 1763#endif 1764char $2 (); 1765/* The GNU C library defines this for functions which it implements 1766 to always fail with ENOSYS. Some functions are actually named 1767 something starting with __ and the normal name is an alias. */ 1768#if defined __stub_$2 || defined __stub___$2 1769choke me 1770#endif 1771 1772int 1773main (void) 1774{ 1775return $2 (); 1776 ; 1777 return 0; 1778} 1779_ACEOF 1780if ac_fn_c_try_link "$LINENO" 1781then : 1782 eval "$3=yes" 1783else $as_nop 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1787 conftest$ac_exeext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791printf "%s\n" "$ac_res" >&6; } 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_func 1795ac_configure_args_raw= 1796for ac_arg 1797do 1798 case $ac_arg in 1799 *\'*) 1800 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1801 esac 1802 as_fn_append ac_configure_args_raw " '$ac_arg'" 1803done 1804 1805case $ac_configure_args_raw in 1806 *$as_nl*) 1807 ac_safe_unquote= ;; 1808 *) 1809 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1810 ac_unsafe_a="$ac_unsafe_z#~" 1811 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1812 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1813esac 1814 1815cat >config.log <<_ACEOF 1816This file contains any messages produced by compilers while 1817running configure, to aid debugging if configure makes a mistake. 1818 1819It was created by libevdev $as_me 1.12.1, which was 1820generated by GNU Autoconf 2.71. Invocation command line was 1821 1822 $ $0$ac_configure_args_raw 1823 1824_ACEOF 1825exec 5>>config.log 1826{ 1827cat <<_ASUNAME 1828## --------- ## 1829## Platform. ## 1830## --------- ## 1831 1832hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1833uname -m = `(uname -m) 2>/dev/null || echo unknown` 1834uname -r = `(uname -r) 2>/dev/null || echo unknown` 1835uname -s = `(uname -s) 2>/dev/null || echo unknown` 1836uname -v = `(uname -v) 2>/dev/null || echo unknown` 1837 1838/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1839/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1840 1841/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1842/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1843/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1844/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1845/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1846/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1847/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1848 1849_ASUNAME 1850 1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1852for as_dir in $PATH 1853do 1854 IFS=$as_save_IFS 1855 case $as_dir in #((( 1856 '') as_dir=./ ;; 1857 */) ;; 1858 *) as_dir=$as_dir/ ;; 1859 esac 1860 printf "%s\n" "PATH: $as_dir" 1861 done 1862IFS=$as_save_IFS 1863 1864} >&5 1865 1866cat >&5 <<_ACEOF 1867 1868 1869## ----------- ## 1870## Core tests. ## 1871## ----------- ## 1872 1873_ACEOF 1874 1875 1876# Keep a trace of the command line. 1877# Strip out --no-create and --no-recursion so they do not pile up. 1878# Strip out --silent because we don't want to record it for future runs. 1879# Also quote any args containing shell meta-characters. 1880# Make two passes to allow for proper duplicate-argument suppression. 1881ac_configure_args= 1882ac_configure_args0= 1883ac_configure_args1= 1884ac_must_keep_next=false 1885for ac_pass in 1 2 1886do 1887 for ac_arg 1888 do 1889 case $ac_arg in 1890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1892 | -silent | --silent | --silen | --sile | --sil) 1893 continue ;; 1894 *\'*) 1895 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1896 esac 1897 case $ac_pass in 1898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1899 2) 1900 as_fn_append ac_configure_args1 " '$ac_arg'" 1901 if test $ac_must_keep_next = true; then 1902 ac_must_keep_next=false # Got value, back to normal. 1903 else 1904 case $ac_arg in 1905 *=* | --config-cache | -C | -disable-* | --disable-* \ 1906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1908 | -with-* | --with-* | -without-* | --without-* | --x) 1909 case "$ac_configure_args0 " in 1910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1911 esac 1912 ;; 1913 -* ) ac_must_keep_next=true ;; 1914 esac 1915 fi 1916 as_fn_append ac_configure_args " '$ac_arg'" 1917 ;; 1918 esac 1919 done 1920done 1921{ ac_configure_args0=; unset ac_configure_args0;} 1922{ ac_configure_args1=; unset ac_configure_args1;} 1923 1924# When interrupted or exit'd, cleanup temporary files, and complete 1925# config.log. We remove comments because anyway the quotes in there 1926# would cause problems or look ugly. 1927# WARNING: Use '\'' to represent an apostrophe within the trap. 1928# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1929trap 'exit_status=$? 1930 # Sanitize IFS. 1931 IFS=" "" $as_nl" 1932 # Save into config.log some information that might help in debugging. 1933 { 1934 echo 1935 1936 printf "%s\n" "## ---------------- ## 1937## Cache variables. ## 1938## ---------------- ##" 1939 echo 1940 # The following way of writing the cache mishandles newlines in values, 1941( 1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1943 eval ac_val=\$$ac_var 1944 case $ac_val in #( 1945 *${as_nl}*) 1946 case $ac_var in #( 1947 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1948printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1949 esac 1950 case $ac_var in #( 1951 _ | IFS | as_nl) ;; #( 1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1953 *) { eval $ac_var=; unset $ac_var;} ;; 1954 esac ;; 1955 esac 1956 done 1957 (set) 2>&1 | 1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1959 *${as_nl}ac_space=\ *) 1960 sed -n \ 1961 "s/'\''/'\''\\\\'\'''\''/g; 1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1963 ;; #( 1964 *) 1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1966 ;; 1967 esac | 1968 sort 1969) 1970 echo 1971 1972 printf "%s\n" "## ----------------- ## 1973## Output variables. ## 1974## ----------------- ##" 1975 echo 1976 for ac_var in $ac_subst_vars 1977 do 1978 eval ac_val=\$$ac_var 1979 case $ac_val in 1980 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1981 esac 1982 printf "%s\n" "$ac_var='\''$ac_val'\''" 1983 done | sort 1984 echo 1985 1986 if test -n "$ac_subst_files"; then 1987 printf "%s\n" "## ------------------- ## 1988## File substitutions. ## 1989## ------------------- ##" 1990 echo 1991 for ac_var in $ac_subst_files 1992 do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in 1995 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1996 esac 1997 printf "%s\n" "$ac_var='\''$ac_val'\''" 1998 done | sort 1999 echo 2000 fi 2001 2002 if test -s confdefs.h; then 2003 printf "%s\n" "## ----------- ## 2004## confdefs.h. ## 2005## ----------- ##" 2006 echo 2007 cat confdefs.h 2008 echo 2009 fi 2010 test "$ac_signal" != 0 && 2011 printf "%s\n" "$as_me: caught signal $ac_signal" 2012 printf "%s\n" "$as_me: exit $exit_status" 2013 } >&5 2014 rm -f core *.core core.conftest.* && 2015 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2016 exit $exit_status 2017' 0 2018for ac_signal in 1 2 13 15; do 2019 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2020done 2021ac_signal=0 2022 2023# confdefs.h avoids OS command line length limits that DEFS can exceed. 2024rm -f -r conftest* confdefs.h 2025 2026printf "%s\n" "/* confdefs.h */" > confdefs.h 2027 2028# Predefined preprocessor variables. 2029 2030printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2031 2032printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2033 2034printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2035 2036printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2037 2038printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2039 2040printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2041 2042 2043# Let the site file select an alternate cache file if it wants to. 2044# Prefer an explicitly selected file to automatically selected ones. 2045if test -n "$CONFIG_SITE"; then 2046 ac_site_files="$CONFIG_SITE" 2047elif test "x$prefix" != xNONE; then 2048 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2049else 2050 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2051fi 2052 2053for ac_site_file in $ac_site_files 2054do 2055 case $ac_site_file in #( 2056 */*) : 2057 ;; #( 2058 *) : 2059 ac_site_file=./$ac_site_file ;; 2060esac 2061 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2063printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2064 sed 's/^/| /' "$ac_site_file" >&5 2065 . "$ac_site_file" \ 2066 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2067printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2068as_fn_error $? "failed to load site script $ac_site_file 2069See \`config.log' for more details" "$LINENO" 5; } 2070 fi 2071done 2072 2073if test -r "$cache_file"; then 2074 # Some versions of bash will fail to source /dev/null (special files 2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2078printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2079 case $cache_file in 2080 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2081 *) . "./$cache_file";; 2082 esac 2083 fi 2084else 2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2086printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2087 >$cache_file 2088fi 2089 2090as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2091# Test code for whether the C compiler supports C89 (global declarations) 2092ac_c_conftest_c89_globals=' 2093/* Does the compiler advertise C89 conformance? 2094 Do not test the value of __STDC__, because some compilers set it to 0 2095 while being otherwise adequately conformant. */ 2096#if !defined __STDC__ 2097# error "Compiler does not advertise C89 conformance" 2098#endif 2099 2100#include <stddef.h> 2101#include <stdarg.h> 2102struct stat; 2103/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2104struct buf { int x; }; 2105struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2106static char *e (p, i) 2107 char **p; 2108 int i; 2109{ 2110 return p[i]; 2111} 2112static char *f (char * (*g) (char **, int), char **p, ...) 2113{ 2114 char *s; 2115 va_list v; 2116 va_start (v,p); 2117 s = g (p, va_arg (v,int)); 2118 va_end (v); 2119 return s; 2120} 2121 2122/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2123 function prototypes and stuff, but not \xHH hex character constants. 2124 These do not provoke an error unfortunately, instead are silently treated 2125 as an "x". The following induces an error, until -std is added to get 2126 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2127 array size at least. It is necessary to write \x00 == 0 to get something 2128 that is true only with -std. */ 2129int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2130 2131/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2132 inside strings and character constants. */ 2133#define FOO(x) '\''x'\'' 2134int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2135 2136int test (int i, double x); 2137struct s1 {int (*f) (int a);}; 2138struct s2 {int (*f) (double a);}; 2139int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2140 int, int);' 2141 2142# Test code for whether the C compiler supports C89 (body of main). 2143ac_c_conftest_c89_main=' 2144ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2145' 2146 2147# Test code for whether the C compiler supports C99 (global declarations) 2148ac_c_conftest_c99_globals=' 2149// Does the compiler advertise C99 conformance? 2150#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2151# error "Compiler does not advertise C99 conformance" 2152#endif 2153 2154#include <stdbool.h> 2155extern int puts (const char *); 2156extern int printf (const char *, ...); 2157extern int dprintf (int, const char *, ...); 2158extern void *malloc (size_t); 2159 2160// Check varargs macros. These examples are taken from C99 6.10.3.5. 2161// dprintf is used instead of fprintf to avoid needing to declare 2162// FILE and stderr. 2163#define debug(...) dprintf (2, __VA_ARGS__) 2164#define showlist(...) puts (#__VA_ARGS__) 2165#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2166static void 2167test_varargs_macros (void) 2168{ 2169 int x = 1234; 2170 int y = 5678; 2171 debug ("Flag"); 2172 debug ("X = %d\n", x); 2173 showlist (The first, second, and third items.); 2174 report (x>y, "x is %d but y is %d", x, y); 2175} 2176 2177// Check long long types. 2178#define BIG64 18446744073709551615ull 2179#define BIG32 4294967295ul 2180#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2181#if !BIG_OK 2182 #error "your preprocessor is broken" 2183#endif 2184#if BIG_OK 2185#else 2186 #error "your preprocessor is broken" 2187#endif 2188static long long int bignum = -9223372036854775807LL; 2189static unsigned long long int ubignum = BIG64; 2190 2191struct incomplete_array 2192{ 2193 int datasize; 2194 double data[]; 2195}; 2196 2197struct named_init { 2198 int number; 2199 const wchar_t *name; 2200 double average; 2201}; 2202 2203typedef const char *ccp; 2204 2205static inline int 2206test_restrict (ccp restrict text) 2207{ 2208 // See if C++-style comments work. 2209 // Iterate through items via the restricted pointer. 2210 // Also check for declarations in for loops. 2211 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2212 continue; 2213 return 0; 2214} 2215 2216// Check varargs and va_copy. 2217static bool 2218test_varargs (const char *format, ...) 2219{ 2220 va_list args; 2221 va_start (args, format); 2222 va_list args_copy; 2223 va_copy (args_copy, args); 2224 2225 const char *str = ""; 2226 int number = 0; 2227 float fnumber = 0; 2228 2229 while (*format) 2230 { 2231 switch (*format++) 2232 { 2233 case '\''s'\'': // string 2234 str = va_arg (args_copy, const char *); 2235 break; 2236 case '\''d'\'': // int 2237 number = va_arg (args_copy, int); 2238 break; 2239 case '\''f'\'': // float 2240 fnumber = va_arg (args_copy, double); 2241 break; 2242 default: 2243 break; 2244 } 2245 } 2246 va_end (args_copy); 2247 va_end (args); 2248 2249 return *str && number && fnumber; 2250} 2251' 2252 2253# Test code for whether the C compiler supports C99 (body of main). 2254ac_c_conftest_c99_main=' 2255 // Check bool. 2256 _Bool success = false; 2257 success |= (argc != 0); 2258 2259 // Check restrict. 2260 if (test_restrict ("String literal") == 0) 2261 success = true; 2262 char *restrict newvar = "Another string"; 2263 2264 // Check varargs. 2265 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2266 test_varargs_macros (); 2267 2268 // Check flexible array members. 2269 struct incomplete_array *ia = 2270 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2271 ia->datasize = 10; 2272 for (int i = 0; i < ia->datasize; ++i) 2273 ia->data[i] = i * 1.234; 2274 2275 // Check named initializers. 2276 struct named_init ni = { 2277 .number = 34, 2278 .name = L"Test wide string", 2279 .average = 543.34343, 2280 }; 2281 2282 ni.number = 58; 2283 2284 int dynamic_array[ni.number]; 2285 dynamic_array[0] = argv[0][0]; 2286 dynamic_array[ni.number - 1] = 543; 2287 2288 // work around unused variable warnings 2289 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2290 || dynamic_array[ni.number - 1] != 543); 2291' 2292 2293# Test code for whether the C compiler supports C11 (global declarations) 2294ac_c_conftest_c11_globals=' 2295// Does the compiler advertise C11 conformance? 2296#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2297# error "Compiler does not advertise C11 conformance" 2298#endif 2299 2300// Check _Alignas. 2301char _Alignas (double) aligned_as_double; 2302char _Alignas (0) no_special_alignment; 2303extern char aligned_as_int; 2304char _Alignas (0) _Alignas (int) aligned_as_int; 2305 2306// Check _Alignof. 2307enum 2308{ 2309 int_alignment = _Alignof (int), 2310 int_array_alignment = _Alignof (int[100]), 2311 char_alignment = _Alignof (char) 2312}; 2313_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2314 2315// Check _Noreturn. 2316int _Noreturn does_not_return (void) { for (;;) continue; } 2317 2318// Check _Static_assert. 2319struct test_static_assert 2320{ 2321 int x; 2322 _Static_assert (sizeof (int) <= sizeof (long int), 2323 "_Static_assert does not work in struct"); 2324 long int y; 2325}; 2326 2327// Check UTF-8 literals. 2328#define u8 syntax error! 2329char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2330 2331// Check duplicate typedefs. 2332typedef long *long_ptr; 2333typedef long int *long_ptr; 2334typedef long_ptr long_ptr; 2335 2336// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2337struct anonymous 2338{ 2339 union { 2340 struct { int i; int j; }; 2341 struct { int k; long int l; } w; 2342 }; 2343 int m; 2344} v1; 2345' 2346 2347# Test code for whether the C compiler supports C11 (body of main). 2348ac_c_conftest_c11_main=' 2349 _Static_assert ((offsetof (struct anonymous, i) 2350 == offsetof (struct anonymous, w.k)), 2351 "Anonymous union alignment botch"); 2352 v1.i = 2; 2353 v1.w.k = 5; 2354 ok |= v1.i != 5; 2355' 2356 2357# Test code for whether the C compiler supports C11 (complete). 2358ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2359${ac_c_conftest_c99_globals} 2360${ac_c_conftest_c11_globals} 2361 2362int 2363main (int argc, char **argv) 2364{ 2365 int ok = 0; 2366 ${ac_c_conftest_c89_main} 2367 ${ac_c_conftest_c99_main} 2368 ${ac_c_conftest_c11_main} 2369 return ok; 2370} 2371" 2372 2373# Test code for whether the C compiler supports C99 (complete). 2374ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2375${ac_c_conftest_c99_globals} 2376 2377int 2378main (int argc, char **argv) 2379{ 2380 int ok = 0; 2381 ${ac_c_conftest_c89_main} 2382 ${ac_c_conftest_c99_main} 2383 return ok; 2384} 2385" 2386 2387# Test code for whether the C compiler supports C89 (complete). 2388ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2389 2390int 2391main (int argc, char **argv) 2392{ 2393 int ok = 0; 2394 ${ac_c_conftest_c89_main} 2395 return ok; 2396} 2397" 2398 2399as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2400as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2401as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2402as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2403as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2404as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2405as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2406as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2407as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2408as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2409 2410# Auxiliary files required by this configure script. 2411ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2412 2413# Locations in which to look for auxiliary files. 2414ac_aux_dir_candidates="${srcdir}/build-aux" 2415 2416# Search for a directory containing all of the required auxiliary files, 2417# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2418# If we don't find one directory that contains all the files we need, 2419# we report the set of missing files from the *first* directory in 2420# $ac_aux_dir_candidates and give up. 2421ac_missing_aux_files="" 2422ac_first_candidate=: 2423printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425as_found=false 2426for as_dir in $ac_aux_dir_candidates 2427do 2428 IFS=$as_save_IFS 2429 case $as_dir in #((( 2430 '') as_dir=./ ;; 2431 */) ;; 2432 *) as_dir=$as_dir/ ;; 2433 esac 2434 as_found=: 2435 2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2437 ac_aux_dir_found=yes 2438 ac_install_sh= 2439 for ac_aux in $ac_aux_files 2440 do 2441 # As a special case, if "install-sh" is required, that requirement 2442 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2443 # and $ac_install_sh is set appropriately for whichever one is found. 2444 if test x"$ac_aux" = x"install-sh" 2445 then 2446 if test -f "${as_dir}install-sh"; then 2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2448 ac_install_sh="${as_dir}install-sh -c" 2449 elif test -f "${as_dir}install.sh"; then 2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2451 ac_install_sh="${as_dir}install.sh -c" 2452 elif test -f "${as_dir}shtool"; then 2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2454 ac_install_sh="${as_dir}shtool install -c" 2455 else 2456 ac_aux_dir_found=no 2457 if $ac_first_candidate; then 2458 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2459 else 2460 break 2461 fi 2462 fi 2463 else 2464 if test -f "${as_dir}${ac_aux}"; then 2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2466 else 2467 ac_aux_dir_found=no 2468 if $ac_first_candidate; then 2469 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2470 else 2471 break 2472 fi 2473 fi 2474 fi 2475 done 2476 if test "$ac_aux_dir_found" = yes; then 2477 ac_aux_dir="$as_dir" 2478 break 2479 fi 2480 ac_first_candidate=false 2481 2482 as_found=false 2483done 2484IFS=$as_save_IFS 2485if $as_found 2486then : 2487 2488else $as_nop 2489 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2490fi 2491 2492 2493# These three variables are undocumented and unsupported, 2494# and are intended to be withdrawn in a future Autoconf release. 2495# They can cause serious problems if a builder's source tree is in a directory 2496# whose full name contains unusual characters. 2497if test -f "${ac_aux_dir}config.guess"; then 2498 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2499fi 2500if test -f "${ac_aux_dir}config.sub"; then 2501 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2502fi 2503if test -f "$ac_aux_dir/configure"; then 2504 ac_configure="$SHELL ${ac_aux_dir}configure" 2505fi 2506 2507# Check that the precious variables saved in the cache have kept the same 2508# value. 2509ac_cache_corrupted=false 2510for ac_var in $ac_precious_vars; do 2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2512 eval ac_new_set=\$ac_env_${ac_var}_set 2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2514 eval ac_new_val=\$ac_env_${ac_var}_value 2515 case $ac_old_set,$ac_new_set in 2516 set,) 2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2518printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2519 ac_cache_corrupted=: ;; 2520 ,set) 2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2522printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2523 ac_cache_corrupted=: ;; 2524 ,);; 2525 *) 2526 if test "x$ac_old_val" != "x$ac_new_val"; then 2527 # differences in whitespace do not lead to failure. 2528 ac_old_val_w=`echo x $ac_old_val` 2529 ac_new_val_w=`echo x $ac_new_val` 2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2532printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2533 ac_cache_corrupted=: 2534 else 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2536printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2537 eval $ac_var=\$ac_old_val 2538 fi 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2540printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2542printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2543 fi;; 2544 esac 2545 # Pass precious variables to config.status. 2546 if test "$ac_new_set" = set; then 2547 case $ac_new_val in 2548 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2549 *) ac_arg=$ac_var=$ac_new_val ;; 2550 esac 2551 case " $ac_configure_args " in 2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2554 esac 2555 fi 2556done 2557if $ac_cache_corrupted; then 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2559printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2561printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2562 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2563 and start over" "$LINENO" 5 2564fi 2565## -------------------- ## 2566## Main body of script. ## 2567## -------------------- ## 2568 2569ac_ext=c 2570ac_cpp='$CPP $CPPFLAGS' 2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2573ac_compiler_gnu=$ac_cv_c_compiler_gnu 2574 2575 2576 2577 2578ac_config_headers="$ac_config_headers config.h" 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593# Expand $ac_aux_dir to an absolute path. 2594am_aux_dir=`cd "$ac_aux_dir" && pwd` 2595 2596ac_ext=c 2597ac_cpp='$CPP $CPPFLAGS' 2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2600ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601if test -n "$ac_tool_prefix"; then 2602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2603set dummy ${ac_tool_prefix}gcc; ac_word=$2 2604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605printf %s "checking for $ac_word... " >&6; } 2606if test ${ac_cv_prog_CC+y} 2607then : 2608 printf %s "(cached) " >&6 2609else $as_nop 2610 if test -n "$CC"; then 2611 ac_cv_prog_CC="$CC" # Let the user override the test. 2612else 2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614for as_dir in $PATH 2615do 2616 IFS=$as_save_IFS 2617 case $as_dir in #((( 2618 '') as_dir=./ ;; 2619 */) ;; 2620 *) as_dir=$as_dir/ ;; 2621 esac 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2624 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628done 2629 done 2630IFS=$as_save_IFS 2631 2632fi 2633fi 2634CC=$ac_cv_prog_CC 2635if test -n "$CC"; then 2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2637printf "%s\n" "$CC" >&6; } 2638else 2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2640printf "%s\n" "no" >&6; } 2641fi 2642 2643 2644fi 2645if test -z "$ac_cv_prog_CC"; then 2646 ac_ct_CC=$CC 2647 # Extract the first word of "gcc", so it can be a program name with args. 2648set dummy gcc; ac_word=$2 2649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2650printf %s "checking for $ac_word... " >&6; } 2651if test ${ac_cv_prog_ac_ct_CC+y} 2652then : 2653 printf %s "(cached) " >&6 2654else $as_nop 2655 if test -n "$ac_ct_CC"; then 2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2657else 2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 case $as_dir in #((( 2663 '') as_dir=./ ;; 2664 */) ;; 2665 *) as_dir=$as_dir/ ;; 2666 esac 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2669 ac_cv_prog_ac_ct_CC="gcc" 2670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679ac_ct_CC=$ac_cv_prog_ac_ct_CC 2680if test -n "$ac_ct_CC"; then 2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2682printf "%s\n" "$ac_ct_CC" >&6; } 2683else 2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685printf "%s\n" "no" >&6; } 2686fi 2687 2688 if test "x$ac_ct_CC" = x; then 2689 CC="" 2690 else 2691 case $cross_compiling:$ac_tool_warned in 2692yes:) 2693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2695ac_tool_warned=yes ;; 2696esac 2697 CC=$ac_ct_CC 2698 fi 2699else 2700 CC="$ac_cv_prog_CC" 2701fi 2702 2703if test -z "$CC"; then 2704 if test -n "$ac_tool_prefix"; then 2705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2706set dummy ${ac_tool_prefix}cc; ac_word=$2 2707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2708printf %s "checking for $ac_word... " >&6; } 2709if test ${ac_cv_prog_CC+y} 2710then : 2711 printf %s "(cached) " >&6 2712else $as_nop 2713 if test -n "$CC"; then 2714 ac_cv_prog_CC="$CC" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 case $as_dir in #((( 2721 '') as_dir=./ ;; 2722 */) ;; 2723 *) as_dir=$as_dir/ ;; 2724 esac 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2727 ac_cv_prog_CC="${ac_tool_prefix}cc" 2728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732 done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737CC=$ac_cv_prog_CC 2738if test -n "$CC"; then 2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2740printf "%s\n" "$CC" >&6; } 2741else 2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2743printf "%s\n" "no" >&6; } 2744fi 2745 2746 2747 fi 2748fi 2749if test -z "$CC"; then 2750 # Extract the first word of "cc", so it can be a program name with args. 2751set dummy cc; ac_word=$2 2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2753printf %s "checking for $ac_word... " >&6; } 2754if test ${ac_cv_prog_CC+y} 2755then : 2756 printf %s "(cached) " >&6 2757else $as_nop 2758 if test -n "$CC"; then 2759 ac_cv_prog_CC="$CC" # Let the user override the test. 2760else 2761 ac_prog_rejected=no 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 case $as_dir in #((( 2767 '') as_dir=./ ;; 2768 */) ;; 2769 *) as_dir=$as_dir/ ;; 2770 esac 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2773 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2774 ac_prog_rejected=yes 2775 continue 2776 fi 2777 ac_cv_prog_CC="cc" 2778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785if test $ac_prog_rejected = yes; then 2786 # We found a bogon in the path, so make sure we never use it. 2787 set dummy $ac_cv_prog_CC 2788 shift 2789 if test $# != 0; then 2790 # We chose a different compiler from the bogus one. 2791 # However, it has the same basename, so the bogon will be chosen 2792 # first if we set CC to just the basename; use the full file name. 2793 shift 2794 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2795 fi 2796fi 2797fi 2798fi 2799CC=$ac_cv_prog_CC 2800if test -n "$CC"; then 2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2802printf "%s\n" "$CC" >&6; } 2803else 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2805printf "%s\n" "no" >&6; } 2806fi 2807 2808 2809fi 2810if test -z "$CC"; then 2811 if test -n "$ac_tool_prefix"; then 2812 for ac_prog in cl.exe 2813 do 2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2815set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817printf %s "checking for $ac_word... " >&6; } 2818if test ${ac_cv_prog_CC+y} 2819then : 2820 printf %s "(cached) " >&6 2821else $as_nop 2822 if test -n "$CC"; then 2823 ac_cv_prog_CC="$CC" # Let the user override the test. 2824else 2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 case $as_dir in #((( 2830 '') as_dir=./ ;; 2831 */) ;; 2832 *) as_dir=$as_dir/ ;; 2833 esac 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841 done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846CC=$ac_cv_prog_CC 2847if test -n "$CC"; then 2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2849printf "%s\n" "$CC" >&6; } 2850else 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852printf "%s\n" "no" >&6; } 2853fi 2854 2855 2856 test -n "$CC" && break 2857 done 2858fi 2859if test -z "$CC"; then 2860 ac_ct_CC=$CC 2861 for ac_prog in cl.exe 2862do 2863 # Extract the first word of "$ac_prog", so it can be a program name with args. 2864set dummy $ac_prog; ac_word=$2 2865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2866printf %s "checking for $ac_word... " >&6; } 2867if test ${ac_cv_prog_ac_ct_CC+y} 2868then : 2869 printf %s "(cached) " >&6 2870else $as_nop 2871 if test -n "$ac_ct_CC"; then 2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 case $as_dir in #((( 2879 '') as_dir=./ ;; 2880 */) ;; 2881 *) as_dir=$as_dir/ ;; 2882 esac 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2885 ac_cv_prog_ac_ct_CC="$ac_prog" 2886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2887 break 2 2888 fi 2889done 2890 done 2891IFS=$as_save_IFS 2892 2893fi 2894fi 2895ac_ct_CC=$ac_cv_prog_ac_ct_CC 2896if test -n "$ac_ct_CC"; then 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2898printf "%s\n" "$ac_ct_CC" >&6; } 2899else 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2901printf "%s\n" "no" >&6; } 2902fi 2903 2904 2905 test -n "$ac_ct_CC" && break 2906done 2907 2908 if test "x$ac_ct_CC" = x; then 2909 CC="" 2910 else 2911 case $cross_compiling:$ac_tool_warned in 2912yes:) 2913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2915ac_tool_warned=yes ;; 2916esac 2917 CC=$ac_ct_CC 2918 fi 2919fi 2920 2921fi 2922if test -z "$CC"; then 2923 if test -n "$ac_tool_prefix"; then 2924 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2925set dummy ${ac_tool_prefix}clang; ac_word=$2 2926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927printf %s "checking for $ac_word... " >&6; } 2928if test ${ac_cv_prog_CC+y} 2929then : 2930 printf %s "(cached) " >&6 2931else $as_nop 2932 if test -n "$CC"; then 2933 ac_cv_prog_CC="$CC" # Let the user override the test. 2934else 2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2936for as_dir in $PATH 2937do 2938 IFS=$as_save_IFS 2939 case $as_dir in #((( 2940 '') as_dir=./ ;; 2941 */) ;; 2942 *) as_dir=$as_dir/ ;; 2943 esac 2944 for ac_exec_ext in '' $ac_executable_extensions; do 2945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2946 ac_cv_prog_CC="${ac_tool_prefix}clang" 2947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2948 break 2 2949 fi 2950done 2951 done 2952IFS=$as_save_IFS 2953 2954fi 2955fi 2956CC=$ac_cv_prog_CC 2957if test -n "$CC"; then 2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2959printf "%s\n" "$CC" >&6; } 2960else 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2962printf "%s\n" "no" >&6; } 2963fi 2964 2965 2966fi 2967if test -z "$ac_cv_prog_CC"; then 2968 ac_ct_CC=$CC 2969 # Extract the first word of "clang", so it can be a program name with args. 2970set dummy clang; ac_word=$2 2971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972printf %s "checking for $ac_word... " >&6; } 2973if test ${ac_cv_prog_ac_ct_CC+y} 2974then : 2975 printf %s "(cached) " >&6 2976else $as_nop 2977 if test -n "$ac_ct_CC"; then 2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2979else 2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981for as_dir in $PATH 2982do 2983 IFS=$as_save_IFS 2984 case $as_dir in #((( 2985 '') as_dir=./ ;; 2986 */) ;; 2987 *) as_dir=$as_dir/ ;; 2988 esac 2989 for ac_exec_ext in '' $ac_executable_extensions; do 2990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2991 ac_cv_prog_ac_ct_CC="clang" 2992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2993 break 2 2994 fi 2995done 2996 done 2997IFS=$as_save_IFS 2998 2999fi 3000fi 3001ac_ct_CC=$ac_cv_prog_ac_ct_CC 3002if test -n "$ac_ct_CC"; then 3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3004printf "%s\n" "$ac_ct_CC" >&6; } 3005else 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3007printf "%s\n" "no" >&6; } 3008fi 3009 3010 if test "x$ac_ct_CC" = x; then 3011 CC="" 3012 else 3013 case $cross_compiling:$ac_tool_warned in 3014yes:) 3015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3016printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3017ac_tool_warned=yes ;; 3018esac 3019 CC=$ac_ct_CC 3020 fi 3021else 3022 CC="$ac_cv_prog_CC" 3023fi 3024 3025fi 3026 3027 3028test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3029printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3030as_fn_error $? "no acceptable C compiler found in \$PATH 3031See \`config.log' for more details" "$LINENO" 5; } 3032 3033# Provide some information about the compiler. 3034printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3035set X $ac_compile 3036ac_compiler=$2 3037for ac_option in --version -v -V -qversion -version; do 3038 { { ac_try="$ac_compiler $ac_option >&5" 3039case "(($ac_try" in 3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3041 *) ac_try_echo=$ac_try;; 3042esac 3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3044printf "%s\n" "$ac_try_echo"; } >&5 3045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3046 ac_status=$? 3047 if test -s conftest.err; then 3048 sed '10a\ 3049... rest of stderr output deleted ... 3050 10q' conftest.err >conftest.er1 3051 cat conftest.er1 >&5 3052 fi 3053 rm -f conftest.er1 conftest.err 3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3055 test $ac_status = 0; } 3056done 3057 3058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3059/* end confdefs.h. */ 3060 3061int 3062main (void) 3063{ 3064 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069ac_clean_files_save=$ac_clean_files 3070ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3071# Try to create an executable without -o first, disregard a.out. 3072# It will help us diagnose broken compilers, and finding out an intuition 3073# of exeext. 3074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3075printf %s "checking whether the C compiler works... " >&6; } 3076ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3077 3078# The possible output files: 3079ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3080 3081ac_rmfiles= 3082for ac_file in $ac_files 3083do 3084 case $ac_file in 3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3087 esac 3088done 3089rm -f $ac_rmfiles 3090 3091if { { ac_try="$ac_link_default" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3097printf "%s\n" "$ac_try_echo"; } >&5 3098 (eval "$ac_link_default") 2>&5 3099 ac_status=$? 3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101 test $ac_status = 0; } 3102then : 3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3105# in a Makefile. We should not override ac_cv_exeext if it was cached, 3106# so that the user can short-circuit this test for compilers unknown to 3107# Autoconf. 3108for ac_file in $ac_files '' 3109do 3110 test -f "$ac_file" || continue 3111 case $ac_file in 3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3113 ;; 3114 [ab].out ) 3115 # We found the default executable, but exeext='' is most 3116 # certainly right. 3117 break;; 3118 *.* ) 3119 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3120 then :; else 3121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3122 fi 3123 # We set ac_cv_exeext here because the later test for it is not 3124 # safe: cross compilers may not add the suffix if given an `-o' 3125 # argument, so we may need to know it at that point already. 3126 # Even if this section looks crufty: it has the advantage of 3127 # actually working. 3128 break;; 3129 * ) 3130 break;; 3131 esac 3132done 3133test "$ac_cv_exeext" = no && ac_cv_exeext= 3134 3135else $as_nop 3136 ac_file='' 3137fi 3138if test -z "$ac_file" 3139then : 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141printf "%s\n" "no" >&6; } 3142printf "%s\n" "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3146printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3147as_fn_error 77 "C compiler cannot create executables 3148See \`config.log' for more details" "$LINENO" 5; } 3149else $as_nop 3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3151printf "%s\n" "yes" >&6; } 3152fi 3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3154printf %s "checking for C compiler default output file name... " >&6; } 3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3156printf "%s\n" "$ac_file" >&6; } 3157ac_exeext=$ac_cv_exeext 3158 3159rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3160ac_clean_files=$ac_clean_files_save 3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3162printf %s "checking for suffix of executables... " >&6; } 3163if { { ac_try="$ac_link" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3169printf "%s\n" "$ac_try_echo"; } >&5 3170 (eval "$ac_link") 2>&5 3171 ac_status=$? 3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3173 test $ac_status = 0; } 3174then : 3175 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3176# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3177# work properly (i.e., refer to `conftest.exe'), while it won't with 3178# `rm'. 3179for ac_file in conftest.exe conftest conftest.*; do 3180 test -f "$ac_file" || continue 3181 case $ac_file in 3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3184 break;; 3185 * ) break;; 3186 esac 3187done 3188else $as_nop 3189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3191as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3192See \`config.log' for more details" "$LINENO" 5; } 3193fi 3194rm -f conftest conftest$ac_cv_exeext 3195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3196printf "%s\n" "$ac_cv_exeext" >&6; } 3197 3198rm -f conftest.$ac_ext 3199EXEEXT=$ac_cv_exeext 3200ac_exeext=$EXEEXT 3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3202/* end confdefs.h. */ 3203#include <stdio.h> 3204int 3205main (void) 3206{ 3207FILE *f = fopen ("conftest.out", "w"); 3208 return ferror (f) || fclose (f) != 0; 3209 3210 ; 3211 return 0; 3212} 3213_ACEOF 3214ac_clean_files="$ac_clean_files conftest.out" 3215# Check that the compiler produces executables we can run. If not, either 3216# the compiler is broken, or we cross compile. 3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3218printf %s "checking whether we are cross compiling... " >&6; } 3219if test "$cross_compiling" != yes; then 3220 { { ac_try="$ac_link" 3221case "(($ac_try" in 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3223 *) ac_try_echo=$ac_try;; 3224esac 3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3226printf "%s\n" "$ac_try_echo"; } >&5 3227 (eval "$ac_link") 2>&5 3228 ac_status=$? 3229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3230 test $ac_status = 0; } 3231 if { ac_try='./conftest$ac_cv_exeext' 3232 { { case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237printf "%s\n" "$ac_try_echo"; } >&5 3238 (eval "$ac_try") 2>&5 3239 ac_status=$? 3240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; }; then 3242 cross_compiling=no 3243 else 3244 if test "$cross_compiling" = maybe; then 3245 cross_compiling=yes 3246 else 3247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3248printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3249as_fn_error 77 "cannot run C compiled programs. 3250If you meant to cross compile, use \`--host'. 3251See \`config.log' for more details" "$LINENO" 5; } 3252 fi 3253 fi 3254fi 3255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3256printf "%s\n" "$cross_compiling" >&6; } 3257 3258rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3259ac_clean_files=$ac_clean_files_save 3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3261printf %s "checking for suffix of object files... " >&6; } 3262if test ${ac_cv_objext+y} 3263then : 3264 printf %s "(cached) " >&6 3265else $as_nop 3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3267/* end confdefs.h. */ 3268 3269int 3270main (void) 3271{ 3272 3273 ; 3274 return 0; 3275} 3276_ACEOF 3277rm -f conftest.o conftest.obj 3278if { { ac_try="$ac_compile" 3279case "(($ac_try" in 3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281 *) ac_try_echo=$ac_try;; 3282esac 3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3284printf "%s\n" "$ac_try_echo"; } >&5 3285 (eval "$ac_compile") 2>&5 3286 ac_status=$? 3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3288 test $ac_status = 0; } 3289then : 3290 for ac_file in conftest.o conftest.obj conftest.*; do 3291 test -f "$ac_file" || continue; 3292 case $ac_file in 3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3295 break;; 3296 esac 3297done 3298else $as_nop 3299 printf "%s\n" "$as_me: failed program was:" >&5 3300sed 's/^/| /' conftest.$ac_ext >&5 3301 3302{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3303printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3304as_fn_error $? "cannot compute suffix of object files: cannot compile 3305See \`config.log' for more details" "$LINENO" 5; } 3306fi 3307rm -f conftest.$ac_cv_objext conftest.$ac_ext 3308fi 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3310printf "%s\n" "$ac_cv_objext" >&6; } 3311OBJEXT=$ac_cv_objext 3312ac_objext=$OBJEXT 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3314printf %s "checking whether the compiler supports GNU C... " >&6; } 3315if test ${ac_cv_c_compiler_gnu+y} 3316then : 3317 printf %s "(cached) " >&6 3318else $as_nop 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321 3322int 3323main (void) 3324{ 3325#ifndef __GNUC__ 3326 choke me 3327#endif 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333if ac_fn_c_try_compile "$LINENO" 3334then : 3335 ac_compiler_gnu=yes 3336else $as_nop 3337 ac_compiler_gnu=no 3338fi 3339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3340ac_cv_c_compiler_gnu=$ac_compiler_gnu 3341 3342fi 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3344printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3345ac_compiler_gnu=$ac_cv_c_compiler_gnu 3346 3347if test $ac_compiler_gnu = yes; then 3348 GCC=yes 3349else 3350 GCC= 3351fi 3352ac_test_CFLAGS=${CFLAGS+y} 3353ac_save_CFLAGS=$CFLAGS 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3355printf %s "checking whether $CC accepts -g... " >&6; } 3356if test ${ac_cv_prog_cc_g+y} 3357then : 3358 printf %s "(cached) " >&6 3359else $as_nop 3360 ac_save_c_werror_flag=$ac_c_werror_flag 3361 ac_c_werror_flag=yes 3362 ac_cv_prog_cc_g=no 3363 CFLAGS="-g" 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365/* end confdefs.h. */ 3366 3367int 3368main (void) 3369{ 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375if ac_fn_c_try_compile "$LINENO" 3376then : 3377 ac_cv_prog_cc_g=yes 3378else $as_nop 3379 CFLAGS="" 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main (void) 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391if ac_fn_c_try_compile "$LINENO" 3392then : 3393 3394else $as_nop 3395 ac_c_werror_flag=$ac_save_c_werror_flag 3396 CFLAGS="-g" 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399 3400int 3401main (void) 3402{ 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408if ac_fn_c_try_compile "$LINENO" 3409then : 3410 ac_cv_prog_cc_g=yes 3411fi 3412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3413fi 3414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3415fi 3416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3417 ac_c_werror_flag=$ac_save_c_werror_flag 3418fi 3419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3420printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3421if test $ac_test_CFLAGS; then 3422 CFLAGS=$ac_save_CFLAGS 3423elif test $ac_cv_prog_cc_g = yes; then 3424 if test "$GCC" = yes; then 3425 CFLAGS="-g -O2" 3426 else 3427 CFLAGS="-g" 3428 fi 3429else 3430 if test "$GCC" = yes; then 3431 CFLAGS="-O2" 3432 else 3433 CFLAGS= 3434 fi 3435fi 3436ac_prog_cc_stdc=no 3437if test x$ac_prog_cc_stdc = xno 3438then : 3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3440printf %s "checking for $CC option to enable C11 features... " >&6; } 3441if test ${ac_cv_prog_cc_c11+y} 3442then : 3443 printf %s "(cached) " >&6 3444else $as_nop 3445 ac_cv_prog_cc_c11=no 3446ac_save_CC=$CC 3447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3448/* end confdefs.h. */ 3449$ac_c_conftest_c11_program 3450_ACEOF 3451for ac_arg in '' -std=gnu11 3452do 3453 CC="$ac_save_CC $ac_arg" 3454 if ac_fn_c_try_compile "$LINENO" 3455then : 3456 ac_cv_prog_cc_c11=$ac_arg 3457fi 3458rm -f core conftest.err conftest.$ac_objext conftest.beam 3459 test "x$ac_cv_prog_cc_c11" != "xno" && break 3460done 3461rm -f conftest.$ac_ext 3462CC=$ac_save_CC 3463fi 3464 3465if test "x$ac_cv_prog_cc_c11" = xno 3466then : 3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3468printf "%s\n" "unsupported" >&6; } 3469else $as_nop 3470 if test "x$ac_cv_prog_cc_c11" = x 3471then : 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3473printf "%s\n" "none needed" >&6; } 3474else $as_nop 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3476printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3477 CC="$CC $ac_cv_prog_cc_c11" 3478fi 3479 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3480 ac_prog_cc_stdc=c11 3481fi 3482fi 3483if test x$ac_prog_cc_stdc = xno 3484then : 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3486printf %s "checking for $CC option to enable C99 features... " >&6; } 3487if test ${ac_cv_prog_cc_c99+y} 3488then : 3489 printf %s "(cached) " >&6 3490else $as_nop 3491 ac_cv_prog_cc_c99=no 3492ac_save_CC=$CC 3493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3494/* end confdefs.h. */ 3495$ac_c_conftest_c99_program 3496_ACEOF 3497for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3498do 3499 CC="$ac_save_CC $ac_arg" 3500 if ac_fn_c_try_compile "$LINENO" 3501then : 3502 ac_cv_prog_cc_c99=$ac_arg 3503fi 3504rm -f core conftest.err conftest.$ac_objext conftest.beam 3505 test "x$ac_cv_prog_cc_c99" != "xno" && break 3506done 3507rm -f conftest.$ac_ext 3508CC=$ac_save_CC 3509fi 3510 3511if test "x$ac_cv_prog_cc_c99" = xno 3512then : 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3514printf "%s\n" "unsupported" >&6; } 3515else $as_nop 3516 if test "x$ac_cv_prog_cc_c99" = x 3517then : 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3519printf "%s\n" "none needed" >&6; } 3520else $as_nop 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3522printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3523 CC="$CC $ac_cv_prog_cc_c99" 3524fi 3525 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3526 ac_prog_cc_stdc=c99 3527fi 3528fi 3529if test x$ac_prog_cc_stdc = xno 3530then : 3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3532printf %s "checking for $CC option to enable C89 features... " >&6; } 3533if test ${ac_cv_prog_cc_c89+y} 3534then : 3535 printf %s "(cached) " >&6 3536else $as_nop 3537 ac_cv_prog_cc_c89=no 3538ac_save_CC=$CC 3539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541$ac_c_conftest_c89_program 3542_ACEOF 3543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3544do 3545 CC="$ac_save_CC $ac_arg" 3546 if ac_fn_c_try_compile "$LINENO" 3547then : 3548 ac_cv_prog_cc_c89=$ac_arg 3549fi 3550rm -f core conftest.err conftest.$ac_objext conftest.beam 3551 test "x$ac_cv_prog_cc_c89" != "xno" && break 3552done 3553rm -f conftest.$ac_ext 3554CC=$ac_save_CC 3555fi 3556 3557if test "x$ac_cv_prog_cc_c89" = xno 3558then : 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3560printf "%s\n" "unsupported" >&6; } 3561else $as_nop 3562 if test "x$ac_cv_prog_cc_c89" = x 3563then : 3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3565printf "%s\n" "none needed" >&6; } 3566else $as_nop 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3568printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3569 CC="$CC $ac_cv_prog_cc_c89" 3570fi 3571 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3572 ac_prog_cc_stdc=c89 3573fi 3574fi 3575 3576ac_ext=c 3577ac_cpp='$CPP $CPPFLAGS' 3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581 3582 3583 ac_ext=c 3584ac_cpp='$CPP $CPPFLAGS' 3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3587ac_compiler_gnu=$ac_cv_c_compiler_gnu 3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3589printf %s "checking whether $CC understands -c and -o together... " >&6; } 3590if test ${am_cv_prog_cc_c_o+y} 3591then : 3592 printf %s "(cached) " >&6 3593else $as_nop 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main (void) 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605 # Make sure it works both with $CC and with simple cc. 3606 # Following AC_PROG_CC_C_O, we do the test twice because some 3607 # compilers refuse to overwrite an existing .o file with -o, 3608 # though they will create one. 3609 am_cv_prog_cc_c_o=yes 3610 for am_i in 1 2; do 3611 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3612 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3613 ac_status=$? 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); } \ 3616 && test -f conftest2.$ac_objext; then 3617 : OK 3618 else 3619 am_cv_prog_cc_c_o=no 3620 break 3621 fi 3622 done 3623 rm -f core conftest* 3624 unset am_i 3625fi 3626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3627printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3628if test "$am_cv_prog_cc_c_o" != yes; then 3629 # Losing compiler, so override with the script. 3630 # FIXME: It is wrong to rewrite CC. 3631 # But if we don't then we get into trouble of one sort or another. 3632 # A longer-term fix would be to have automake use am__CC in this case, 3633 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3634 CC="$am_aux_dir/compile $CC" 3635fi 3636ac_ext=c 3637ac_cpp='$CPP $CPPFLAGS' 3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_c_compiler_gnu 3641 3642 3643 3644ac_header= ac_cache= 3645for ac_item in $ac_header_c_list 3646do 3647 if test $ac_cache; then 3648 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3649 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3650 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3651 fi 3652 ac_header= ac_cache= 3653 elif test $ac_header; then 3654 ac_cache=$ac_item 3655 else 3656 ac_header=$ac_item 3657 fi 3658done 3659 3660 3661 3662 3663 3664 3665 3666 3667if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3668then : 3669 3670printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3671 3672fi 3673 3674 3675 3676 3677 3678 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3680printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3681if test ${ac_cv_safe_to_define___extensions__+y} 3682then : 3683 printf %s "(cached) " >&6 3684else $as_nop 3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3686/* end confdefs.h. */ 3687 3688# define __EXTENSIONS__ 1 3689 $ac_includes_default 3690int 3691main (void) 3692{ 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698if ac_fn_c_try_compile "$LINENO" 3699then : 3700 ac_cv_safe_to_define___extensions__=yes 3701else $as_nop 3702 ac_cv_safe_to_define___extensions__=no 3703fi 3704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3705fi 3706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3707printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3708 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3710printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3711if test ${ac_cv_should_define__xopen_source+y} 3712then : 3713 printf %s "(cached) " >&6 3714else $as_nop 3715 ac_cv_should_define__xopen_source=no 3716 if test $ac_cv_header_wchar_h = yes 3717then : 3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3719/* end confdefs.h. */ 3720 3721 #include <wchar.h> 3722 mbstate_t x; 3723int 3724main (void) 3725{ 3726 3727 ; 3728 return 0; 3729} 3730_ACEOF 3731if ac_fn_c_try_compile "$LINENO" 3732then : 3733 3734else $as_nop 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737 3738 #define _XOPEN_SOURCE 500 3739 #include <wchar.h> 3740 mbstate_t x; 3741int 3742main (void) 3743{ 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749if ac_fn_c_try_compile "$LINENO" 3750then : 3751 ac_cv_should_define__xopen_source=yes 3752fi 3753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3754fi 3755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3756fi 3757fi 3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3759printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3760 3761 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3762 3763 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3764 3765 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3766 3767 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3768 3769 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3770 3771 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3772 3773 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3774 3775 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3776 3777 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3778 3779 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3780 3781 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3782 3783 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3784 3785 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3786 3787 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3788 3789 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3790 3791 if test $ac_cv_header_minix_config_h = yes 3792then : 3793 MINIX=yes 3794 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3795 3796 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3797 3798 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3799 3800else $as_nop 3801 MINIX= 3802fi 3803 if test $ac_cv_safe_to_define___extensions__ = yes 3804then : 3805 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3806 3807fi 3808 if test $ac_cv_should_define__xopen_source = yes 3809then : 3810 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3811 3812fi 3813 3814 3815am__api_version='1.16' 3816 3817 3818 # Find a good install program. We prefer a C program (faster), 3819# so one script is as good as another. But avoid the broken or 3820# incompatible versions: 3821# SysV /etc/install, /usr/sbin/install 3822# SunOS /usr/etc/install 3823# IRIX /sbin/install 3824# AIX /bin/install 3825# AmigaOS /C/install, which installs bootblocks on floppy discs 3826# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3827# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3828# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3829# OS/2's system install, which has a completely different semantic 3830# ./install, which can be erroneously created by make from ./install.sh. 3831# Reject install programs that cannot install multiple files. 3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3833printf %s "checking for a BSD-compatible install... " >&6; } 3834if test -z "$INSTALL"; then 3835if test ${ac_cv_path_install+y} 3836then : 3837 printf %s "(cached) " >&6 3838else $as_nop 3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840for as_dir in $PATH 3841do 3842 IFS=$as_save_IFS 3843 case $as_dir in #((( 3844 '') as_dir=./ ;; 3845 */) ;; 3846 *) as_dir=$as_dir/ ;; 3847 esac 3848 # Account for fact that we put trailing slashes in our PATH walk. 3849case $as_dir in #(( 3850 ./ | /[cC]/* | \ 3851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3852 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3853 /usr/ucb/* ) ;; 3854 *) 3855 # OSF1 and SCO ODT 3.0 have their own names for install. 3856 # Don't use installbsd from OSF since it installs stuff as root 3857 # by default. 3858 for ac_prog in ginstall scoinst install; do 3859 for ac_exec_ext in '' $ac_executable_extensions; do 3860 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3861 if test $ac_prog = install && 3862 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3863 # AIX install. It has an incompatible calling convention. 3864 : 3865 elif test $ac_prog = install && 3866 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3867 # program-specific install script used by HP pwplus--don't use. 3868 : 3869 else 3870 rm -rf conftest.one conftest.two conftest.dir 3871 echo one > conftest.one 3872 echo two > conftest.two 3873 mkdir conftest.dir 3874 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3875 test -s conftest.one && test -s conftest.two && 3876 test -s conftest.dir/conftest.one && 3877 test -s conftest.dir/conftest.two 3878 then 3879 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3880 break 3 3881 fi 3882 fi 3883 fi 3884 done 3885 done 3886 ;; 3887esac 3888 3889 done 3890IFS=$as_save_IFS 3891 3892rm -rf conftest.one conftest.two conftest.dir 3893 3894fi 3895 if test ${ac_cv_path_install+y}; then 3896 INSTALL=$ac_cv_path_install 3897 else 3898 # As a last resort, use the slow shell script. Don't cache a 3899 # value for INSTALL within a source directory, because that will 3900 # break other packages using the cache if that directory is 3901 # removed, or if the value is a relative name. 3902 INSTALL=$ac_install_sh 3903 fi 3904fi 3905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3906printf "%s\n" "$INSTALL" >&6; } 3907 3908# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3909# It thinks the first close brace ends the variable substitution. 3910test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3911 3912test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3913 3914test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3915 3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3917printf %s "checking whether build environment is sane... " >&6; } 3918# Reject unsafe characters in $srcdir or the absolute working directory 3919# name. Accept space and tab only in the latter. 3920am_lf=' 3921' 3922case `pwd` in 3923 *[\\\"\#\$\&\'\`$am_lf]*) 3924 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3925esac 3926case $srcdir in 3927 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3928 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3929esac 3930 3931# Do 'set' in a subshell so we don't clobber the current shell's 3932# arguments. Must try -L first in case configure is actually a 3933# symlink; some systems play weird games with the mod time of symlinks 3934# (eg FreeBSD returns the mod time of the symlink's containing 3935# directory). 3936if ( 3937 am_has_slept=no 3938 for am_try in 1 2; do 3939 echo "timestamp, slept: $am_has_slept" > conftest.file 3940 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3941 if test "$*" = "X"; then 3942 # -L didn't work. 3943 set X `ls -t "$srcdir/configure" conftest.file` 3944 fi 3945 if test "$*" != "X $srcdir/configure conftest.file" \ 3946 && test "$*" != "X conftest.file $srcdir/configure"; then 3947 3948 # If neither matched, then we have a broken ls. This can happen 3949 # if, for instance, CONFIG_SHELL is bash and it inherits a 3950 # broken ls alias from the environment. This has actually 3951 # happened. Such a system could not be considered "sane". 3952 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3953 alias in your environment" "$LINENO" 5 3954 fi 3955 if test "$2" = conftest.file || test $am_try -eq 2; then 3956 break 3957 fi 3958 # Just in case. 3959 sleep 1 3960 am_has_slept=yes 3961 done 3962 test "$2" = conftest.file 3963 ) 3964then 3965 # Ok. 3966 : 3967else 3968 as_fn_error $? "newly created file is older than distributed files! 3969Check your system clock" "$LINENO" 5 3970fi 3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3972printf "%s\n" "yes" >&6; } 3973# If we didn't sleep, we still need to ensure time stamps of config.status and 3974# generated files are strictly newer. 3975am_sleep_pid= 3976if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3977 ( sleep 1 ) & 3978 am_sleep_pid=$! 3979fi 3980 3981rm -f conftest.file 3982 3983test "$program_prefix" != NONE && 3984 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3985# Use a double $ so make ignores it. 3986test "$program_suffix" != NONE && 3987 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3988# Double any \ or $. 3989# By default was `s,x,x', remove it if useless. 3990ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3991program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3992 3993 3994 if test x"${MISSING+set}" != xset; then 3995 MISSING="\${SHELL} '$am_aux_dir/missing'" 3996fi 3997# Use eval to expand $SHELL 3998if eval "$MISSING --is-lightweight"; then 3999 am_missing_run="$MISSING " 4000else 4001 am_missing_run= 4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4003printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4004fi 4005 4006if test x"${install_sh+set}" != xset; then 4007 case $am_aux_dir in 4008 *\ * | *\ *) 4009 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4010 *) 4011 install_sh="\${SHELL} $am_aux_dir/install-sh" 4012 esac 4013fi 4014 4015# Installed binaries are usually stripped using 'strip' when the user 4016# run "make install-strip". However 'strip' might not be the right 4017# tool to use in cross-compilation environments, therefore Automake 4018# will honor the 'STRIP' environment variable to overrule this program. 4019if test "$cross_compiling" != no; then 4020 if test -n "$ac_tool_prefix"; then 4021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4022set dummy ${ac_tool_prefix}strip; ac_word=$2 4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4024printf %s "checking for $ac_word... " >&6; } 4025if test ${ac_cv_prog_STRIP+y} 4026then : 4027 printf %s "(cached) " >&6 4028else $as_nop 4029 if test -n "$STRIP"; then 4030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4031else 4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4033for as_dir in $PATH 4034do 4035 IFS=$as_save_IFS 4036 case $as_dir in #((( 4037 '') as_dir=./ ;; 4038 */) ;; 4039 *) as_dir=$as_dir/ ;; 4040 esac 4041 for ac_exec_ext in '' $ac_executable_extensions; do 4042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4043 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4045 break 2 4046 fi 4047done 4048 done 4049IFS=$as_save_IFS 4050 4051fi 4052fi 4053STRIP=$ac_cv_prog_STRIP 4054if test -n "$STRIP"; then 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4056printf "%s\n" "$STRIP" >&6; } 4057else 4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4059printf "%s\n" "no" >&6; } 4060fi 4061 4062 4063fi 4064if test -z "$ac_cv_prog_STRIP"; then 4065 ac_ct_STRIP=$STRIP 4066 # Extract the first word of "strip", so it can be a program name with args. 4067set dummy strip; ac_word=$2 4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4069printf %s "checking for $ac_word... " >&6; } 4070if test ${ac_cv_prog_ac_ct_STRIP+y} 4071then : 4072 printf %s "(cached) " >&6 4073else $as_nop 4074 if test -n "$ac_ct_STRIP"; then 4075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4076else 4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4078for as_dir in $PATH 4079do 4080 IFS=$as_save_IFS 4081 case $as_dir in #((( 4082 '') as_dir=./ ;; 4083 */) ;; 4084 *) as_dir=$as_dir/ ;; 4085 esac 4086 for ac_exec_ext in '' $ac_executable_extensions; do 4087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4088 ac_cv_prog_ac_ct_STRIP="strip" 4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4090 break 2 4091 fi 4092done 4093 done 4094IFS=$as_save_IFS 4095 4096fi 4097fi 4098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4099if test -n "$ac_ct_STRIP"; then 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4101printf "%s\n" "$ac_ct_STRIP" >&6; } 4102else 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4104printf "%s\n" "no" >&6; } 4105fi 4106 4107 if test "x$ac_ct_STRIP" = x; then 4108 STRIP=":" 4109 else 4110 case $cross_compiling:$ac_tool_warned in 4111yes:) 4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4114ac_tool_warned=yes ;; 4115esac 4116 STRIP=$ac_ct_STRIP 4117 fi 4118else 4119 STRIP="$ac_cv_prog_STRIP" 4120fi 4121 4122fi 4123INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4124 4125 4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4127printf %s "checking for a race-free mkdir -p... " >&6; } 4128if test -z "$MKDIR_P"; then 4129 if test ${ac_cv_path_mkdir+y} 4130then : 4131 printf %s "(cached) " >&6 4132else $as_nop 4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4135do 4136 IFS=$as_save_IFS 4137 case $as_dir in #((( 4138 '') as_dir=./ ;; 4139 */) ;; 4140 *) as_dir=$as_dir/ ;; 4141 esac 4142 for ac_prog in mkdir gmkdir; do 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4145 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4146 'mkdir ('*'coreutils) '* | \ 4147 'BusyBox '* | \ 4148 'mkdir (fileutils) '4.1*) 4149 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4150 break 3;; 4151 esac 4152 done 4153 done 4154 done 4155IFS=$as_save_IFS 4156 4157fi 4158 4159 test -d ./--version && rmdir ./--version 4160 if test ${ac_cv_path_mkdir+y}; then 4161 MKDIR_P="$ac_cv_path_mkdir -p" 4162 else 4163 # As a last resort, use the slow shell script. Don't cache a 4164 # value for MKDIR_P within a source directory, because that will 4165 # break other packages using the cache if that directory is 4166 # removed, or if the value is a relative name. 4167 MKDIR_P="$ac_install_sh -d" 4168 fi 4169fi 4170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4171printf "%s\n" "$MKDIR_P" >&6; } 4172 4173for ac_prog in gawk mawk nawk awk 4174do 4175 # Extract the first word of "$ac_prog", so it can be a program name with args. 4176set dummy $ac_prog; ac_word=$2 4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4178printf %s "checking for $ac_word... " >&6; } 4179if test ${ac_cv_prog_AWK+y} 4180then : 4181 printf %s "(cached) " >&6 4182else $as_nop 4183 if test -n "$AWK"; then 4184 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4185else 4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4187for as_dir in $PATH 4188do 4189 IFS=$as_save_IFS 4190 case $as_dir in #((( 4191 '') as_dir=./ ;; 4192 */) ;; 4193 *) as_dir=$as_dir/ ;; 4194 esac 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4197 ac_cv_prog_AWK="$ac_prog" 4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4199 break 2 4200 fi 4201done 4202 done 4203IFS=$as_save_IFS 4204 4205fi 4206fi 4207AWK=$ac_cv_prog_AWK 4208if test -n "$AWK"; then 4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4210printf "%s\n" "$AWK" >&6; } 4211else 4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4213printf "%s\n" "no" >&6; } 4214fi 4215 4216 4217 test -n "$AWK" && break 4218done 4219 4220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4221printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4222set x ${MAKE-make} 4223ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4224if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4225then : 4226 printf %s "(cached) " >&6 4227else $as_nop 4228 cat >conftest.make <<\_ACEOF 4229SHELL = /bin/sh 4230all: 4231 @echo '@@@%%%=$(MAKE)=@@@%%%' 4232_ACEOF 4233# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4234case `${MAKE-make} -f conftest.make 2>/dev/null` in 4235 *@@@%%%=?*=@@@%%%*) 4236 eval ac_cv_prog_make_${ac_make}_set=yes;; 4237 *) 4238 eval ac_cv_prog_make_${ac_make}_set=no;; 4239esac 4240rm -f conftest.make 4241fi 4242if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4244printf "%s\n" "yes" >&6; } 4245 SET_MAKE= 4246else 4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4248printf "%s\n" "no" >&6; } 4249 SET_MAKE="MAKE=${MAKE-make}" 4250fi 4251 4252rm -rf .tst 2>/dev/null 4253mkdir .tst 2>/dev/null 4254if test -d .tst; then 4255 am__leading_dot=. 4256else 4257 am__leading_dot=_ 4258fi 4259rmdir .tst 2>/dev/null 4260 4261DEPDIR="${am__leading_dot}deps" 4262 4263ac_config_commands="$ac_config_commands depfiles" 4264 4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4266printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4267cat > confinc.mk << 'END' 4268am__doit: 4269 @echo this is the am__doit target >confinc.out 4270.PHONY: am__doit 4271END 4272am__include="#" 4273am__quote= 4274# BSD make does it like this. 4275echo '.include "confinc.mk" # ignored' > confmf.BSD 4276# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4277echo 'include confinc.mk # ignored' > confmf.GNU 4278_am_result=no 4279for s in GNU BSD; do 4280 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4281 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4282 ac_status=$? 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); } 4285 case $?:`cat confinc.out 2>/dev/null` in #( 4286 '0:this is the am__doit target') : 4287 case $s in #( 4288 BSD) : 4289 am__include='.include' am__quote='"' ;; #( 4290 *) : 4291 am__include='include' am__quote='' ;; 4292esac ;; #( 4293 *) : 4294 ;; 4295esac 4296 if test "$am__include" != "#"; then 4297 _am_result="yes ($s style)" 4298 break 4299 fi 4300done 4301rm -f confinc.* confmf.* 4302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4303printf "%s\n" "${_am_result}" >&6; } 4304 4305# Check whether --enable-dependency-tracking was given. 4306if test ${enable_dependency_tracking+y} 4307then : 4308 enableval=$enable_dependency_tracking; 4309fi 4310 4311if test "x$enable_dependency_tracking" != xno; then 4312 am_depcomp="$ac_aux_dir/depcomp" 4313 AMDEPBACKSLASH='\' 4314 am__nodep='_no' 4315fi 4316 if test "x$enable_dependency_tracking" != xno; then 4317 AMDEP_TRUE= 4318 AMDEP_FALSE='#' 4319else 4320 AMDEP_TRUE='#' 4321 AMDEP_FALSE= 4322fi 4323 4324 4325# Check whether --enable-silent-rules was given. 4326if test ${enable_silent_rules+y} 4327then : 4328 enableval=$enable_silent_rules; 4329fi 4330 4331case $enable_silent_rules in # ((( 4332 yes) AM_DEFAULT_VERBOSITY=0;; 4333 no) AM_DEFAULT_VERBOSITY=1;; 4334 *) AM_DEFAULT_VERBOSITY=1;; 4335esac 4336am_make=${MAKE-make} 4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4338printf %s "checking whether $am_make supports nested variables... " >&6; } 4339if test ${am_cv_make_support_nested_variables+y} 4340then : 4341 printf %s "(cached) " >&6 4342else $as_nop 4343 if printf "%s\n" 'TRUE=$(BAR$(V)) 4344BAR0=false 4345BAR1=true 4346V=1 4347am__doit: 4348 @$(TRUE) 4349.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4350 am_cv_make_support_nested_variables=yes 4351else 4352 am_cv_make_support_nested_variables=no 4353fi 4354fi 4355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4356printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4357if test $am_cv_make_support_nested_variables = yes; then 4358 AM_V='$(V)' 4359 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4360else 4361 AM_V=$AM_DEFAULT_VERBOSITY 4362 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4363fi 4364AM_BACKSLASH='\' 4365 4366if test "`cd $srcdir && pwd`" != "`pwd`"; then 4367 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4368 # is not polluted with repeated "-I." 4369 am__isrc=' -I$(srcdir)' 4370 # test to see if srcdir already configured 4371 if test -f $srcdir/config.status; then 4372 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4373 fi 4374fi 4375 4376# test whether we have cygpath 4377if test -z "$CYGPATH_W"; then 4378 if (cygpath --version) >/dev/null 2>/dev/null; then 4379 CYGPATH_W='cygpath -w' 4380 else 4381 CYGPATH_W=echo 4382 fi 4383fi 4384 4385 4386# Define the identity of the package. 4387 PACKAGE='libevdev' 4388 VERSION='1.12.1' 4389 4390 4391printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4392 4393 4394printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4395 4396# Some tools Automake needs. 4397 4398ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4399 4400 4401AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4402 4403 4404AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4405 4406 4407AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4408 4409 4410MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4411 4412# For better backward compatibility. To be removed once Automake 1.9.x 4413# dies out for good. For more background, see: 4414# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4415# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4416mkdir_p='$(MKDIR_P)' 4417 4418# We need awk for the "check" target (and possibly the TAP driver). The 4419# system "awk" is bad on some platforms. 4420# Always define AMTAR for backward compatibility. Yes, it's still used 4421# in the wild :-( We should find a proper way to deprecate it ... 4422AMTAR='$${TAR-tar}' 4423 4424 4425# We'll loop over all known methods to create a tar archive until one works. 4426_am_tools='gnutar pax cpio none' 4427 4428am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4429 4430 4431 4432 4433 4434depcc="$CC" am_compiler_list= 4435 4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4437printf %s "checking dependency style of $depcc... " >&6; } 4438if test ${am_cv_CC_dependencies_compiler_type+y} 4439then : 4440 printf %s "(cached) " >&6 4441else $as_nop 4442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4443 # We make a subdir and do the tests there. Otherwise we can end up 4444 # making bogus files that we don't know about and never remove. For 4445 # instance it was reported that on HP-UX the gcc test will end up 4446 # making a dummy file named 'D' -- because '-MD' means "put the output 4447 # in D". 4448 rm -rf conftest.dir 4449 mkdir conftest.dir 4450 # Copy depcomp to subdir because otherwise we won't find it if we're 4451 # using a relative directory. 4452 cp "$am_depcomp" conftest.dir 4453 cd conftest.dir 4454 # We will build objects and dependencies in a subdirectory because 4455 # it helps to detect inapplicable dependency modes. For instance 4456 # both Tru64's cc and ICC support -MD to output dependencies as a 4457 # side effect of compilation, but ICC will put the dependencies in 4458 # the current directory while Tru64 will put them in the object 4459 # directory. 4460 mkdir sub 4461 4462 am_cv_CC_dependencies_compiler_type=none 4463 if test "$am_compiler_list" = ""; then 4464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4465 fi 4466 am__universal=false 4467 case " $depcc " in #( 4468 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4469 esac 4470 4471 for depmode in $am_compiler_list; do 4472 # Setup a source with many dependencies, because some compilers 4473 # like to wrap large dependency lists on column 80 (with \), and 4474 # we should not choose a depcomp mode which is confused by this. 4475 # 4476 # We need to recreate these files for each test, as the compiler may 4477 # overwrite some of them when testing with obscure command lines. 4478 # This happens at least with the AIX C compiler. 4479 : > sub/conftest.c 4480 for i in 1 2 3 4 5 6; do 4481 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4482 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4483 # Solaris 10 /bin/sh. 4484 echo '/* dummy */' > sub/conftst$i.h 4485 done 4486 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4487 4488 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4489 # mode. It turns out that the SunPro C++ compiler does not properly 4490 # handle '-M -o', and we need to detect this. Also, some Intel 4491 # versions had trouble with output in subdirs. 4492 am__obj=sub/conftest.${OBJEXT-o} 4493 am__minus_obj="-o $am__obj" 4494 case $depmode in 4495 gcc) 4496 # This depmode causes a compiler race in universal mode. 4497 test "$am__universal" = false || continue 4498 ;; 4499 nosideeffect) 4500 # After this tag, mechanisms are not by side-effect, so they'll 4501 # only be used when explicitly requested. 4502 if test "x$enable_dependency_tracking" = xyes; then 4503 continue 4504 else 4505 break 4506 fi 4507 ;; 4508 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4509 # This compiler won't grok '-c -o', but also, the minuso test has 4510 # not run yet. These depmodes are late enough in the game, and 4511 # so weak that their functioning should not be impacted. 4512 am__obj=conftest.${OBJEXT-o} 4513 am__minus_obj= 4514 ;; 4515 none) break ;; 4516 esac 4517 if depmode=$depmode \ 4518 source=sub/conftest.c object=$am__obj \ 4519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4520 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4521 >/dev/null 2>conftest.err && 4522 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4524 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4526 # icc doesn't choke on unknown options, it will just issue warnings 4527 # or remarks (even with -Werror). So we grep stderr for any message 4528 # that says an option was ignored or not supported. 4529 # When given -MP, icc 7.0 and 7.1 complain thusly: 4530 # icc: Command line warning: ignoring option '-M'; no argument required 4531 # The diagnosis changed in icc 8.0: 4532 # icc: Command line remark: option '-MP' not supported 4533 if (grep 'ignoring option' conftest.err || 4534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4535 am_cv_CC_dependencies_compiler_type=$depmode 4536 break 4537 fi 4538 fi 4539 done 4540 4541 cd .. 4542 rm -rf conftest.dir 4543else 4544 am_cv_CC_dependencies_compiler_type=none 4545fi 4546 4547fi 4548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4549printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4550CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4551 4552 if 4553 test "x$enable_dependency_tracking" != xno \ 4554 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4555 am__fastdepCC_TRUE= 4556 am__fastdepCC_FALSE='#' 4557else 4558 am__fastdepCC_TRUE='#' 4559 am__fastdepCC_FALSE= 4560fi 4561 4562 4563# Variables for tags utilities; see am/tags.am 4564if test -z "$CTAGS"; then 4565 CTAGS=ctags 4566fi 4567 4568if test -z "$ETAGS"; then 4569 ETAGS=etags 4570fi 4571 4572if test -z "$CSCOPE"; then 4573 CSCOPE=cscope 4574fi 4575 4576 4577 4578# POSIX will say in a future version that running "rm -f" with no argument 4579# is OK; and we want to be able to make that assumption in our Makefile 4580# recipes. So use an aggressive probe to check that the usage we want is 4581# actually supported "in the wild" to an acceptable degree. 4582# See automake bug#10828. 4583# To make any issue more visible, cause the running configure to be aborted 4584# by default if the 'rm' program in use doesn't match our expectations; the 4585# user can still override this though. 4586if rm -f && rm -fr && rm -rf; then : OK; else 4587 cat >&2 <<'END' 4588Oops! 4589 4590Your 'rm' program seems unable to run without file operands specified 4591on the command line, even when the '-f' option is present. This is contrary 4592to the behaviour of most rm programs out there, and not conforming with 4593the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4594 4595Please tell bug-automake@gnu.org about your system, including the value 4596of your $PATH and any error possibly output before this message. This 4597can help us improve future automake versions. 4598 4599END 4600 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4601 echo 'Configuration will proceed anyway, since you have set the' >&2 4602 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4603 echo >&2 4604 else 4605 cat >&2 <<'END' 4606Aborting the configuration process, to ensure you take notice of the issue. 4607 4608You can download and install GNU coreutils to get an 'rm' implementation 4609that behaves properly: <https://www.gnu.org/software/coreutils/>. 4610 4611If you want to complete the configuration process using your problematic 4612'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4613to "yes", and re-run configure. 4614 4615END 4616 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4617 fi 4618fi 4619 4620 4621# DO NOT MODIFY THIS 4622# Use symbol versioning instead. 4623LIBEVDEV_LT_VERSION=5:0:3 4624 4625 4626 4627# Check whether --enable-silent-rules was given. 4628if test ${enable_silent_rules+y} 4629then : 4630 enableval=$enable_silent_rules; 4631fi 4632 4633case $enable_silent_rules in # ((( 4634 yes) AM_DEFAULT_VERBOSITY=0;; 4635 no) AM_DEFAULT_VERBOSITY=1;; 4636 *) AM_DEFAULT_VERBOSITY=0;; 4637esac 4638am_make=${MAKE-make} 4639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4640printf %s "checking whether $am_make supports nested variables... " >&6; } 4641if test ${am_cv_make_support_nested_variables+y} 4642then : 4643 printf %s "(cached) " >&6 4644else $as_nop 4645 if printf "%s\n" 'TRUE=$(BAR$(V)) 4646BAR0=false 4647BAR1=true 4648V=1 4649am__doit: 4650 @$(TRUE) 4651.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4652 am_cv_make_support_nested_variables=yes 4653else 4654 am_cv_make_support_nested_variables=no 4655fi 4656fi 4657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4658printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4659if test $am_cv_make_support_nested_variables = yes; then 4660 AM_V='$(V)' 4661 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4662else 4663 AM_V=$AM_DEFAULT_VERBOSITY 4664 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4665fi 4666AM_BACKSLASH='\' 4667 4668 4669# Check for programs 4670 4671 4672# Initialize libtool 4673 4674case `pwd` in 4675 *\ * | *\ *) 4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4677printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4678esac 4679 4680 4681 4682macro_version='2.4.6' 4683macro_revision='2.4.6' 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698ltmain=$ac_aux_dir/ltmain.sh 4699 4700 4701 4702 # Make sure we can run config.sub. 4703$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4704 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4705 4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4707printf %s "checking build system type... " >&6; } 4708if test ${ac_cv_build+y} 4709then : 4710 printf %s "(cached) " >&6 4711else $as_nop 4712 ac_build_alias=$build_alias 4713test "x$ac_build_alias" = x && 4714 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4715test "x$ac_build_alias" = x && 4716 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4717ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4719 4720fi 4721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4722printf "%s\n" "$ac_cv_build" >&6; } 4723case $ac_cv_build in 4724*-*-*) ;; 4725*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4726esac 4727build=$ac_cv_build 4728ac_save_IFS=$IFS; IFS='-' 4729set x $ac_cv_build 4730shift 4731build_cpu=$1 4732build_vendor=$2 4733shift; shift 4734# Remember, the first character of IFS is used to create $*, 4735# except with old shells: 4736build_os=$* 4737IFS=$ac_save_IFS 4738case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4739 4740 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4742printf %s "checking host system type... " >&6; } 4743if test ${ac_cv_host+y} 4744then : 4745 printf %s "(cached) " >&6 4746else $as_nop 4747 if test "x$host_alias" = x; then 4748 ac_cv_host=$ac_cv_build 4749else 4750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4752fi 4753 4754fi 4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4756printf "%s\n" "$ac_cv_host" >&6; } 4757case $ac_cv_host in 4758*-*-*) ;; 4759*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4760esac 4761host=$ac_cv_host 4762ac_save_IFS=$IFS; IFS='-' 4763set x $ac_cv_host 4764shift 4765host_cpu=$1 4766host_vendor=$2 4767shift; shift 4768# Remember, the first character of IFS is used to create $*, 4769# except with old shells: 4770host_os=$* 4771IFS=$ac_save_IFS 4772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4773 4774 4775# Backslashify metacharacters that are still active within 4776# double-quoted strings. 4777sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4778 4779# Same as above, but do not quote variable references. 4780double_quote_subst='s/\(["`\\]\)/\\\1/g' 4781 4782# Sed substitution to delay expansion of an escaped shell variable in a 4783# double_quote_subst'ed string. 4784delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4785 4786# Sed substitution to delay expansion of an escaped single quote. 4787delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4788 4789# Sed substitution to avoid accidental globbing in evaled expressions 4790no_glob_subst='s/\*/\\\*/g' 4791 4792ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4793ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4794ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4795 4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4797printf %s "checking how to print strings... " >&6; } 4798# Test print first, because it will be a builtin if present. 4799if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4800 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4801 ECHO='print -r --' 4802elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4803 ECHO='printf %s\n' 4804else 4805 # Use this function as a fallback that always works. 4806 func_fallback_echo () 4807 { 4808 eval 'cat <<_LTECHO_EOF 4809$1 4810_LTECHO_EOF' 4811 } 4812 ECHO='func_fallback_echo' 4813fi 4814 4815# func_echo_all arg... 4816# Invoke $ECHO with all args, space-separated. 4817func_echo_all () 4818{ 4819 $ECHO "" 4820} 4821 4822case $ECHO in 4823 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4824printf "%s\n" "printf" >&6; } ;; 4825 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4826printf "%s\n" "print -r" >&6; } ;; 4827 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4828printf "%s\n" "cat" >&6; } ;; 4829esac 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4845printf %s "checking for a sed that does not truncate output... " >&6; } 4846if test ${ac_cv_path_SED+y} 4847then : 4848 printf %s "(cached) " >&6 4849else $as_nop 4850 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4851 for ac_i in 1 2 3 4 5 6 7; do 4852 ac_script="$ac_script$as_nl$ac_script" 4853 done 4854 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4855 { ac_script=; unset ac_script;} 4856 if test -z "$SED"; then 4857 ac_path_SED_found=false 4858 # Loop through the user's path and test for each of PROGNAME-LIST 4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860for as_dir in $PATH 4861do 4862 IFS=$as_save_IFS 4863 case $as_dir in #((( 4864 '') as_dir=./ ;; 4865 */) ;; 4866 *) as_dir=$as_dir/ ;; 4867 esac 4868 for ac_prog in sed gsed 4869 do 4870 for ac_exec_ext in '' $ac_executable_extensions; do 4871 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4872 as_fn_executable_p "$ac_path_SED" || continue 4873# Check for GNU ac_path_SED and select it if it is found. 4874 # Check for GNU $ac_path_SED 4875case `"$ac_path_SED" --version 2>&1` in 4876*GNU*) 4877 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4878*) 4879 ac_count=0 4880 printf %s 0123456789 >"conftest.in" 4881 while : 4882 do 4883 cat "conftest.in" "conftest.in" >"conftest.tmp" 4884 mv "conftest.tmp" "conftest.in" 4885 cp "conftest.in" "conftest.nl" 4886 printf "%s\n" '' >> "conftest.nl" 4887 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4889 as_fn_arith $ac_count + 1 && ac_count=$as_val 4890 if test $ac_count -gt ${ac_path_SED_max-0}; then 4891 # Best one so far, save it but keep looking for a better one 4892 ac_cv_path_SED="$ac_path_SED" 4893 ac_path_SED_max=$ac_count 4894 fi 4895 # 10*(2^10) chars as input seems more than enough 4896 test $ac_count -gt 10 && break 4897 done 4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4899esac 4900 4901 $ac_path_SED_found && break 3 4902 done 4903 done 4904 done 4905IFS=$as_save_IFS 4906 if test -z "$ac_cv_path_SED"; then 4907 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4908 fi 4909else 4910 ac_cv_path_SED=$SED 4911fi 4912 4913fi 4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4915printf "%s\n" "$ac_cv_path_SED" >&6; } 4916 SED="$ac_cv_path_SED" 4917 rm -f conftest.sed 4918 4919test -z "$SED" && SED=sed 4920Xsed="$SED -e 1s/^X//" 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4933printf %s "checking for grep that handles long lines and -e... " >&6; } 4934if test ${ac_cv_path_GREP+y} 4935then : 4936 printf %s "(cached) " >&6 4937else $as_nop 4938 if test -z "$GREP"; then 4939 ac_path_GREP_found=false 4940 # Loop through the user's path and test for each of PROGNAME-LIST 4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4943do 4944 IFS=$as_save_IFS 4945 case $as_dir in #((( 4946 '') as_dir=./ ;; 4947 */) ;; 4948 *) as_dir=$as_dir/ ;; 4949 esac 4950 for ac_prog in grep ggrep 4951 do 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4954 as_fn_executable_p "$ac_path_GREP" || continue 4955# Check for GNU ac_path_GREP and select it if it is found. 4956 # Check for GNU $ac_path_GREP 4957case `"$ac_path_GREP" --version 2>&1` in 4958*GNU*) 4959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4960*) 4961 ac_count=0 4962 printf %s 0123456789 >"conftest.in" 4963 while : 4964 do 4965 cat "conftest.in" "conftest.in" >"conftest.tmp" 4966 mv "conftest.tmp" "conftest.in" 4967 cp "conftest.in" "conftest.nl" 4968 printf "%s\n" 'GREP' >> "conftest.nl" 4969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4971 as_fn_arith $ac_count + 1 && ac_count=$as_val 4972 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4973 # Best one so far, save it but keep looking for a better one 4974 ac_cv_path_GREP="$ac_path_GREP" 4975 ac_path_GREP_max=$ac_count 4976 fi 4977 # 10*(2^10) chars as input seems more than enough 4978 test $ac_count -gt 10 && break 4979 done 4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4981esac 4982 4983 $ac_path_GREP_found && break 3 4984 done 4985 done 4986 done 4987IFS=$as_save_IFS 4988 if test -z "$ac_cv_path_GREP"; then 4989 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4990 fi 4991else 4992 ac_cv_path_GREP=$GREP 4993fi 4994 4995fi 4996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4997printf "%s\n" "$ac_cv_path_GREP" >&6; } 4998 GREP="$ac_cv_path_GREP" 4999 5000 5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5002printf %s "checking for egrep... " >&6; } 5003if test ${ac_cv_path_EGREP+y} 5004then : 5005 printf %s "(cached) " >&6 5006else $as_nop 5007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5008 then ac_cv_path_EGREP="$GREP -E" 5009 else 5010 if test -z "$EGREP"; then 5011 ac_path_EGREP_found=false 5012 # Loop through the user's path and test for each of PROGNAME-LIST 5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5015do 5016 IFS=$as_save_IFS 5017 case $as_dir in #((( 5018 '') as_dir=./ ;; 5019 */) ;; 5020 *) as_dir=$as_dir/ ;; 5021 esac 5022 for ac_prog in egrep 5023 do 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5026 as_fn_executable_p "$ac_path_EGREP" || continue 5027# Check for GNU ac_path_EGREP and select it if it is found. 5028 # Check for GNU $ac_path_EGREP 5029case `"$ac_path_EGREP" --version 2>&1` in 5030*GNU*) 5031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5032*) 5033 ac_count=0 5034 printf %s 0123456789 >"conftest.in" 5035 while : 5036 do 5037 cat "conftest.in" "conftest.in" >"conftest.tmp" 5038 mv "conftest.tmp" "conftest.in" 5039 cp "conftest.in" "conftest.nl" 5040 printf "%s\n" 'EGREP' >> "conftest.nl" 5041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5043 as_fn_arith $ac_count + 1 && ac_count=$as_val 5044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5045 # Best one so far, save it but keep looking for a better one 5046 ac_cv_path_EGREP="$ac_path_EGREP" 5047 ac_path_EGREP_max=$ac_count 5048 fi 5049 # 10*(2^10) chars as input seems more than enough 5050 test $ac_count -gt 10 && break 5051 done 5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5053esac 5054 5055 $ac_path_EGREP_found && break 3 5056 done 5057 done 5058 done 5059IFS=$as_save_IFS 5060 if test -z "$ac_cv_path_EGREP"; then 5061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5062 fi 5063else 5064 ac_cv_path_EGREP=$EGREP 5065fi 5066 5067 fi 5068fi 5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5070printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5071 EGREP="$ac_cv_path_EGREP" 5072 5073 5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5075printf %s "checking for fgrep... " >&6; } 5076if test ${ac_cv_path_FGREP+y} 5077then : 5078 printf %s "(cached) " >&6 5079else $as_nop 5080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5081 then ac_cv_path_FGREP="$GREP -F" 5082 else 5083 if test -z "$FGREP"; then 5084 ac_path_FGREP_found=false 5085 # Loop through the user's path and test for each of PROGNAME-LIST 5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5088do 5089 IFS=$as_save_IFS 5090 case $as_dir in #((( 5091 '') as_dir=./ ;; 5092 */) ;; 5093 *) as_dir=$as_dir/ ;; 5094 esac 5095 for ac_prog in fgrep 5096 do 5097 for ac_exec_ext in '' $ac_executable_extensions; do 5098 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5099 as_fn_executable_p "$ac_path_FGREP" || continue 5100# Check for GNU ac_path_FGREP and select it if it is found. 5101 # Check for GNU $ac_path_FGREP 5102case `"$ac_path_FGREP" --version 2>&1` in 5103*GNU*) 5104 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5105*) 5106 ac_count=0 5107 printf %s 0123456789 >"conftest.in" 5108 while : 5109 do 5110 cat "conftest.in" "conftest.in" >"conftest.tmp" 5111 mv "conftest.tmp" "conftest.in" 5112 cp "conftest.in" "conftest.nl" 5113 printf "%s\n" 'FGREP' >> "conftest.nl" 5114 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5116 as_fn_arith $ac_count + 1 && ac_count=$as_val 5117 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5118 # Best one so far, save it but keep looking for a better one 5119 ac_cv_path_FGREP="$ac_path_FGREP" 5120 ac_path_FGREP_max=$ac_count 5121 fi 5122 # 10*(2^10) chars as input seems more than enough 5123 test $ac_count -gt 10 && break 5124 done 5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5126esac 5127 5128 $ac_path_FGREP_found && break 3 5129 done 5130 done 5131 done 5132IFS=$as_save_IFS 5133 if test -z "$ac_cv_path_FGREP"; then 5134 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5135 fi 5136else 5137 ac_cv_path_FGREP=$FGREP 5138fi 5139 5140 fi 5141fi 5142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5143printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5144 FGREP="$ac_cv_path_FGREP" 5145 5146 5147test -z "$GREP" && GREP=grep 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167# Check whether --with-gnu-ld was given. 5168if test ${with_gnu_ld+y} 5169then : 5170 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5171else $as_nop 5172 with_gnu_ld=no 5173fi 5174 5175ac_prog=ld 5176if test yes = "$GCC"; then 5177 # Check if gcc -print-prog-name=ld gives a path. 5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5179printf %s "checking for ld used by $CC... " >&6; } 5180 case $host in 5181 *-*-mingw*) 5182 # gcc leaves a trailing carriage return, which upsets mingw 5183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5184 *) 5185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5186 esac 5187 case $ac_prog in 5188 # Accept absolute paths. 5189 [\\/]* | ?:[\\/]*) 5190 re_direlt='/[^/][^/]*/\.\./' 5191 # Canonicalize the pathname of ld 5192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5195 done 5196 test -z "$LD" && LD=$ac_prog 5197 ;; 5198 "") 5199 # If it fails, then pretend we aren't using GCC. 5200 ac_prog=ld 5201 ;; 5202 *) 5203 # If it is relative, then search for the first ld in PATH. 5204 with_gnu_ld=unknown 5205 ;; 5206 esac 5207elif test yes = "$with_gnu_ld"; then 5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5209printf %s "checking for GNU ld... " >&6; } 5210else 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5212printf %s "checking for non-GNU ld... " >&6; } 5213fi 5214if test ${lt_cv_path_LD+y} 5215then : 5216 printf %s "(cached) " >&6 5217else $as_nop 5218 if test -z "$LD"; then 5219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5220 for ac_dir in $PATH; do 5221 IFS=$lt_save_ifs 5222 test -z "$ac_dir" && ac_dir=. 5223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5224 lt_cv_path_LD=$ac_dir/$ac_prog 5225 # Check to see if the program is GNU ld. I'd rather use --version, 5226 # but apparently some variants of GNU ld only accept -v. 5227 # Break only if it was the GNU/non-GNU ld that we prefer. 5228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5229 *GNU* | *'with BFD'*) 5230 test no != "$with_gnu_ld" && break 5231 ;; 5232 *) 5233 test yes != "$with_gnu_ld" && break 5234 ;; 5235 esac 5236 fi 5237 done 5238 IFS=$lt_save_ifs 5239else 5240 lt_cv_path_LD=$LD # Let the user override the test with a path. 5241fi 5242fi 5243 5244LD=$lt_cv_path_LD 5245if test -n "$LD"; then 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5247printf "%s\n" "$LD" >&6; } 5248else 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5250printf "%s\n" "no" >&6; } 5251fi 5252test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5254printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5255if test ${lt_cv_prog_gnu_ld+y} 5256then : 5257 printf %s "(cached) " >&6 5258else $as_nop 5259 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5260case `$LD -v 2>&1 </dev/null` in 5261*GNU* | *'with BFD'*) 5262 lt_cv_prog_gnu_ld=yes 5263 ;; 5264*) 5265 lt_cv_prog_gnu_ld=no 5266 ;; 5267esac 5268fi 5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5270printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5271with_gnu_ld=$lt_cv_prog_gnu_ld 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5282printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5283if test ${lt_cv_path_NM+y} 5284then : 5285 printf %s "(cached) " >&6 5286else $as_nop 5287 if test -n "$NM"; then 5288 # Let the user override the test. 5289 lt_cv_path_NM=$NM 5290else 5291 lt_nm_to_check=${ac_tool_prefix}nm 5292 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5293 lt_nm_to_check="$lt_nm_to_check nm" 5294 fi 5295 for lt_tmp_nm in $lt_nm_to_check; do 5296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5297 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5298 IFS=$lt_save_ifs 5299 test -z "$ac_dir" && ac_dir=. 5300 tmp_nm=$ac_dir/$lt_tmp_nm 5301 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5302 # Check to see if the nm accepts a BSD-compat flag. 5303 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5304 # nm: unknown option "B" ignored 5305 # Tru64's nm complains that /dev/null is an invalid object file 5306 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5307 case $build_os in 5308 mingw*) lt_bad_file=conftest.nm/nofile ;; 5309 *) lt_bad_file=/dev/null ;; 5310 esac 5311 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5312 *$lt_bad_file* | *'Invalid file or object type'*) 5313 lt_cv_path_NM="$tmp_nm -B" 5314 break 2 5315 ;; 5316 *) 5317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5318 */dev/null*) 5319 lt_cv_path_NM="$tmp_nm -p" 5320 break 2 5321 ;; 5322 *) 5323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5324 continue # so that we can try to find one that supports BSD flags 5325 ;; 5326 esac 5327 ;; 5328 esac 5329 fi 5330 done 5331 IFS=$lt_save_ifs 5332 done 5333 : ${lt_cv_path_NM=no} 5334fi 5335fi 5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5337printf "%s\n" "$lt_cv_path_NM" >&6; } 5338if test no != "$lt_cv_path_NM"; then 5339 NM=$lt_cv_path_NM 5340else 5341 # Didn't find any BSD compatible name lister, look for dumpbin. 5342 if test -n "$DUMPBIN"; then : 5343 # Let the user override the test. 5344 else 5345 if test -n "$ac_tool_prefix"; then 5346 for ac_prog in dumpbin "link -dump" 5347 do 5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5349set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351printf %s "checking for $ac_word... " >&6; } 5352if test ${ac_cv_prog_DUMPBIN+y} 5353then : 5354 printf %s "(cached) " >&6 5355else $as_nop 5356 if test -n "$DUMPBIN"; then 5357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5358else 5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH 5361do 5362 IFS=$as_save_IFS 5363 case $as_dir in #((( 5364 '') as_dir=./ ;; 5365 */) ;; 5366 *) as_dir=$as_dir/ ;; 5367 esac 5368 for ac_exec_ext in '' $ac_executable_extensions; do 5369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5370 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5372 break 2 5373 fi 5374done 5375 done 5376IFS=$as_save_IFS 5377 5378fi 5379fi 5380DUMPBIN=$ac_cv_prog_DUMPBIN 5381if test -n "$DUMPBIN"; then 5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5383printf "%s\n" "$DUMPBIN" >&6; } 5384else 5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5386printf "%s\n" "no" >&6; } 5387fi 5388 5389 5390 test -n "$DUMPBIN" && break 5391 done 5392fi 5393if test -z "$DUMPBIN"; then 5394 ac_ct_DUMPBIN=$DUMPBIN 5395 for ac_prog in dumpbin "link -dump" 5396do 5397 # Extract the first word of "$ac_prog", so it can be a program name with args. 5398set dummy $ac_prog; ac_word=$2 5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5400printf %s "checking for $ac_word... " >&6; } 5401if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5402then : 5403 printf %s "(cached) " >&6 5404else $as_nop 5405 if test -n "$ac_ct_DUMPBIN"; then 5406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5407else 5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5409for as_dir in $PATH 5410do 5411 IFS=$as_save_IFS 5412 case $as_dir in #((( 5413 '') as_dir=./ ;; 5414 */) ;; 5415 *) as_dir=$as_dir/ ;; 5416 esac 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5419 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423done 5424 done 5425IFS=$as_save_IFS 5426 5427fi 5428fi 5429ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5430if test -n "$ac_ct_DUMPBIN"; then 5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5432printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5433else 5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435printf "%s\n" "no" >&6; } 5436fi 5437 5438 5439 test -n "$ac_ct_DUMPBIN" && break 5440done 5441 5442 if test "x$ac_ct_DUMPBIN" = x; then 5443 DUMPBIN=":" 5444 else 5445 case $cross_compiling:$ac_tool_warned in 5446yes:) 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5448printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5449ac_tool_warned=yes ;; 5450esac 5451 DUMPBIN=$ac_ct_DUMPBIN 5452 fi 5453fi 5454 5455 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5456 *COFF*) 5457 DUMPBIN="$DUMPBIN -symbols -headers" 5458 ;; 5459 *) 5460 DUMPBIN=: 5461 ;; 5462 esac 5463 fi 5464 5465 if test : != "$DUMPBIN"; then 5466 NM=$DUMPBIN 5467 fi 5468fi 5469test -z "$NM" && NM=nm 5470 5471 5472 5473 5474 5475 5476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5477printf %s "checking the name lister ($NM) interface... " >&6; } 5478if test ${lt_cv_nm_interface+y} 5479then : 5480 printf %s "(cached) " >&6 5481else $as_nop 5482 lt_cv_nm_interface="BSD nm" 5483 echo "int some_variable = 0;" > conftest.$ac_ext 5484 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5485 (eval "$ac_compile" 2>conftest.err) 5486 cat conftest.err >&5 5487 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5489 cat conftest.err >&5 5490 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5491 cat conftest.out >&5 5492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5493 lt_cv_nm_interface="MS dumpbin" 5494 fi 5495 rm -f conftest* 5496fi 5497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5498printf "%s\n" "$lt_cv_nm_interface" >&6; } 5499 5500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5501printf %s "checking whether ln -s works... " >&6; } 5502LN_S=$as_ln_s 5503if test "$LN_S" = "ln -s"; then 5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5505printf "%s\n" "yes" >&6; } 5506else 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5508printf "%s\n" "no, using $LN_S" >&6; } 5509fi 5510 5511# find the maximum length of command line arguments 5512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5513printf %s "checking the maximum length of command line arguments... " >&6; } 5514if test ${lt_cv_sys_max_cmd_len+y} 5515then : 5516 printf %s "(cached) " >&6 5517else $as_nop 5518 i=0 5519 teststring=ABCD 5520 5521 case $build_os in 5522 msdosdjgpp*) 5523 # On DJGPP, this test can blow up pretty badly due to problems in libc 5524 # (any single argument exceeding 2000 bytes causes a buffer overrun 5525 # during glob expansion). Even if it were fixed, the result of this 5526 # check would be larger than it should be. 5527 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5528 ;; 5529 5530 gnu*) 5531 # Under GNU Hurd, this test is not required because there is 5532 # no limit to the length of command line arguments. 5533 # Libtool will interpret -1 as no limit whatsoever 5534 lt_cv_sys_max_cmd_len=-1; 5535 ;; 5536 5537 cygwin* | mingw* | cegcc*) 5538 # On Win9x/ME, this test blows up -- it succeeds, but takes 5539 # about 5 minutes as the teststring grows exponentially. 5540 # Worse, since 9x/ME are not pre-emptively multitasking, 5541 # you end up with a "frozen" computer, even though with patience 5542 # the test eventually succeeds (with a max line length of 256k). 5543 # Instead, let's just punt: use the minimum linelength reported by 5544 # all of the supported platforms: 8192 (on NT/2K/XP). 5545 lt_cv_sys_max_cmd_len=8192; 5546 ;; 5547 5548 mint*) 5549 # On MiNT this can take a long time and run out of memory. 5550 lt_cv_sys_max_cmd_len=8192; 5551 ;; 5552 5553 amigaos*) 5554 # On AmigaOS with pdksh, this test takes hours, literally. 5555 # So we just punt and use a minimum line length of 8192. 5556 lt_cv_sys_max_cmd_len=8192; 5557 ;; 5558 5559 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5560 # This has been around since 386BSD, at least. Likely further. 5561 if test -x /sbin/sysctl; then 5562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5563 elif test -x /usr/sbin/sysctl; then 5564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5565 else 5566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5567 fi 5568 # And add a safety zone 5569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5571 ;; 5572 5573 interix*) 5574 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5575 lt_cv_sys_max_cmd_len=196608 5576 ;; 5577 5578 os2*) 5579 # The test takes a long time on OS/2. 5580 lt_cv_sys_max_cmd_len=8192 5581 ;; 5582 5583 osf*) 5584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5586 # nice to cause kernel panics so lets avoid the loop below. 5587 # First set a reasonable default. 5588 lt_cv_sys_max_cmd_len=16384 5589 # 5590 if test -x /sbin/sysconfig; then 5591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5592 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5593 esac 5594 fi 5595 ;; 5596 sco3.2v5*) 5597 lt_cv_sys_max_cmd_len=102400 5598 ;; 5599 sysv5* | sco5v6* | sysv4.2uw2*) 5600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5601 if test -n "$kargmax"; then 5602 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5603 else 5604 lt_cv_sys_max_cmd_len=32768 5605 fi 5606 ;; 5607 *) 5608 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5609 if test -n "$lt_cv_sys_max_cmd_len" && \ 5610 test undefined != "$lt_cv_sys_max_cmd_len"; then 5611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5613 else 5614 # Make teststring a little bigger before we do anything with it. 5615 # a 1K string should be a reasonable start. 5616 for i in 1 2 3 4 5 6 7 8; do 5617 teststring=$teststring$teststring 5618 done 5619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5620 # If test is not a shell built-in, we'll probably end up computing a 5621 # maximum length that is only half of the actual maximum length, but 5622 # we can't tell. 5623 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5624 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5625 test 17 != "$i" # 1/2 MB should be enough 5626 do 5627 i=`expr $i + 1` 5628 teststring=$teststring$teststring 5629 done 5630 # Only check the string length outside the loop. 5631 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5632 teststring= 5633 # Add a significant safety factor because C++ compilers can tack on 5634 # massive amounts of additional arguments before passing them to the 5635 # linker. It appears as though 1/2 is a usable value. 5636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5637 fi 5638 ;; 5639 esac 5640 5641fi 5642 5643if test -n "$lt_cv_sys_max_cmd_len"; then 5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5645printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5646else 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5648printf "%s\n" "none" >&6; } 5649fi 5650max_cmd_len=$lt_cv_sys_max_cmd_len 5651 5652 5653 5654 5655 5656 5657: ${CP="cp -f"} 5658: ${MV="mv -f"} 5659: ${RM="rm -f"} 5660 5661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5662 lt_unset=unset 5663else 5664 lt_unset=false 5665fi 5666 5667 5668 5669 5670 5671# test EBCDIC or ASCII 5672case `echo X|tr X '\101'` in 5673 A) # ASCII based system 5674 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5675 lt_SP2NL='tr \040 \012' 5676 lt_NL2SP='tr \015\012 \040\040' 5677 ;; 5678 *) # EBCDIC based system 5679 lt_SP2NL='tr \100 \n' 5680 lt_NL2SP='tr \r\n \100\100' 5681 ;; 5682esac 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5693printf %s "checking how to convert $build file names to $host format... " >&6; } 5694if test ${lt_cv_to_host_file_cmd+y} 5695then : 5696 printf %s "(cached) " >&6 5697else $as_nop 5698 case $host in 5699 *-*-mingw* ) 5700 case $build in 5701 *-*-mingw* ) # actually msys 5702 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5703 ;; 5704 *-*-cygwin* ) 5705 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5706 ;; 5707 * ) # otherwise, assume *nix 5708 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5709 ;; 5710 esac 5711 ;; 5712 *-*-cygwin* ) 5713 case $build in 5714 *-*-mingw* ) # actually msys 5715 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5716 ;; 5717 *-*-cygwin* ) 5718 lt_cv_to_host_file_cmd=func_convert_file_noop 5719 ;; 5720 * ) # otherwise, assume *nix 5721 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5722 ;; 5723 esac 5724 ;; 5725 * ) # unhandled hosts (and "normal" native builds) 5726 lt_cv_to_host_file_cmd=func_convert_file_noop 5727 ;; 5728esac 5729 5730fi 5731 5732to_host_file_cmd=$lt_cv_to_host_file_cmd 5733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5734printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5735 5736 5737 5738 5739 5740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5741printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5742if test ${lt_cv_to_tool_file_cmd+y} 5743then : 5744 printf %s "(cached) " >&6 5745else $as_nop 5746 #assume ordinary cross tools, or native build. 5747lt_cv_to_tool_file_cmd=func_convert_file_noop 5748case $host in 5749 *-*-mingw* ) 5750 case $build in 5751 *-*-mingw* ) # actually msys 5752 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5753 ;; 5754 esac 5755 ;; 5756esac 5757 5758fi 5759 5760to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5762printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5763 5764 5765 5766 5767 5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5769printf %s "checking for $LD option to reload object files... " >&6; } 5770if test ${lt_cv_ld_reload_flag+y} 5771then : 5772 printf %s "(cached) " >&6 5773else $as_nop 5774 lt_cv_ld_reload_flag='-r' 5775fi 5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5777printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5778reload_flag=$lt_cv_ld_reload_flag 5779case $reload_flag in 5780"" | " "*) ;; 5781*) reload_flag=" $reload_flag" ;; 5782esac 5783reload_cmds='$LD$reload_flag -o $output$reload_objs' 5784case $host_os in 5785 cygwin* | mingw* | pw32* | cegcc*) 5786 if test yes != "$GCC"; then 5787 reload_cmds=false 5788 fi 5789 ;; 5790 darwin*) 5791 if test yes = "$GCC"; then 5792 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5793 else 5794 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5795 fi 5796 ;; 5797esac 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807if test -n "$ac_tool_prefix"; then 5808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5809set dummy ${ac_tool_prefix}objdump; ac_word=$2 5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5811printf %s "checking for $ac_word... " >&6; } 5812if test ${ac_cv_prog_OBJDUMP+y} 5813then : 5814 printf %s "(cached) " >&6 5815else $as_nop 5816 if test -n "$OBJDUMP"; then 5817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5818else 5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5820for as_dir in $PATH 5821do 5822 IFS=$as_save_IFS 5823 case $as_dir in #((( 5824 '') as_dir=./ ;; 5825 */) ;; 5826 *) as_dir=$as_dir/ ;; 5827 esac 5828 for ac_exec_ext in '' $ac_executable_extensions; do 5829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5830 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5832 break 2 5833 fi 5834done 5835 done 5836IFS=$as_save_IFS 5837 5838fi 5839fi 5840OBJDUMP=$ac_cv_prog_OBJDUMP 5841if test -n "$OBJDUMP"; then 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5843printf "%s\n" "$OBJDUMP" >&6; } 5844else 5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5846printf "%s\n" "no" >&6; } 5847fi 5848 5849 5850fi 5851if test -z "$ac_cv_prog_OBJDUMP"; then 5852 ac_ct_OBJDUMP=$OBJDUMP 5853 # Extract the first word of "objdump", so it can be a program name with args. 5854set dummy objdump; ac_word=$2 5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5856printf %s "checking for $ac_word... " >&6; } 5857if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5858then : 5859 printf %s "(cached) " >&6 5860else $as_nop 5861 if test -n "$ac_ct_OBJDUMP"; then 5862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5863else 5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865for as_dir in $PATH 5866do 5867 IFS=$as_save_IFS 5868 case $as_dir in #((( 5869 '') as_dir=./ ;; 5870 */) ;; 5871 *) as_dir=$as_dir/ ;; 5872 esac 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5875 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879done 5880 done 5881IFS=$as_save_IFS 5882 5883fi 5884fi 5885ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5886if test -n "$ac_ct_OBJDUMP"; then 5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5888printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5889else 5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891printf "%s\n" "no" >&6; } 5892fi 5893 5894 if test "x$ac_ct_OBJDUMP" = x; then 5895 OBJDUMP="false" 5896 else 5897 case $cross_compiling:$ac_tool_warned in 5898yes:) 5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5900printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5901ac_tool_warned=yes ;; 5902esac 5903 OBJDUMP=$ac_ct_OBJDUMP 5904 fi 5905else 5906 OBJDUMP="$ac_cv_prog_OBJDUMP" 5907fi 5908 5909test -z "$OBJDUMP" && OBJDUMP=objdump 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5920printf %s "checking how to recognize dependent libraries... " >&6; } 5921if test ${lt_cv_deplibs_check_method+y} 5922then : 5923 printf %s "(cached) " >&6 5924else $as_nop 5925 lt_cv_file_magic_cmd='$MAGIC_CMD' 5926lt_cv_file_magic_test_file= 5927lt_cv_deplibs_check_method='unknown' 5928# Need to set the preceding variable on all platforms that support 5929# interlibrary dependencies. 5930# 'none' -- dependencies not supported. 5931# 'unknown' -- same as none, but documents that we really don't know. 5932# 'pass_all' -- all dependencies passed with no checks. 5933# 'test_compile' -- check by making test program. 5934# 'file_magic [[regex]]' -- check by looking for files in library path 5935# that responds to the $file_magic_cmd with a given extended regex. 5936# If you have 'file' or equivalent on your system and you're not sure 5937# whether 'pass_all' will *always* work, you probably want this one. 5938 5939case $host_os in 5940aix[4-9]*) 5941 lt_cv_deplibs_check_method=pass_all 5942 ;; 5943 5944beos*) 5945 lt_cv_deplibs_check_method=pass_all 5946 ;; 5947 5948bsdi[45]*) 5949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5950 lt_cv_file_magic_cmd='/usr/bin/file -L' 5951 lt_cv_file_magic_test_file=/shlib/libc.so 5952 ;; 5953 5954cygwin*) 5955 # func_win32_libid is a shell function defined in ltmain.sh 5956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5957 lt_cv_file_magic_cmd='func_win32_libid' 5958 ;; 5959 5960mingw* | pw32*) 5961 # Base MSYS/MinGW do not provide the 'file' command needed by 5962 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5963 # unless we find 'file', for example because we are cross-compiling. 5964 if ( file / ) >/dev/null 2>&1; then 5965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5966 lt_cv_file_magic_cmd='func_win32_libid' 5967 else 5968 # Keep this pattern in sync with the one in func_win32_libid. 5969 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5970 lt_cv_file_magic_cmd='$OBJDUMP -f' 5971 fi 5972 ;; 5973 5974cegcc*) 5975 # use the weaker test based on 'objdump'. See mingw*. 5976 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5977 lt_cv_file_magic_cmd='$OBJDUMP -f' 5978 ;; 5979 5980darwin* | rhapsody*) 5981 lt_cv_deplibs_check_method=pass_all 5982 ;; 5983 5984freebsd* | dragonfly*) 5985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5986 case $host_cpu in 5987 i*86 ) 5988 # Not sure whether the presence of OpenBSD here was a mistake. 5989 # Let's accept both of them until this is cleared up. 5990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5991 lt_cv_file_magic_cmd=/usr/bin/file 5992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5993 ;; 5994 esac 5995 else 5996 lt_cv_deplibs_check_method=pass_all 5997 fi 5998 ;; 5999 6000haiku*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004hpux10.20* | hpux11*) 6005 lt_cv_file_magic_cmd=/usr/bin/file 6006 case $host_cpu in 6007 ia64*) 6008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6010 ;; 6011 hppa*64*) 6012 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]' 6013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6014 ;; 6015 *) 6016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6017 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6018 ;; 6019 esac 6020 ;; 6021 6022interix[3-9]*) 6023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6025 ;; 6026 6027irix5* | irix6* | nonstopux*) 6028 case $LD in 6029 *-32|*"-32 ") libmagic=32-bit;; 6030 *-n32|*"-n32 ") libmagic=N32;; 6031 *-64|*"-64 ") libmagic=64-bit;; 6032 *) libmagic=never-match;; 6033 esac 6034 lt_cv_deplibs_check_method=pass_all 6035 ;; 6036 6037# This must be glibc/ELF. 6038linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6039 lt_cv_deplibs_check_method=pass_all 6040 ;; 6041 6042netbsd*) 6043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6045 else 6046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6047 fi 6048 ;; 6049 6050newos6*) 6051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6052 lt_cv_file_magic_cmd=/usr/bin/file 6053 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6054 ;; 6055 6056*nto* | *qnx*) 6057 lt_cv_deplibs_check_method=pass_all 6058 ;; 6059 6060openbsd* | bitrig*) 6061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6063 else 6064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6065 fi 6066 ;; 6067 6068osf3* | osf4* | osf5*) 6069 lt_cv_deplibs_check_method=pass_all 6070 ;; 6071 6072rdos*) 6073 lt_cv_deplibs_check_method=pass_all 6074 ;; 6075 6076solaris*) 6077 lt_cv_deplibs_check_method=pass_all 6078 ;; 6079 6080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6081 lt_cv_deplibs_check_method=pass_all 6082 ;; 6083 6084sysv4 | sysv4.3*) 6085 case $host_vendor in 6086 motorola) 6087 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]' 6088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6089 ;; 6090 ncr) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093 sequent) 6094 lt_cv_file_magic_cmd='/bin/file' 6095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6096 ;; 6097 sni) 6098 lt_cv_file_magic_cmd='/bin/file' 6099 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6100 lt_cv_file_magic_test_file=/lib/libc.so 6101 ;; 6102 siemens) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 pc) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 esac 6109 ;; 6110 6111tpf*) 6112 lt_cv_deplibs_check_method=pass_all 6113 ;; 6114os2*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117esac 6118 6119fi 6120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6121printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6122 6123file_magic_glob= 6124want_nocaseglob=no 6125if test "$build" = "$host"; then 6126 case $host_os in 6127 mingw* | pw32*) 6128 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6129 want_nocaseglob=yes 6130 else 6131 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6132 fi 6133 ;; 6134 esac 6135fi 6136 6137file_magic_cmd=$lt_cv_file_magic_cmd 6138deplibs_check_method=$lt_cv_deplibs_check_method 6139test -z "$deplibs_check_method" && deplibs_check_method=unknown 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162if test -n "$ac_tool_prefix"; then 6163 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6164set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6166printf %s "checking for $ac_word... " >&6; } 6167if test ${ac_cv_prog_DLLTOOL+y} 6168then : 6169 printf %s "(cached) " >&6 6170else $as_nop 6171 if test -n "$DLLTOOL"; then 6172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6173else 6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH 6176do 6177 IFS=$as_save_IFS 6178 case $as_dir in #((( 6179 '') as_dir=./ ;; 6180 */) ;; 6181 *) as_dir=$as_dir/ ;; 6182 esac 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189done 6190 done 6191IFS=$as_save_IFS 6192 6193fi 6194fi 6195DLLTOOL=$ac_cv_prog_DLLTOOL 6196if test -n "$DLLTOOL"; then 6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6198printf "%s\n" "$DLLTOOL" >&6; } 6199else 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6201printf "%s\n" "no" >&6; } 6202fi 6203 6204 6205fi 6206if test -z "$ac_cv_prog_DLLTOOL"; then 6207 ac_ct_DLLTOOL=$DLLTOOL 6208 # Extract the first word of "dlltool", so it can be a program name with args. 6209set dummy dlltool; ac_word=$2 6210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211printf %s "checking for $ac_word... " >&6; } 6212if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6213then : 6214 printf %s "(cached) " >&6 6215else $as_nop 6216 if test -n "$ac_ct_DLLTOOL"; then 6217 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6218else 6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220for as_dir in $PATH 6221do 6222 IFS=$as_save_IFS 6223 case $as_dir in #((( 6224 '') as_dir=./ ;; 6225 */) ;; 6226 *) as_dir=$as_dir/ ;; 6227 esac 6228 for ac_exec_ext in '' $ac_executable_extensions; do 6229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6230 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6232 break 2 6233 fi 6234done 6235 done 6236IFS=$as_save_IFS 6237 6238fi 6239fi 6240ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6241if test -n "$ac_ct_DLLTOOL"; then 6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6243printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6244else 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6246printf "%s\n" "no" >&6; } 6247fi 6248 6249 if test "x$ac_ct_DLLTOOL" = x; then 6250 DLLTOOL="false" 6251 else 6252 case $cross_compiling:$ac_tool_warned in 6253yes:) 6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6255printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6256ac_tool_warned=yes ;; 6257esac 6258 DLLTOOL=$ac_ct_DLLTOOL 6259 fi 6260else 6261 DLLTOOL="$ac_cv_prog_DLLTOOL" 6262fi 6263 6264test -z "$DLLTOOL" && DLLTOOL=dlltool 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6276printf %s "checking how to associate runtime and link libraries... " >&6; } 6277if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6278then : 6279 printf %s "(cached) " >&6 6280else $as_nop 6281 lt_cv_sharedlib_from_linklib_cmd='unknown' 6282 6283case $host_os in 6284cygwin* | mingw* | pw32* | cegcc*) 6285 # two different shell functions defined in ltmain.sh; 6286 # decide which one to use based on capabilities of $DLLTOOL 6287 case `$DLLTOOL --help 2>&1` in 6288 *--identify-strict*) 6289 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6290 ;; 6291 *) 6292 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6293 ;; 6294 esac 6295 ;; 6296*) 6297 # fallback: assume linklib IS sharedlib 6298 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6299 ;; 6300esac 6301 6302fi 6303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6304printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6305sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6306test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6307 6308 6309 6310 6311 6312 6313 6314if test -n "$ac_tool_prefix"; then 6315 for ac_prog in ar 6316 do 6317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6318set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6320printf %s "checking for $ac_word... " >&6; } 6321if test ${ac_cv_prog_AR+y} 6322then : 6323 printf %s "(cached) " >&6 6324else $as_nop 6325 if test -n "$AR"; then 6326 ac_cv_prog_AR="$AR" # Let the user override the test. 6327else 6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329for as_dir in $PATH 6330do 6331 IFS=$as_save_IFS 6332 case $as_dir in #((( 6333 '') as_dir=./ ;; 6334 */) ;; 6335 *) as_dir=$as_dir/ ;; 6336 esac 6337 for ac_exec_ext in '' $ac_executable_extensions; do 6338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6339 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6341 break 2 6342 fi 6343done 6344 done 6345IFS=$as_save_IFS 6346 6347fi 6348fi 6349AR=$ac_cv_prog_AR 6350if test -n "$AR"; then 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6352printf "%s\n" "$AR" >&6; } 6353else 6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355printf "%s\n" "no" >&6; } 6356fi 6357 6358 6359 test -n "$AR" && break 6360 done 6361fi 6362if test -z "$AR"; then 6363 ac_ct_AR=$AR 6364 for ac_prog in ar 6365do 6366 # Extract the first word of "$ac_prog", so it can be a program name with args. 6367set dummy $ac_prog; ac_word=$2 6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6369printf %s "checking for $ac_word... " >&6; } 6370if test ${ac_cv_prog_ac_ct_AR+y} 6371then : 6372 printf %s "(cached) " >&6 6373else $as_nop 6374 if test -n "$ac_ct_AR"; then 6375 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6376else 6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6378for as_dir in $PATH 6379do 6380 IFS=$as_save_IFS 6381 case $as_dir in #((( 6382 '') as_dir=./ ;; 6383 */) ;; 6384 *) as_dir=$as_dir/ ;; 6385 esac 6386 for ac_exec_ext in '' $ac_executable_extensions; do 6387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6388 ac_cv_prog_ac_ct_AR="$ac_prog" 6389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6390 break 2 6391 fi 6392done 6393 done 6394IFS=$as_save_IFS 6395 6396fi 6397fi 6398ac_ct_AR=$ac_cv_prog_ac_ct_AR 6399if test -n "$ac_ct_AR"; then 6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6401printf "%s\n" "$ac_ct_AR" >&6; } 6402else 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6404printf "%s\n" "no" >&6; } 6405fi 6406 6407 6408 test -n "$ac_ct_AR" && break 6409done 6410 6411 if test "x$ac_ct_AR" = x; then 6412 AR="false" 6413 else 6414 case $cross_compiling:$ac_tool_warned in 6415yes:) 6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6417printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6418ac_tool_warned=yes ;; 6419esac 6420 AR=$ac_ct_AR 6421 fi 6422fi 6423 6424: ${AR=ar} 6425: ${AR_FLAGS=cru} 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6438printf %s "checking for archiver @FILE support... " >&6; } 6439if test ${lt_cv_ar_at_file+y} 6440then : 6441 printf %s "(cached) " >&6 6442else $as_nop 6443 lt_cv_ar_at_file=no 6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446 6447int 6448main (void) 6449{ 6450 6451 ; 6452 return 0; 6453} 6454_ACEOF 6455if ac_fn_c_try_compile "$LINENO" 6456then : 6457 echo conftest.$ac_objext > conftest.lst 6458 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6460 (eval $lt_ar_try) 2>&5 6461 ac_status=$? 6462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6463 test $ac_status = 0; } 6464 if test 0 -eq "$ac_status"; then 6465 # Ensure the archiver fails upon bogus file names. 6466 rm -f conftest.$ac_objext libconftest.a 6467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6468 (eval $lt_ar_try) 2>&5 6469 ac_status=$? 6470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6471 test $ac_status = 0; } 6472 if test 0 -ne "$ac_status"; then 6473 lt_cv_ar_at_file=@ 6474 fi 6475 fi 6476 rm -f conftest.* libconftest.a 6477 6478fi 6479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6480 6481fi 6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6483printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6484 6485if test no = "$lt_cv_ar_at_file"; then 6486 archiver_list_spec= 6487else 6488 archiver_list_spec=$lt_cv_ar_at_file 6489fi 6490 6491 6492 6493 6494 6495 6496 6497if test -n "$ac_tool_prefix"; then 6498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6499set dummy ${ac_tool_prefix}strip; ac_word=$2 6500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6501printf %s "checking for $ac_word... " >&6; } 6502if test ${ac_cv_prog_STRIP+y} 6503then : 6504 printf %s "(cached) " >&6 6505else $as_nop 6506 if test -n "$STRIP"; then 6507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 case $as_dir in #((( 6514 '') as_dir=./ ;; 6515 */) ;; 6516 *) as_dir=$as_dir/ ;; 6517 esac 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6520 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6522 break 2 6523 fi 6524done 6525 done 6526IFS=$as_save_IFS 6527 6528fi 6529fi 6530STRIP=$ac_cv_prog_STRIP 6531if test -n "$STRIP"; then 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6533printf "%s\n" "$STRIP" >&6; } 6534else 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536printf "%s\n" "no" >&6; } 6537fi 6538 6539 6540fi 6541if test -z "$ac_cv_prog_STRIP"; then 6542 ac_ct_STRIP=$STRIP 6543 # Extract the first word of "strip", so it can be a program name with args. 6544set dummy strip; ac_word=$2 6545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546printf %s "checking for $ac_word... " >&6; } 6547if test ${ac_cv_prog_ac_ct_STRIP+y} 6548then : 6549 printf %s "(cached) " >&6 6550else $as_nop 6551 if test -n "$ac_ct_STRIP"; then 6552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6553else 6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 case $as_dir in #((( 6559 '') as_dir=./ ;; 6560 */) ;; 6561 *) as_dir=$as_dir/ ;; 6562 esac 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6565 ac_cv_prog_ac_ct_STRIP="strip" 6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6576if test -n "$ac_ct_STRIP"; then 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6578printf "%s\n" "$ac_ct_STRIP" >&6; } 6579else 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581printf "%s\n" "no" >&6; } 6582fi 6583 6584 if test "x$ac_ct_STRIP" = x; then 6585 STRIP=":" 6586 else 6587 case $cross_compiling:$ac_tool_warned in 6588yes:) 6589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6591ac_tool_warned=yes ;; 6592esac 6593 STRIP=$ac_ct_STRIP 6594 fi 6595else 6596 STRIP="$ac_cv_prog_STRIP" 6597fi 6598 6599test -z "$STRIP" && STRIP=: 6600 6601 6602 6603 6604 6605 6606if test -n "$ac_tool_prefix"; then 6607 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6608set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6610printf %s "checking for $ac_word... " >&6; } 6611if test ${ac_cv_prog_RANLIB+y} 6612then : 6613 printf %s "(cached) " >&6 6614else $as_nop 6615 if test -n "$RANLIB"; then 6616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6617else 6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6619for as_dir in $PATH 6620do 6621 IFS=$as_save_IFS 6622 case $as_dir in #((( 6623 '') as_dir=./ ;; 6624 */) ;; 6625 *) as_dir=$as_dir/ ;; 6626 esac 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633done 6634 done 6635IFS=$as_save_IFS 6636 6637fi 6638fi 6639RANLIB=$ac_cv_prog_RANLIB 6640if test -n "$RANLIB"; then 6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6642printf "%s\n" "$RANLIB" >&6; } 6643else 6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645printf "%s\n" "no" >&6; } 6646fi 6647 6648 6649fi 6650if test -z "$ac_cv_prog_RANLIB"; then 6651 ac_ct_RANLIB=$RANLIB 6652 # Extract the first word of "ranlib", so it can be a program name with args. 6653set dummy ranlib; ac_word=$2 6654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655printf %s "checking for $ac_word... " >&6; } 6656if test ${ac_cv_prog_ac_ct_RANLIB+y} 6657then : 6658 printf %s "(cached) " >&6 6659else $as_nop 6660 if test -n "$ac_ct_RANLIB"; then 6661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 case $as_dir in #((( 6668 '') as_dir=./ ;; 6669 */) ;; 6670 *) as_dir=$as_dir/ ;; 6671 esac 6672 for ac_exec_ext in '' $ac_executable_extensions; do 6673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6674 ac_cv_prog_ac_ct_RANLIB="ranlib" 6675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6676 break 2 6677 fi 6678done 6679 done 6680IFS=$as_save_IFS 6681 6682fi 6683fi 6684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6685if test -n "$ac_ct_RANLIB"; then 6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6687printf "%s\n" "$ac_ct_RANLIB" >&6; } 6688else 6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6690printf "%s\n" "no" >&6; } 6691fi 6692 6693 if test "x$ac_ct_RANLIB" = x; then 6694 RANLIB=":" 6695 else 6696 case $cross_compiling:$ac_tool_warned in 6697yes:) 6698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6700ac_tool_warned=yes ;; 6701esac 6702 RANLIB=$ac_ct_RANLIB 6703 fi 6704else 6705 RANLIB="$ac_cv_prog_RANLIB" 6706fi 6707 6708test -z "$RANLIB" && RANLIB=: 6709 6710 6711 6712 6713 6714 6715# Determine commands to create old-style static archives. 6716old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6717old_postinstall_cmds='chmod 644 $oldlib' 6718old_postuninstall_cmds= 6719 6720if test -n "$RANLIB"; then 6721 case $host_os in 6722 bitrig* | openbsd*) 6723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6724 ;; 6725 *) 6726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6727 ;; 6728 esac 6729 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6730fi 6731 6732case $host_os in 6733 darwin*) 6734 lock_old_archive_extraction=yes ;; 6735 *) 6736 lock_old_archive_extraction=no ;; 6737esac 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777# If no C compiler was specified, use CC. 6778LTCC=${LTCC-"$CC"} 6779 6780# If no C compiler flags were specified, use CFLAGS. 6781LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6782 6783# Allow CC to be a program name with arguments. 6784compiler=$CC 6785 6786 6787# Check for command to grab the raw symbol name followed by C symbol from nm. 6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6789printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6790if test ${lt_cv_sys_global_symbol_pipe+y} 6791then : 6792 printf %s "(cached) " >&6 6793else $as_nop 6794 6795# These are sane defaults that work on at least a few old systems. 6796# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6797 6798# Character class describing NM global symbol codes. 6799symcode='[BCDEGRST]' 6800 6801# Regexp to match symbols that can be accessed directly from C. 6802sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6803 6804# Define system-specific variables. 6805case $host_os in 6806aix*) 6807 symcode='[BCDT]' 6808 ;; 6809cygwin* | mingw* | pw32* | cegcc*) 6810 symcode='[ABCDGISTW]' 6811 ;; 6812hpux*) 6813 if test ia64 = "$host_cpu"; then 6814 symcode='[ABCDEGRST]' 6815 fi 6816 ;; 6817irix* | nonstopux*) 6818 symcode='[BCDEGRST]' 6819 ;; 6820osf*) 6821 symcode='[BCDEGQRST]' 6822 ;; 6823solaris*) 6824 symcode='[BDRT]' 6825 ;; 6826sco3.2v5*) 6827 symcode='[DT]' 6828 ;; 6829sysv4.2uw2*) 6830 symcode='[DT]' 6831 ;; 6832sysv5* | sco5v6* | unixware* | OpenUNIX*) 6833 symcode='[ABDT]' 6834 ;; 6835sysv4) 6836 symcode='[DFNSTU]' 6837 ;; 6838esac 6839 6840# If we're using GNU nm, then use its standard symbol codes. 6841case `$NM -V 2>&1` in 6842*GNU* | *'with BFD'*) 6843 symcode='[ABCDGIRSTW]' ;; 6844esac 6845 6846if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6847 # Gets list of data symbols to import. 6848 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6849 # Adjust the below global symbol transforms to fixup imported variables. 6850 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6851 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6852 lt_c_name_lib_hook="\ 6853 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6854 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6855else 6856 # Disable hooks by default. 6857 lt_cv_sys_global_symbol_to_import= 6858 lt_cdecl_hook= 6859 lt_c_name_hook= 6860 lt_c_name_lib_hook= 6861fi 6862 6863# Transform an extracted symbol line into a proper C declaration. 6864# Some systems (esp. on ia64) link data and code symbols differently, 6865# so use this general approach. 6866lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6867$lt_cdecl_hook\ 6868" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6869" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6870 6871# Transform an extracted symbol line into symbol name and symbol address 6872lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6873$lt_c_name_hook\ 6874" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6875" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6876 6877# Transform an extracted symbol line into symbol name with lib prefix and 6878# symbol address. 6879lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6880$lt_c_name_lib_hook\ 6881" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6882" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6883" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6884 6885# Handle CRLF in mingw tool chain 6886opt_cr= 6887case $build_os in 6888mingw*) 6889 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6890 ;; 6891esac 6892 6893# Try without a prefix underscore, then with it. 6894for ac_symprfx in "" "_"; do 6895 6896 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6897 symxfrm="\\1 $ac_symprfx\\2 \\2" 6898 6899 # Write the raw and C identifiers. 6900 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6901 # Fake it for dumpbin and say T for any non-static function, 6902 # D for any global variable and I for any imported variable. 6903 # Also find C++ and __fastcall symbols from MSVC++, 6904 # which start with @ or ?. 6905 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6906" {last_section=section; section=\$ 3};"\ 6907" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6908" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6909" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6910" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6911" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6912" \$ 0!~/External *\|/{next};"\ 6913" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6914" {if(hide[section]) next};"\ 6915" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6916" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6917" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6918" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6919" ' prfx=^$ac_symprfx" 6920 else 6921 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6922 fi 6923 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6924 6925 # Check to see that the pipe works correctly. 6926 pipe_works=no 6927 6928 rm -f conftest* 6929 cat > conftest.$ac_ext <<_LT_EOF 6930#ifdef __cplusplus 6931extern "C" { 6932#endif 6933char nm_test_var; 6934void nm_test_func(void); 6935void nm_test_func(void){} 6936#ifdef __cplusplus 6937} 6938#endif 6939int main(){nm_test_var='a';nm_test_func();return(0);} 6940_LT_EOF 6941 6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6943 (eval $ac_compile) 2>&5 6944 ac_status=$? 6945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6946 test $ac_status = 0; }; then 6947 # Now try to grab the symbols. 6948 nlist=conftest.nm 6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6950 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6951 ac_status=$? 6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6953 test $ac_status = 0; } && test -s "$nlist"; then 6954 # Try sorting and uniquifying the output. 6955 if sort "$nlist" | uniq > "$nlist"T; then 6956 mv -f "$nlist"T "$nlist" 6957 else 6958 rm -f "$nlist"T 6959 fi 6960 6961 # Make sure that we snagged all the symbols we need. 6962 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6963 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6964 cat <<_LT_EOF > conftest.$ac_ext 6965/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6966#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6967/* DATA imports from DLLs on WIN32 can't be const, because runtime 6968 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6969# define LT_DLSYM_CONST 6970#elif defined __osf__ 6971/* This system does not cope well with relocations in const data. */ 6972# define LT_DLSYM_CONST 6973#else 6974# define LT_DLSYM_CONST const 6975#endif 6976 6977#ifdef __cplusplus 6978extern "C" { 6979#endif 6980 6981_LT_EOF 6982 # Now generate the symbol file. 6983 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6984 6985 cat <<_LT_EOF >> conftest.$ac_ext 6986 6987/* The mapping between symbol names and symbols. */ 6988LT_DLSYM_CONST struct { 6989 const char *name; 6990 void *address; 6991} 6992lt__PROGRAM__LTX_preloaded_symbols[] = 6993{ 6994 { "@PROGRAM@", (void *) 0 }, 6995_LT_EOF 6996 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6997 cat <<\_LT_EOF >> conftest.$ac_ext 6998 {0, (void *) 0} 6999}; 7000 7001/* This works around a problem in FreeBSD linker */ 7002#ifdef FREEBSD_WORKAROUND 7003static const void *lt_preloaded_setup() { 7004 return lt__PROGRAM__LTX_preloaded_symbols; 7005} 7006#endif 7007 7008#ifdef __cplusplus 7009} 7010#endif 7011_LT_EOF 7012 # Now try linking the two files. 7013 mv conftest.$ac_objext conftstm.$ac_objext 7014 lt_globsym_save_LIBS=$LIBS 7015 lt_globsym_save_CFLAGS=$CFLAGS 7016 LIBS=conftstm.$ac_objext 7017 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7019 (eval $ac_link) 2>&5 7020 ac_status=$? 7021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7022 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7023 pipe_works=yes 7024 fi 7025 LIBS=$lt_globsym_save_LIBS 7026 CFLAGS=$lt_globsym_save_CFLAGS 7027 else 7028 echo "cannot find nm_test_func in $nlist" >&5 7029 fi 7030 else 7031 echo "cannot find nm_test_var in $nlist" >&5 7032 fi 7033 else 7034 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7035 fi 7036 else 7037 echo "$progname: failed program was:" >&5 7038 cat conftest.$ac_ext >&5 7039 fi 7040 rm -rf conftest* conftst* 7041 7042 # Do not use the global_symbol_pipe unless it works. 7043 if test yes = "$pipe_works"; then 7044 break 7045 else 7046 lt_cv_sys_global_symbol_pipe= 7047 fi 7048done 7049 7050fi 7051 7052if test -z "$lt_cv_sys_global_symbol_pipe"; then 7053 lt_cv_sys_global_symbol_to_cdecl= 7054fi 7055if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7057printf "%s\n" "failed" >&6; } 7058else 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7060printf "%s\n" "ok" >&6; } 7061fi 7062 7063# Response file support. 7064if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7065 nm_file_list_spec='@' 7066elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7067 nm_file_list_spec='@' 7068fi 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7107printf %s "checking for sysroot... " >&6; } 7108 7109# Check whether --with-sysroot was given. 7110if test ${with_sysroot+y} 7111then : 7112 withval=$with_sysroot; 7113else $as_nop 7114 with_sysroot=no 7115fi 7116 7117 7118lt_sysroot= 7119case $with_sysroot in #( 7120 yes) 7121 if test yes = "$GCC"; then 7122 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7123 fi 7124 ;; #( 7125 /*) 7126 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7127 ;; #( 7128 no|'') 7129 ;; #( 7130 *) 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7132printf "%s\n" "$with_sysroot" >&6; } 7133 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7134 ;; 7135esac 7136 7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7138printf "%s\n" "${lt_sysroot:-no}" >&6; } 7139 7140 7141 7142 7143 7144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7145printf %s "checking for a working dd... " >&6; } 7146if test ${ac_cv_path_lt_DD+y} 7147then : 7148 printf %s "(cached) " >&6 7149else $as_nop 7150 printf 0123456789abcdef0123456789abcdef >conftest.i 7151cat conftest.i conftest.i >conftest2.i 7152: ${lt_DD:=$DD} 7153if test -z "$lt_DD"; then 7154 ac_path_lt_DD_found=false 7155 # Loop through the user's path and test for each of PROGNAME-LIST 7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 case $as_dir in #((( 7161 '') as_dir=./ ;; 7162 */) ;; 7163 *) as_dir=$as_dir/ ;; 7164 esac 7165 for ac_prog in dd 7166 do 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7169 as_fn_executable_p "$ac_path_lt_DD" || continue 7170if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7171 cmp -s conftest.i conftest.out \ 7172 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7173fi 7174 $ac_path_lt_DD_found && break 3 7175 done 7176 done 7177 done 7178IFS=$as_save_IFS 7179 if test -z "$ac_cv_path_lt_DD"; then 7180 : 7181 fi 7182else 7183 ac_cv_path_lt_DD=$lt_DD 7184fi 7185 7186rm -f conftest.i conftest2.i conftest.out 7187fi 7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7189printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7190 7191 7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7193printf %s "checking how to truncate binary pipes... " >&6; } 7194if test ${lt_cv_truncate_bin+y} 7195then : 7196 printf %s "(cached) " >&6 7197else $as_nop 7198 printf 0123456789abcdef0123456789abcdef >conftest.i 7199cat conftest.i conftest.i >conftest2.i 7200lt_cv_truncate_bin= 7201if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7202 cmp -s conftest.i conftest.out \ 7203 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7204fi 7205rm -f conftest.i conftest2.i conftest.out 7206test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7207fi 7208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7209printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7210 7211 7212 7213 7214 7215 7216 7217# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7218func_cc_basename () 7219{ 7220 for cc_temp in $*""; do 7221 case $cc_temp in 7222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7224 \-*) ;; 7225 *) break;; 7226 esac 7227 done 7228 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7229} 7230 7231# Check whether --enable-libtool-lock was given. 7232if test ${enable_libtool_lock+y} 7233then : 7234 enableval=$enable_libtool_lock; 7235fi 7236 7237test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7238 7239# Some flags need to be propagated to the compiler or linker for good 7240# libtool support. 7241case $host in 7242ia64-*-hpux*) 7243 # Find out what ABI is being produced by ac_compile, and set mode 7244 # options accordingly. 7245 echo 'int i;' > conftest.$ac_ext 7246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7247 (eval $ac_compile) 2>&5 7248 ac_status=$? 7249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7250 test $ac_status = 0; }; then 7251 case `/usr/bin/file conftest.$ac_objext` in 7252 *ELF-32*) 7253 HPUX_IA64_MODE=32 7254 ;; 7255 *ELF-64*) 7256 HPUX_IA64_MODE=64 7257 ;; 7258 esac 7259 fi 7260 rm -rf conftest* 7261 ;; 7262*-*-irix6*) 7263 # Find out what ABI is being produced by ac_compile, and set linker 7264 # options accordingly. 7265 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7267 (eval $ac_compile) 2>&5 7268 ac_status=$? 7269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7270 test $ac_status = 0; }; then 7271 if test yes = "$lt_cv_prog_gnu_ld"; then 7272 case `/usr/bin/file conftest.$ac_objext` in 7273 *32-bit*) 7274 LD="${LD-ld} -melf32bsmip" 7275 ;; 7276 *N32*) 7277 LD="${LD-ld} -melf32bmipn32" 7278 ;; 7279 *64-bit*) 7280 LD="${LD-ld} -melf64bmip" 7281 ;; 7282 esac 7283 else 7284 case `/usr/bin/file conftest.$ac_objext` in 7285 *32-bit*) 7286 LD="${LD-ld} -32" 7287 ;; 7288 *N32*) 7289 LD="${LD-ld} -n32" 7290 ;; 7291 *64-bit*) 7292 LD="${LD-ld} -64" 7293 ;; 7294 esac 7295 fi 7296 fi 7297 rm -rf conftest* 7298 ;; 7299 7300mips64*-*linux*) 7301 # Find out what ABI is being produced by ac_compile, and set linker 7302 # options accordingly. 7303 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7305 (eval $ac_compile) 2>&5 7306 ac_status=$? 7307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7308 test $ac_status = 0; }; then 7309 emul=elf 7310 case `/usr/bin/file conftest.$ac_objext` in 7311 *32-bit*) 7312 emul="${emul}32" 7313 ;; 7314 *64-bit*) 7315 emul="${emul}64" 7316 ;; 7317 esac 7318 case `/usr/bin/file conftest.$ac_objext` in 7319 *MSB*) 7320 emul="${emul}btsmip" 7321 ;; 7322 *LSB*) 7323 emul="${emul}ltsmip" 7324 ;; 7325 esac 7326 case `/usr/bin/file conftest.$ac_objext` in 7327 *N32*) 7328 emul="${emul}n32" 7329 ;; 7330 esac 7331 LD="${LD-ld} -m $emul" 7332 fi 7333 rm -rf conftest* 7334 ;; 7335 7336x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7337s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7338 # Find out what ABI is being produced by ac_compile, and set linker 7339 # options accordingly. Note that the listed cases only cover the 7340 # situations where additional linker options are needed (such as when 7341 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7342 # vice versa); the common cases where no linker options are needed do 7343 # not appear in the list. 7344 echo 'int i;' > conftest.$ac_ext 7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7346 (eval $ac_compile) 2>&5 7347 ac_status=$? 7348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7349 test $ac_status = 0; }; then 7350 case `/usr/bin/file conftest.o` in 7351 *32-bit*) 7352 case $host in 7353 x86_64-*kfreebsd*-gnu) 7354 LD="${LD-ld} -m elf_i386_fbsd" 7355 ;; 7356 x86_64-*linux*) 7357 case `/usr/bin/file conftest.o` in 7358 *x86-64*) 7359 LD="${LD-ld} -m elf32_x86_64" 7360 ;; 7361 *) 7362 LD="${LD-ld} -m elf_i386" 7363 ;; 7364 esac 7365 ;; 7366 powerpc64le-*linux*) 7367 LD="${LD-ld} -m elf32lppclinux" 7368 ;; 7369 powerpc64-*linux*) 7370 LD="${LD-ld} -m elf32ppclinux" 7371 ;; 7372 s390x-*linux*) 7373 LD="${LD-ld} -m elf_s390" 7374 ;; 7375 sparc64-*linux*) 7376 LD="${LD-ld} -m elf32_sparc" 7377 ;; 7378 esac 7379 ;; 7380 *64-bit*) 7381 case $host in 7382 x86_64-*kfreebsd*-gnu) 7383 LD="${LD-ld} -m elf_x86_64_fbsd" 7384 ;; 7385 x86_64-*linux*) 7386 LD="${LD-ld} -m elf_x86_64" 7387 ;; 7388 powerpcle-*linux*) 7389 LD="${LD-ld} -m elf64lppc" 7390 ;; 7391 powerpc-*linux*) 7392 LD="${LD-ld} -m elf64ppc" 7393 ;; 7394 s390*-*linux*|s390*-*tpf*) 7395 LD="${LD-ld} -m elf64_s390" 7396 ;; 7397 sparc*-*linux*) 7398 LD="${LD-ld} -m elf64_sparc" 7399 ;; 7400 esac 7401 ;; 7402 esac 7403 fi 7404 rm -rf conftest* 7405 ;; 7406 7407*-*-sco3.2v5*) 7408 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7409 SAVE_CFLAGS=$CFLAGS 7410 CFLAGS="$CFLAGS -belf" 7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7412printf %s "checking whether the C compiler needs -belf... " >&6; } 7413if test ${lt_cv_cc_needs_belf+y} 7414then : 7415 printf %s "(cached) " >&6 7416else $as_nop 7417 ac_ext=c 7418ac_cpp='$CPP $CPPFLAGS' 7419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7421ac_compiler_gnu=$ac_cv_c_compiler_gnu 7422 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7424/* end confdefs.h. */ 7425 7426int 7427main (void) 7428{ 7429 7430 ; 7431 return 0; 7432} 7433_ACEOF 7434if ac_fn_c_try_link "$LINENO" 7435then : 7436 lt_cv_cc_needs_belf=yes 7437else $as_nop 7438 lt_cv_cc_needs_belf=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7441 conftest$ac_exeext conftest.$ac_ext 7442 ac_ext=c 7443ac_cpp='$CPP $CPPFLAGS' 7444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7446ac_compiler_gnu=$ac_cv_c_compiler_gnu 7447 7448fi 7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7450printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7451 if test yes != "$lt_cv_cc_needs_belf"; then 7452 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7453 CFLAGS=$SAVE_CFLAGS 7454 fi 7455 ;; 7456*-*solaris*) 7457 # Find out what ABI is being produced by ac_compile, and set linker 7458 # options accordingly. 7459 echo 'int i;' > conftest.$ac_ext 7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7461 (eval $ac_compile) 2>&5 7462 ac_status=$? 7463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7464 test $ac_status = 0; }; then 7465 case `/usr/bin/file conftest.o` in 7466 *64-bit*) 7467 case $lt_cv_prog_gnu_ld in 7468 yes*) 7469 case $host in 7470 i?86-*-solaris*|x86_64-*-solaris*) 7471 LD="${LD-ld} -m elf_x86_64" 7472 ;; 7473 sparc*-*-solaris*) 7474 LD="${LD-ld} -m elf64_sparc" 7475 ;; 7476 esac 7477 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7478 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7479 LD=${LD-ld}_sol2 7480 fi 7481 ;; 7482 *) 7483 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7484 LD="${LD-ld} -64" 7485 fi 7486 ;; 7487 esac 7488 ;; 7489 esac 7490 fi 7491 rm -rf conftest* 7492 ;; 7493esac 7494 7495need_locks=$enable_libtool_lock 7496 7497if test -n "$ac_tool_prefix"; then 7498 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7499set dummy ${ac_tool_prefix}mt; ac_word=$2 7500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7501printf %s "checking for $ac_word... " >&6; } 7502if test ${ac_cv_prog_MANIFEST_TOOL+y} 7503then : 7504 printf %s "(cached) " >&6 7505else $as_nop 7506 if test -n "$MANIFEST_TOOL"; then 7507 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7508else 7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7510for as_dir in $PATH 7511do 7512 IFS=$as_save_IFS 7513 case $as_dir in #((( 7514 '') as_dir=./ ;; 7515 */) ;; 7516 *) as_dir=$as_dir/ ;; 7517 esac 7518 for ac_exec_ext in '' $ac_executable_extensions; do 7519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7520 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7522 break 2 7523 fi 7524done 7525 done 7526IFS=$as_save_IFS 7527 7528fi 7529fi 7530MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7531if test -n "$MANIFEST_TOOL"; then 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7533printf "%s\n" "$MANIFEST_TOOL" >&6; } 7534else 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536printf "%s\n" "no" >&6; } 7537fi 7538 7539 7540fi 7541if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7542 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7543 # Extract the first word of "mt", so it can be a program name with args. 7544set dummy mt; ac_word=$2 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7546printf %s "checking for $ac_word... " >&6; } 7547if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7548then : 7549 printf %s "(cached) " >&6 7550else $as_nop 7551 if test -n "$ac_ct_MANIFEST_TOOL"; then 7552 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7553else 7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555for as_dir in $PATH 7556do 7557 IFS=$as_save_IFS 7558 case $as_dir in #((( 7559 '') as_dir=./ ;; 7560 */) ;; 7561 *) as_dir=$as_dir/ ;; 7562 esac 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_ac_ct_MANIFEST_TOOL="mt" 7566 printf "%s\n" "$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 7575ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7576if test -n "$ac_ct_MANIFEST_TOOL"; then 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7578printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7579else 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581printf "%s\n" "no" >&6; } 7582fi 7583 7584 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7585 MANIFEST_TOOL=":" 7586 else 7587 case $cross_compiling:$ac_tool_warned in 7588yes:) 7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7591ac_tool_warned=yes ;; 7592esac 7593 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7594 fi 7595else 7596 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7597fi 7598 7599test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7601printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7602if test ${lt_cv_path_mainfest_tool+y} 7603then : 7604 printf %s "(cached) " >&6 7605else $as_nop 7606 lt_cv_path_mainfest_tool=no 7607 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7608 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7609 cat conftest.err >&5 7610 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7611 lt_cv_path_mainfest_tool=yes 7612 fi 7613 rm -f conftest* 7614fi 7615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7616printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7617if test yes != "$lt_cv_path_mainfest_tool"; then 7618 MANIFEST_TOOL=: 7619fi 7620 7621 7622 7623 7624 7625 7626 case $host_os in 7627 rhapsody* | darwin*) 7628 if test -n "$ac_tool_prefix"; then 7629 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7630set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7632printf %s "checking for $ac_word... " >&6; } 7633if test ${ac_cv_prog_DSYMUTIL+y} 7634then : 7635 printf %s "(cached) " >&6 7636else $as_nop 7637 if test -n "$DSYMUTIL"; then 7638 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7639else 7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7641for as_dir in $PATH 7642do 7643 IFS=$as_save_IFS 7644 case $as_dir in #((( 7645 '') as_dir=./ ;; 7646 */) ;; 7647 *) as_dir=$as_dir/ ;; 7648 esac 7649 for ac_exec_ext in '' $ac_executable_extensions; do 7650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7651 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7653 break 2 7654 fi 7655done 7656 done 7657IFS=$as_save_IFS 7658 7659fi 7660fi 7661DSYMUTIL=$ac_cv_prog_DSYMUTIL 7662if test -n "$DSYMUTIL"; then 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7664printf "%s\n" "$DSYMUTIL" >&6; } 7665else 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7667printf "%s\n" "no" >&6; } 7668fi 7669 7670 7671fi 7672if test -z "$ac_cv_prog_DSYMUTIL"; then 7673 ac_ct_DSYMUTIL=$DSYMUTIL 7674 # Extract the first word of "dsymutil", so it can be a program name with args. 7675set dummy dsymutil; ac_word=$2 7676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7677printf %s "checking for $ac_word... " >&6; } 7678if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7679then : 7680 printf %s "(cached) " >&6 7681else $as_nop 7682 if test -n "$ac_ct_DSYMUTIL"; then 7683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7684else 7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7686for as_dir in $PATH 7687do 7688 IFS=$as_save_IFS 7689 case $as_dir in #((( 7690 '') as_dir=./ ;; 7691 */) ;; 7692 *) as_dir=$as_dir/ ;; 7693 esac 7694 for ac_exec_ext in '' $ac_executable_extensions; do 7695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7698 break 2 7699 fi 7700done 7701 done 7702IFS=$as_save_IFS 7703 7704fi 7705fi 7706ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7707if test -n "$ac_ct_DSYMUTIL"; then 7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7709printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7710else 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7712printf "%s\n" "no" >&6; } 7713fi 7714 7715 if test "x$ac_ct_DSYMUTIL" = x; then 7716 DSYMUTIL=":" 7717 else 7718 case $cross_compiling:$ac_tool_warned in 7719yes:) 7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7721printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7722ac_tool_warned=yes ;; 7723esac 7724 DSYMUTIL=$ac_ct_DSYMUTIL 7725 fi 7726else 7727 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7728fi 7729 7730 if test -n "$ac_tool_prefix"; then 7731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7732set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7734printf %s "checking for $ac_word... " >&6; } 7735if test ${ac_cv_prog_NMEDIT+y} 7736then : 7737 printf %s "(cached) " >&6 7738else $as_nop 7739 if test -n "$NMEDIT"; then 7740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7741else 7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7743for as_dir in $PATH 7744do 7745 IFS=$as_save_IFS 7746 case $as_dir in #((( 7747 '') as_dir=./ ;; 7748 */) ;; 7749 *) as_dir=$as_dir/ ;; 7750 esac 7751 for ac_exec_ext in '' $ac_executable_extensions; do 7752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7753 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7755 break 2 7756 fi 7757done 7758 done 7759IFS=$as_save_IFS 7760 7761fi 7762fi 7763NMEDIT=$ac_cv_prog_NMEDIT 7764if test -n "$NMEDIT"; then 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7766printf "%s\n" "$NMEDIT" >&6; } 7767else 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769printf "%s\n" "no" >&6; } 7770fi 7771 7772 7773fi 7774if test -z "$ac_cv_prog_NMEDIT"; then 7775 ac_ct_NMEDIT=$NMEDIT 7776 # Extract the first word of "nmedit", so it can be a program name with args. 7777set dummy nmedit; ac_word=$2 7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7779printf %s "checking for $ac_word... " >&6; } 7780if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7781then : 7782 printf %s "(cached) " >&6 7783else $as_nop 7784 if test -n "$ac_ct_NMEDIT"; then 7785 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 case $as_dir in #((( 7792 '') as_dir=./ ;; 7793 */) ;; 7794 *) as_dir=$as_dir/ ;; 7795 esac 7796 for ac_exec_ext in '' $ac_executable_extensions; do 7797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7798 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7800 break 2 7801 fi 7802done 7803 done 7804IFS=$as_save_IFS 7805 7806fi 7807fi 7808ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7809if test -n "$ac_ct_NMEDIT"; then 7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7811printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7812else 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7814printf "%s\n" "no" >&6; } 7815fi 7816 7817 if test "x$ac_ct_NMEDIT" = x; then 7818 NMEDIT=":" 7819 else 7820 case $cross_compiling:$ac_tool_warned in 7821yes:) 7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7823printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7824ac_tool_warned=yes ;; 7825esac 7826 NMEDIT=$ac_ct_NMEDIT 7827 fi 7828else 7829 NMEDIT="$ac_cv_prog_NMEDIT" 7830fi 7831 7832 if test -n "$ac_tool_prefix"; then 7833 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7834set dummy ${ac_tool_prefix}lipo; ac_word=$2 7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7836printf %s "checking for $ac_word... " >&6; } 7837if test ${ac_cv_prog_LIPO+y} 7838then : 7839 printf %s "(cached) " >&6 7840else $as_nop 7841 if test -n "$LIPO"; then 7842 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7843else 7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845for as_dir in $PATH 7846do 7847 IFS=$as_save_IFS 7848 case $as_dir in #((( 7849 '') as_dir=./ ;; 7850 */) ;; 7851 *) as_dir=$as_dir/ ;; 7852 esac 7853 for ac_exec_ext in '' $ac_executable_extensions; do 7854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7855 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7857 break 2 7858 fi 7859done 7860 done 7861IFS=$as_save_IFS 7862 7863fi 7864fi 7865LIPO=$ac_cv_prog_LIPO 7866if test -n "$LIPO"; then 7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7868printf "%s\n" "$LIPO" >&6; } 7869else 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871printf "%s\n" "no" >&6; } 7872fi 7873 7874 7875fi 7876if test -z "$ac_cv_prog_LIPO"; then 7877 ac_ct_LIPO=$LIPO 7878 # Extract the first word of "lipo", so it can be a program name with args. 7879set dummy lipo; ac_word=$2 7880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7881printf %s "checking for $ac_word... " >&6; } 7882if test ${ac_cv_prog_ac_ct_LIPO+y} 7883then : 7884 printf %s "(cached) " >&6 7885else $as_nop 7886 if test -n "$ac_ct_LIPO"; then 7887 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7888else 7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7890for as_dir in $PATH 7891do 7892 IFS=$as_save_IFS 7893 case $as_dir in #((( 7894 '') as_dir=./ ;; 7895 */) ;; 7896 *) as_dir=$as_dir/ ;; 7897 esac 7898 for ac_exec_ext in '' $ac_executable_extensions; do 7899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7900 ac_cv_prog_ac_ct_LIPO="lipo" 7901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7902 break 2 7903 fi 7904done 7905 done 7906IFS=$as_save_IFS 7907 7908fi 7909fi 7910ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7911if test -n "$ac_ct_LIPO"; then 7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7913printf "%s\n" "$ac_ct_LIPO" >&6; } 7914else 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7916printf "%s\n" "no" >&6; } 7917fi 7918 7919 if test "x$ac_ct_LIPO" = x; then 7920 LIPO=":" 7921 else 7922 case $cross_compiling:$ac_tool_warned in 7923yes:) 7924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7925printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7926ac_tool_warned=yes ;; 7927esac 7928 LIPO=$ac_ct_LIPO 7929 fi 7930else 7931 LIPO="$ac_cv_prog_LIPO" 7932fi 7933 7934 if test -n "$ac_tool_prefix"; then 7935 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7936set dummy ${ac_tool_prefix}otool; ac_word=$2 7937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7938printf %s "checking for $ac_word... " >&6; } 7939if test ${ac_cv_prog_OTOOL+y} 7940then : 7941 printf %s "(cached) " >&6 7942else $as_nop 7943 if test -n "$OTOOL"; then 7944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7945else 7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947for as_dir in $PATH 7948do 7949 IFS=$as_save_IFS 7950 case $as_dir in #((( 7951 '') as_dir=./ ;; 7952 */) ;; 7953 *) as_dir=$as_dir/ ;; 7954 esac 7955 for ac_exec_ext in '' $ac_executable_extensions; do 7956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7957 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7959 break 2 7960 fi 7961done 7962 done 7963IFS=$as_save_IFS 7964 7965fi 7966fi 7967OTOOL=$ac_cv_prog_OTOOL 7968if test -n "$OTOOL"; then 7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7970printf "%s\n" "$OTOOL" >&6; } 7971else 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7973printf "%s\n" "no" >&6; } 7974fi 7975 7976 7977fi 7978if test -z "$ac_cv_prog_OTOOL"; then 7979 ac_ct_OTOOL=$OTOOL 7980 # Extract the first word of "otool", so it can be a program name with args. 7981set dummy otool; ac_word=$2 7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7983printf %s "checking for $ac_word... " >&6; } 7984if test ${ac_cv_prog_ac_ct_OTOOL+y} 7985then : 7986 printf %s "(cached) " >&6 7987else $as_nop 7988 if test -n "$ac_ct_OTOOL"; then 7989 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7990else 7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7992for as_dir in $PATH 7993do 7994 IFS=$as_save_IFS 7995 case $as_dir in #((( 7996 '') as_dir=./ ;; 7997 */) ;; 7998 *) as_dir=$as_dir/ ;; 7999 esac 8000 for ac_exec_ext in '' $ac_executable_extensions; do 8001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8002 ac_cv_prog_ac_ct_OTOOL="otool" 8003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8004 break 2 8005 fi 8006done 8007 done 8008IFS=$as_save_IFS 8009 8010fi 8011fi 8012ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8013if test -n "$ac_ct_OTOOL"; then 8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8015printf "%s\n" "$ac_ct_OTOOL" >&6; } 8016else 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018printf "%s\n" "no" >&6; } 8019fi 8020 8021 if test "x$ac_ct_OTOOL" = x; then 8022 OTOOL=":" 8023 else 8024 case $cross_compiling:$ac_tool_warned in 8025yes:) 8026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8027printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8028ac_tool_warned=yes ;; 8029esac 8030 OTOOL=$ac_ct_OTOOL 8031 fi 8032else 8033 OTOOL="$ac_cv_prog_OTOOL" 8034fi 8035 8036 if test -n "$ac_tool_prefix"; then 8037 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8038set dummy ${ac_tool_prefix}otool64; ac_word=$2 8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040printf %s "checking for $ac_word... " >&6; } 8041if test ${ac_cv_prog_OTOOL64+y} 8042then : 8043 printf %s "(cached) " >&6 8044else $as_nop 8045 if test -n "$OTOOL64"; then 8046 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8047else 8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049for as_dir in $PATH 8050do 8051 IFS=$as_save_IFS 8052 case $as_dir in #((( 8053 '') as_dir=./ ;; 8054 */) ;; 8055 *) as_dir=$as_dir/ ;; 8056 esac 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi 8068fi 8069OTOOL64=$ac_cv_prog_OTOOL64 8070if test -n "$OTOOL64"; then 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8072printf "%s\n" "$OTOOL64" >&6; } 8073else 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075printf "%s\n" "no" >&6; } 8076fi 8077 8078 8079fi 8080if test -z "$ac_cv_prog_OTOOL64"; then 8081 ac_ct_OTOOL64=$OTOOL64 8082 # Extract the first word of "otool64", so it can be a program name with args. 8083set dummy otool64; ac_word=$2 8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8085printf %s "checking for $ac_word... " >&6; } 8086if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8087then : 8088 printf %s "(cached) " >&6 8089else $as_nop 8090 if test -n "$ac_ct_OTOOL64"; then 8091 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8092else 8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8094for as_dir in $PATH 8095do 8096 IFS=$as_save_IFS 8097 case $as_dir in #((( 8098 '') as_dir=./ ;; 8099 */) ;; 8100 *) as_dir=$as_dir/ ;; 8101 esac 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8104 ac_cv_prog_ac_ct_OTOOL64="otool64" 8105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8106 break 2 8107 fi 8108done 8109 done 8110IFS=$as_save_IFS 8111 8112fi 8113fi 8114ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8115if test -n "$ac_ct_OTOOL64"; then 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8117printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8118else 8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8120printf "%s\n" "no" >&6; } 8121fi 8122 8123 if test "x$ac_ct_OTOOL64" = x; then 8124 OTOOL64=":" 8125 else 8126 case $cross_compiling:$ac_tool_warned in 8127yes:) 8128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8129printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8130ac_tool_warned=yes ;; 8131esac 8132 OTOOL64=$ac_ct_OTOOL64 8133 fi 8134else 8135 OTOOL64="$ac_cv_prog_OTOOL64" 8136fi 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8165printf %s "checking for -single_module linker flag... " >&6; } 8166if test ${lt_cv_apple_cc_single_mod+y} 8167then : 8168 printf %s "(cached) " >&6 8169else $as_nop 8170 lt_cv_apple_cc_single_mod=no 8171 if test -z "$LT_MULTI_MODULE"; then 8172 # By default we will add the -single_module flag. You can override 8173 # by either setting the environment variable LT_MULTI_MODULE 8174 # non-empty at configure time, or by adding -multi_module to the 8175 # link flags. 8176 rm -rf libconftest.dylib* 8177 echo "int foo(void){return 1;}" > conftest.c 8178 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8179-dynamiclib -Wl,-single_module conftest.c" >&5 8180 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8181 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8182 _lt_result=$? 8183 # If there is a non-empty error log, and "single_module" 8184 # appears in it, assume the flag caused a linker warning 8185 if test -s conftest.err && $GREP single_module conftest.err; then 8186 cat conftest.err >&5 8187 # Otherwise, if the output was created with a 0 exit code from 8188 # the compiler, it worked. 8189 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8190 lt_cv_apple_cc_single_mod=yes 8191 else 8192 cat conftest.err >&5 8193 fi 8194 rm -rf libconftest.dylib* 8195 rm -f conftest.* 8196 fi 8197fi 8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8199printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8200 8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8202printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8203if test ${lt_cv_ld_exported_symbols_list+y} 8204then : 8205 printf %s "(cached) " >&6 8206else $as_nop 8207 lt_cv_ld_exported_symbols_list=no 8208 save_LDFLAGS=$LDFLAGS 8209 echo "_main" > conftest.sym 8210 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8212/* end confdefs.h. */ 8213 8214int 8215main (void) 8216{ 8217 8218 ; 8219 return 0; 8220} 8221_ACEOF 8222if ac_fn_c_try_link "$LINENO" 8223then : 8224 lt_cv_ld_exported_symbols_list=yes 8225else $as_nop 8226 lt_cv_ld_exported_symbols_list=no 8227fi 8228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8229 conftest$ac_exeext conftest.$ac_ext 8230 LDFLAGS=$save_LDFLAGS 8231 8232fi 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8234printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8235 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8237printf %s "checking for -force_load linker flag... " >&6; } 8238if test ${lt_cv_ld_force_load+y} 8239then : 8240 printf %s "(cached) " >&6 8241else $as_nop 8242 lt_cv_ld_force_load=no 8243 cat > conftest.c << _LT_EOF 8244int forced_loaded() { return 2;} 8245_LT_EOF 8246 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8247 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8248 echo "$AR cru libconftest.a conftest.o" >&5 8249 $AR cru libconftest.a conftest.o 2>&5 8250 echo "$RANLIB libconftest.a" >&5 8251 $RANLIB libconftest.a 2>&5 8252 cat > conftest.c << _LT_EOF 8253int main() { return 0;} 8254_LT_EOF 8255 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8256 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8257 _lt_result=$? 8258 if test -s conftest.err && $GREP force_load conftest.err; then 8259 cat conftest.err >&5 8260 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8261 lt_cv_ld_force_load=yes 8262 else 8263 cat conftest.err >&5 8264 fi 8265 rm -f conftest.err libconftest.a conftest conftest.c 8266 rm -rf conftest.dSYM 8267 8268fi 8269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8270printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8271 case $host_os in 8272 rhapsody* | darwin1.[012]) 8273 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8274 darwin1.*) 8275 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8276 darwin*) # darwin 5.x on 8277 # if running on 10.5 or later, the deployment target defaults 8278 # to the OS version, if on x86, and 10.4, the deployment 8279 # target defaults to 10.4. Don't you love it? 8280 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8281 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8282 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8283 10.[012][,.]*) 8284 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8285 10.*) 8286 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8287 esac 8288 ;; 8289 esac 8290 if test yes = "$lt_cv_apple_cc_single_mod"; then 8291 _lt_dar_single_mod='$single_module' 8292 fi 8293 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8294 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8295 else 8296 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8297 fi 8298 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8299 _lt_dsymutil='~$DSYMUTIL $lib || :' 8300 else 8301 _lt_dsymutil= 8302 fi 8303 ;; 8304 esac 8305 8306# func_munge_path_list VARIABLE PATH 8307# ----------------------------------- 8308# VARIABLE is name of variable containing _space_ separated list of 8309# directories to be munged by the contents of PATH, which is string 8310# having a format: 8311# "DIR[:DIR]:" 8312# string "DIR[ DIR]" will be prepended to VARIABLE 8313# ":DIR[:DIR]" 8314# string "DIR[ DIR]" will be appended to VARIABLE 8315# "DIRP[:DIRP]::[DIRA:]DIRA" 8316# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8317# "DIRA[ DIRA]" will be appended to VARIABLE 8318# "DIR[:DIR]" 8319# VARIABLE will be replaced by "DIR[ DIR]" 8320func_munge_path_list () 8321{ 8322 case x$2 in 8323 x) 8324 ;; 8325 *:) 8326 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8327 ;; 8328 x:*) 8329 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8330 ;; 8331 *::*) 8332 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8333 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8334 ;; 8335 *) 8336 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8337 ;; 8338 esac 8339} 8340 8341ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8342" 8343if test "x$ac_cv_header_dlfcn_h" = xyes 8344then : 8345 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8346 8347fi 8348 8349 8350 8351 8352 8353# Set options 8354 8355 8356 8357 enable_dlopen=no 8358 8359 8360 enable_win32_dll=no 8361 8362 8363 # Check whether --enable-shared was given. 8364if test ${enable_shared+y} 8365then : 8366 enableval=$enable_shared; p=${PACKAGE-default} 8367 case $enableval in 8368 yes) enable_shared=yes ;; 8369 no) enable_shared=no ;; 8370 *) 8371 enable_shared=no 8372 # Look at the argument we got. We use all the common list separators. 8373 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8374 for pkg in $enableval; do 8375 IFS=$lt_save_ifs 8376 if test "X$pkg" = "X$p"; then 8377 enable_shared=yes 8378 fi 8379 done 8380 IFS=$lt_save_ifs 8381 ;; 8382 esac 8383else $as_nop 8384 enable_shared=yes 8385fi 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 # Check whether --enable-static was given. 8396if test ${enable_static+y} 8397then : 8398 enableval=$enable_static; p=${PACKAGE-default} 8399 case $enableval in 8400 yes) enable_static=yes ;; 8401 no) enable_static=no ;; 8402 *) 8403 enable_static=no 8404 # Look at the argument we got. We use all the common list separators. 8405 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8406 for pkg in $enableval; do 8407 IFS=$lt_save_ifs 8408 if test "X$pkg" = "X$p"; then 8409 enable_static=yes 8410 fi 8411 done 8412 IFS=$lt_save_ifs 8413 ;; 8414 esac 8415else $as_nop 8416 enable_static=yes 8417fi 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428# Check whether --with-pic was given. 8429if test ${with_pic+y} 8430then : 8431 withval=$with_pic; lt_p=${PACKAGE-default} 8432 case $withval in 8433 yes|no) pic_mode=$withval ;; 8434 *) 8435 pic_mode=default 8436 # Look at the argument we got. We use all the common list separators. 8437 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8438 for lt_pkg in $withval; do 8439 IFS=$lt_save_ifs 8440 if test "X$lt_pkg" = "X$lt_p"; then 8441 pic_mode=yes 8442 fi 8443 done 8444 IFS=$lt_save_ifs 8445 ;; 8446 esac 8447else $as_nop 8448 pic_mode=default 8449fi 8450 8451 8452 8453 8454 8455 8456 8457 8458 # Check whether --enable-fast-install was given. 8459if test ${enable_fast_install+y} 8460then : 8461 enableval=$enable_fast_install; p=${PACKAGE-default} 8462 case $enableval in 8463 yes) enable_fast_install=yes ;; 8464 no) enable_fast_install=no ;; 8465 *) 8466 enable_fast_install=no 8467 # Look at the argument we got. We use all the common list separators. 8468 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8469 for pkg in $enableval; do 8470 IFS=$lt_save_ifs 8471 if test "X$pkg" = "X$p"; then 8472 enable_fast_install=yes 8473 fi 8474 done 8475 IFS=$lt_save_ifs 8476 ;; 8477 esac 8478else $as_nop 8479 enable_fast_install=yes 8480fi 8481 8482 8483 8484 8485 8486 8487 8488 8489 shared_archive_member_spec= 8490case $host,$enable_shared in 8491power*-*-aix[5-9]*,yes) 8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8493printf %s "checking which variant of shared library versioning to provide... " >&6; } 8494 8495# Check whether --with-aix-soname was given. 8496if test ${with_aix_soname+y} 8497then : 8498 withval=$with_aix_soname; case $withval in 8499 aix|svr4|both) 8500 ;; 8501 *) 8502 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8503 ;; 8504 esac 8505 lt_cv_with_aix_soname=$with_aix_soname 8506else $as_nop 8507 if test ${lt_cv_with_aix_soname+y} 8508then : 8509 printf %s "(cached) " >&6 8510else $as_nop 8511 lt_cv_with_aix_soname=aix 8512fi 8513 8514 with_aix_soname=$lt_cv_with_aix_soname 8515fi 8516 8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8518printf "%s\n" "$with_aix_soname" >&6; } 8519 if test aix != "$with_aix_soname"; then 8520 # For the AIX way of multilib, we name the shared archive member 8521 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8522 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8523 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8524 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8525 if test 64 = "${OBJECT_MODE-32}"; then 8526 shared_archive_member_spec=shr_64 8527 else 8528 shared_archive_member_spec=shr 8529 fi 8530 fi 8531 ;; 8532*) 8533 with_aix_soname=aix 8534 ;; 8535esac 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546# This can be used to rebuild libtool when needed 8547LIBTOOL_DEPS=$ltmain 8548 8549# Always use our own libtool. 8550LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581test -z "$LN_S" && LN_S="ln -s" 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596if test -n "${ZSH_VERSION+set}"; then 8597 setopt NO_GLOB_SUBST 8598fi 8599 8600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8601printf %s "checking for objdir... " >&6; } 8602if test ${lt_cv_objdir+y} 8603then : 8604 printf %s "(cached) " >&6 8605else $as_nop 8606 rm -f .libs 2>/dev/null 8607mkdir .libs 2>/dev/null 8608if test -d .libs; then 8609 lt_cv_objdir=.libs 8610else 8611 # MS-DOS does not allow filenames that begin with a dot. 8612 lt_cv_objdir=_libs 8613fi 8614rmdir .libs 2>/dev/null 8615fi 8616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8617printf "%s\n" "$lt_cv_objdir" >&6; } 8618objdir=$lt_cv_objdir 8619 8620 8621 8622 8623 8624printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8625 8626 8627 8628 8629case $host_os in 8630aix3*) 8631 # AIX sometimes has problems with the GCC collect2 program. For some 8632 # reason, if we set the COLLECT_NAMES environment variable, the problems 8633 # vanish in a puff of smoke. 8634 if test set != "${COLLECT_NAMES+set}"; then 8635 COLLECT_NAMES= 8636 export COLLECT_NAMES 8637 fi 8638 ;; 8639esac 8640 8641# Global variables: 8642ofile=libtool 8643can_build_shared=yes 8644 8645# All known linkers require a '.a' archive for static linking (except MSVC, 8646# which needs '.lib'). 8647libext=a 8648 8649with_gnu_ld=$lt_cv_prog_gnu_ld 8650 8651old_CC=$CC 8652old_CFLAGS=$CFLAGS 8653 8654# Set sane defaults for various variables 8655test -z "$CC" && CC=cc 8656test -z "$LTCC" && LTCC=$CC 8657test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8658test -z "$LD" && LD=ld 8659test -z "$ac_objext" && ac_objext=o 8660 8661func_cc_basename $compiler 8662cc_basename=$func_cc_basename_result 8663 8664 8665# Only perform the check for file, if the check method requires it 8666test -z "$MAGIC_CMD" && MAGIC_CMD=file 8667case $deplibs_check_method in 8668file_magic*) 8669 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8671printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8672if test ${lt_cv_path_MAGIC_CMD+y} 8673then : 8674 printf %s "(cached) " >&6 8675else $as_nop 8676 case $MAGIC_CMD in 8677[\\/*] | ?:[\\/]*) 8678 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8679 ;; 8680*) 8681 lt_save_MAGIC_CMD=$MAGIC_CMD 8682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8684 for ac_dir in $ac_dummy; do 8685 IFS=$lt_save_ifs 8686 test -z "$ac_dir" && ac_dir=. 8687 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8688 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8689 if test -n "$file_magic_test_file"; then 8690 case $deplibs_check_method in 8691 "file_magic "*) 8692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8693 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8695 $EGREP "$file_magic_regex" > /dev/null; then 8696 : 8697 else 8698 cat <<_LT_EOF 1>&2 8699 8700*** Warning: the command libtool uses to detect shared libraries, 8701*** $file_magic_cmd, produces output that libtool cannot recognize. 8702*** The result is that libtool may fail to recognize shared libraries 8703*** as such. This will affect the creation of libtool libraries that 8704*** depend on shared libraries, but programs linked with such libtool 8705*** libraries will work regardless of this problem. Nevertheless, you 8706*** may want to report the problem to your system manager and/or to 8707*** bug-libtool@gnu.org 8708 8709_LT_EOF 8710 fi ;; 8711 esac 8712 fi 8713 break 8714 fi 8715 done 8716 IFS=$lt_save_ifs 8717 MAGIC_CMD=$lt_save_MAGIC_CMD 8718 ;; 8719esac 8720fi 8721 8722MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8723if test -n "$MAGIC_CMD"; then 8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8725printf "%s\n" "$MAGIC_CMD" >&6; } 8726else 8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8728printf "%s\n" "no" >&6; } 8729fi 8730 8731 8732 8733 8734 8735if test -z "$lt_cv_path_MAGIC_CMD"; then 8736 if test -n "$ac_tool_prefix"; then 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8738printf %s "checking for file... " >&6; } 8739if test ${lt_cv_path_MAGIC_CMD+y} 8740then : 8741 printf %s "(cached) " >&6 8742else $as_nop 8743 case $MAGIC_CMD in 8744[\\/*] | ?:[\\/]*) 8745 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8746 ;; 8747*) 8748 lt_save_MAGIC_CMD=$MAGIC_CMD 8749 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8751 for ac_dir in $ac_dummy; do 8752 IFS=$lt_save_ifs 8753 test -z "$ac_dir" && ac_dir=. 8754 if test -f "$ac_dir/file"; then 8755 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8756 if test -n "$file_magic_test_file"; then 8757 case $deplibs_check_method in 8758 "file_magic "*) 8759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8760 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8762 $EGREP "$file_magic_regex" > /dev/null; then 8763 : 8764 else 8765 cat <<_LT_EOF 1>&2 8766 8767*** Warning: the command libtool uses to detect shared libraries, 8768*** $file_magic_cmd, produces output that libtool cannot recognize. 8769*** The result is that libtool may fail to recognize shared libraries 8770*** as such. This will affect the creation of libtool libraries that 8771*** depend on shared libraries, but programs linked with such libtool 8772*** libraries will work regardless of this problem. Nevertheless, you 8773*** may want to report the problem to your system manager and/or to 8774*** bug-libtool@gnu.org 8775 8776_LT_EOF 8777 fi ;; 8778 esac 8779 fi 8780 break 8781 fi 8782 done 8783 IFS=$lt_save_ifs 8784 MAGIC_CMD=$lt_save_MAGIC_CMD 8785 ;; 8786esac 8787fi 8788 8789MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8790if test -n "$MAGIC_CMD"; then 8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8792printf "%s\n" "$MAGIC_CMD" >&6; } 8793else 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8795printf "%s\n" "no" >&6; } 8796fi 8797 8798 8799 else 8800 MAGIC_CMD=: 8801 fi 8802fi 8803 8804 fi 8805 ;; 8806esac 8807 8808# Use C for the default configuration in the libtool script 8809 8810lt_save_CC=$CC 8811ac_ext=c 8812ac_cpp='$CPP $CPPFLAGS' 8813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8815ac_compiler_gnu=$ac_cv_c_compiler_gnu 8816 8817 8818# Source file extension for C test sources. 8819ac_ext=c 8820 8821# Object file extension for compiled C test sources. 8822objext=o 8823objext=$objext 8824 8825# Code to be used in simple compile tests 8826lt_simple_compile_test_code="int some_variable = 0;" 8827 8828# Code to be used in simple link tests 8829lt_simple_link_test_code='int main(){return(0);}' 8830 8831 8832 8833 8834 8835 8836 8837# If no C compiler was specified, use CC. 8838LTCC=${LTCC-"$CC"} 8839 8840# If no C compiler flags were specified, use CFLAGS. 8841LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8842 8843# Allow CC to be a program name with arguments. 8844compiler=$CC 8845 8846# Save the default compiler, since it gets overwritten when the other 8847# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8848compiler_DEFAULT=$CC 8849 8850# save warnings/boilerplate of simple test code 8851ac_outfile=conftest.$ac_objext 8852echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8854_lt_compiler_boilerplate=`cat conftest.err` 8855$RM conftest* 8856 8857ac_outfile=conftest.$ac_objext 8858echo "$lt_simple_link_test_code" >conftest.$ac_ext 8859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8860_lt_linker_boilerplate=`cat conftest.err` 8861$RM -r conftest* 8862 8863 8864## CAVEAT EMPTOR: 8865## There is no encapsulation within the following macros, do not change 8866## the running order or otherwise move them around unless you know exactly 8867## what you are doing... 8868if test -n "$compiler"; then 8869 8870lt_prog_compiler_no_builtin_flag= 8871 8872if test yes = "$GCC"; then 8873 case $cc_basename in 8874 nvcc*) 8875 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8876 *) 8877 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8878 esac 8879 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8881printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8882if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8883then : 8884 printf %s "(cached) " >&6 8885else $as_nop 8886 lt_cv_prog_compiler_rtti_exceptions=no 8887 ac_outfile=conftest.$ac_objext 8888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8889 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8890 # Insert the option either (1) after the last *FLAGS variable, or 8891 # (2) before a word containing "conftest.", or (3) at the end. 8892 # Note that $ac_compile itself does not contain backslashes and begins 8893 # with a dollar sign (not a hyphen), so the echo should work correctly. 8894 # The option is referenced via a variable to avoid confusing sed. 8895 lt_compile=`echo "$ac_compile" | $SED \ 8896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8898 -e 's:$: $lt_compiler_flag:'` 8899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8900 (eval "$lt_compile" 2>conftest.err) 8901 ac_status=$? 8902 cat conftest.err >&5 8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8904 if (exit $ac_status) && test -s "$ac_outfile"; then 8905 # The compiler can only warn and ignore the option if not recognized 8906 # So say no if there are warnings other than the usual output. 8907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8910 lt_cv_prog_compiler_rtti_exceptions=yes 8911 fi 8912 fi 8913 $RM conftest* 8914 8915fi 8916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8917printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8918 8919if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8921else 8922 : 8923fi 8924 8925fi 8926 8927 8928 8929 8930 8931 8932 lt_prog_compiler_wl= 8933lt_prog_compiler_pic= 8934lt_prog_compiler_static= 8935 8936 8937 if test yes = "$GCC"; then 8938 lt_prog_compiler_wl='-Wl,' 8939 lt_prog_compiler_static='-static' 8940 8941 case $host_os in 8942 aix*) 8943 # All AIX code is PIC. 8944 if test ia64 = "$host_cpu"; then 8945 # AIX 5 now supports IA64 processor 8946 lt_prog_compiler_static='-Bstatic' 8947 fi 8948 lt_prog_compiler_pic='-fPIC' 8949 ;; 8950 8951 amigaos*) 8952 case $host_cpu in 8953 powerpc) 8954 # see comment about AmigaOS4 .so support 8955 lt_prog_compiler_pic='-fPIC' 8956 ;; 8957 m68k) 8958 # FIXME: we need at least 68020 code to build shared libraries, but 8959 # adding the '-m68020' flag to GCC prevents building anything better, 8960 # like '-m68040'. 8961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8962 ;; 8963 esac 8964 ;; 8965 8966 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8967 # PIC is the default for these OSes. 8968 ;; 8969 8970 mingw* | cygwin* | pw32* | os2* | cegcc*) 8971 # This hack is so that the source file can tell whether it is being 8972 # built for inclusion in a dll (and should export symbols for example). 8973 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8974 # (--disable-auto-import) libraries 8975 lt_prog_compiler_pic='-DDLL_EXPORT' 8976 case $host_os in 8977 os2*) 8978 lt_prog_compiler_static='$wl-static' 8979 ;; 8980 esac 8981 ;; 8982 8983 darwin* | rhapsody*) 8984 # PIC is the default on this platform 8985 # Common symbols not allowed in MH_DYLIB files 8986 lt_prog_compiler_pic='-fno-common' 8987 ;; 8988 8989 haiku*) 8990 # PIC is the default for Haiku. 8991 # The "-static" flag exists, but is broken. 8992 lt_prog_compiler_static= 8993 ;; 8994 8995 hpux*) 8996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8998 # sets the default TLS model and affects inlining. 8999 case $host_cpu in 9000 hppa*64*) 9001 # +Z the default 9002 ;; 9003 *) 9004 lt_prog_compiler_pic='-fPIC' 9005 ;; 9006 esac 9007 ;; 9008 9009 interix[3-9]*) 9010 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9011 # Instead, we relocate shared libraries at runtime. 9012 ;; 9013 9014 msdosdjgpp*) 9015 # Just because we use GCC doesn't mean we suddenly get shared libraries 9016 # on systems that don't support them. 9017 lt_prog_compiler_can_build_shared=no 9018 enable_shared=no 9019 ;; 9020 9021 *nto* | *qnx*) 9022 # QNX uses GNU C++, but need to define -shared option too, otherwise 9023 # it will coredump. 9024 lt_prog_compiler_pic='-fPIC -shared' 9025 ;; 9026 9027 sysv4*MP*) 9028 if test -d /usr/nec; then 9029 lt_prog_compiler_pic=-Kconform_pic 9030 fi 9031 ;; 9032 9033 *) 9034 lt_prog_compiler_pic='-fPIC' 9035 ;; 9036 esac 9037 9038 case $cc_basename in 9039 nvcc*) # Cuda Compiler Driver 2.2 9040 lt_prog_compiler_wl='-Xlinker ' 9041 if test -n "$lt_prog_compiler_pic"; then 9042 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9043 fi 9044 ;; 9045 esac 9046 else 9047 # PORTME Check for flag to pass linker flags through the system compiler. 9048 case $host_os in 9049 aix*) 9050 lt_prog_compiler_wl='-Wl,' 9051 if test ia64 = "$host_cpu"; then 9052 # AIX 5 now supports IA64 processor 9053 lt_prog_compiler_static='-Bstatic' 9054 else 9055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9056 fi 9057 ;; 9058 9059 darwin* | rhapsody*) 9060 # PIC is the default on this platform 9061 # Common symbols not allowed in MH_DYLIB files 9062 lt_prog_compiler_pic='-fno-common' 9063 case $cc_basename in 9064 nagfor*) 9065 # NAG Fortran compiler 9066 lt_prog_compiler_wl='-Wl,-Wl,,' 9067 lt_prog_compiler_pic='-PIC' 9068 lt_prog_compiler_static='-Bstatic' 9069 ;; 9070 esac 9071 ;; 9072 9073 mingw* | cygwin* | pw32* | os2* | cegcc*) 9074 # This hack is so that the source file can tell whether it is being 9075 # built for inclusion in a dll (and should export symbols for example). 9076 lt_prog_compiler_pic='-DDLL_EXPORT' 9077 case $host_os in 9078 os2*) 9079 lt_prog_compiler_static='$wl-static' 9080 ;; 9081 esac 9082 ;; 9083 9084 hpux9* | hpux10* | hpux11*) 9085 lt_prog_compiler_wl='-Wl,' 9086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9087 # not for PA HP-UX. 9088 case $host_cpu in 9089 hppa*64*|ia64*) 9090 # +Z the default 9091 ;; 9092 *) 9093 lt_prog_compiler_pic='+Z' 9094 ;; 9095 esac 9096 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9097 lt_prog_compiler_static='$wl-a ${wl}archive' 9098 ;; 9099 9100 irix5* | irix6* | nonstopux*) 9101 lt_prog_compiler_wl='-Wl,' 9102 # PIC (with -KPIC) is the default. 9103 lt_prog_compiler_static='-non_shared' 9104 ;; 9105 9106 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9107 case $cc_basename in 9108 # old Intel for x86_64, which still supported -KPIC. 9109 ecc*) 9110 lt_prog_compiler_wl='-Wl,' 9111 lt_prog_compiler_pic='-KPIC' 9112 lt_prog_compiler_static='-static' 9113 ;; 9114 # icc used to be incompatible with GCC. 9115 # ICC 10 doesn't accept -KPIC any more. 9116 icc* | ifort*) 9117 lt_prog_compiler_wl='-Wl,' 9118 lt_prog_compiler_pic='-fPIC' 9119 lt_prog_compiler_static='-static' 9120 ;; 9121 # Lahey Fortran 8.1. 9122 lf95*) 9123 lt_prog_compiler_wl='-Wl,' 9124 lt_prog_compiler_pic='--shared' 9125 lt_prog_compiler_static='--static' 9126 ;; 9127 nagfor*) 9128 # NAG Fortran compiler 9129 lt_prog_compiler_wl='-Wl,-Wl,,' 9130 lt_prog_compiler_pic='-PIC' 9131 lt_prog_compiler_static='-Bstatic' 9132 ;; 9133 tcc*) 9134 # Fabrice Bellard et al's Tiny C Compiler 9135 lt_prog_compiler_wl='-Wl,' 9136 lt_prog_compiler_pic='-fPIC' 9137 lt_prog_compiler_static='-static' 9138 ;; 9139 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9140 # Portland Group compilers (*not* the Pentium gcc compiler, 9141 # which looks to be a dead project) 9142 lt_prog_compiler_wl='-Wl,' 9143 lt_prog_compiler_pic='-fpic' 9144 lt_prog_compiler_static='-Bstatic' 9145 ;; 9146 ccc*) 9147 lt_prog_compiler_wl='-Wl,' 9148 # All Alpha code is PIC. 9149 lt_prog_compiler_static='-non_shared' 9150 ;; 9151 xl* | bgxl* | bgf* | mpixl*) 9152 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_pic='-qpic' 9155 lt_prog_compiler_static='-qstaticlink' 9156 ;; 9157 *) 9158 case `$CC -V 2>&1 | sed 5q` in 9159 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9160 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9161 lt_prog_compiler_pic='-KPIC' 9162 lt_prog_compiler_static='-Bstatic' 9163 lt_prog_compiler_wl='' 9164 ;; 9165 *Sun\ F* | *Sun*Fortran*) 9166 lt_prog_compiler_pic='-KPIC' 9167 lt_prog_compiler_static='-Bstatic' 9168 lt_prog_compiler_wl='-Qoption ld ' 9169 ;; 9170 *Sun\ C*) 9171 # Sun C 5.9 9172 lt_prog_compiler_pic='-KPIC' 9173 lt_prog_compiler_static='-Bstatic' 9174 lt_prog_compiler_wl='-Wl,' 9175 ;; 9176 *Intel*\ [CF]*Compiler*) 9177 lt_prog_compiler_wl='-Wl,' 9178 lt_prog_compiler_pic='-fPIC' 9179 lt_prog_compiler_static='-static' 9180 ;; 9181 *Portland\ Group*) 9182 lt_prog_compiler_wl='-Wl,' 9183 lt_prog_compiler_pic='-fpic' 9184 lt_prog_compiler_static='-Bstatic' 9185 ;; 9186 esac 9187 ;; 9188 esac 9189 ;; 9190 9191 newsos6) 9192 lt_prog_compiler_pic='-KPIC' 9193 lt_prog_compiler_static='-Bstatic' 9194 ;; 9195 9196 *nto* | *qnx*) 9197 # QNX uses GNU C++, but need to define -shared option too, otherwise 9198 # it will coredump. 9199 lt_prog_compiler_pic='-fPIC -shared' 9200 ;; 9201 9202 osf3* | osf4* | osf5*) 9203 lt_prog_compiler_wl='-Wl,' 9204 # All OSF/1 code is PIC. 9205 lt_prog_compiler_static='-non_shared' 9206 ;; 9207 9208 rdos*) 9209 lt_prog_compiler_static='-non_shared' 9210 ;; 9211 9212 solaris*) 9213 lt_prog_compiler_pic='-KPIC' 9214 lt_prog_compiler_static='-Bstatic' 9215 case $cc_basename in 9216 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9217 lt_prog_compiler_wl='-Qoption ld ';; 9218 *) 9219 lt_prog_compiler_wl='-Wl,';; 9220 esac 9221 ;; 9222 9223 sunos4*) 9224 lt_prog_compiler_wl='-Qoption ld ' 9225 lt_prog_compiler_pic='-PIC' 9226 lt_prog_compiler_static='-Bstatic' 9227 ;; 9228 9229 sysv4 | sysv4.2uw2* | sysv4.3*) 9230 lt_prog_compiler_wl='-Wl,' 9231 lt_prog_compiler_pic='-KPIC' 9232 lt_prog_compiler_static='-Bstatic' 9233 ;; 9234 9235 sysv4*MP*) 9236 if test -d /usr/nec; then 9237 lt_prog_compiler_pic='-Kconform_pic' 9238 lt_prog_compiler_static='-Bstatic' 9239 fi 9240 ;; 9241 9242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9243 lt_prog_compiler_wl='-Wl,' 9244 lt_prog_compiler_pic='-KPIC' 9245 lt_prog_compiler_static='-Bstatic' 9246 ;; 9247 9248 unicos*) 9249 lt_prog_compiler_wl='-Wl,' 9250 lt_prog_compiler_can_build_shared=no 9251 ;; 9252 9253 uts4*) 9254 lt_prog_compiler_pic='-pic' 9255 lt_prog_compiler_static='-Bstatic' 9256 ;; 9257 9258 *) 9259 lt_prog_compiler_can_build_shared=no 9260 ;; 9261 esac 9262 fi 9263 9264case $host_os in 9265 # For platforms that do not support PIC, -DPIC is meaningless: 9266 *djgpp*) 9267 lt_prog_compiler_pic= 9268 ;; 9269 *) 9270 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9271 ;; 9272esac 9273 9274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9275printf %s "checking for $compiler option to produce PIC... " >&6; } 9276if test ${lt_cv_prog_compiler_pic+y} 9277then : 9278 printf %s "(cached) " >&6 9279else $as_nop 9280 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9281fi 9282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9283printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9284lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9285 9286# 9287# Check to make sure the PIC flag actually works. 9288# 9289if test -n "$lt_prog_compiler_pic"; then 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9291printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9292if test ${lt_cv_prog_compiler_pic_works+y} 9293then : 9294 printf %s "(cached) " >&6 9295else $as_nop 9296 lt_cv_prog_compiler_pic_works=no 9297 ac_outfile=conftest.$ac_objext 9298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9299 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9300 # Insert the option either (1) after the last *FLAGS variable, or 9301 # (2) before a word containing "conftest.", or (3) at the end. 9302 # Note that $ac_compile itself does not contain backslashes and begins 9303 # with a dollar sign (not a hyphen), so the echo should work correctly. 9304 # The option is referenced via a variable to avoid confusing sed. 9305 lt_compile=`echo "$ac_compile" | $SED \ 9306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9308 -e 's:$: $lt_compiler_flag:'` 9309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9310 (eval "$lt_compile" 2>conftest.err) 9311 ac_status=$? 9312 cat conftest.err >&5 9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9314 if (exit $ac_status) && test -s "$ac_outfile"; then 9315 # The compiler can only warn and ignore the option if not recognized 9316 # So say no if there are warnings other than the usual output. 9317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9320 lt_cv_prog_compiler_pic_works=yes 9321 fi 9322 fi 9323 $RM conftest* 9324 9325fi 9326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9327printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9328 9329if test yes = "$lt_cv_prog_compiler_pic_works"; then 9330 case $lt_prog_compiler_pic in 9331 "" | " "*) ;; 9332 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9333 esac 9334else 9335 lt_prog_compiler_pic= 9336 lt_prog_compiler_can_build_shared=no 9337fi 9338 9339fi 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351# 9352# Check to make sure the static flag actually works. 9353# 9354wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9356printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9357if test ${lt_cv_prog_compiler_static_works+y} 9358then : 9359 printf %s "(cached) " >&6 9360else $as_nop 9361 lt_cv_prog_compiler_static_works=no 9362 save_LDFLAGS=$LDFLAGS 9363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9364 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9366 # The linker can only warn and ignore the option if not recognized 9367 # So say no if there are warnings 9368 if test -s conftest.err; then 9369 # Append any errors to the config.log. 9370 cat conftest.err 1>&5 9371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9373 if diff conftest.exp conftest.er2 >/dev/null; then 9374 lt_cv_prog_compiler_static_works=yes 9375 fi 9376 else 9377 lt_cv_prog_compiler_static_works=yes 9378 fi 9379 fi 9380 $RM -r conftest* 9381 LDFLAGS=$save_LDFLAGS 9382 9383fi 9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9385printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9386 9387if test yes = "$lt_cv_prog_compiler_static_works"; then 9388 : 9389else 9390 lt_prog_compiler_static= 9391fi 9392 9393 9394 9395 9396 9397 9398 9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9400printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9401if test ${lt_cv_prog_compiler_c_o+y} 9402then : 9403 printf %s "(cached) " >&6 9404else $as_nop 9405 lt_cv_prog_compiler_c_o=no 9406 $RM -r conftest 2>/dev/null 9407 mkdir conftest 9408 cd conftest 9409 mkdir out 9410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9411 9412 lt_compiler_flag="-o out/conftest2.$ac_objext" 9413 # Insert the option either (1) after the last *FLAGS variable, or 9414 # (2) before a word containing "conftest.", or (3) at the end. 9415 # Note that $ac_compile itself does not contain backslashes and begins 9416 # with a dollar sign (not a hyphen), so the echo should work correctly. 9417 lt_compile=`echo "$ac_compile" | $SED \ 9418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9420 -e 's:$: $lt_compiler_flag:'` 9421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9422 (eval "$lt_compile" 2>out/conftest.err) 9423 ac_status=$? 9424 cat out/conftest.err >&5 9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9426 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9427 then 9428 # The compiler can only warn and ignore the option if not recognized 9429 # So say no if there are warnings 9430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9433 lt_cv_prog_compiler_c_o=yes 9434 fi 9435 fi 9436 chmod u+w . 2>&5 9437 $RM conftest* 9438 # SGI C++ compiler will create directory out/ii_files/ for 9439 # template instantiation 9440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9441 $RM out/* && rmdir out 9442 cd .. 9443 $RM -r conftest 9444 $RM conftest* 9445 9446fi 9447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9448printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9449 9450 9451 9452 9453 9454 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9456printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9457if test ${lt_cv_prog_compiler_c_o+y} 9458then : 9459 printf %s "(cached) " >&6 9460else $as_nop 9461 lt_cv_prog_compiler_c_o=no 9462 $RM -r conftest 2>/dev/null 9463 mkdir conftest 9464 cd conftest 9465 mkdir out 9466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9467 9468 lt_compiler_flag="-o out/conftest2.$ac_objext" 9469 # Insert the option either (1) after the last *FLAGS variable, or 9470 # (2) before a word containing "conftest.", or (3) at the end. 9471 # Note that $ac_compile itself does not contain backslashes and begins 9472 # with a dollar sign (not a hyphen), so the echo should work correctly. 9473 lt_compile=`echo "$ac_compile" | $SED \ 9474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9476 -e 's:$: $lt_compiler_flag:'` 9477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9478 (eval "$lt_compile" 2>out/conftest.err) 9479 ac_status=$? 9480 cat out/conftest.err >&5 9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9482 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9483 then 9484 # The compiler can only warn and ignore the option if not recognized 9485 # So say no if there are warnings 9486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9489 lt_cv_prog_compiler_c_o=yes 9490 fi 9491 fi 9492 chmod u+w . 2>&5 9493 $RM conftest* 9494 # SGI C++ compiler will create directory out/ii_files/ for 9495 # template instantiation 9496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9497 $RM out/* && rmdir out 9498 cd .. 9499 $RM -r conftest 9500 $RM conftest* 9501 9502fi 9503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9504printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9505 9506 9507 9508 9509hard_links=nottested 9510if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9511 # do not overwrite the value of need_locks provided by the user 9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9513printf %s "checking if we can lock with hard links... " >&6; } 9514 hard_links=yes 9515 $RM conftest* 9516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9517 touch conftest.a 9518 ln conftest.a conftest.b 2>&5 || hard_links=no 9519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9521printf "%s\n" "$hard_links" >&6; } 9522 if test no = "$hard_links"; then 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9524printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9525 need_locks=warn 9526 fi 9527else 9528 need_locks=no 9529fi 9530 9531 9532 9533 9534 9535 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9537printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9538 9539 runpath_var= 9540 allow_undefined_flag= 9541 always_export_symbols=no 9542 archive_cmds= 9543 archive_expsym_cmds= 9544 compiler_needs_object=no 9545 enable_shared_with_static_runtimes=no 9546 export_dynamic_flag_spec= 9547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9548 hardcode_automatic=no 9549 hardcode_direct=no 9550 hardcode_direct_absolute=no 9551 hardcode_libdir_flag_spec= 9552 hardcode_libdir_separator= 9553 hardcode_minus_L=no 9554 hardcode_shlibpath_var=unsupported 9555 inherit_rpath=no 9556 link_all_deplibs=unknown 9557 module_cmds= 9558 module_expsym_cmds= 9559 old_archive_from_new_cmds= 9560 old_archive_from_expsyms_cmds= 9561 thread_safe_flag_spec= 9562 whole_archive_flag_spec= 9563 # include_expsyms should be a list of space-separated symbols to be *always* 9564 # included in the symbol list 9565 include_expsyms= 9566 # exclude_expsyms can be an extended regexp of symbols to exclude 9567 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9568 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9569 # as well as any symbol that contains 'd'. 9570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9572 # platforms (ab)use it in PIC code, but their linkers get confused if 9573 # the symbol is explicitly referenced. Since portable code cannot 9574 # rely on this symbol name, it's probably fine to never include it in 9575 # preloaded symbol tables. 9576 # Exclude shared library initialization/finalization symbols. 9577 extract_expsyms_cmds= 9578 9579 case $host_os in 9580 cygwin* | mingw* | pw32* | cegcc*) 9581 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9582 # When not using gcc, we currently assume that we are using 9583 # Microsoft Visual C++. 9584 if test yes != "$GCC"; then 9585 with_gnu_ld=no 9586 fi 9587 ;; 9588 interix*) 9589 # we just hope/assume this is gcc and not c89 (= MSVC++) 9590 with_gnu_ld=yes 9591 ;; 9592 openbsd* | bitrig*) 9593 with_gnu_ld=no 9594 ;; 9595 esac 9596 9597 ld_shlibs=yes 9598 9599 # On some targets, GNU ld is compatible enough with the native linker 9600 # that we're better off using the native interface for both. 9601 lt_use_gnu_ld_interface=no 9602 if test yes = "$with_gnu_ld"; then 9603 case $host_os in 9604 aix*) 9605 # The AIX port of GNU ld has always aspired to compatibility 9606 # with the native linker. However, as the warning in the GNU ld 9607 # block says, versions before 2.19.5* couldn't really create working 9608 # shared libraries, regardless of the interface used. 9609 case `$LD -v 2>&1` in 9610 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9611 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9612 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9613 *) 9614 lt_use_gnu_ld_interface=yes 9615 ;; 9616 esac 9617 ;; 9618 *) 9619 lt_use_gnu_ld_interface=yes 9620 ;; 9621 esac 9622 fi 9623 9624 if test yes = "$lt_use_gnu_ld_interface"; then 9625 # If archive_cmds runs LD, not CC, wlarc should be empty 9626 wlarc='$wl' 9627 9628 # Set some defaults for GNU ld with shared library support. These 9629 # are reset later if shared libraries are not supported. Putting them 9630 # here allows them to be overridden if necessary. 9631 runpath_var=LD_RUN_PATH 9632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9633 export_dynamic_flag_spec='$wl--export-dynamic' 9634 # ancient GNU ld didn't support --whole-archive et. al. 9635 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9636 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9637 else 9638 whole_archive_flag_spec= 9639 fi 9640 supports_anon_versioning=no 9641 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9642 *GNU\ gold*) supports_anon_versioning=yes ;; 9643 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9644 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9645 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9646 *\ 2.11.*) ;; # other 2.11 versions 9647 *) supports_anon_versioning=yes ;; 9648 esac 9649 9650 # See if GNU ld supports shared libraries. 9651 case $host_os in 9652 aix[3-9]*) 9653 # On AIX/PPC, the GNU linker is very broken 9654 if test ia64 != "$host_cpu"; then 9655 ld_shlibs=no 9656 cat <<_LT_EOF 1>&2 9657 9658*** Warning: the GNU linker, at least up to release 2.19, is reported 9659*** to be unable to reliably create shared libraries on AIX. 9660*** Therefore, libtool is disabling shared libraries support. If you 9661*** really care for shared libraries, you may want to install binutils 9662*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9663*** You will then need to restart the configuration process. 9664 9665_LT_EOF 9666 fi 9667 ;; 9668 9669 amigaos*) 9670 case $host_cpu in 9671 powerpc) 9672 # see comment about AmigaOS4 .so support 9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9674 archive_expsym_cmds='' 9675 ;; 9676 m68k) 9677 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)' 9678 hardcode_libdir_flag_spec='-L$libdir' 9679 hardcode_minus_L=yes 9680 ;; 9681 esac 9682 ;; 9683 9684 beos*) 9685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9686 allow_undefined_flag=unsupported 9687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9688 # support --undefined. This deserves some investigation. FIXME 9689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9690 else 9691 ld_shlibs=no 9692 fi 9693 ;; 9694 9695 cygwin* | mingw* | pw32* | cegcc*) 9696 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9697 # as there is no search path for DLLs. 9698 hardcode_libdir_flag_spec='-L$libdir' 9699 export_dynamic_flag_spec='$wl--export-all-symbols' 9700 allow_undefined_flag=unsupported 9701 always_export_symbols=no 9702 enable_shared_with_static_runtimes=yes 9703 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' 9704 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9705 9706 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9708 # If the export-symbols file already is a .def file, use it as 9709 # is; otherwise, prepend EXPORTS... 9710 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9711 cp $export_symbols $output_objdir/$soname.def; 9712 else 9713 echo EXPORTS > $output_objdir/$soname.def; 9714 cat $export_symbols >> $output_objdir/$soname.def; 9715 fi~ 9716 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9717 else 9718 ld_shlibs=no 9719 fi 9720 ;; 9721 9722 haiku*) 9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9724 link_all_deplibs=yes 9725 ;; 9726 9727 os2*) 9728 hardcode_libdir_flag_spec='-L$libdir' 9729 hardcode_minus_L=yes 9730 allow_undefined_flag=unsupported 9731 shrext_cmds=.dll 9732 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9733 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9734 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9735 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9736 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9737 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9738 emximp -o $lib $output_objdir/$libname.def' 9739 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9740 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9741 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9742 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9743 prefix_cmds="$SED"~ 9744 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9745 prefix_cmds="$prefix_cmds -e 1d"; 9746 fi~ 9747 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9748 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9749 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9750 emximp -o $lib $output_objdir/$libname.def' 9751 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9752 enable_shared_with_static_runtimes=yes 9753 ;; 9754 9755 interix[3-9]*) 9756 hardcode_direct=no 9757 hardcode_shlibpath_var=no 9758 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9759 export_dynamic_flag_spec='$wl-E' 9760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9761 # Instead, shared libraries are loaded at an image base (0x10000000 by 9762 # default) and relocated if they conflict, which is a slow very memory 9763 # consuming and fragmenting process. To avoid this, we pick a random, 9764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9765 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9767 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' 9768 ;; 9769 9770 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9771 tmp_diet=no 9772 if test linux-dietlibc = "$host_os"; then 9773 case $cc_basename in 9774 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9775 esac 9776 fi 9777 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9778 && test no = "$tmp_diet" 9779 then 9780 tmp_addflag=' $pic_flag' 9781 tmp_sharedflag='-shared' 9782 case $cc_basename,$host_cpu in 9783 pgcc*) # Portland Group C compiler 9784 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' 9785 tmp_addflag=' $pic_flag' 9786 ;; 9787 pgf77* | pgf90* | pgf95* | pgfortran*) 9788 # Portland Group f77 and f90 compilers 9789 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' 9790 tmp_addflag=' $pic_flag -Mnomain' ;; 9791 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9792 tmp_addflag=' -i_dynamic' ;; 9793 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9794 tmp_addflag=' -i_dynamic -nofor_main' ;; 9795 ifc* | ifort*) # Intel Fortran compiler 9796 tmp_addflag=' -nofor_main' ;; 9797 lf95*) # Lahey Fortran 8.1 9798 whole_archive_flag_spec= 9799 tmp_sharedflag='--shared' ;; 9800 nagfor*) # NAGFOR 5.3 9801 tmp_sharedflag='-Wl,-shared' ;; 9802 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9803 tmp_sharedflag='-qmkshrobj' 9804 tmp_addflag= ;; 9805 nvcc*) # Cuda Compiler Driver 2.2 9806 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' 9807 compiler_needs_object=yes 9808 ;; 9809 esac 9810 case `$CC -V 2>&1 | sed 5q` in 9811 *Sun\ C*) # Sun C 5.9 9812 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' 9813 compiler_needs_object=yes 9814 tmp_sharedflag='-G' ;; 9815 *Sun\ F*) # Sun Fortran 8.3 9816 tmp_sharedflag='-G' ;; 9817 esac 9818 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9819 9820 if test yes = "$supports_anon_versioning"; then 9821 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9823 echo "local: *; };" >> $output_objdir/$libname.ver~ 9824 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9825 fi 9826 9827 case $cc_basename in 9828 tcc*) 9829 export_dynamic_flag_spec='-rdynamic' 9830 ;; 9831 xlf* | bgf* | bgxlf* | mpixlf*) 9832 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9833 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9834 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9835 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9836 if test yes = "$supports_anon_versioning"; then 9837 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9839 echo "local: *; };" >> $output_objdir/$libname.ver~ 9840 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9841 fi 9842 ;; 9843 esac 9844 else 9845 ld_shlibs=no 9846 fi 9847 ;; 9848 9849 netbsd*) 9850 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9851 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9852 wlarc= 9853 else 9854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9855 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9856 fi 9857 ;; 9858 9859 solaris*) 9860 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9861 ld_shlibs=no 9862 cat <<_LT_EOF 1>&2 9863 9864*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9865*** create shared libraries on Solaris systems. Therefore, libtool 9866*** is disabling shared libraries support. We urge you to upgrade GNU 9867*** binutils to release 2.9.1 or newer. Another option is to modify 9868*** your PATH or compiler configuration so that the native linker is 9869*** used, and then restart. 9870 9871_LT_EOF 9872 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9875 else 9876 ld_shlibs=no 9877 fi 9878 ;; 9879 9880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9881 case `$LD -v 2>&1` in 9882 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9883 ld_shlibs=no 9884 cat <<_LT_EOF 1>&2 9885 9886*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9887*** reliably create shared libraries on SCO systems. Therefore, libtool 9888*** is disabling shared libraries support. We urge you to upgrade GNU 9889*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9890*** your PATH or compiler configuration so that the native linker is 9891*** used, and then restart. 9892 9893_LT_EOF 9894 ;; 9895 *) 9896 # For security reasons, it is highly recommended that you always 9897 # use absolute paths for naming shared libraries, and exclude the 9898 # DT_RUNPATH tag from executables and libraries. But doing so 9899 # requires that you compile everything twice, which is a pain. 9900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9901 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9904 else 9905 ld_shlibs=no 9906 fi 9907 ;; 9908 esac 9909 ;; 9910 9911 sunos4*) 9912 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9913 wlarc= 9914 hardcode_direct=yes 9915 hardcode_shlibpath_var=no 9916 ;; 9917 9918 *) 9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9921 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9922 else 9923 ld_shlibs=no 9924 fi 9925 ;; 9926 esac 9927 9928 if test no = "$ld_shlibs"; then 9929 runpath_var= 9930 hardcode_libdir_flag_spec= 9931 export_dynamic_flag_spec= 9932 whole_archive_flag_spec= 9933 fi 9934 else 9935 # PORTME fill in a description of your system's linker (not GNU ld) 9936 case $host_os in 9937 aix3*) 9938 allow_undefined_flag=unsupported 9939 always_export_symbols=yes 9940 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' 9941 # Note: this linker hardcodes the directories in LIBPATH if there 9942 # are no directories specified by -L. 9943 hardcode_minus_L=yes 9944 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9945 # Neither direct hardcoding nor static linking is supported with a 9946 # broken collect2. 9947 hardcode_direct=unsupported 9948 fi 9949 ;; 9950 9951 aix[4-9]*) 9952 if test ia64 = "$host_cpu"; then 9953 # On IA64, the linker does run time linking by default, so we don't 9954 # have to do anything special. 9955 aix_use_runtimelinking=no 9956 exp_sym_flag='-Bexport' 9957 no_entry_flag= 9958 else 9959 # If we're using GNU nm, then we don't want the "-C" option. 9960 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9961 # Without the "-l" option, or with the "-B" option, AIX nm treats 9962 # weak defined symbols like other global defined symbols, whereas 9963 # GNU nm marks them as "W". 9964 # While the 'weak' keyword is ignored in the Export File, we need 9965 # it in the Import File for the 'aix-soname' feature, so we have 9966 # to replace the "-B" option with "-P" for AIX nm. 9967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9968 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9969 else 9970 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9971 fi 9972 aix_use_runtimelinking=no 9973 9974 # Test if we are trying to use run time linking or normal 9975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9976 # have runtime linking enabled, and use it for executables. 9977 # For shared libraries, we enable/disable runtime linking 9978 # depending on the kind of the shared library created - 9979 # when "with_aix_soname,aix_use_runtimelinking" is: 9980 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9981 # "aix,yes" lib.so shared, rtl:yes, for executables 9982 # lib.a static archive 9983 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9984 # lib.a(lib.so.V) shared, rtl:no, for executables 9985 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9986 # lib.a(lib.so.V) shared, rtl:no 9987 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9988 # lib.a static archive 9989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9990 for ld_flag in $LDFLAGS; do 9991 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9992 aix_use_runtimelinking=yes 9993 break 9994 fi 9995 done 9996 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9997 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9998 # so we don't have lib.a shared libs to link our executables. 9999 # We have to force runtime linking in this case. 10000 aix_use_runtimelinking=yes 10001 LDFLAGS="$LDFLAGS -Wl,-brtl" 10002 fi 10003 ;; 10004 esac 10005 10006 exp_sym_flag='-bexport' 10007 no_entry_flag='-bnoentry' 10008 fi 10009 10010 # When large executables or shared objects are built, AIX ld can 10011 # have problems creating the table of contents. If linking a library 10012 # or program results in "error TOC overflow" add -mminimal-toc to 10013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10015 10016 archive_cmds='' 10017 hardcode_direct=yes 10018 hardcode_direct_absolute=yes 10019 hardcode_libdir_separator=':' 10020 link_all_deplibs=yes 10021 file_list_spec='$wl-f,' 10022 case $with_aix_soname,$aix_use_runtimelinking in 10023 aix,*) ;; # traditional, no import file 10024 svr4,* | *,yes) # use import file 10025 # The Import File defines what to hardcode. 10026 hardcode_direct=no 10027 hardcode_direct_absolute=no 10028 ;; 10029 esac 10030 10031 if test yes = "$GCC"; then 10032 case $host_os in aix4.[012]|aix4.[012].*) 10033 # We only want to do this on AIX 4.2 and lower, the check 10034 # below for broken collect2 doesn't work under 4.3+ 10035 collect2name=`$CC -print-prog-name=collect2` 10036 if test -f "$collect2name" && 10037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10038 then 10039 # We have reworked collect2 10040 : 10041 else 10042 # We have old collect2 10043 hardcode_direct=unsupported 10044 # It fails to find uninstalled libraries when the uninstalled 10045 # path is not listed in the libpath. Setting hardcode_minus_L 10046 # to unsupported forces relinking 10047 hardcode_minus_L=yes 10048 hardcode_libdir_flag_spec='-L$libdir' 10049 hardcode_libdir_separator= 10050 fi 10051 ;; 10052 esac 10053 shared_flag='-shared' 10054 if test yes = "$aix_use_runtimelinking"; then 10055 shared_flag="$shared_flag "'$wl-G' 10056 fi 10057 # Need to ensure runtime linking is disabled for the traditional 10058 # shared library, or the linker may eventually find shared libraries 10059 # /with/ Import File - we do not want to mix them. 10060 shared_flag_aix='-shared' 10061 shared_flag_svr4='-shared $wl-G' 10062 else 10063 # not using gcc 10064 if test ia64 = "$host_cpu"; then 10065 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10066 # chokes on -Wl,-G. The following line is correct: 10067 shared_flag='-G' 10068 else 10069 if test yes = "$aix_use_runtimelinking"; then 10070 shared_flag='$wl-G' 10071 else 10072 shared_flag='$wl-bM:SRE' 10073 fi 10074 shared_flag_aix='$wl-bM:SRE' 10075 shared_flag_svr4='$wl-G' 10076 fi 10077 fi 10078 10079 export_dynamic_flag_spec='$wl-bexpall' 10080 # It seems that -bexpall does not export symbols beginning with 10081 # underscore (_), so it is better to generate a list of symbols to export. 10082 always_export_symbols=yes 10083 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10084 # Warning - without using the other runtime loading flags (-brtl), 10085 # -berok will link without error, but may produce a broken library. 10086 allow_undefined_flag='-berok' 10087 # Determine the default libpath from the value encoded in an 10088 # empty executable. 10089 if test set = "${lt_cv_aix_libpath+set}"; then 10090 aix_libpath=$lt_cv_aix_libpath 10091else 10092 if test ${lt_cv_aix_libpath_+y} 10093then : 10094 printf %s "(cached) " >&6 10095else $as_nop 10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097/* end confdefs.h. */ 10098 10099int 10100main (void) 10101{ 10102 10103 ; 10104 return 0; 10105} 10106_ACEOF 10107if ac_fn_c_try_link "$LINENO" 10108then : 10109 10110 lt_aix_libpath_sed=' 10111 /Import File Strings/,/^$/ { 10112 /^0/ { 10113 s/^0 *\([^ ]*\) *$/\1/ 10114 p 10115 } 10116 }' 10117 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10118 # Check for a 64-bit object if we didn't find anything. 10119 if test -z "$lt_cv_aix_libpath_"; then 10120 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10121 fi 10122fi 10123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10124 conftest$ac_exeext conftest.$ac_ext 10125 if test -z "$lt_cv_aix_libpath_"; then 10126 lt_cv_aix_libpath_=/usr/lib:/lib 10127 fi 10128 10129fi 10130 10131 aix_libpath=$lt_cv_aix_libpath_ 10132fi 10133 10134 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10135 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10136 else 10137 if test ia64 = "$host_cpu"; then 10138 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10139 allow_undefined_flag="-z nodefs" 10140 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" 10141 else 10142 # Determine the default libpath from the value encoded in an 10143 # empty executable. 10144 if test set = "${lt_cv_aix_libpath+set}"; then 10145 aix_libpath=$lt_cv_aix_libpath 10146else 10147 if test ${lt_cv_aix_libpath_+y} 10148then : 10149 printf %s "(cached) " >&6 10150else $as_nop 10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152/* end confdefs.h. */ 10153 10154int 10155main (void) 10156{ 10157 10158 ; 10159 return 0; 10160} 10161_ACEOF 10162if ac_fn_c_try_link "$LINENO" 10163then : 10164 10165 lt_aix_libpath_sed=' 10166 /Import File Strings/,/^$/ { 10167 /^0/ { 10168 s/^0 *\([^ ]*\) *$/\1/ 10169 p 10170 } 10171 }' 10172 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10173 # Check for a 64-bit object if we didn't find anything. 10174 if test -z "$lt_cv_aix_libpath_"; then 10175 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10176 fi 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10179 conftest$ac_exeext conftest.$ac_ext 10180 if test -z "$lt_cv_aix_libpath_"; then 10181 lt_cv_aix_libpath_=/usr/lib:/lib 10182 fi 10183 10184fi 10185 10186 aix_libpath=$lt_cv_aix_libpath_ 10187fi 10188 10189 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10190 # Warning - without using the other run time loading flags, 10191 # -berok will link without error, but may produce a broken library. 10192 no_undefined_flag=' $wl-bernotok' 10193 allow_undefined_flag=' $wl-berok' 10194 if test yes = "$with_gnu_ld"; then 10195 # We only use this code for GNU lds that support --whole-archive. 10196 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10197 else 10198 # Exported symbols can be pulled into shared objects from archives 10199 whole_archive_flag_spec='$convenience' 10200 fi 10201 archive_cmds_need_lc=yes 10202 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10203 # -brtl affects multiple linker settings, -berok does not and is overridden later 10204 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10205 if test svr4 != "$with_aix_soname"; then 10206 # This is similar to how AIX traditionally builds its shared libraries. 10207 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10208 fi 10209 if test aix != "$with_aix_soname"; then 10210 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10211 else 10212 # used by -dlpreopen to get the symbols 10213 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10214 fi 10215 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10216 fi 10217 fi 10218 ;; 10219 10220 amigaos*) 10221 case $host_cpu in 10222 powerpc) 10223 # see comment about AmigaOS4 .so support 10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10225 archive_expsym_cmds='' 10226 ;; 10227 m68k) 10228 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)' 10229 hardcode_libdir_flag_spec='-L$libdir' 10230 hardcode_minus_L=yes 10231 ;; 10232 esac 10233 ;; 10234 10235 bsdi[45]*) 10236 export_dynamic_flag_spec=-rdynamic 10237 ;; 10238 10239 cygwin* | mingw* | pw32* | cegcc*) 10240 # When not using gcc, we currently assume that we are using 10241 # Microsoft Visual C++. 10242 # hardcode_libdir_flag_spec is actually meaningless, as there is 10243 # no search path for DLLs. 10244 case $cc_basename in 10245 cl*) 10246 # Native MSVC 10247 hardcode_libdir_flag_spec=' ' 10248 allow_undefined_flag=unsupported 10249 always_export_symbols=yes 10250 file_list_spec='@' 10251 # Tell ltmain to make .lib files, not .a files. 10252 libext=lib 10253 # Tell ltmain to make .dll files, not .so files. 10254 shrext_cmds=.dll 10255 # FIXME: Setting linknames here is a bad hack. 10256 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10257 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10258 cp "$export_symbols" "$output_objdir/$soname.def"; 10259 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10260 else 10261 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10262 fi~ 10263 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10264 linknames=' 10265 # The linker will not automatically build a static lib if we build a DLL. 10266 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10267 enable_shared_with_static_runtimes=yes 10268 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10269 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10270 # Don't use ranlib 10271 old_postinstall_cmds='chmod 644 $oldlib' 10272 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10273 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10274 case $lt_outputfile in 10275 *.exe|*.EXE) ;; 10276 *) 10277 lt_outputfile=$lt_outputfile.exe 10278 lt_tool_outputfile=$lt_tool_outputfile.exe 10279 ;; 10280 esac~ 10281 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10282 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10283 $RM "$lt_outputfile.manifest"; 10284 fi' 10285 ;; 10286 *) 10287 # Assume MSVC wrapper 10288 hardcode_libdir_flag_spec=' ' 10289 allow_undefined_flag=unsupported 10290 # Tell ltmain to make .lib files, not .a files. 10291 libext=lib 10292 # Tell ltmain to make .dll files, not .so files. 10293 shrext_cmds=.dll 10294 # FIXME: Setting linknames here is a bad hack. 10295 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10296 # The linker will automatically build a .lib file if we build a DLL. 10297 old_archive_from_new_cmds='true' 10298 # FIXME: Should let the user specify the lib program. 10299 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10300 enable_shared_with_static_runtimes=yes 10301 ;; 10302 esac 10303 ;; 10304 10305 darwin* | rhapsody*) 10306 10307 10308 archive_cmds_need_lc=no 10309 hardcode_direct=no 10310 hardcode_automatic=yes 10311 hardcode_shlibpath_var=unsupported 10312 if test yes = "$lt_cv_ld_force_load"; then 10313 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\"`' 10314 10315 else 10316 whole_archive_flag_spec='' 10317 fi 10318 link_all_deplibs=yes 10319 allow_undefined_flag=$_lt_dar_allow_undefined 10320 case $cc_basename in 10321 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10322 *) _lt_dar_can_shared=$GCC ;; 10323 esac 10324 if test yes = "$_lt_dar_can_shared"; then 10325 output_verbose_link_cmd=func_echo_all 10326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10328 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" 10329 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" 10330 10331 else 10332 ld_shlibs=no 10333 fi 10334 10335 ;; 10336 10337 dgux*) 10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10339 hardcode_libdir_flag_spec='-L$libdir' 10340 hardcode_shlibpath_var=no 10341 ;; 10342 10343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10344 # support. Future versions do this automatically, but an explicit c++rt0.o 10345 # does not break anything, and helps significantly (at the cost of a little 10346 # extra space). 10347 freebsd2.2*) 10348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10349 hardcode_libdir_flag_spec='-R$libdir' 10350 hardcode_direct=yes 10351 hardcode_shlibpath_var=no 10352 ;; 10353 10354 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10355 freebsd2.*) 10356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10357 hardcode_direct=yes 10358 hardcode_minus_L=yes 10359 hardcode_shlibpath_var=no 10360 ;; 10361 10362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10363 freebsd* | dragonfly*) 10364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10365 hardcode_libdir_flag_spec='-R$libdir' 10366 hardcode_direct=yes 10367 hardcode_shlibpath_var=no 10368 ;; 10369 10370 hpux9*) 10371 if test yes = "$GCC"; then 10372 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10373 else 10374 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10375 fi 10376 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10377 hardcode_libdir_separator=: 10378 hardcode_direct=yes 10379 10380 # hardcode_minus_L: Not really in the search PATH, 10381 # but as the default location of the library. 10382 hardcode_minus_L=yes 10383 export_dynamic_flag_spec='$wl-E' 10384 ;; 10385 10386 hpux10*) 10387 if test yes,no = "$GCC,$with_gnu_ld"; then 10388 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10389 else 10390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10391 fi 10392 if test no = "$with_gnu_ld"; then 10393 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10394 hardcode_libdir_separator=: 10395 hardcode_direct=yes 10396 hardcode_direct_absolute=yes 10397 export_dynamic_flag_spec='$wl-E' 10398 # hardcode_minus_L: Not really in the search PATH, 10399 # but as the default location of the library. 10400 hardcode_minus_L=yes 10401 fi 10402 ;; 10403 10404 hpux11*) 10405 if test yes,no = "$GCC,$with_gnu_ld"; then 10406 case $host_cpu in 10407 hppa*64*) 10408 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10409 ;; 10410 ia64*) 10411 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10412 ;; 10413 *) 10414 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10415 ;; 10416 esac 10417 else 10418 case $host_cpu in 10419 hppa*64*) 10420 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10421 ;; 10422 ia64*) 10423 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10424 ;; 10425 *) 10426 10427 # Older versions of the 11.00 compiler do not understand -b yet 10428 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10430printf %s "checking if $CC understands -b... " >&6; } 10431if test ${lt_cv_prog_compiler__b+y} 10432then : 10433 printf %s "(cached) " >&6 10434else $as_nop 10435 lt_cv_prog_compiler__b=no 10436 save_LDFLAGS=$LDFLAGS 10437 LDFLAGS="$LDFLAGS -b" 10438 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10440 # The linker can only warn and ignore the option if not recognized 10441 # So say no if there are warnings 10442 if test -s conftest.err; then 10443 # Append any errors to the config.log. 10444 cat conftest.err 1>&5 10445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10447 if diff conftest.exp conftest.er2 >/dev/null; then 10448 lt_cv_prog_compiler__b=yes 10449 fi 10450 else 10451 lt_cv_prog_compiler__b=yes 10452 fi 10453 fi 10454 $RM -r conftest* 10455 LDFLAGS=$save_LDFLAGS 10456 10457fi 10458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10459printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10460 10461if test yes = "$lt_cv_prog_compiler__b"; then 10462 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10463else 10464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10465fi 10466 10467 ;; 10468 esac 10469 fi 10470 if test no = "$with_gnu_ld"; then 10471 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10472 hardcode_libdir_separator=: 10473 10474 case $host_cpu in 10475 hppa*64*|ia64*) 10476 hardcode_direct=no 10477 hardcode_shlibpath_var=no 10478 ;; 10479 *) 10480 hardcode_direct=yes 10481 hardcode_direct_absolute=yes 10482 export_dynamic_flag_spec='$wl-E' 10483 10484 # hardcode_minus_L: Not really in the search PATH, 10485 # but as the default location of the library. 10486 hardcode_minus_L=yes 10487 ;; 10488 esac 10489 fi 10490 ;; 10491 10492 irix5* | irix6* | nonstopux*) 10493 if test yes = "$GCC"; then 10494 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' 10495 # Try to use the -exported_symbol ld option, if it does not 10496 # work, assume that -exports_file does not work either and 10497 # implicitly export all symbols. 10498 # This should be the same for all languages, so no per-tag cache variable. 10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10500printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10501if test ${lt_cv_irix_exported_symbol+y} 10502then : 10503 printf %s "(cached) " >&6 10504else $as_nop 10505 save_LDFLAGS=$LDFLAGS 10506 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10508/* end confdefs.h. */ 10509int foo (void) { return 0; } 10510_ACEOF 10511if ac_fn_c_try_link "$LINENO" 10512then : 10513 lt_cv_irix_exported_symbol=yes 10514else $as_nop 10515 lt_cv_irix_exported_symbol=no 10516fi 10517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10518 conftest$ac_exeext conftest.$ac_ext 10519 LDFLAGS=$save_LDFLAGS 10520fi 10521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10522printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10523 if test yes = "$lt_cv_irix_exported_symbol"; then 10524 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' 10525 fi 10526 else 10527 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' 10528 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' 10529 fi 10530 archive_cmds_need_lc='no' 10531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10532 hardcode_libdir_separator=: 10533 inherit_rpath=yes 10534 link_all_deplibs=yes 10535 ;; 10536 10537 linux*) 10538 case $cc_basename in 10539 tcc*) 10540 # Fabrice Bellard et al's Tiny C Compiler 10541 ld_shlibs=yes 10542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10543 ;; 10544 esac 10545 ;; 10546 10547 netbsd*) 10548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10550 else 10551 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10552 fi 10553 hardcode_libdir_flag_spec='-R$libdir' 10554 hardcode_direct=yes 10555 hardcode_shlibpath_var=no 10556 ;; 10557 10558 newsos6) 10559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10560 hardcode_direct=yes 10561 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10562 hardcode_libdir_separator=: 10563 hardcode_shlibpath_var=no 10564 ;; 10565 10566 *nto* | *qnx*) 10567 ;; 10568 10569 openbsd* | bitrig*) 10570 if test -f /usr/libexec/ld.so; then 10571 hardcode_direct=yes 10572 hardcode_shlibpath_var=no 10573 hardcode_direct_absolute=yes 10574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10576 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10577 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10578 export_dynamic_flag_spec='$wl-E' 10579 else 10580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10581 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10582 fi 10583 else 10584 ld_shlibs=no 10585 fi 10586 ;; 10587 10588 os2*) 10589 hardcode_libdir_flag_spec='-L$libdir' 10590 hardcode_minus_L=yes 10591 allow_undefined_flag=unsupported 10592 shrext_cmds=.dll 10593 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10594 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10595 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10596 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10597 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10598 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10599 emximp -o $lib $output_objdir/$libname.def' 10600 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10601 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10602 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10603 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10604 prefix_cmds="$SED"~ 10605 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10606 prefix_cmds="$prefix_cmds -e 1d"; 10607 fi~ 10608 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10609 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10610 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10611 emximp -o $lib $output_objdir/$libname.def' 10612 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10613 enable_shared_with_static_runtimes=yes 10614 ;; 10615 10616 osf3*) 10617 if test yes = "$GCC"; then 10618 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10619 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' 10620 else 10621 allow_undefined_flag=' -expect_unresolved \*' 10622 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' 10623 fi 10624 archive_cmds_need_lc='no' 10625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10626 hardcode_libdir_separator=: 10627 ;; 10628 10629 osf4* | osf5*) # as osf3* with the addition of -msym flag 10630 if test yes = "$GCC"; then 10631 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10632 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' 10633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10634 else 10635 allow_undefined_flag=' -expect_unresolved \*' 10636 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' 10637 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~ 10638 $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' 10639 10640 # Both c and cxx compiler support -rpath directly 10641 hardcode_libdir_flag_spec='-rpath $libdir' 10642 fi 10643 archive_cmds_need_lc='no' 10644 hardcode_libdir_separator=: 10645 ;; 10646 10647 solaris*) 10648 no_undefined_flag=' -z defs' 10649 if test yes = "$GCC"; then 10650 wlarc='$wl' 10651 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10653 $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' 10654 else 10655 case `$CC -V 2>&1` in 10656 *"Compilers 5.0"*) 10657 wlarc='' 10658 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10660 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10661 ;; 10662 *) 10663 wlarc='$wl' 10664 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10666 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10667 ;; 10668 esac 10669 fi 10670 hardcode_libdir_flag_spec='-R$libdir' 10671 hardcode_shlibpath_var=no 10672 case $host_os in 10673 solaris2.[0-5] | solaris2.[0-5].*) ;; 10674 *) 10675 # The compiler driver will combine and reorder linker options, 10676 # but understands '-z linker_flag'. GCC discards it without '$wl', 10677 # but is careful enough not to reorder. 10678 # Supported since Solaris 2.6 (maybe 2.5.1?) 10679 if test yes = "$GCC"; then 10680 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10681 else 10682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10683 fi 10684 ;; 10685 esac 10686 link_all_deplibs=yes 10687 ;; 10688 10689 sunos4*) 10690 if test sequent = "$host_vendor"; then 10691 # Use $CC to link under sequent, because it throws in some extra .o 10692 # files that make .init and .fini sections work. 10693 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10694 else 10695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10696 fi 10697 hardcode_libdir_flag_spec='-L$libdir' 10698 hardcode_direct=yes 10699 hardcode_minus_L=yes 10700 hardcode_shlibpath_var=no 10701 ;; 10702 10703 sysv4) 10704 case $host_vendor in 10705 sni) 10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10707 hardcode_direct=yes # is this really true??? 10708 ;; 10709 siemens) 10710 ## LD is ld it makes a PLAMLIB 10711 ## CC just makes a GrossModule. 10712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10713 reload_cmds='$CC -r -o $output$reload_objs' 10714 hardcode_direct=no 10715 ;; 10716 motorola) 10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10719 ;; 10720 esac 10721 runpath_var='LD_RUN_PATH' 10722 hardcode_shlibpath_var=no 10723 ;; 10724 10725 sysv4.3*) 10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10727 hardcode_shlibpath_var=no 10728 export_dynamic_flag_spec='-Bexport' 10729 ;; 10730 10731 sysv4*MP*) 10732 if test -d /usr/nec; then 10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10734 hardcode_shlibpath_var=no 10735 runpath_var=LD_RUN_PATH 10736 hardcode_runpath_var=yes 10737 ld_shlibs=yes 10738 fi 10739 ;; 10740 10741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10742 no_undefined_flag='$wl-z,text' 10743 archive_cmds_need_lc=no 10744 hardcode_shlibpath_var=no 10745 runpath_var='LD_RUN_PATH' 10746 10747 if test yes = "$GCC"; then 10748 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10749 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10750 else 10751 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10752 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10753 fi 10754 ;; 10755 10756 sysv5* | sco3.2v5* | sco5v6*) 10757 # Note: We CANNOT use -z defs as we might desire, because we do not 10758 # link with -lc, and that would cause any symbols used from libc to 10759 # always be unresolved, which means just about no library would 10760 # ever link correctly. If we're not using GNU ld we use -z text 10761 # though, which does catch some bad symbols but isn't as heavy-handed 10762 # as -z defs. 10763 no_undefined_flag='$wl-z,text' 10764 allow_undefined_flag='$wl-z,nodefs' 10765 archive_cmds_need_lc=no 10766 hardcode_shlibpath_var=no 10767 hardcode_libdir_flag_spec='$wl-R,$libdir' 10768 hardcode_libdir_separator=':' 10769 link_all_deplibs=yes 10770 export_dynamic_flag_spec='$wl-Bexport' 10771 runpath_var='LD_RUN_PATH' 10772 10773 if test yes = "$GCC"; then 10774 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10775 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10776 else 10777 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10778 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10779 fi 10780 ;; 10781 10782 uts4*) 10783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10784 hardcode_libdir_flag_spec='-L$libdir' 10785 hardcode_shlibpath_var=no 10786 ;; 10787 10788 *) 10789 ld_shlibs=no 10790 ;; 10791 esac 10792 10793 if test sni = "$host_vendor"; then 10794 case $host in 10795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10796 export_dynamic_flag_spec='$wl-Blargedynsym' 10797 ;; 10798 esac 10799 fi 10800 fi 10801 10802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10803printf "%s\n" "$ld_shlibs" >&6; } 10804test no = "$ld_shlibs" && can_build_shared=no 10805 10806with_gnu_ld=$with_gnu_ld 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822# 10823# Do we need to explicitly link libc? 10824# 10825case "x$archive_cmds_need_lc" in 10826x|xyes) 10827 # Assume -lc should be added 10828 archive_cmds_need_lc=yes 10829 10830 if test yes,yes = "$GCC,$enable_shared"; then 10831 case $archive_cmds in 10832 *'~'*) 10833 # FIXME: we may have to deal with multi-command sequences. 10834 ;; 10835 '$CC '*) 10836 # Test whether the compiler implicitly links with -lc since on some 10837 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10838 # to ld, don't add -lc before -lgcc. 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10840printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10841if test ${lt_cv_archive_cmds_need_lc+y} 10842then : 10843 printf %s "(cached) " >&6 10844else $as_nop 10845 $RM conftest* 10846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10847 10848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10849 (eval $ac_compile) 2>&5 10850 ac_status=$? 10851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10852 test $ac_status = 0; } 2>conftest.err; then 10853 soname=conftest 10854 lib=conftest 10855 libobjs=conftest.$ac_objext 10856 deplibs= 10857 wl=$lt_prog_compiler_wl 10858 pic_flag=$lt_prog_compiler_pic 10859 compiler_flags=-v 10860 linker_flags=-v 10861 verstring= 10862 output_objdir=. 10863 libname=conftest 10864 lt_save_allow_undefined_flag=$allow_undefined_flag 10865 allow_undefined_flag= 10866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10867 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10868 ac_status=$? 10869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10870 test $ac_status = 0; } 10871 then 10872 lt_cv_archive_cmds_need_lc=no 10873 else 10874 lt_cv_archive_cmds_need_lc=yes 10875 fi 10876 allow_undefined_flag=$lt_save_allow_undefined_flag 10877 else 10878 cat conftest.err 1>&5 10879 fi 10880 $RM conftest* 10881 10882fi 10883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10884printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10885 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10886 ;; 10887 esac 10888 fi 10889 ;; 10890esac 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11044printf %s "checking dynamic linker characteristics... " >&6; } 11045 11046if test yes = "$GCC"; then 11047 case $host_os in 11048 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11049 *) lt_awk_arg='/^libraries:/' ;; 11050 esac 11051 case $host_os in 11052 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11053 *) lt_sed_strip_eq='s|=/|/|g' ;; 11054 esac 11055 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11056 case $lt_search_path_spec in 11057 *\;*) 11058 # if the path contains ";" then we assume it to be the separator 11059 # otherwise default to the standard path separator (i.e. ":") - it is 11060 # assumed that no part of a normal pathname contains ";" but that should 11061 # okay in the real world where ";" in dirpaths is itself problematic. 11062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11063 ;; 11064 *) 11065 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11066 ;; 11067 esac 11068 # Ok, now we have the path, separated by spaces, we can step through it 11069 # and add multilib dir if necessary... 11070 lt_tmp_lt_search_path_spec= 11071 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11072 # ...but if some path component already ends with the multilib dir we assume 11073 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11074 case "$lt_multi_os_dir; $lt_search_path_spec " in 11075 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11076 lt_multi_os_dir= 11077 ;; 11078 esac 11079 for lt_sys_path in $lt_search_path_spec; do 11080 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11082 elif test -n "$lt_multi_os_dir"; then 11083 test -d "$lt_sys_path" && \ 11084 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11085 fi 11086 done 11087 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11088BEGIN {RS = " "; FS = "/|\n";} { 11089 lt_foo = ""; 11090 lt_count = 0; 11091 for (lt_i = NF; lt_i > 0; lt_i--) { 11092 if ($lt_i != "" && $lt_i != ".") { 11093 if ($lt_i == "..") { 11094 lt_count++; 11095 } else { 11096 if (lt_count == 0) { 11097 lt_foo = "/" $lt_i lt_foo; 11098 } else { 11099 lt_count--; 11100 } 11101 } 11102 } 11103 } 11104 if (lt_foo != "") { lt_freq[lt_foo]++; } 11105 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11106}'` 11107 # AWK program above erroneously prepends '/' to C:/dos/paths 11108 # for these hosts. 11109 case $host_os in 11110 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11111 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11112 esac 11113 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11114else 11115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11116fi 11117library_names_spec= 11118libname_spec='lib$name' 11119soname_spec= 11120shrext_cmds=.so 11121postinstall_cmds= 11122postuninstall_cmds= 11123finish_cmds= 11124finish_eval= 11125shlibpath_var= 11126shlibpath_overrides_runpath=unknown 11127version_type=none 11128dynamic_linker="$host_os ld.so" 11129sys_lib_dlsearch_path_spec="/lib /usr/lib" 11130need_lib_prefix=unknown 11131hardcode_into_libs=no 11132 11133# when you set need_version to no, make sure it does not cause -set_version 11134# flags to be left without arguments 11135need_version=unknown 11136 11137 11138 11139case $host_os in 11140aix3*) 11141 version_type=linux # correct to gnu/linux during the next big refactor 11142 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11143 shlibpath_var=LIBPATH 11144 11145 # AIX 3 has no versioning support, so we append a major version to the name. 11146 soname_spec='$libname$release$shared_ext$major' 11147 ;; 11148 11149aix[4-9]*) 11150 version_type=linux # correct to gnu/linux during the next big refactor 11151 need_lib_prefix=no 11152 need_version=no 11153 hardcode_into_libs=yes 11154 if test ia64 = "$host_cpu"; then 11155 # AIX 5 supports IA64 11156 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11157 shlibpath_var=LD_LIBRARY_PATH 11158 else 11159 # With GCC up to 2.95.x, collect2 would create an import file 11160 # for dependence libraries. The import file would start with 11161 # the line '#! .'. This would cause the generated library to 11162 # depend on '.', always an invalid library. This was fixed in 11163 # development snapshots of GCC prior to 3.0. 11164 case $host_os in 11165 aix4 | aix4.[01] | aix4.[01].*) 11166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11167 echo ' yes ' 11168 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11169 : 11170 else 11171 can_build_shared=no 11172 fi 11173 ;; 11174 esac 11175 # Using Import Files as archive members, it is possible to support 11176 # filename-based versioning of shared library archives on AIX. While 11177 # this would work for both with and without runtime linking, it will 11178 # prevent static linking of such archives. So we do filename-based 11179 # shared library versioning with .so extension only, which is used 11180 # when both runtime linking and shared linking is enabled. 11181 # Unfortunately, runtime linking may impact performance, so we do 11182 # not want this to be the default eventually. Also, we use the 11183 # versioned .so libs for executables only if there is the -brtl 11184 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11185 # To allow for filename-based versioning support, we need to create 11186 # libNAME.so.V as an archive file, containing: 11187 # *) an Import File, referring to the versioned filename of the 11188 # archive as well as the shared archive member, telling the 11189 # bitwidth (32 or 64) of that shared object, and providing the 11190 # list of exported symbols of that shared object, eventually 11191 # decorated with the 'weak' keyword 11192 # *) the shared object with the F_LOADONLY flag set, to really avoid 11193 # it being seen by the linker. 11194 # At run time we better use the real file rather than another symlink, 11195 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11196 11197 case $with_aix_soname,$aix_use_runtimelinking in 11198 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11199 # soname into executable. Probably we can add versioning support to 11200 # collect2, so additional links can be useful in future. 11201 aix,yes) # traditional libtool 11202 dynamic_linker='AIX unversionable lib.so' 11203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11204 # instead of lib<name>.a to let people know that these are not 11205 # typical AIX shared libraries. 11206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11207 ;; 11208 aix,no) # traditional AIX only 11209 dynamic_linker='AIX lib.a(lib.so.V)' 11210 # We preserve .a as extension for shared libraries through AIX4.2 11211 # and later when we are not doing run time linking. 11212 library_names_spec='$libname$release.a $libname.a' 11213 soname_spec='$libname$release$shared_ext$major' 11214 ;; 11215 svr4,*) # full svr4 only 11216 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11217 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11218 # We do not specify a path in Import Files, so LIBPATH fires. 11219 shlibpath_overrides_runpath=yes 11220 ;; 11221 *,yes) # both, prefer svr4 11222 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11223 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11224 # unpreferred sharedlib libNAME.a needs extra handling 11225 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11226 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11227 # We do not specify a path in Import Files, so LIBPATH fires. 11228 shlibpath_overrides_runpath=yes 11229 ;; 11230 *,no) # both, prefer aix 11231 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11232 library_names_spec='$libname$release.a $libname.a' 11233 soname_spec='$libname$release$shared_ext$major' 11234 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11235 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11236 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11237 ;; 11238 esac 11239 shlibpath_var=LIBPATH 11240 fi 11241 ;; 11242 11243amigaos*) 11244 case $host_cpu in 11245 powerpc) 11246 # Since July 2007 AmigaOS4 officially supports .so libraries. 11247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11249 ;; 11250 m68k) 11251 library_names_spec='$libname.ixlibrary $libname.a' 11252 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11253 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11254 ;; 11255 esac 11256 ;; 11257 11258beos*) 11259 library_names_spec='$libname$shared_ext' 11260 dynamic_linker="$host_os ld.so" 11261 shlibpath_var=LIBRARY_PATH 11262 ;; 11263 11264bsdi[45]*) 11265 version_type=linux # correct to gnu/linux during the next big refactor 11266 need_version=no 11267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11268 soname_spec='$libname$release$shared_ext$major' 11269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11270 shlibpath_var=LD_LIBRARY_PATH 11271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11273 # the default ld.so.conf also contains /usr/contrib/lib and 11274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11275 # libtool to hard-code these into programs 11276 ;; 11277 11278cygwin* | mingw* | pw32* | cegcc*) 11279 version_type=windows 11280 shrext_cmds=.dll 11281 need_version=no 11282 need_lib_prefix=no 11283 11284 case $GCC,$cc_basename in 11285 yes,*) 11286 # gcc 11287 library_names_spec='$libname.dll.a' 11288 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11289 postinstall_cmds='base_file=`basename \$file`~ 11290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11291 dldir=$destdir/`dirname \$dlpath`~ 11292 test -d \$dldir || mkdir -p \$dldir~ 11293 $install_prog $dir/$dlname \$dldir/$dlname~ 11294 chmod a+x \$dldir/$dlname~ 11295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11297 fi' 11298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11299 dlpath=$dir/\$dldll~ 11300 $RM \$dlpath' 11301 shlibpath_overrides_runpath=yes 11302 11303 case $host_os in 11304 cygwin*) 11305 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11306 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11307 11308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11309 ;; 11310 mingw* | cegcc*) 11311 # MinGW DLLs use traditional 'lib' prefix 11312 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11313 ;; 11314 pw32*) 11315 # pw32 DLLs use 'pw' prefix rather than 'lib' 11316 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11317 ;; 11318 esac 11319 dynamic_linker='Win32 ld.exe' 11320 ;; 11321 11322 *,cl*) 11323 # Native MSVC 11324 libname_spec='$name' 11325 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11326 library_names_spec='$libname.dll.lib' 11327 11328 case $build_os in 11329 mingw*) 11330 sys_lib_search_path_spec= 11331 lt_save_ifs=$IFS 11332 IFS=';' 11333 for lt_path in $LIB 11334 do 11335 IFS=$lt_save_ifs 11336 # Let DOS variable expansion print the short 8.3 style file name. 11337 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11338 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11339 done 11340 IFS=$lt_save_ifs 11341 # Convert to MSYS style. 11342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11343 ;; 11344 cygwin*) 11345 # Convert to unix form, then to dos form, then back to unix form 11346 # but this time dos style (no spaces!) so that the unix form looks 11347 # like /cygdrive/c/PROGRA~1:/cygdr... 11348 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11349 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11350 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11351 ;; 11352 *) 11353 sys_lib_search_path_spec=$LIB 11354 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11355 # It is most probably a Windows format PATH. 11356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11357 else 11358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11359 fi 11360 # FIXME: find the short name or the path components, as spaces are 11361 # common. (e.g. "Program Files" -> "PROGRA~1") 11362 ;; 11363 esac 11364 11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11366 postinstall_cmds='base_file=`basename \$file`~ 11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11368 dldir=$destdir/`dirname \$dlpath`~ 11369 test -d \$dldir || mkdir -p \$dldir~ 11370 $install_prog $dir/$dlname \$dldir/$dlname' 11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11372 dlpath=$dir/\$dldll~ 11373 $RM \$dlpath' 11374 shlibpath_overrides_runpath=yes 11375 dynamic_linker='Win32 link.exe' 11376 ;; 11377 11378 *) 11379 # Assume MSVC wrapper 11380 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11381 dynamic_linker='Win32 ld.exe' 11382 ;; 11383 esac 11384 # FIXME: first we should search . and the directory the executable is in 11385 shlibpath_var=PATH 11386 ;; 11387 11388darwin* | rhapsody*) 11389 dynamic_linker="$host_os dyld" 11390 version_type=darwin 11391 need_lib_prefix=no 11392 need_version=no 11393 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11394 soname_spec='$libname$release$major$shared_ext' 11395 shlibpath_overrides_runpath=yes 11396 shlibpath_var=DYLD_LIBRARY_PATH 11397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11398 11399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11401 ;; 11402 11403dgux*) 11404 version_type=linux # correct to gnu/linux during the next big refactor 11405 need_lib_prefix=no 11406 need_version=no 11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11408 soname_spec='$libname$release$shared_ext$major' 11409 shlibpath_var=LD_LIBRARY_PATH 11410 ;; 11411 11412freebsd* | dragonfly*) 11413 # DragonFly does not have aout. When/if they implement a new 11414 # versioning mechanism, adjust this. 11415 if test -x /usr/bin/objformat; then 11416 objformat=`/usr/bin/objformat` 11417 else 11418 case $host_os in 11419 freebsd[23].*) objformat=aout ;; 11420 *) objformat=elf ;; 11421 esac 11422 fi 11423 version_type=freebsd-$objformat 11424 case $version_type in 11425 freebsd-elf*) 11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11427 soname_spec='$libname$release$shared_ext$major' 11428 need_version=no 11429 need_lib_prefix=no 11430 ;; 11431 freebsd-*) 11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11433 need_version=yes 11434 ;; 11435 esac 11436 shlibpath_var=LD_LIBRARY_PATH 11437 case $host_os in 11438 freebsd2.*) 11439 shlibpath_overrides_runpath=yes 11440 ;; 11441 freebsd3.[01]* | freebsdelf3.[01]*) 11442 shlibpath_overrides_runpath=yes 11443 hardcode_into_libs=yes 11444 ;; 11445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11447 shlibpath_overrides_runpath=no 11448 hardcode_into_libs=yes 11449 ;; 11450 *) # from 4.6 on, and DragonFly 11451 shlibpath_overrides_runpath=yes 11452 hardcode_into_libs=yes 11453 ;; 11454 esac 11455 ;; 11456 11457haiku*) 11458 version_type=linux # correct to gnu/linux during the next big refactor 11459 need_lib_prefix=no 11460 need_version=no 11461 dynamic_linker="$host_os runtime_loader" 11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11463 soname_spec='$libname$release$shared_ext$major' 11464 shlibpath_var=LIBRARY_PATH 11465 shlibpath_overrides_runpath=no 11466 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11467 hardcode_into_libs=yes 11468 ;; 11469 11470hpux9* | hpux10* | hpux11*) 11471 # Give a soname corresponding to the major version so that dld.sl refuses to 11472 # link against other versions. 11473 version_type=sunos 11474 need_lib_prefix=no 11475 need_version=no 11476 case $host_cpu in 11477 ia64*) 11478 shrext_cmds='.so' 11479 hardcode_into_libs=yes 11480 dynamic_linker="$host_os dld.so" 11481 shlibpath_var=LD_LIBRARY_PATH 11482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11484 soname_spec='$libname$release$shared_ext$major' 11485 if test 32 = "$HPUX_IA64_MODE"; then 11486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11487 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11488 else 11489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11490 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11491 fi 11492 ;; 11493 hppa*64*) 11494 shrext_cmds='.sl' 11495 hardcode_into_libs=yes 11496 dynamic_linker="$host_os dld.sl" 11497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11500 soname_spec='$libname$release$shared_ext$major' 11501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11503 ;; 11504 *) 11505 shrext_cmds='.sl' 11506 dynamic_linker="$host_os dld.sl" 11507 shlibpath_var=SHLIB_PATH 11508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11510 soname_spec='$libname$release$shared_ext$major' 11511 ;; 11512 esac 11513 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11514 postinstall_cmds='chmod 555 $lib' 11515 # or fails outright, so override atomically: 11516 install_override_mode=555 11517 ;; 11518 11519interix[3-9]*) 11520 version_type=linux # correct to gnu/linux during the next big refactor 11521 need_lib_prefix=no 11522 need_version=no 11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11524 soname_spec='$libname$release$shared_ext$major' 11525 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11526 shlibpath_var=LD_LIBRARY_PATH 11527 shlibpath_overrides_runpath=no 11528 hardcode_into_libs=yes 11529 ;; 11530 11531irix5* | irix6* | nonstopux*) 11532 case $host_os in 11533 nonstopux*) version_type=nonstopux ;; 11534 *) 11535 if test yes = "$lt_cv_prog_gnu_ld"; then 11536 version_type=linux # correct to gnu/linux during the next big refactor 11537 else 11538 version_type=irix 11539 fi ;; 11540 esac 11541 need_lib_prefix=no 11542 need_version=no 11543 soname_spec='$libname$release$shared_ext$major' 11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11545 case $host_os in 11546 irix5* | nonstopux*) 11547 libsuff= shlibsuff= 11548 ;; 11549 *) 11550 case $LD in # libtool.m4 will add one of these switches to LD 11551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11552 libsuff= shlibsuff= libmagic=32-bit;; 11553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11554 libsuff=32 shlibsuff=N32 libmagic=N32;; 11555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11556 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11557 *) libsuff= shlibsuff= libmagic=never-match;; 11558 esac 11559 ;; 11560 esac 11561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11562 shlibpath_overrides_runpath=no 11563 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11564 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11565 hardcode_into_libs=yes 11566 ;; 11567 11568# No shared lib support for Linux oldld, aout, or coff. 11569linux*oldld* | linux*aout* | linux*coff*) 11570 dynamic_linker=no 11571 ;; 11572 11573linux*android*) 11574 version_type=none # Android doesn't support versioned libraries. 11575 need_lib_prefix=no 11576 need_version=no 11577 library_names_spec='$libname$release$shared_ext' 11578 soname_spec='$libname$release$shared_ext' 11579 finish_cmds= 11580 shlibpath_var=LD_LIBRARY_PATH 11581 shlibpath_overrides_runpath=yes 11582 11583 # This implies no fast_install, which is unacceptable. 11584 # Some rework will be needed to allow for fast_install 11585 # before this can be enabled. 11586 hardcode_into_libs=yes 11587 11588 dynamic_linker='Android linker' 11589 # Don't embed -rpath directories since the linker doesn't support them. 11590 hardcode_libdir_flag_spec='-L$libdir' 11591 ;; 11592 11593# This must be glibc/ELF. 11594linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11595 version_type=linux # correct to gnu/linux during the next big refactor 11596 need_lib_prefix=no 11597 need_version=no 11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11599 soname_spec='$libname$release$shared_ext$major' 11600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11601 shlibpath_var=LD_LIBRARY_PATH 11602 shlibpath_overrides_runpath=no 11603 11604 # Some binutils ld are patched to set DT_RUNPATH 11605 if test ${lt_cv_shlibpath_overrides_runpath+y} 11606then : 11607 printf %s "(cached) " >&6 11608else $as_nop 11609 lt_cv_shlibpath_overrides_runpath=no 11610 save_LDFLAGS=$LDFLAGS 11611 save_libdir=$libdir 11612 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11613 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11615/* end confdefs.h. */ 11616 11617int 11618main (void) 11619{ 11620 11621 ; 11622 return 0; 11623} 11624_ACEOF 11625if ac_fn_c_try_link "$LINENO" 11626then : 11627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11628then : 11629 lt_cv_shlibpath_overrides_runpath=yes 11630fi 11631fi 11632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11633 conftest$ac_exeext conftest.$ac_ext 11634 LDFLAGS=$save_LDFLAGS 11635 libdir=$save_libdir 11636 11637fi 11638 11639 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11640 11641 # This implies no fast_install, which is unacceptable. 11642 # Some rework will be needed to allow for fast_install 11643 # before this can be enabled. 11644 hardcode_into_libs=yes 11645 11646 # Add ABI-specific directories to the system library path. 11647 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11648 11649 # Ideally, we could use ldconfig to report *all* directores which are 11650 # searched for libraries, however this is still not possible. Aside from not 11651 # being certain /sbin/ldconfig is available, command 11652 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11653 # even though it is searched at run-time. Try to do the best guess by 11654 # appending ld.so.conf contents (and includes) to the search path. 11655 if test -f /etc/ld.so.conf; then 11656 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' ' '` 11657 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11658 fi 11659 11660 # We used to test for /lib/ld.so.1 and disable shared libraries on 11661 # powerpc, because MkLinux only supported shared libraries with the 11662 # GNU dynamic linker. Since this was broken with cross compilers, 11663 # most powerpc-linux boxes support dynamic linking these days and 11664 # people can always --disable-shared, the test was removed, and we 11665 # assume the GNU/Linux dynamic linker is in use. 11666 dynamic_linker='GNU/Linux ld.so' 11667 ;; 11668 11669netbsd*) 11670 version_type=sunos 11671 need_lib_prefix=no 11672 need_version=no 11673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11674 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11676 dynamic_linker='NetBSD (a.out) ld.so' 11677 else 11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11679 soname_spec='$libname$release$shared_ext$major' 11680 dynamic_linker='NetBSD ld.elf_so' 11681 fi 11682 shlibpath_var=LD_LIBRARY_PATH 11683 shlibpath_overrides_runpath=yes 11684 hardcode_into_libs=yes 11685 ;; 11686 11687newsos6) 11688 version_type=linux # correct to gnu/linux during the next big refactor 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11690 shlibpath_var=LD_LIBRARY_PATH 11691 shlibpath_overrides_runpath=yes 11692 ;; 11693 11694*nto* | *qnx*) 11695 version_type=qnx 11696 need_lib_prefix=no 11697 need_version=no 11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11699 soname_spec='$libname$release$shared_ext$major' 11700 shlibpath_var=LD_LIBRARY_PATH 11701 shlibpath_overrides_runpath=no 11702 hardcode_into_libs=yes 11703 dynamic_linker='ldqnx.so' 11704 ;; 11705 11706openbsd* | bitrig*) 11707 version_type=sunos 11708 sys_lib_dlsearch_path_spec=/usr/lib 11709 need_lib_prefix=no 11710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11711 need_version=no 11712 else 11713 need_version=yes 11714 fi 11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11717 shlibpath_var=LD_LIBRARY_PATH 11718 shlibpath_overrides_runpath=yes 11719 ;; 11720 11721os2*) 11722 libname_spec='$name' 11723 version_type=windows 11724 shrext_cmds=.dll 11725 need_version=no 11726 need_lib_prefix=no 11727 # OS/2 can only load a DLL with a base name of 8 characters or less. 11728 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11729 v=$($ECHO $release$versuffix | tr -d .-); 11730 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11731 $ECHO $n$v`$shared_ext' 11732 library_names_spec='${libname}_dll.$libext' 11733 dynamic_linker='OS/2 ld.exe' 11734 shlibpath_var=BEGINLIBPATH 11735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11737 postinstall_cmds='base_file=`basename \$file`~ 11738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11739 dldir=$destdir/`dirname \$dlpath`~ 11740 test -d \$dldir || mkdir -p \$dldir~ 11741 $install_prog $dir/$dlname \$dldir/$dlname~ 11742 chmod a+x \$dldir/$dlname~ 11743 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11744 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11745 fi' 11746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11747 dlpath=$dir/\$dldll~ 11748 $RM \$dlpath' 11749 ;; 11750 11751osf3* | osf4* | osf5*) 11752 version_type=osf 11753 need_lib_prefix=no 11754 need_version=no 11755 soname_spec='$libname$release$shared_ext$major' 11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11757 shlibpath_var=LD_LIBRARY_PATH 11758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11760 ;; 11761 11762rdos*) 11763 dynamic_linker=no 11764 ;; 11765 11766solaris*) 11767 version_type=linux # correct to gnu/linux during the next big refactor 11768 need_lib_prefix=no 11769 need_version=no 11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11771 soname_spec='$libname$release$shared_ext$major' 11772 shlibpath_var=LD_LIBRARY_PATH 11773 shlibpath_overrides_runpath=yes 11774 hardcode_into_libs=yes 11775 # ldd complains unless libraries are executable 11776 postinstall_cmds='chmod +x $lib' 11777 ;; 11778 11779sunos4*) 11780 version_type=sunos 11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11783 shlibpath_var=LD_LIBRARY_PATH 11784 shlibpath_overrides_runpath=yes 11785 if test yes = "$with_gnu_ld"; then 11786 need_lib_prefix=no 11787 fi 11788 need_version=yes 11789 ;; 11790 11791sysv4 | sysv4.3*) 11792 version_type=linux # correct to gnu/linux during the next big refactor 11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11794 soname_spec='$libname$release$shared_ext$major' 11795 shlibpath_var=LD_LIBRARY_PATH 11796 case $host_vendor in 11797 sni) 11798 shlibpath_overrides_runpath=no 11799 need_lib_prefix=no 11800 runpath_var=LD_RUN_PATH 11801 ;; 11802 siemens) 11803 need_lib_prefix=no 11804 ;; 11805 motorola) 11806 need_lib_prefix=no 11807 need_version=no 11808 shlibpath_overrides_runpath=no 11809 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11810 ;; 11811 esac 11812 ;; 11813 11814sysv4*MP*) 11815 if test -d /usr/nec; then 11816 version_type=linux # correct to gnu/linux during the next big refactor 11817 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11818 soname_spec='$libname$shared_ext.$major' 11819 shlibpath_var=LD_LIBRARY_PATH 11820 fi 11821 ;; 11822 11823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11824 version_type=sco 11825 need_lib_prefix=no 11826 need_version=no 11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11828 soname_spec='$libname$release$shared_ext$major' 11829 shlibpath_var=LD_LIBRARY_PATH 11830 shlibpath_overrides_runpath=yes 11831 hardcode_into_libs=yes 11832 if test yes = "$with_gnu_ld"; then 11833 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11834 else 11835 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11836 case $host_os in 11837 sco3.2v5*) 11838 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11839 ;; 11840 esac 11841 fi 11842 sys_lib_dlsearch_path_spec='/usr/lib' 11843 ;; 11844 11845tpf*) 11846 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11847 version_type=linux # correct to gnu/linux during the next big refactor 11848 need_lib_prefix=no 11849 need_version=no 11850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11851 shlibpath_var=LD_LIBRARY_PATH 11852 shlibpath_overrides_runpath=no 11853 hardcode_into_libs=yes 11854 ;; 11855 11856uts4*) 11857 version_type=linux # correct to gnu/linux during the next big refactor 11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11859 soname_spec='$libname$release$shared_ext$major' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 ;; 11862 11863*) 11864 dynamic_linker=no 11865 ;; 11866esac 11867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11868printf "%s\n" "$dynamic_linker" >&6; } 11869test no = "$dynamic_linker" && can_build_shared=no 11870 11871variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11872if test yes = "$GCC"; then 11873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11874fi 11875 11876if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11877 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11878fi 11879 11880if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11881 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11882fi 11883 11884# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11885configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11886 11887# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11888func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11889 11890# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11891configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11990printf %s "checking how to hardcode library paths into programs... " >&6; } 11991hardcode_action= 11992if test -n "$hardcode_libdir_flag_spec" || 11993 test -n "$runpath_var" || 11994 test yes = "$hardcode_automatic"; then 11995 11996 # We can hardcode non-existent directories. 11997 if test no != "$hardcode_direct" && 11998 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11999 # have to relink, otherwise we might link with an installed library 12000 # when we should be linking with a yet-to-be-installed one 12001 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12002 test no != "$hardcode_minus_L"; then 12003 # Linking always hardcodes the temporary library directory. 12004 hardcode_action=relink 12005 else 12006 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12007 hardcode_action=immediate 12008 fi 12009else 12010 # We cannot hardcode anything, or else we can only hardcode existing 12011 # directories. 12012 hardcode_action=unsupported 12013fi 12014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12015printf "%s\n" "$hardcode_action" >&6; } 12016 12017if test relink = "$hardcode_action" || 12018 test yes = "$inherit_rpath"; then 12019 # Fast installation is not supported 12020 enable_fast_install=no 12021elif test yes = "$shlibpath_overrides_runpath" || 12022 test no = "$enable_shared"; then 12023 # Fast installation is not necessary 12024 enable_fast_install=needless 12025fi 12026 12027 12028 12029 12030 12031 12032 if test yes != "$enable_dlopen"; then 12033 enable_dlopen=unknown 12034 enable_dlopen_self=unknown 12035 enable_dlopen_self_static=unknown 12036else 12037 lt_cv_dlopen=no 12038 lt_cv_dlopen_libs= 12039 12040 case $host_os in 12041 beos*) 12042 lt_cv_dlopen=load_add_on 12043 lt_cv_dlopen_libs= 12044 lt_cv_dlopen_self=yes 12045 ;; 12046 12047 mingw* | pw32* | cegcc*) 12048 lt_cv_dlopen=LoadLibrary 12049 lt_cv_dlopen_libs= 12050 ;; 12051 12052 cygwin*) 12053 lt_cv_dlopen=dlopen 12054 lt_cv_dlopen_libs= 12055 ;; 12056 12057 darwin*) 12058 # if libdl is installed we need to link against it 12059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12060printf %s "checking for dlopen in -ldl... " >&6; } 12061if test ${ac_cv_lib_dl_dlopen+y} 12062then : 12063 printf %s "(cached) " >&6 12064else $as_nop 12065 ac_check_lib_save_LIBS=$LIBS 12066LIBS="-ldl $LIBS" 12067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12068/* end confdefs.h. */ 12069 12070/* Override any GCC internal prototype to avoid an error. 12071 Use char because int might match the return type of a GCC 12072 builtin and then its argument prototype would still apply. */ 12073char dlopen (); 12074int 12075main (void) 12076{ 12077return dlopen (); 12078 ; 12079 return 0; 12080} 12081_ACEOF 12082if ac_fn_c_try_link "$LINENO" 12083then : 12084 ac_cv_lib_dl_dlopen=yes 12085else $as_nop 12086 ac_cv_lib_dl_dlopen=no 12087fi 12088rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12089 conftest$ac_exeext conftest.$ac_ext 12090LIBS=$ac_check_lib_save_LIBS 12091fi 12092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12093printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12094if test "x$ac_cv_lib_dl_dlopen" = xyes 12095then : 12096 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12097else $as_nop 12098 12099 lt_cv_dlopen=dyld 12100 lt_cv_dlopen_libs= 12101 lt_cv_dlopen_self=yes 12102 12103fi 12104 12105 ;; 12106 12107 tpf*) 12108 # Don't try to run any link tests for TPF. We know it's impossible 12109 # because TPF is a cross-compiler, and we know how we open DSOs. 12110 lt_cv_dlopen=dlopen 12111 lt_cv_dlopen_libs= 12112 lt_cv_dlopen_self=no 12113 ;; 12114 12115 *) 12116 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12117if test "x$ac_cv_func_shl_load" = xyes 12118then : 12119 lt_cv_dlopen=shl_load 12120else $as_nop 12121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12122printf %s "checking for shl_load in -ldld... " >&6; } 12123if test ${ac_cv_lib_dld_shl_load+y} 12124then : 12125 printf %s "(cached) " >&6 12126else $as_nop 12127 ac_check_lib_save_LIBS=$LIBS 12128LIBS="-ldld $LIBS" 12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12130/* end confdefs.h. */ 12131 12132/* Override any GCC internal prototype to avoid an error. 12133 Use char because int might match the return type of a GCC 12134 builtin and then its argument prototype would still apply. */ 12135char shl_load (); 12136int 12137main (void) 12138{ 12139return shl_load (); 12140 ; 12141 return 0; 12142} 12143_ACEOF 12144if ac_fn_c_try_link "$LINENO" 12145then : 12146 ac_cv_lib_dld_shl_load=yes 12147else $as_nop 12148 ac_cv_lib_dld_shl_load=no 12149fi 12150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12151 conftest$ac_exeext conftest.$ac_ext 12152LIBS=$ac_check_lib_save_LIBS 12153fi 12154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12155printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12156if test "x$ac_cv_lib_dld_shl_load" = xyes 12157then : 12158 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12159else $as_nop 12160 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12161if test "x$ac_cv_func_dlopen" = xyes 12162then : 12163 lt_cv_dlopen=dlopen 12164else $as_nop 12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12166printf %s "checking for dlopen in -ldl... " >&6; } 12167if test ${ac_cv_lib_dl_dlopen+y} 12168then : 12169 printf %s "(cached) " >&6 12170else $as_nop 12171 ac_check_lib_save_LIBS=$LIBS 12172LIBS="-ldl $LIBS" 12173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12174/* end confdefs.h. */ 12175 12176/* Override any GCC internal prototype to avoid an error. 12177 Use char because int might match the return type of a GCC 12178 builtin and then its argument prototype would still apply. */ 12179char dlopen (); 12180int 12181main (void) 12182{ 12183return dlopen (); 12184 ; 12185 return 0; 12186} 12187_ACEOF 12188if ac_fn_c_try_link "$LINENO" 12189then : 12190 ac_cv_lib_dl_dlopen=yes 12191else $as_nop 12192 ac_cv_lib_dl_dlopen=no 12193fi 12194rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12195 conftest$ac_exeext conftest.$ac_ext 12196LIBS=$ac_check_lib_save_LIBS 12197fi 12198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12199printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12200if test "x$ac_cv_lib_dl_dlopen" = xyes 12201then : 12202 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12203else $as_nop 12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12205printf %s "checking for dlopen in -lsvld... " >&6; } 12206if test ${ac_cv_lib_svld_dlopen+y} 12207then : 12208 printf %s "(cached) " >&6 12209else $as_nop 12210 ac_check_lib_save_LIBS=$LIBS 12211LIBS="-lsvld $LIBS" 12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12213/* end confdefs.h. */ 12214 12215/* Override any GCC internal prototype to avoid an error. 12216 Use char because int might match the return type of a GCC 12217 builtin and then its argument prototype would still apply. */ 12218char dlopen (); 12219int 12220main (void) 12221{ 12222return dlopen (); 12223 ; 12224 return 0; 12225} 12226_ACEOF 12227if ac_fn_c_try_link "$LINENO" 12228then : 12229 ac_cv_lib_svld_dlopen=yes 12230else $as_nop 12231 ac_cv_lib_svld_dlopen=no 12232fi 12233rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12234 conftest$ac_exeext conftest.$ac_ext 12235LIBS=$ac_check_lib_save_LIBS 12236fi 12237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12238printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12239if test "x$ac_cv_lib_svld_dlopen" = xyes 12240then : 12241 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12242else $as_nop 12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12244printf %s "checking for dld_link in -ldld... " >&6; } 12245if test ${ac_cv_lib_dld_dld_link+y} 12246then : 12247 printf %s "(cached) " >&6 12248else $as_nop 12249 ac_check_lib_save_LIBS=$LIBS 12250LIBS="-ldld $LIBS" 12251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253 12254/* Override any GCC internal prototype to avoid an error. 12255 Use char because int might match the return type of a GCC 12256 builtin and then its argument prototype would still apply. */ 12257char dld_link (); 12258int 12259main (void) 12260{ 12261return dld_link (); 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266if ac_fn_c_try_link "$LINENO" 12267then : 12268 ac_cv_lib_dld_dld_link=yes 12269else $as_nop 12270 ac_cv_lib_dld_dld_link=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12273 conftest$ac_exeext conftest.$ac_ext 12274LIBS=$ac_check_lib_save_LIBS 12275fi 12276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12277printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12278if test "x$ac_cv_lib_dld_dld_link" = xyes 12279then : 12280 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12281fi 12282 12283 12284fi 12285 12286 12287fi 12288 12289 12290fi 12291 12292 12293fi 12294 12295 12296fi 12297 12298 ;; 12299 esac 12300 12301 if test no = "$lt_cv_dlopen"; then 12302 enable_dlopen=no 12303 else 12304 enable_dlopen=yes 12305 fi 12306 12307 case $lt_cv_dlopen in 12308 dlopen) 12309 save_CPPFLAGS=$CPPFLAGS 12310 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12311 12312 save_LDFLAGS=$LDFLAGS 12313 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12314 12315 save_LIBS=$LIBS 12316 LIBS="$lt_cv_dlopen_libs $LIBS" 12317 12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12319printf %s "checking whether a program can dlopen itself... " >&6; } 12320if test ${lt_cv_dlopen_self+y} 12321then : 12322 printf %s "(cached) " >&6 12323else $as_nop 12324 if test yes = "$cross_compiling"; then : 12325 lt_cv_dlopen_self=cross 12326else 12327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12328 lt_status=$lt_dlunknown 12329 cat > conftest.$ac_ext <<_LT_EOF 12330#line $LINENO "configure" 12331#include "confdefs.h" 12332 12333#if HAVE_DLFCN_H 12334#include <dlfcn.h> 12335#endif 12336 12337#include <stdio.h> 12338 12339#ifdef RTLD_GLOBAL 12340# define LT_DLGLOBAL RTLD_GLOBAL 12341#else 12342# ifdef DL_GLOBAL 12343# define LT_DLGLOBAL DL_GLOBAL 12344# else 12345# define LT_DLGLOBAL 0 12346# endif 12347#endif 12348 12349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12350 find out it does not work in some platform. */ 12351#ifndef LT_DLLAZY_OR_NOW 12352# ifdef RTLD_LAZY 12353# define LT_DLLAZY_OR_NOW RTLD_LAZY 12354# else 12355# ifdef DL_LAZY 12356# define LT_DLLAZY_OR_NOW DL_LAZY 12357# else 12358# ifdef RTLD_NOW 12359# define LT_DLLAZY_OR_NOW RTLD_NOW 12360# else 12361# ifdef DL_NOW 12362# define LT_DLLAZY_OR_NOW DL_NOW 12363# else 12364# define LT_DLLAZY_OR_NOW 0 12365# endif 12366# endif 12367# endif 12368# endif 12369#endif 12370 12371/* When -fvisibility=hidden is used, assume the code has been annotated 12372 correspondingly for the symbols needed. */ 12373#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12374int fnord () __attribute__((visibility("default"))); 12375#endif 12376 12377int fnord () { return 42; } 12378int main () 12379{ 12380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12381 int status = $lt_dlunknown; 12382 12383 if (self) 12384 { 12385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12386 else 12387 { 12388 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12389 else puts (dlerror ()); 12390 } 12391 /* dlclose (self); */ 12392 } 12393 else 12394 puts (dlerror ()); 12395 12396 return status; 12397} 12398_LT_EOF 12399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12400 (eval $ac_link) 2>&5 12401 ac_status=$? 12402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12403 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12404 (./conftest; exit; ) >&5 2>/dev/null 12405 lt_status=$? 12406 case x$lt_status in 12407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12410 esac 12411 else : 12412 # compilation failed 12413 lt_cv_dlopen_self=no 12414 fi 12415fi 12416rm -fr conftest* 12417 12418 12419fi 12420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12421printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12422 12423 if test yes = "$lt_cv_dlopen_self"; then 12424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12426printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12427if test ${lt_cv_dlopen_self_static+y} 12428then : 12429 printf %s "(cached) " >&6 12430else $as_nop 12431 if test yes = "$cross_compiling"; then : 12432 lt_cv_dlopen_self_static=cross 12433else 12434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12435 lt_status=$lt_dlunknown 12436 cat > conftest.$ac_ext <<_LT_EOF 12437#line $LINENO "configure" 12438#include "confdefs.h" 12439 12440#if HAVE_DLFCN_H 12441#include <dlfcn.h> 12442#endif 12443 12444#include <stdio.h> 12445 12446#ifdef RTLD_GLOBAL 12447# define LT_DLGLOBAL RTLD_GLOBAL 12448#else 12449# ifdef DL_GLOBAL 12450# define LT_DLGLOBAL DL_GLOBAL 12451# else 12452# define LT_DLGLOBAL 0 12453# endif 12454#endif 12455 12456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12457 find out it does not work in some platform. */ 12458#ifndef LT_DLLAZY_OR_NOW 12459# ifdef RTLD_LAZY 12460# define LT_DLLAZY_OR_NOW RTLD_LAZY 12461# else 12462# ifdef DL_LAZY 12463# define LT_DLLAZY_OR_NOW DL_LAZY 12464# else 12465# ifdef RTLD_NOW 12466# define LT_DLLAZY_OR_NOW RTLD_NOW 12467# else 12468# ifdef DL_NOW 12469# define LT_DLLAZY_OR_NOW DL_NOW 12470# else 12471# define LT_DLLAZY_OR_NOW 0 12472# endif 12473# endif 12474# endif 12475# endif 12476#endif 12477 12478/* When -fvisibility=hidden is used, assume the code has been annotated 12479 correspondingly for the symbols needed. */ 12480#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12481int fnord () __attribute__((visibility("default"))); 12482#endif 12483 12484int fnord () { return 42; } 12485int main () 12486{ 12487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12488 int status = $lt_dlunknown; 12489 12490 if (self) 12491 { 12492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12493 else 12494 { 12495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12496 else puts (dlerror ()); 12497 } 12498 /* dlclose (self); */ 12499 } 12500 else 12501 puts (dlerror ()); 12502 12503 return status; 12504} 12505_LT_EOF 12506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12507 (eval $ac_link) 2>&5 12508 ac_status=$? 12509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12510 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12511 (./conftest; exit; ) >&5 2>/dev/null 12512 lt_status=$? 12513 case x$lt_status in 12514 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12515 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12516 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12517 esac 12518 else : 12519 # compilation failed 12520 lt_cv_dlopen_self_static=no 12521 fi 12522fi 12523rm -fr conftest* 12524 12525 12526fi 12527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12528printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12529 fi 12530 12531 CPPFLAGS=$save_CPPFLAGS 12532 LDFLAGS=$save_LDFLAGS 12533 LIBS=$save_LIBS 12534 ;; 12535 esac 12536 12537 case $lt_cv_dlopen_self in 12538 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12539 *) enable_dlopen_self=unknown ;; 12540 esac 12541 12542 case $lt_cv_dlopen_self_static in 12543 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12544 *) enable_dlopen_self_static=unknown ;; 12545 esac 12546fi 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564striplib= 12565old_striplib= 12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12567printf %s "checking whether stripping libraries is possible... " >&6; } 12568if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12569 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12570 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12572printf "%s\n" "yes" >&6; } 12573else 12574# FIXME - insert some real tests, host_os isn't really good enough 12575 case $host_os in 12576 darwin*) 12577 if test -n "$STRIP"; then 12578 striplib="$STRIP -x" 12579 old_striplib="$STRIP -S" 12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12581printf "%s\n" "yes" >&6; } 12582 else 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12584printf "%s\n" "no" >&6; } 12585 fi 12586 ;; 12587 *) 12588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12589printf "%s\n" "no" >&6; } 12590 ;; 12591 esac 12592fi 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 # Report what library types will actually be built 12606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12607printf %s "checking if libtool supports shared libraries... " >&6; } 12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12609printf "%s\n" "$can_build_shared" >&6; } 12610 12611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12612printf %s "checking whether to build shared libraries... " >&6; } 12613 test no = "$can_build_shared" && enable_shared=no 12614 12615 # On AIX, shared libraries and static libraries use the same namespace, and 12616 # are all built from PIC. 12617 case $host_os in 12618 aix3*) 12619 test yes = "$enable_shared" && enable_static=no 12620 if test -n "$RANLIB"; then 12621 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12622 postinstall_cmds='$RANLIB $lib' 12623 fi 12624 ;; 12625 12626 aix[4-9]*) 12627 if test ia64 != "$host_cpu"; then 12628 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12629 yes,aix,yes) ;; # shared object as lib.so file only 12630 yes,svr4,*) ;; # shared object as lib.so archive member only 12631 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12632 esac 12633 fi 12634 ;; 12635 esac 12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12637printf "%s\n" "$enable_shared" >&6; } 12638 12639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12640printf %s "checking whether to build static libraries... " >&6; } 12641 # Make sure either enable_shared or enable_static is yes. 12642 test yes = "$enable_shared" || enable_static=yes 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12644printf "%s\n" "$enable_static" >&6; } 12645 12646 12647 12648 12649fi 12650ac_ext=c 12651ac_cpp='$CPP $CPPFLAGS' 12652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12654ac_compiler_gnu=$ac_cv_c_compiler_gnu 12655 12656CC=$lt_save_CC 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 ac_config_commands="$ac_config_commands libtool" 12673 12674 12675 12676 12677# Only expand once: 12678 12679 12680 12681 12682# Check whether --with-gnu-ld was given. 12683if test ${with_gnu_ld+y} 12684then : 12685 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12686else $as_nop 12687 with_gnu_ld=no 12688fi 12689 12690ac_prog=ld 12691if test yes = "$GCC"; then 12692 # Check if gcc -print-prog-name=ld gives a path. 12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12694printf %s "checking for ld used by $CC... " >&6; } 12695 case $host in 12696 *-*-mingw*) 12697 # gcc leaves a trailing carriage return, which upsets mingw 12698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12699 *) 12700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12701 esac 12702 case $ac_prog in 12703 # Accept absolute paths. 12704 [\\/]* | ?:[\\/]*) 12705 re_direlt='/[^/][^/]*/\.\./' 12706 # Canonicalize the pathname of ld 12707 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12708 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12709 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12710 done 12711 test -z "$LD" && LD=$ac_prog 12712 ;; 12713 "") 12714 # If it fails, then pretend we aren't using GCC. 12715 ac_prog=ld 12716 ;; 12717 *) 12718 # If it is relative, then search for the first ld in PATH. 12719 with_gnu_ld=unknown 12720 ;; 12721 esac 12722elif test yes = "$with_gnu_ld"; then 12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12724printf %s "checking for GNU ld... " >&6; } 12725else 12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12727printf %s "checking for non-GNU ld... " >&6; } 12728fi 12729if test ${lt_cv_path_LD+y} 12730then : 12731 printf %s "(cached) " >&6 12732else $as_nop 12733 if test -z "$LD"; then 12734 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12735 for ac_dir in $PATH; do 12736 IFS=$lt_save_ifs 12737 test -z "$ac_dir" && ac_dir=. 12738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12739 lt_cv_path_LD=$ac_dir/$ac_prog 12740 # Check to see if the program is GNU ld. I'd rather use --version, 12741 # but apparently some variants of GNU ld only accept -v. 12742 # Break only if it was the GNU/non-GNU ld that we prefer. 12743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12744 *GNU* | *'with BFD'*) 12745 test no != "$with_gnu_ld" && break 12746 ;; 12747 *) 12748 test yes != "$with_gnu_ld" && break 12749 ;; 12750 esac 12751 fi 12752 done 12753 IFS=$lt_save_ifs 12754else 12755 lt_cv_path_LD=$LD # Let the user override the test with a path. 12756fi 12757fi 12758 12759LD=$lt_cv_path_LD 12760if test -n "$LD"; then 12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12762printf "%s\n" "$LD" >&6; } 12763else 12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12765printf "%s\n" "no" >&6; } 12766fi 12767test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12769printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12770if test ${lt_cv_prog_gnu_ld+y} 12771then : 12772 printf %s "(cached) " >&6 12773else $as_nop 12774 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12775case `$LD -v 2>&1 </dev/null` in 12776*GNU* | *'with BFD'*) 12777 lt_cv_prog_gnu_ld=yes 12778 ;; 12779*) 12780 lt_cv_prog_gnu_ld=no 12781 ;; 12782esac 12783fi 12784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12785printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12786with_gnu_ld=$lt_cv_prog_gnu_ld 12787 12788 12789 12790 12791 12792 12793 12794with_ldflags="" 12795if test "x$lt_cv_prog_gnu_ld" = "xyes"; then 12796 12797 for flag in \ 12798 -Wl,--as-needed \ 12799 -Wl,--gc-sections \ 12800 -Wl,-z,relro \ 12801 -Wl,-z,now; do 12802 12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5 12804printf %s "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; } 12805if { as_var=`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 12806then : 12807 printf %s "(cached) " >&6 12808else $as_nop 12809 eval "cc_save_LDFLAGS='${LDFLAGS}'" 12810 eval "LDFLAGS='-Werror $flag'" 12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12812/* end confdefs.h. */ 12813int a = 0; int main(void) { return a; } 12814_ACEOF 12815if ac_fn_c_try_link "$LINENO" 12816then : 12817 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'" 12818else $as_nop 12819 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'" 12820fi 12821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12822 conftest$ac_exeext conftest.$ac_ext 12823 eval "LDFLAGS='$cc_save_LDFLAGS'" 12824fi 12825eval ac_res=\$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh` 12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12827printf "%s\n" "$ac_res" >&6; } 12828 12829 if eval test x$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes 12830then : 12831 eval "with_ldflags='${with_ldflags} $flag'" 12832fi 12833 12834 done 12835 12836fi 12837GNU_LD_FLAGS=$with_ldflags 12838 12839 12840case "${host_os}" in 12841 freebsd*) 12842OS=freebsd 12843 12844 ;; 12845 *) 12846OS=linux 12847 12848 ;; 12849esac 12850 12851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5 12852printf %s "checking for round in -lm... " >&6; } 12853if test ${ac_cv_lib_m_round+y} 12854then : 12855 printf %s "(cached) " >&6 12856else $as_nop 12857 ac_check_lib_save_LIBS=$LIBS 12858LIBS="-lm $LIBS" 12859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861 12862/* Override any GCC internal prototype to avoid an error. 12863 Use char because int might match the return type of a GCC 12864 builtin and then its argument prototype would still apply. */ 12865char round (); 12866int 12867main (void) 12868{ 12869return round (); 12870 ; 12871 return 0; 12872} 12873_ACEOF 12874if ac_fn_c_try_link "$LINENO" 12875then : 12876 ac_cv_lib_m_round=yes 12877else $as_nop 12878 ac_cv_lib_m_round=no 12879fi 12880rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12881 conftest$ac_exeext conftest.$ac_ext 12882LIBS=$ac_check_lib_save_LIBS 12883fi 12884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5 12885printf "%s\n" "$ac_cv_lib_m_round" >&6; } 12886if test "x$ac_cv_lib_m_round" = xyes 12887then : 12888 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 12889 12890 LIBS="-lm $LIBS" 12891 12892fi 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12903 if test -n "$ac_tool_prefix"; then 12904 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12905set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12907printf %s "checking for $ac_word... " >&6; } 12908if test ${ac_cv_path_PKG_CONFIG+y} 12909then : 12910 printf %s "(cached) " >&6 12911else $as_nop 12912 case $PKG_CONFIG in 12913 [\\/]* | ?:[\\/]*) 12914 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12915 ;; 12916 *) 12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12918for as_dir in $PATH 12919do 12920 IFS=$as_save_IFS 12921 case $as_dir in #((( 12922 '') as_dir=./ ;; 12923 */) ;; 12924 *) as_dir=$as_dir/ ;; 12925 esac 12926 for ac_exec_ext in '' $ac_executable_extensions; do 12927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12928 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12930 break 2 12931 fi 12932done 12933 done 12934IFS=$as_save_IFS 12935 12936 ;; 12937esac 12938fi 12939PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12940if test -n "$PKG_CONFIG"; then 12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12942printf "%s\n" "$PKG_CONFIG" >&6; } 12943else 12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12945printf "%s\n" "no" >&6; } 12946fi 12947 12948 12949fi 12950if test -z "$ac_cv_path_PKG_CONFIG"; then 12951 ac_pt_PKG_CONFIG=$PKG_CONFIG 12952 # Extract the first word of "pkg-config", so it can be a program name with args. 12953set dummy pkg-config; ac_word=$2 12954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12955printf %s "checking for $ac_word... " >&6; } 12956if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12957then : 12958 printf %s "(cached) " >&6 12959else $as_nop 12960 case $ac_pt_PKG_CONFIG in 12961 [\\/]* | ?:[\\/]*) 12962 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12963 ;; 12964 *) 12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12966for as_dir in $PATH 12967do 12968 IFS=$as_save_IFS 12969 case $as_dir in #((( 12970 '') as_dir=./ ;; 12971 */) ;; 12972 *) as_dir=$as_dir/ ;; 12973 esac 12974 for ac_exec_ext in '' $ac_executable_extensions; do 12975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12976 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12978 break 2 12979 fi 12980done 12981 done 12982IFS=$as_save_IFS 12983 12984 ;; 12985esac 12986fi 12987ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12988if test -n "$ac_pt_PKG_CONFIG"; then 12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12990printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12991else 12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12993printf "%s\n" "no" >&6; } 12994fi 12995 12996 if test "x$ac_pt_PKG_CONFIG" = x; then 12997 PKG_CONFIG="" 12998 else 12999 case $cross_compiling:$ac_tool_warned in 13000yes:) 13001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13002printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13003ac_tool_warned=yes ;; 13004esac 13005 PKG_CONFIG=$ac_pt_PKG_CONFIG 13006 fi 13007else 13008 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13009fi 13010 13011fi 13012if test -n "$PKG_CONFIG"; then 13013 _pkg_min_version=0.9.0 13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13015printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13016 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13018printf "%s\n" "yes" >&6; } 13019 else 13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13021printf "%s\n" "no" >&6; } 13022 PKG_CONFIG="" 13023 fi 13024fi 13025 13026pkg_failed=no 13027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 13028printf %s "checking for CHECK... " >&6; } 13029 13030if test -n "$CHECK_CFLAGS"; then 13031 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 13032 elif test -n "$PKG_CONFIG"; then 13033 if test -n "$PKG_CONFIG" && \ 13034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5 13035 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5 13036 ac_status=$? 13037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13038 test $ac_status = 0; }; then 13039 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.9" 2>/dev/null` 13040 test "x$?" != "x0" && pkg_failed=yes 13041else 13042 pkg_failed=yes 13043fi 13044 else 13045 pkg_failed=untried 13046fi 13047if test -n "$CHECK_LIBS"; then 13048 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 13049 elif test -n "$PKG_CONFIG"; then 13050 if test -n "$PKG_CONFIG" && \ 13051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5 13052 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5 13053 ac_status=$? 13054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13055 test $ac_status = 0; }; then 13056 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.9" 2>/dev/null` 13057 test "x$?" != "x0" && pkg_failed=yes 13058else 13059 pkg_failed=yes 13060fi 13061 else 13062 pkg_failed=untried 13063fi 13064 13065 13066 13067if test $pkg_failed = yes; then 13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069printf "%s\n" "no" >&6; } 13070 13071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13072 _pkg_short_errors_supported=yes 13073else 13074 _pkg_short_errors_supported=no 13075fi 13076 if test $_pkg_short_errors_supported = yes; then 13077 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.9" 2>&1` 13078 else 13079 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.9" 2>&1` 13080 fi 13081 # Put the nasty error message in config.log where it belongs 13082 echo "$CHECK_PKG_ERRORS" >&5 13083 13084 HAVE_CHECK="no" 13085elif test $pkg_failed = untried; then 13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13087printf "%s\n" "no" >&6; } 13088 HAVE_CHECK="no" 13089else 13090 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 13091 CHECK_LIBS=$pkg_cv_CHECK_LIBS 13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13093printf "%s\n" "yes" >&6; } 13094 HAVE_CHECK="yes" 13095fi 13096if test "x$HAVE_CHECK" = "xyes"; then 13097 # Extract the first word of "valgrind", so it can be a program name with args. 13098set dummy valgrind; ac_word=$2 13099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13100printf %s "checking for $ac_word... " >&6; } 13101if test ${ac_cv_path_VALGRIND+y} 13102then : 13103 printf %s "(cached) " >&6 13104else $as_nop 13105 case $VALGRIND in 13106 [\\/]* | ?:[\\/]*) 13107 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. 13108 ;; 13109 *) 13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13111for as_dir in $PATH 13112do 13113 IFS=$as_save_IFS 13114 case $as_dir in #((( 13115 '') as_dir=./ ;; 13116 */) ;; 13117 *) as_dir=$as_dir/ ;; 13118 esac 13119 for ac_exec_ext in '' $ac_executable_extensions; do 13120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13121 ac_cv_path_VALGRIND="$as_dir$ac_word$ac_exec_ext" 13122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13123 break 2 13124 fi 13125done 13126 done 13127IFS=$as_save_IFS 13128 13129 ;; 13130esac 13131fi 13132VALGRIND=$ac_cv_path_VALGRIND 13133if test -n "$VALGRIND"; then 13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 13135printf "%s\n" "$VALGRIND" >&6; } 13136else 13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13138printf "%s\n" "no" >&6; } 13139fi 13140 13141 13142else 13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check not found - skipping building unit tests" >&5 13144printf "%s\n" "$as_me: WARNING: check not found - skipping building unit tests" >&2;} 13145fi 13146 if test "x$VALGRIND" != "x"; then 13147 HAVE_VALGRIND_TRUE= 13148 HAVE_VALGRIND_FALSE='#' 13149else 13150 HAVE_VALGRIND_TRUE='#' 13151 HAVE_VALGRIND_FALSE= 13152fi 13153 13154 if test "x$HAVE_CHECK" = "xyes"; then 13155 ENABLE_RUNTIME_TESTS_TRUE= 13156 ENABLE_RUNTIME_TESTS_FALSE='#' 13157else 13158 ENABLE_RUNTIME_TESTS_TRUE='#' 13159 ENABLE_RUNTIME_TESTS_FALSE= 13160fi 13161 13162 if test "x$enable_static" = "xyes"; then 13163 ENABLE_STATIC_LINK_TEST_TRUE= 13164 ENABLE_STATIC_LINK_TEST_FALSE='#' 13165else 13166 ENABLE_STATIC_LINK_TEST_TRUE='#' 13167 ENABLE_STATIC_LINK_TEST_FALSE= 13168fi 13169 13170 13171with_cflags="" 13172if test "x$GCC" = "xyes"; then 13173 13174 for flag in \ 13175 -Wall \ 13176 -Wextra \ 13177 -Wno-unused-parameter \ 13178 -Wstrict-prototypes \ 13179 -Wmissing-prototypes \ 13180 -fvisibility=hidden \ 13181 -pipe \ 13182 -fno-strict-aliasing \ 13183 -ffunction-sections \ 13184 -fdata-sections \ 13185 -fno-strict-aliasing \ 13186 -fdiagnostics-show-option \ 13187 -fno-common; do 13188 13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 13190printf %s "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } 13191if { as_var=`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 13192then : 13193 printf %s "(cached) " >&6 13194else $as_nop 13195 eval "cc_save_CFLAGS='${CFLAGS}'" 13196 eval "CFLAGS='-Werror $flag'" 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198/* end confdefs.h. */ 13199int a = 0; int main(void) { return a; } 13200_ACEOF 13201if ac_fn_c_try_link "$LINENO" 13202then : 13203 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" 13204else $as_nop 13205 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" 13206fi 13207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13208 conftest$ac_exeext conftest.$ac_ext 13209 eval "CFLAGS='$cc_save_CFLAGS'" 13210fi 13211eval ac_res=\$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` 13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13213printf "%s\n" "$ac_res" >&6; } 13214 13215 if eval test x$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes 13216then : 13217 eval "with_cflags='${with_cflags} $flag'" 13218fi 13219 13220 done 13221 13222fi 13223GCC_CFLAGS=$with_cflags 13224 13225 13226# Extract the first word of "doxygen", so it can be a program name with args. 13227set dummy doxygen; ac_word=$2 13228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13229printf %s "checking for $ac_word... " >&6; } 13230if test ${ac_cv_path_DOXYGEN+y} 13231then : 13232 printf %s "(cached) " >&6 13233else $as_nop 13234 case $DOXYGEN in 13235 [\\/]* | ?:[\\/]*) 13236 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13237 ;; 13238 *) 13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13240for as_dir in $PATH 13241do 13242 IFS=$as_save_IFS 13243 case $as_dir in #((( 13244 '') as_dir=./ ;; 13245 */) ;; 13246 *) as_dir=$as_dir/ ;; 13247 esac 13248 for ac_exec_ext in '' $ac_executable_extensions; do 13249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13250 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13252 break 2 13253 fi 13254done 13255 done 13256IFS=$as_save_IFS 13257 13258 ;; 13259esac 13260fi 13261DOXYGEN=$ac_cv_path_DOXYGEN 13262if test -n "$DOXYGEN"; then 13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13264printf "%s\n" "$DOXYGEN" >&6; } 13265else 13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13267printf "%s\n" "no" >&6; } 13268fi 13269 13270 13271if test "x$DOXYGEN" = "x"; then 13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - required for documentation" >&5 13273printf "%s\n" "$as_me: WARNING: doxygen not found - required for documentation" >&2;} 13274 have_doxygen="no" 13275else 13276 have_doxygen="yes" 13277fi 13278 if test "x$have_doxygen" = "xyes"; then 13279 HAVE_DOXYGEN_TRUE= 13280 HAVE_DOXYGEN_FALSE='#' 13281else 13282 HAVE_DOXYGEN_TRUE='#' 13283 HAVE_DOXYGEN_FALSE= 13284fi 13285 13286 13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov" >&5 13288printf %s "checking whether to build with gcov... " >&6; } 13289# Check whether --enable-gcov was given. 13290if test ${enable_gcov+y} 13291then : 13292 enableval=$enable_gcov; 13293else $as_nop 13294 enable_gcov=no 13295fi 13296 13297if test "x$enable_gcov" != "xno" 13298then : 13299 13300 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage" 13301 GCOV_LDFLAGS="-lgcov" 13302 enable_gcov=yes 13303 13304fi 13305 if test "x$enable_gcov" != "xno"; then 13306 GCOV_ENABLED_TRUE= 13307 GCOV_ENABLED_FALSE='#' 13308else 13309 GCOV_ENABLED_TRUE='#' 13310 GCOV_ENABLED_FALSE= 13311fi 13312 13313 13314 13315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5 13316printf "%s\n" "$enable_gcov" >&6; } 13317 13318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with coverity support" >&5 13319printf %s "checking whether to build with coverity support... " >&6; } 13320# Check whether --enable-coverity was given. 13321if test ${enable_coverity+y} 13322then : 13323 enableval=$enable_coverity; 13324else $as_nop 13325 enable_coverity=no 13326fi 13327 13328if test "x$enable_coverity" != "xno" 13329then : 13330 13331 13332printf "%s\n" "#define _Float128 __uint128_t" >>confdefs.h 13333 13334 13335printf "%s\n" "#define _Float32 int" >>confdefs.h 13336 13337 13338printf "%s\n" "#define _Float32x int" >>confdefs.h 13339 13340 13341printf "%s\n" "#define _Float64 long" >>confdefs.h 13342 13343 13344printf "%s\n" "#define _Float64x long" >>confdefs.h 13345 13346 enable_coverity=yes 13347 13348fi 13349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverity" >&5 13350printf "%s\n" "$enable_coverity" >&6; } 13351 13352 13353 13354 13355 13356 13357 13358 13359 if test -n "$PYTHON"; then 13360 # If the user set $PYTHON, use it and don't search something else. 13361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 13362printf %s "checking whether $PYTHON version is >= 2.6... " >&6; } 13363 prog="import sys 13364# split strings by '.' and convert to numeric. Append some zeros 13365# because we need at least 4 digits for the hex conversion. 13366# map returns an iterator in Python 3.0 and a list in 2.x 13367minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 13368minverhex = 0 13369# xrange is not present in Python 3.0 and range returns an iterator 13370for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 13371sys.exit(sys.hexversion < minverhex)" 13372 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 13373 ($PYTHON -c "$prog") >&5 2>&5 13374 ac_status=$? 13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13376 (exit $ac_status); } 13377then : 13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13379printf "%s\n" "yes" >&6; } 13380else $as_nop 13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13382printf "%s\n" "no" >&6; } 13383 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 13384fi 13385 am_display_PYTHON=$PYTHON 13386 else 13387 # Otherwise, try each interpreter until we find one that satisfies 13388 # VERSION. 13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 13390printf %s "checking for a Python interpreter with version >= 2.6... " >&6; } 13391if test ${am_cv_pathless_PYTHON+y} 13392then : 13393 printf %s "(cached) " >&6 13394else $as_nop 13395 13396 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 13397 test "$am_cv_pathless_PYTHON" = none && break 13398 prog="import sys 13399# split strings by '.' and convert to numeric. Append some zeros 13400# because we need at least 4 digits for the hex conversion. 13401# map returns an iterator in Python 3.0 and a list in 2.x 13402minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 13403minverhex = 0 13404# xrange is not present in Python 3.0 and range returns an iterator 13405for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 13406sys.exit(sys.hexversion < minverhex)" 13407 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 13408 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 13409 ac_status=$? 13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13411 (exit $ac_status); } 13412then : 13413 break 13414fi 13415 done 13416fi 13417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 13418printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 13419 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 13420 if test "$am_cv_pathless_PYTHON" = none; then 13421 PYTHON=: 13422 else 13423 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 13424set dummy $am_cv_pathless_PYTHON; ac_word=$2 13425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13426printf %s "checking for $ac_word... " >&6; } 13427if test ${ac_cv_path_PYTHON+y} 13428then : 13429 printf %s "(cached) " >&6 13430else $as_nop 13431 case $PYTHON in 13432 [\\/]* | ?:[\\/]*) 13433 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 13434 ;; 13435 *) 13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13437for as_dir in $PATH 13438do 13439 IFS=$as_save_IFS 13440 case $as_dir in #((( 13441 '') as_dir=./ ;; 13442 */) ;; 13443 *) as_dir=$as_dir/ ;; 13444 esac 13445 for ac_exec_ext in '' $ac_executable_extensions; do 13446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13447 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 13448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13449 break 2 13450 fi 13451done 13452 done 13453IFS=$as_save_IFS 13454 13455 ;; 13456esac 13457fi 13458PYTHON=$ac_cv_path_PYTHON 13459if test -n "$PYTHON"; then 13460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13461printf "%s\n" "$PYTHON" >&6; } 13462else 13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13464printf "%s\n" "no" >&6; } 13465fi 13466 13467 13468 fi 13469 am_display_PYTHON=$am_cv_pathless_PYTHON 13470 fi 13471 13472 13473 if test "$PYTHON" = :; then 13474 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 13475 else 13476 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 13478printf %s "checking for $am_display_PYTHON version... " >&6; } 13479if test ${am_cv_python_version+y} 13480then : 13481 printf %s "(cached) " >&6 13482else $as_nop 13483 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 13484fi 13485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 13486printf "%s\n" "$am_cv_python_version" >&6; } 13487 PYTHON_VERSION=$am_cv_python_version 13488 13489 13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 13491printf %s "checking for $am_display_PYTHON platform... " >&6; } 13492if test ${am_cv_python_platform+y} 13493then : 13494 printf %s "(cached) " >&6 13495else $as_nop 13496 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 13497fi 13498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 13499printf "%s\n" "$am_cv_python_platform" >&6; } 13500 PYTHON_PLATFORM=$am_cv_python_platform 13501 13502 13503 if test "x$prefix" = xNONE; then 13504 am__usable_prefix=$ac_default_prefix 13505 else 13506 am__usable_prefix=$prefix 13507 fi 13508 13509 # Allow user to request using sys.* values from Python, 13510 # instead of the GNU $prefix values. 13511 13512# Check whether --with-python-sys-prefix was given. 13513if test ${with_python_sys_prefix+y} 13514then : 13515 withval=$with_python_sys_prefix; am_use_python_sys=: 13516else $as_nop 13517 am_use_python_sys=false 13518fi 13519 13520 13521 # Allow user to override whatever the default Python prefix is. 13522 13523# Check whether --with-python_prefix was given. 13524if test ${with_python_prefix+y} 13525then : 13526 withval=$with_python_prefix; am_python_prefix_subst=$withval 13527 am_cv_python_prefix=$withval 13528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 13529printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 13531printf "%s\n" "$am_cv_python_prefix" >&6; } 13532else $as_nop 13533 13534 if $am_use_python_sys; then 13535 # using python sys.prefix value, not GNU 13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 13537printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 13538if test ${am_cv_python_prefix+y} 13539then : 13540 printf %s "(cached) " >&6 13541else $as_nop 13542 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 13543fi 13544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 13545printf "%s\n" "$am_cv_python_prefix" >&6; } 13546 13547 case $am_cv_python_prefix in 13548 $am__usable_prefix*) 13549 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 13550 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 13551 ;; 13552 *) 13553 am_python_prefix_subst=$am_cv_python_prefix 13554 ;; 13555 esac 13556 else # using GNU prefix value, not python sys.prefix 13557 am_python_prefix_subst='${prefix}' 13558 am_python_prefix=$am_python_prefix_subst 13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 13560printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 13561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 13562printf "%s\n" "$am_python_prefix" >&6; } 13563 fi 13564fi 13565 13566 # Substituting python_prefix_subst value. 13567 PYTHON_PREFIX=$am_python_prefix_subst 13568 13569 13570 # emacs-page Now do it all over again for Python exec_prefix, but with yet 13571 # another conditional: fall back to regular prefix if that was specified. 13572 13573# Check whether --with-python_exec_prefix was given. 13574if test ${with_python_exec_prefix+y} 13575then : 13576 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 13577 am_cv_python_exec_prefix=$withval 13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 13579printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13581printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13582else $as_nop 13583 13584 # no explicit --with-python_exec_prefix, but if 13585 # --with-python_prefix was given, use its value for python_exec_prefix too. 13586 if test -n "$with_python_prefix" 13587then : 13588 am_python_exec_prefix_subst=$with_python_prefix 13589 am_cv_python_exec_prefix=$with_python_prefix 13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 13591printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13593printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13594else $as_nop 13595 13596 # Set am__usable_exec_prefix whether using GNU or Python values, 13597 # since we use that variable for pyexecdir. 13598 if test "x$exec_prefix" = xNONE; then 13599 am__usable_exec_prefix=$am__usable_prefix 13600 else 13601 am__usable_exec_prefix=$exec_prefix 13602 fi 13603 # 13604 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 13606printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 13607if test ${am_cv_python_exec_prefix+y} 13608then : 13609 printf %s "(cached) " >&6 13610else $as_nop 13611 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 13612fi 13613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13614printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13615 case $am_cv_python_exec_prefix in 13616 $am__usable_exec_prefix*) 13617 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 13618 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 13619 ;; 13620 *) 13621 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 13622 ;; 13623 esac 13624 else # using GNU $exec_prefix, not python sys.exec_prefix 13625 am_python_exec_prefix_subst='${exec_prefix}' 13626 am_python_exec_prefix=$am_python_exec_prefix_subst 13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 13628printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 13630printf "%s\n" "$am_python_exec_prefix" >&6; } 13631 fi 13632fi 13633fi 13634 13635 # Substituting python_exec_prefix_subst. 13636 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 13637 13638 13639 # Factor out some code duplication into this shell variable. 13640 am_python_setup_sysconfig="\ 13641import sys 13642# Prefer sysconfig over distutils.sysconfig, for better compatibility 13643# with python 3.x. See automake bug#10227. 13644try: 13645 import sysconfig 13646except ImportError: 13647 can_use_sysconfig = 0 13648else: 13649 can_use_sysconfig = 1 13650# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 13651# <https://github.com/pypa/virtualenv/issues/118> 13652try: 13653 from platform import python_implementation 13654 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 13655 can_use_sysconfig = 0 13656except ImportError: 13657 pass" 13658 13659 13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 13661printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 13662if test ${am_cv_python_pythondir+y} 13663then : 13664 printf %s "(cached) " >&6 13665else $as_nop 13666 if test "x$am_cv_python_prefix" = x; then 13667 am_py_prefix=$am__usable_prefix 13668 else 13669 am_py_prefix=$am_cv_python_prefix 13670 fi 13671 am_cv_python_pythondir=`$PYTHON -c " 13672$am_python_setup_sysconfig 13673if can_use_sysconfig: 13674 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 13675else: 13676 from distutils import sysconfig 13677 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 13678sys.stdout.write(sitedir)"` 13679 # 13680 case $am_cv_python_pythondir in 13681 $am_py_prefix*) 13682 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 13683 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 13684 ;; 13685 *) 13686 case $am_py_prefix in 13687 /usr|/System*) ;; 13688 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 13689 ;; 13690 esac 13691 ;; 13692 esac 13693 13694fi 13695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 13696printf "%s\n" "$am_cv_python_pythondir" >&6; } 13697 pythondir=$am_cv_python_pythondir 13698 13699 13700 pkgpythondir=\${pythondir}/$PACKAGE 13701 13702 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 13704printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 13705if test ${am_cv_python_pyexecdir+y} 13706then : 13707 printf %s "(cached) " >&6 13708else $as_nop 13709 if test "x$am_cv_python_exec_prefix" = x; then 13710 am_py_exec_prefix=$am__usable_exec_prefix 13711 else 13712 am_py_exec_prefix=$am_cv_python_exec_prefix 13713 fi 13714 am_cv_python_pyexecdir=`$PYTHON -c " 13715$am_python_setup_sysconfig 13716if can_use_sysconfig: 13717 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 13718else: 13719 from distutils import sysconfig 13720 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 13721sys.stdout.write(sitedir)"` 13722 # 13723 case $am_cv_python_pyexecdir in 13724 $am_py_exec_prefix*) 13725 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 13726 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 13727 ;; 13728 *) 13729 case $am_py_exec_prefix in 13730 /usr|/System*) ;; 13731 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 13732 ;; 13733 esac 13734 ;; 13735 esac 13736 13737fi 13738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 13739printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 13740 pyexecdir=$am_cv_python_pyexecdir 13741 13742 13743 pkgpyexecdir=\${pyexecdir}/$PACKAGE 13744 13745 13746 13747 fi 13748 13749 13750# nm to check for leaking symbols in the static library 13751# Extract the first word of "nm", so it can be a program name with args. 13752set dummy nm; ac_word=$2 13753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13754printf %s "checking for $ac_word... " >&6; } 13755if test ${ac_cv_path_NM+y} 13756then : 13757 printf %s "(cached) " >&6 13758else $as_nop 13759 case $NM in 13760 [\\/]* | ?:[\\/]*) 13761 ac_cv_path_NM="$NM" # Let the user override the test with a path. 13762 ;; 13763 *) 13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13765for as_dir in $PATH 13766do 13767 IFS=$as_save_IFS 13768 case $as_dir in #((( 13769 '') as_dir=./ ;; 13770 */) ;; 13771 *) as_dir=$as_dir/ ;; 13772 esac 13773 for ac_exec_ext in '' $ac_executable_extensions; do 13774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13775 ac_cv_path_NM="$as_dir$ac_word$ac_exec_ext" 13776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13777 break 2 13778 fi 13779done 13780 done 13781IFS=$as_save_IFS 13782 13783 ;; 13784esac 13785fi 13786NM=$ac_cv_path_NM 13787if test -n "$NM"; then 13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 13789printf "%s\n" "$NM" >&6; } 13790else 13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13792printf "%s\n" "no" >&6; } 13793fi 13794 13795 13796 if test "x$NM" != "x"; then 13797 HAVE_NM_TRUE= 13798 HAVE_NM_FALSE='#' 13799else 13800 HAVE_NM_TRUE='#' 13801 HAVE_NM_FALSE= 13802fi 13803 13804if test "x$enable_static" = "xno"; then 13805 static_symbol_leaks_test="no - static build disabled" 13806else 13807 if test "x$NM" = "x"; then 13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nm not found - skipping symbol leak test" >&5 13809printf "%s\n" "$as_me: WARNING: nm not found - skipping symbol leak test" >&2;} 13810 have_nm="no" 13811 static_symbol_leaks_test="no - nm not found" 13812 else 13813 have_nm="yes" 13814 static_symbol_leaks_test="yes" 13815 fi 13816fi 13817 13818 if test "x$static_symbol_leaks_test" = "xyes"; then 13819 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE= 13820 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE='#' 13821else 13822 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE='#' 13823 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE= 13824fi 13825 13826 13827ac_config_files="$ac_config_files Makefile libevdev/Makefile doc/Makefile doc/libevdev.doxygen doc/libevdev.man tools/Makefile test/Makefile libevdev.pc" 13828 13829cat >confcache <<\_ACEOF 13830# This file is a shell script that caches the results of configure 13831# tests run on this system so they can be shared between configure 13832# scripts and configure runs, see configure's option --config-cache. 13833# It is not useful on other systems. If it contains results you don't 13834# want to keep, you may remove or edit it. 13835# 13836# config.status only pays attention to the cache file if you give it 13837# the --recheck option to rerun configure. 13838# 13839# `ac_cv_env_foo' variables (set or unset) will be overridden when 13840# loading this file, other *unset* `ac_cv_foo' will be assigned the 13841# following values. 13842 13843_ACEOF 13844 13845# The following way of writing the cache mishandles newlines in values, 13846# but we know of no workaround that is simple, portable, and efficient. 13847# So, we kill variables containing newlines. 13848# Ultrix sh set writes to stderr and can't be redirected directly, 13849# and sets the high bit in the cache file unless we assign to the vars. 13850( 13851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13852 eval ac_val=\$$ac_var 13853 case $ac_val in #( 13854 *${as_nl}*) 13855 case $ac_var in #( 13856 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13857printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13858 esac 13859 case $ac_var in #( 13860 _ | IFS | as_nl) ;; #( 13861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13862 *) { eval $ac_var=; unset $ac_var;} ;; 13863 esac ;; 13864 esac 13865 done 13866 13867 (set) 2>&1 | 13868 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13869 *${as_nl}ac_space=\ *) 13870 # `set' does not quote correctly, so add quotes: double-quote 13871 # substitution turns \\\\ into \\, and sed turns \\ into \. 13872 sed -n \ 13873 "s/'/'\\\\''/g; 13874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13875 ;; #( 13876 *) 13877 # `set' quotes correctly as required by POSIX, so do not add quotes. 13878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13879 ;; 13880 esac | 13881 sort 13882) | 13883 sed ' 13884 /^ac_cv_env_/b end 13885 t clear 13886 :clear 13887 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 13888 t end 13889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13890 :end' >>confcache 13891if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13892 if test -w "$cache_file"; then 13893 if test "x$cache_file" != "x/dev/null"; then 13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13895printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 13896 if test ! -f "$cache_file" || test -h "$cache_file"; then 13897 cat confcache >"$cache_file" 13898 else 13899 case $cache_file in #( 13900 */* | ?:*) 13901 mv -f confcache "$cache_file"$$ && 13902 mv -f "$cache_file"$$ "$cache_file" ;; #( 13903 *) 13904 mv -f confcache "$cache_file" ;; 13905 esac 13906 fi 13907 fi 13908 else 13909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13910printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 13911 fi 13912fi 13913rm -f confcache 13914 13915test "x$prefix" = xNONE && prefix=$ac_default_prefix 13916# Let make expand exec_prefix. 13917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13918 13919DEFS=-DHAVE_CONFIG_H 13920 13921ac_libobjs= 13922ac_ltlibobjs= 13923U= 13924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13925 # 1. Remove the extension, and $U if already installed. 13926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13927 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 13928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13929 # will be set to the directory where LIBOBJS objects are built. 13930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13932done 13933LIBOBJS=$ac_libobjs 13934 13935LTLIBOBJS=$ac_ltlibobjs 13936 13937 13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13939printf %s "checking that generated files are newer than configure... " >&6; } 13940 if test -n "$am_sleep_pid"; then 13941 # Hide warnings about reused PIDs. 13942 wait $am_sleep_pid 2>/dev/null 13943 fi 13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 13945printf "%s\n" "done" >&6; } 13946if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13947 as_fn_error $? "conditional \"AMDEP\" was never defined. 13948Usually this means the macro was only invoked conditionally." "$LINENO" 5 13949fi 13950if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13952Usually this means the macro was only invoked conditionally." "$LINENO" 5 13953fi 13954 if test -n "$EXEEXT"; then 13955 am__EXEEXT_TRUE= 13956 am__EXEEXT_FALSE='#' 13957else 13958 am__EXEEXT_TRUE='#' 13959 am__EXEEXT_FALSE= 13960fi 13961 13962if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then 13963 as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined. 13964Usually this means the macro was only invoked conditionally." "$LINENO" 5 13965fi 13966if test -z "${ENABLE_RUNTIME_TESTS_TRUE}" && test -z "${ENABLE_RUNTIME_TESTS_FALSE}"; then 13967 as_fn_error $? "conditional \"ENABLE_RUNTIME_TESTS\" was never defined. 13968Usually this means the macro was only invoked conditionally." "$LINENO" 5 13969fi 13970if test -z "${ENABLE_STATIC_LINK_TEST_TRUE}" && test -z "${ENABLE_STATIC_LINK_TEST_FALSE}"; then 13971 as_fn_error $? "conditional \"ENABLE_STATIC_LINK_TEST\" was never defined. 13972Usually this means the macro was only invoked conditionally." "$LINENO" 5 13973fi 13974if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 13975 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 13976Usually this means the macro was only invoked conditionally." "$LINENO" 5 13977fi 13978if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then 13979 as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined. 13980Usually this means the macro was only invoked conditionally." "$LINENO" 5 13981fi 13982if test -z "${HAVE_NM_TRUE}" && test -z "${HAVE_NM_FALSE}"; then 13983 as_fn_error $? "conditional \"HAVE_NM\" was never defined. 13984Usually this means the macro was only invoked conditionally." "$LINENO" 5 13985fi 13986if test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE}" && test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE}"; then 13987 as_fn_error $? "conditional \"ENABLE_STATIC_SYMBOL_LEAKS_TEST\" was never defined. 13988Usually this means the macro was only invoked conditionally." "$LINENO" 5 13989fi 13990 13991: "${CONFIG_STATUS=./config.status}" 13992ac_write_fail=0 13993ac_clean_files_save=$ac_clean_files 13994ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13996printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 13997as_write_fail=0 13998cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13999#! $SHELL 14000# Generated by $as_me. 14001# Run this file to recreate the current configuration. 14002# Compiler output produced by configure, useful for debugging 14003# configure, is in config.log if it exists. 14004 14005debug=false 14006ac_cs_recheck=false 14007ac_cs_silent=false 14008 14009SHELL=\${CONFIG_SHELL-$SHELL} 14010export SHELL 14011_ASEOF 14012cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14013## -------------------- ## 14014## M4sh Initialization. ## 14015## -------------------- ## 14016 14017# Be more Bourne compatible 14018DUALCASE=1; export DUALCASE # for MKS sh 14019as_nop=: 14020if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 14021then : 14022 emulate sh 14023 NULLCMD=: 14024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14025 # is contrary to our usage. Disable this feature. 14026 alias -g '${1+"$@"}'='"$@"' 14027 setopt NO_GLOB_SUBST 14028else $as_nop 14029 case `(set -o) 2>/dev/null` in #( 14030 *posix*) : 14031 set -o posix ;; #( 14032 *) : 14033 ;; 14034esac 14035fi 14036 14037 14038 14039# Reset variables that may have inherited troublesome values from 14040# the environment. 14041 14042# IFS needs to be set, to space, tab, and newline, in precisely that order. 14043# (If _AS_PATH_WALK were called with IFS unset, it would have the 14044# side effect of setting IFS to empty, thus disabling word splitting.) 14045# Quoting is to prevent editors from complaining about space-tab. 14046as_nl=' 14047' 14048export as_nl 14049IFS=" "" $as_nl" 14050 14051PS1='$ ' 14052PS2='> ' 14053PS4='+ ' 14054 14055# Ensure predictable behavior from utilities with locale-dependent output. 14056LC_ALL=C 14057export LC_ALL 14058LANGUAGE=C 14059export LANGUAGE 14060 14061# We cannot yet rely on "unset" to work, but we need these variables 14062# to be unset--not just set to an empty or harmless value--now, to 14063# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 14064# also avoids known problems related to "unset" and subshell syntax 14065# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 14066for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 14067do eval test \${$as_var+y} \ 14068 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14069done 14070 14071# Ensure that fds 0, 1, and 2 are open. 14072if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 14073if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 14074if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 14075 14076# The user is always right. 14077if ${PATH_SEPARATOR+false} :; then 14078 PATH_SEPARATOR=: 14079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14081 PATH_SEPARATOR=';' 14082 } 14083fi 14084 14085 14086# Find who we are. Look in the path if we contain no directory separator. 14087as_myself= 14088case $0 in #(( 14089 *[\\/]* ) as_myself=$0 ;; 14090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14091for as_dir in $PATH 14092do 14093 IFS=$as_save_IFS 14094 case $as_dir in #((( 14095 '') as_dir=./ ;; 14096 */) ;; 14097 *) as_dir=$as_dir/ ;; 14098 esac 14099 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 14100 done 14101IFS=$as_save_IFS 14102 14103 ;; 14104esac 14105# We did not find ourselves, most probably we were run as `sh COMMAND' 14106# in which case we are not to be found in the path. 14107if test "x$as_myself" = x; then 14108 as_myself=$0 14109fi 14110if test ! -f "$as_myself"; then 14111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14112 exit 1 14113fi 14114 14115 14116 14117# as_fn_error STATUS ERROR [LINENO LOG_FD] 14118# ---------------------------------------- 14119# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14120# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14121# script with STATUS, using 1 if that was 0. 14122as_fn_error () 14123{ 14124 as_status=$1; test $as_status -eq 0 && as_status=1 14125 if test "$4"; then 14126 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14128 fi 14129 printf "%s\n" "$as_me: error: $2" >&2 14130 as_fn_exit $as_status 14131} # as_fn_error 14132 14133 14134 14135# as_fn_set_status STATUS 14136# ----------------------- 14137# Set $? to STATUS, without forking. 14138as_fn_set_status () 14139{ 14140 return $1 14141} # as_fn_set_status 14142 14143# as_fn_exit STATUS 14144# ----------------- 14145# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14146as_fn_exit () 14147{ 14148 set +e 14149 as_fn_set_status $1 14150 exit $1 14151} # as_fn_exit 14152 14153# as_fn_unset VAR 14154# --------------- 14155# Portably unset VAR. 14156as_fn_unset () 14157{ 14158 { eval $1=; unset $1;} 14159} 14160as_unset=as_fn_unset 14161 14162# as_fn_append VAR VALUE 14163# ---------------------- 14164# Append the text in VALUE to the end of the definition contained in VAR. Take 14165# advantage of any shell optimizations that allow amortized linear growth over 14166# repeated appends, instead of the typical quadratic growth present in naive 14167# implementations. 14168if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 14169then : 14170 eval 'as_fn_append () 14171 { 14172 eval $1+=\$2 14173 }' 14174else $as_nop 14175 as_fn_append () 14176 { 14177 eval $1=\$$1\$2 14178 } 14179fi # as_fn_append 14180 14181# as_fn_arith ARG... 14182# ------------------ 14183# Perform arithmetic evaluation on the ARGs, and store the result in the 14184# global $as_val. Take advantage of shells that can avoid forks. The arguments 14185# must be portable across $(()) and expr. 14186if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 14187then : 14188 eval 'as_fn_arith () 14189 { 14190 as_val=$(( $* )) 14191 }' 14192else $as_nop 14193 as_fn_arith () 14194 { 14195 as_val=`expr "$@" || test $? -eq 1` 14196 } 14197fi # as_fn_arith 14198 14199 14200if expr a : '\(a\)' >/dev/null 2>&1 && 14201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14202 as_expr=expr 14203else 14204 as_expr=false 14205fi 14206 14207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14208 as_basename=basename 14209else 14210 as_basename=false 14211fi 14212 14213if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14214 as_dirname=dirname 14215else 14216 as_dirname=false 14217fi 14218 14219as_me=`$as_basename -- "$0" || 14220$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14221 X"$0" : 'X\(//\)$' \| \ 14222 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14223printf "%s\n" X/"$0" | 14224 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14225 s//\1/ 14226 q 14227 } 14228 /^X\/\(\/\/\)$/{ 14229 s//\1/ 14230 q 14231 } 14232 /^X\/\(\/\).*/{ 14233 s//\1/ 14234 q 14235 } 14236 s/.*/./; q'` 14237 14238# Avoid depending upon Character Ranges. 14239as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14241as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14242as_cr_digits='0123456789' 14243as_cr_alnum=$as_cr_Letters$as_cr_digits 14244 14245 14246# Determine whether it's possible to make 'echo' print without a newline. 14247# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 14248# for compatibility with existing Makefiles. 14249ECHO_C= ECHO_N= ECHO_T= 14250case `echo -n x` in #((((( 14251-n*) 14252 case `echo 'xy\c'` in 14253 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14254 xy) ECHO_C='\c';; 14255 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14256 ECHO_T=' ';; 14257 esac;; 14258*) 14259 ECHO_N='-n';; 14260esac 14261 14262# For backward compatibility with old third-party macros, we provide 14263# the shell variables $as_echo and $as_echo_n. New code should use 14264# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 14265as_echo='printf %s\n' 14266as_echo_n='printf %s' 14267 14268rm -f conf$$ conf$$.exe conf$$.file 14269if test -d conf$$.dir; then 14270 rm -f conf$$.dir/conf$$.file 14271else 14272 rm -f conf$$.dir 14273 mkdir conf$$.dir 2>/dev/null 14274fi 14275if (echo >conf$$.file) 2>/dev/null; then 14276 if ln -s conf$$.file conf$$ 2>/dev/null; then 14277 as_ln_s='ln -s' 14278 # ... but there are two gotchas: 14279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14281 # In both cases, we have to default to `cp -pR'. 14282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14283 as_ln_s='cp -pR' 14284 elif ln conf$$.file conf$$ 2>/dev/null; then 14285 as_ln_s=ln 14286 else 14287 as_ln_s='cp -pR' 14288 fi 14289else 14290 as_ln_s='cp -pR' 14291fi 14292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14293rmdir conf$$.dir 2>/dev/null 14294 14295 14296# as_fn_mkdir_p 14297# ------------- 14298# Create "$as_dir" as a directory, including parents if necessary. 14299as_fn_mkdir_p () 14300{ 14301 14302 case $as_dir in #( 14303 -*) as_dir=./$as_dir;; 14304 esac 14305 test -d "$as_dir" || eval $as_mkdir_p || { 14306 as_dirs= 14307 while :; do 14308 case $as_dir in #( 14309 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14310 *) as_qdir=$as_dir;; 14311 esac 14312 as_dirs="'$as_qdir' $as_dirs" 14313 as_dir=`$as_dirname -- "$as_dir" || 14314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14315 X"$as_dir" : 'X\(//\)[^/]' \| \ 14316 X"$as_dir" : 'X\(//\)$' \| \ 14317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14318printf "%s\n" X"$as_dir" | 14319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14320 s//\1/ 14321 q 14322 } 14323 /^X\(\/\/\)[^/].*/{ 14324 s//\1/ 14325 q 14326 } 14327 /^X\(\/\/\)$/{ 14328 s//\1/ 14329 q 14330 } 14331 /^X\(\/\).*/{ 14332 s//\1/ 14333 q 14334 } 14335 s/.*/./; q'` 14336 test -d "$as_dir" && break 14337 done 14338 test -z "$as_dirs" || eval "mkdir $as_dirs" 14339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14340 14341 14342} # as_fn_mkdir_p 14343if mkdir -p . 2>/dev/null; then 14344 as_mkdir_p='mkdir -p "$as_dir"' 14345else 14346 test -d ./-p && rmdir ./-p 14347 as_mkdir_p=false 14348fi 14349 14350 14351# as_fn_executable_p FILE 14352# ----------------------- 14353# Test if FILE is an executable regular file. 14354as_fn_executable_p () 14355{ 14356 test -f "$1" && test -x "$1" 14357} # as_fn_executable_p 14358as_test_x='test -x' 14359as_executable_p=as_fn_executable_p 14360 14361# Sed expression to map a string onto a valid CPP name. 14362as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14363 14364# Sed expression to map a string onto a valid variable name. 14365as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14366 14367 14368exec 6>&1 14369## ----------------------------------- ## 14370## Main body of $CONFIG_STATUS script. ## 14371## ----------------------------------- ## 14372_ASEOF 14373test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14374 14375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14376# Save the log message, to keep $0 and so on meaningful, and to 14377# report actual input values of CONFIG_FILES etc. instead of their 14378# values after options handling. 14379ac_log=" 14380This file was extended by libevdev $as_me 1.12.1, which was 14381generated by GNU Autoconf 2.71. Invocation command line was 14382 14383 CONFIG_FILES = $CONFIG_FILES 14384 CONFIG_HEADERS = $CONFIG_HEADERS 14385 CONFIG_LINKS = $CONFIG_LINKS 14386 CONFIG_COMMANDS = $CONFIG_COMMANDS 14387 $ $0 $@ 14388 14389on `(hostname || uname -n) 2>/dev/null | sed 1q` 14390" 14391 14392_ACEOF 14393 14394case $ac_config_files in *" 14395"*) set x $ac_config_files; shift; ac_config_files=$*;; 14396esac 14397 14398case $ac_config_headers in *" 14399"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14400esac 14401 14402 14403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14404# Files that config.status was made for. 14405config_files="$ac_config_files" 14406config_headers="$ac_config_headers" 14407config_commands="$ac_config_commands" 14408 14409_ACEOF 14410 14411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14412ac_cs_usage="\ 14413\`$as_me' instantiates files and other configuration actions 14414from templates according to the current configuration. Unless the files 14415and actions are specified as TAGs, all are instantiated by default. 14416 14417Usage: $0 [OPTION]... [TAG]... 14418 14419 -h, --help print this help, then exit 14420 -V, --version print version number and configuration settings, then exit 14421 --config print configuration, then exit 14422 -q, --quiet, --silent 14423 do not print progress messages 14424 -d, --debug don't remove temporary files 14425 --recheck update $as_me by reconfiguring in the same conditions 14426 --file=FILE[:TEMPLATE] 14427 instantiate the configuration file FILE 14428 --header=FILE[:TEMPLATE] 14429 instantiate the configuration header FILE 14430 14431Configuration files: 14432$config_files 14433 14434Configuration headers: 14435$config_headers 14436 14437Configuration commands: 14438$config_commands 14439 14440Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>. 14441libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>." 14442 14443_ACEOF 14444ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 14445ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 14446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14447ac_cs_config='$ac_cs_config_escaped' 14448ac_cs_version="\\ 14449libevdev config.status 1.12.1 14450configured by $0, generated by GNU Autoconf 2.71, 14451 with options \\"\$ac_cs_config\\" 14452 14453Copyright (C) 2021 Free Software Foundation, Inc. 14454This config.status script is free software; the Free Software Foundation 14455gives unlimited permission to copy, distribute and modify it." 14456 14457ac_pwd='$ac_pwd' 14458srcdir='$srcdir' 14459INSTALL='$INSTALL' 14460MKDIR_P='$MKDIR_P' 14461AWK='$AWK' 14462test -n "\$AWK" || AWK=awk 14463_ACEOF 14464 14465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14466# The default lists apply if the user does not specify any file. 14467ac_need_defaults=: 14468while test $# != 0 14469do 14470 case $1 in 14471 --*=?*) 14472 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14474 ac_shift=: 14475 ;; 14476 --*=) 14477 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14478 ac_optarg= 14479 ac_shift=: 14480 ;; 14481 *) 14482 ac_option=$1 14483 ac_optarg=$2 14484 ac_shift=shift 14485 ;; 14486 esac 14487 14488 case $ac_option in 14489 # Handling of the options. 14490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14491 ac_cs_recheck=: ;; 14492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14493 printf "%s\n" "$ac_cs_version"; exit ;; 14494 --config | --confi | --conf | --con | --co | --c ) 14495 printf "%s\n" "$ac_cs_config"; exit ;; 14496 --debug | --debu | --deb | --de | --d | -d ) 14497 debug=: ;; 14498 --file | --fil | --fi | --f ) 14499 $ac_shift 14500 case $ac_optarg in 14501 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14502 '') as_fn_error $? "missing file argument" ;; 14503 esac 14504 as_fn_append CONFIG_FILES " '$ac_optarg'" 14505 ac_need_defaults=false;; 14506 --header | --heade | --head | --hea ) 14507 $ac_shift 14508 case $ac_optarg in 14509 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14510 esac 14511 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14512 ac_need_defaults=false;; 14513 --he | --h) 14514 # Conflict between --help and --header 14515 as_fn_error $? "ambiguous option: \`$1' 14516Try \`$0 --help' for more information.";; 14517 --help | --hel | -h ) 14518 printf "%s\n" "$ac_cs_usage"; exit ;; 14519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14520 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14521 ac_cs_silent=: ;; 14522 14523 # This is an error. 14524 -*) as_fn_error $? "unrecognized option: \`$1' 14525Try \`$0 --help' for more information." ;; 14526 14527 *) as_fn_append ac_config_targets " $1" 14528 ac_need_defaults=false ;; 14529 14530 esac 14531 shift 14532done 14533 14534ac_configure_extra_args= 14535 14536if $ac_cs_silent; then 14537 exec 6>/dev/null 14538 ac_configure_extra_args="$ac_configure_extra_args --silent" 14539fi 14540 14541_ACEOF 14542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14543if \$ac_cs_recheck; then 14544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14545 shift 14546 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 14547 CONFIG_SHELL='$SHELL' 14548 export CONFIG_SHELL 14549 exec "\$@" 14550fi 14551 14552_ACEOF 14553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14554exec 5>>config.log 14555{ 14556 echo 14557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14558## Running $as_me. ## 14559_ASBOX 14560 printf "%s\n" "$ac_log" 14561} >&5 14562 14563_ACEOF 14564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14565# 14566# INIT-COMMANDS 14567# 14568AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14569 14570 14571# The HP-UX ksh and POSIX shell print the target directory to stdout 14572# if CDPATH is set. 14573(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14574 14575sed_quote_subst='$sed_quote_subst' 14576double_quote_subst='$double_quote_subst' 14577delay_variable_subst='$delay_variable_subst' 14578macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14579macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14580enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14581enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14582pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14583enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14584shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14585SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14586ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14587PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14588host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14589host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14590host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14591build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14592build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14593build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14594SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14595Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14596GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14597EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14598FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14599LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14600NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14601LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14602max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14603ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14604exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14605lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14606lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14607lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14608lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14609lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14610reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14611reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14612OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14613deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14614file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14615file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14616want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14617DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14618sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14619AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14620AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14621archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14622STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14623RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14624old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14625old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14626old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14627lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14628CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14629CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14630compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14631GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14632lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14633lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14634lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14635lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14636lt_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"`' 14637lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14638nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14639lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14640lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14641objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14642MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14643lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14644lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14645lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14646lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14647lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14648need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14649MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14650DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14651NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14652LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14653OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14654OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14655libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14656shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14657extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14658archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14659enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14660export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14661whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14662compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14663old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14664old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14665archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14666archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14667module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14668module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14669with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14670allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14671no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14672hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14673hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14674hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14675hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14676hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14677hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14678hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14679inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14680link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14681always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14682export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14683exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14684include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14685prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14686postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14687file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14688variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14689need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14690need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14691version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14692runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14693shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14694shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14695libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14696library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14697soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14698install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14699postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14700postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14701finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14702finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14703hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14704sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14705configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14706configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14707hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14708enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14709enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14710enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14711old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14712striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14713 14714LTCC='$LTCC' 14715LTCFLAGS='$LTCFLAGS' 14716compiler='$compiler_DEFAULT' 14717 14718# A function that is used when there is no print builtin or printf. 14719func_fallback_echo () 14720{ 14721 eval 'cat <<_LTECHO_EOF 14722\$1 14723_LTECHO_EOF' 14724} 14725 14726# Quote evaled strings. 14727for var in SHELL \ 14728ECHO \ 14729PATH_SEPARATOR \ 14730SED \ 14731GREP \ 14732EGREP \ 14733FGREP \ 14734LD \ 14735NM \ 14736LN_S \ 14737lt_SP2NL \ 14738lt_NL2SP \ 14739reload_flag \ 14740OBJDUMP \ 14741deplibs_check_method \ 14742file_magic_cmd \ 14743file_magic_glob \ 14744want_nocaseglob \ 14745DLLTOOL \ 14746sharedlib_from_linklib_cmd \ 14747AR \ 14748AR_FLAGS \ 14749archiver_list_spec \ 14750STRIP \ 14751RANLIB \ 14752CC \ 14753CFLAGS \ 14754compiler \ 14755lt_cv_sys_global_symbol_pipe \ 14756lt_cv_sys_global_symbol_to_cdecl \ 14757lt_cv_sys_global_symbol_to_import \ 14758lt_cv_sys_global_symbol_to_c_name_address \ 14759lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14760lt_cv_nm_interface \ 14761nm_file_list_spec \ 14762lt_cv_truncate_bin \ 14763lt_prog_compiler_no_builtin_flag \ 14764lt_prog_compiler_pic \ 14765lt_prog_compiler_wl \ 14766lt_prog_compiler_static \ 14767lt_cv_prog_compiler_c_o \ 14768need_locks \ 14769MANIFEST_TOOL \ 14770DSYMUTIL \ 14771NMEDIT \ 14772LIPO \ 14773OTOOL \ 14774OTOOL64 \ 14775shrext_cmds \ 14776export_dynamic_flag_spec \ 14777whole_archive_flag_spec \ 14778compiler_needs_object \ 14779with_gnu_ld \ 14780allow_undefined_flag \ 14781no_undefined_flag \ 14782hardcode_libdir_flag_spec \ 14783hardcode_libdir_separator \ 14784exclude_expsyms \ 14785include_expsyms \ 14786file_list_spec \ 14787variables_saved_for_relink \ 14788libname_spec \ 14789library_names_spec \ 14790soname_spec \ 14791install_override_mode \ 14792finish_eval \ 14793old_striplib \ 14794striplib; do 14795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14796 *[\\\\\\\`\\"\\\$]*) 14797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14798 ;; 14799 *) 14800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14801 ;; 14802 esac 14803done 14804 14805# Double-quote double-evaled strings. 14806for var in reload_cmds \ 14807old_postinstall_cmds \ 14808old_postuninstall_cmds \ 14809old_archive_cmds \ 14810extract_expsyms_cmds \ 14811old_archive_from_new_cmds \ 14812old_archive_from_expsyms_cmds \ 14813archive_cmds \ 14814archive_expsym_cmds \ 14815module_cmds \ 14816module_expsym_cmds \ 14817export_symbols_cmds \ 14818prelink_cmds \ 14819postlink_cmds \ 14820postinstall_cmds \ 14821postuninstall_cmds \ 14822finish_cmds \ 14823sys_lib_search_path_spec \ 14824configure_time_dlsearch_path \ 14825configure_time_lt_sys_library_path; do 14826 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14827 *[\\\\\\\`\\"\\\$]*) 14828 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14829 ;; 14830 *) 14831 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14832 ;; 14833 esac 14834done 14835 14836ac_aux_dir='$ac_aux_dir' 14837 14838# See if we are running on zsh, and set the options that allow our 14839# commands through without removal of \ escapes INIT. 14840if test -n "\${ZSH_VERSION+set}"; then 14841 setopt NO_GLOB_SUBST 14842fi 14843 14844 14845 PACKAGE='$PACKAGE' 14846 VERSION='$VERSION' 14847 RM='$RM' 14848 ofile='$ofile' 14849 14850 14851 14852 14853_ACEOF 14854 14855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14856 14857# Handling of arguments. 14858for ac_config_target in $ac_config_targets 14859do 14860 case $ac_config_target in 14861 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14862 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14863 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14864 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14865 "libevdev/Makefile") CONFIG_FILES="$CONFIG_FILES libevdev/Makefile" ;; 14866 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14867 "doc/libevdev.doxygen") CONFIG_FILES="$CONFIG_FILES doc/libevdev.doxygen" ;; 14868 "doc/libevdev.man") CONFIG_FILES="$CONFIG_FILES doc/libevdev.man" ;; 14869 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 14870 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 14871 "libevdev.pc") CONFIG_FILES="$CONFIG_FILES libevdev.pc" ;; 14872 14873 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14874 esac 14875done 14876 14877 14878# If the user did not use the arguments to specify the items to instantiate, 14879# then the envvar interface is used. Set only those that are not. 14880# We use the long form for the default assignment because of an extremely 14881# bizarre bug on SunOS 4.1.3. 14882if $ac_need_defaults; then 14883 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 14884 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 14885 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 14886fi 14887 14888# Have a temporary directory for convenience. Make it in the build tree 14889# simply because there is no reason against having it here, and in addition, 14890# creating and moving files from /tmp can sometimes cause problems. 14891# Hook for its removal unless debugging. 14892# Note that there is a small window in which the directory will not be cleaned: 14893# after its creation but before its name has been assigned to `$tmp'. 14894$debug || 14895{ 14896 tmp= ac_tmp= 14897 trap 'exit_status=$? 14898 : "${ac_tmp:=$tmp}" 14899 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14900' 0 14901 trap 'as_fn_exit 1' 1 2 13 15 14902} 14903# Create a (secure) tmp directory for tmp files. 14904 14905{ 14906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14907 test -d "$tmp" 14908} || 14909{ 14910 tmp=./conf$$-$RANDOM 14911 (umask 077 && mkdir "$tmp") 14912} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14913ac_tmp=$tmp 14914 14915# Set up the scripts for CONFIG_FILES section. 14916# No need to generate them if there are no CONFIG_FILES. 14917# This happens for instance with `./config.status config.h'. 14918if test -n "$CONFIG_FILES"; then 14919 14920 14921ac_cr=`echo X | tr X '\015'` 14922# On cygwin, bash can eat \r inside `` if the user requested igncr. 14923# But we know of no other shell where ac_cr would be empty at this 14924# point, so we can use a bashism as a fallback. 14925if test "x$ac_cr" = x; then 14926 eval ac_cr=\$\'\\r\' 14927fi 14928ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14929if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14930 ac_cs_awk_cr='\\r' 14931else 14932 ac_cs_awk_cr=$ac_cr 14933fi 14934 14935echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14936_ACEOF 14937 14938 14939{ 14940 echo "cat >conf$$subs.awk <<_ACEOF" && 14941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14942 echo "_ACEOF" 14943} >conf$$subs.sh || 14944 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14945ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14946ac_delim='%!_!# ' 14947for ac_last_try in false false false false false :; do 14948 . ./conf$$subs.sh || 14949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14950 14951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14952 if test $ac_delim_n = $ac_delim_num; then 14953 break 14954 elif $ac_last_try; then 14955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14956 else 14957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14958 fi 14959done 14960rm -f conf$$subs.sh 14961 14962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14963cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14964_ACEOF 14965sed -n ' 14966h 14967s/^/S["/; s/!.*/"]=/ 14968p 14969g 14970s/^[^!]*!// 14971:repl 14972t repl 14973s/'"$ac_delim"'$// 14974t delim 14975:nl 14976h 14977s/\(.\{148\}\)..*/\1/ 14978t more1 14979s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14980p 14981n 14982b repl 14983:more1 14984s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14985p 14986g 14987s/.\{148\}// 14988t nl 14989:delim 14990h 14991s/\(.\{148\}\)..*/\1/ 14992t more2 14993s/["\\]/\\&/g; s/^/"/; s/$/"/ 14994p 14995b 14996:more2 14997s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14998p 14999g 15000s/.\{148\}// 15001t delim 15002' <conf$$subs.awk | sed ' 15003/^[^""]/{ 15004 N 15005 s/\n// 15006} 15007' >>$CONFIG_STATUS || ac_write_fail=1 15008rm -f conf$$subs.awk 15009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15010_ACAWK 15011cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15012 for (key in S) S_is_set[key] = 1 15013 FS = "" 15014 15015} 15016{ 15017 line = $ 0 15018 nfields = split(line, field, "@") 15019 substed = 0 15020 len = length(field[1]) 15021 for (i = 2; i < nfields; i++) { 15022 key = field[i] 15023 keylen = length(key) 15024 if (S_is_set[key]) { 15025 value = S[key] 15026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15027 len += length(value) + length(field[++i]) 15028 substed = 1 15029 } else 15030 len += 1 + keylen 15031 } 15032 15033 print line 15034} 15035 15036_ACAWK 15037_ACEOF 15038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15039if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15040 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15041else 15042 cat 15043fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15044 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15045_ACEOF 15046 15047# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15048# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15049# trailing colons and then remove the whole line if VPATH becomes empty 15050# (actually we leave an empty line to preserve line numbers). 15051if test "x$srcdir" = x.; then 15052 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15053h 15054s/// 15055s/^/:/ 15056s/[ ]*$/:/ 15057s/:\$(srcdir):/:/g 15058s/:\${srcdir}:/:/g 15059s/:@srcdir@:/:/g 15060s/^:*// 15061s/:*$// 15062x 15063s/\(=[ ]*\).*/\1/ 15064G 15065s/\n// 15066s/^[^=]*=[ ]*$// 15067}' 15068fi 15069 15070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15071fi # test -n "$CONFIG_FILES" 15072 15073# Set up the scripts for CONFIG_HEADERS section. 15074# No need to generate them if there are no CONFIG_HEADERS. 15075# This happens for instance with `./config.status Makefile'. 15076if test -n "$CONFIG_HEADERS"; then 15077cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15078BEGIN { 15079_ACEOF 15080 15081# Transform confdefs.h into an awk script `defines.awk', embedded as 15082# here-document in config.status, that substitutes the proper values into 15083# config.h.in to produce config.h. 15084 15085# Create a delimiter string that does not exist in confdefs.h, to ease 15086# handling of long lines. 15087ac_delim='%!_!# ' 15088for ac_last_try in false false :; do 15089 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15090 if test -z "$ac_tt"; then 15091 break 15092 elif $ac_last_try; then 15093 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15094 else 15095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15096 fi 15097done 15098 15099# For the awk script, D is an array of macro values keyed by name, 15100# likewise P contains macro parameters if any. Preserve backslash 15101# newline sequences. 15102 15103ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15104sed -n ' 15105s/.\{148\}/&'"$ac_delim"'/g 15106t rset 15107:rset 15108s/^[ ]*#[ ]*define[ ][ ]*/ / 15109t def 15110d 15111:def 15112s/\\$// 15113t bsnl 15114s/["\\]/\\&/g 15115s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15116D["\1"]=" \3"/p 15117s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15118d 15119:bsnl 15120s/["\\]/\\&/g 15121s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15122D["\1"]=" \3\\\\\\n"\\/p 15123t cont 15124s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15125t cont 15126d 15127:cont 15128n 15129s/.\{148\}/&'"$ac_delim"'/g 15130t clear 15131:clear 15132s/\\$// 15133t bsnlc 15134s/["\\]/\\&/g; s/^/"/; s/$/"/p 15135d 15136:bsnlc 15137s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15138b cont 15139' <confdefs.h | sed ' 15140s/'"$ac_delim"'/"\\\ 15141"/g' >>$CONFIG_STATUS || ac_write_fail=1 15142 15143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15144 for (key in D) D_is_set[key] = 1 15145 FS = "" 15146} 15147/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15148 line = \$ 0 15149 split(line, arg, " ") 15150 if (arg[1] == "#") { 15151 defundef = arg[2] 15152 mac1 = arg[3] 15153 } else { 15154 defundef = substr(arg[1], 2) 15155 mac1 = arg[2] 15156 } 15157 split(mac1, mac2, "(") #) 15158 macro = mac2[1] 15159 prefix = substr(line, 1, index(line, defundef) - 1) 15160 if (D_is_set[macro]) { 15161 # Preserve the white space surrounding the "#". 15162 print prefix "define", macro P[macro] D[macro] 15163 next 15164 } else { 15165 # Replace #undef with comments. This is necessary, for example, 15166 # in the case of _POSIX_SOURCE, which is predefined and required 15167 # on some systems where configure will not decide to define it. 15168 if (defundef == "undef") { 15169 print "/*", prefix defundef, macro, "*/" 15170 next 15171 } 15172 } 15173} 15174{ print } 15175_ACAWK 15176_ACEOF 15177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15178 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15179fi # test -n "$CONFIG_HEADERS" 15180 15181 15182eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15183shift 15184for ac_tag 15185do 15186 case $ac_tag in 15187 :[FHLC]) ac_mode=$ac_tag; continue;; 15188 esac 15189 case $ac_mode$ac_tag in 15190 :[FHL]*:*);; 15191 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15192 :[FH]-) ac_tag=-:-;; 15193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15194 esac 15195 ac_save_IFS=$IFS 15196 IFS=: 15197 set x $ac_tag 15198 IFS=$ac_save_IFS 15199 shift 15200 ac_file=$1 15201 shift 15202 15203 case $ac_mode in 15204 :L) ac_source=$1;; 15205 :[FH]) 15206 ac_file_inputs= 15207 for ac_f 15208 do 15209 case $ac_f in 15210 -) ac_f="$ac_tmp/stdin";; 15211 *) # Look for the file first in the build tree, then in the source tree 15212 # (if the path is not absolute). The absolute path cannot be DOS-style, 15213 # because $ac_f cannot contain `:'. 15214 test -f "$ac_f" || 15215 case $ac_f in 15216 [\\/$]*) false;; 15217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15218 esac || 15219 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15220 esac 15221 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15222 as_fn_append ac_file_inputs " '$ac_f'" 15223 done 15224 15225 # Let's still pretend it is `configure' which instantiates (i.e., don't 15226 # use $as_me), people would be surprised to read: 15227 # /* config.h. Generated by config.status. */ 15228 configure_input='Generated from '` 15229 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15230 `' by configure.' 15231 if test x"$ac_file" != x-; then 15232 configure_input="$ac_file. $configure_input" 15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15234printf "%s\n" "$as_me: creating $ac_file" >&6;} 15235 fi 15236 # Neutralize special characters interpreted by sed in replacement strings. 15237 case $configure_input in #( 15238 *\&* | *\|* | *\\* ) 15239 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 15240 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15241 *) ac_sed_conf_input=$configure_input;; 15242 esac 15243 15244 case $ac_tag in 15245 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15247 esac 15248 ;; 15249 esac 15250 15251 ac_dir=`$as_dirname -- "$ac_file" || 15252$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15253 X"$ac_file" : 'X\(//\)[^/]' \| \ 15254 X"$ac_file" : 'X\(//\)$' \| \ 15255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15256printf "%s\n" X"$ac_file" | 15257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15258 s//\1/ 15259 q 15260 } 15261 /^X\(\/\/\)[^/].*/{ 15262 s//\1/ 15263 q 15264 } 15265 /^X\(\/\/\)$/{ 15266 s//\1/ 15267 q 15268 } 15269 /^X\(\/\).*/{ 15270 s//\1/ 15271 q 15272 } 15273 s/.*/./; q'` 15274 as_dir="$ac_dir"; as_fn_mkdir_p 15275 ac_builddir=. 15276 15277case "$ac_dir" in 15278.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15279*) 15280 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 15281 # A ".." for each directory in $ac_dir_suffix. 15282 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15283 case $ac_top_builddir_sub in 15284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15286 esac ;; 15287esac 15288ac_abs_top_builddir=$ac_pwd 15289ac_abs_builddir=$ac_pwd$ac_dir_suffix 15290# for backward compatibility: 15291ac_top_builddir=$ac_top_build_prefix 15292 15293case $srcdir in 15294 .) # We are building in place. 15295 ac_srcdir=. 15296 ac_top_srcdir=$ac_top_builddir_sub 15297 ac_abs_top_srcdir=$ac_pwd ;; 15298 [\\/]* | ?:[\\/]* ) # Absolute name. 15299 ac_srcdir=$srcdir$ac_dir_suffix; 15300 ac_top_srcdir=$srcdir 15301 ac_abs_top_srcdir=$srcdir ;; 15302 *) # Relative name. 15303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15304 ac_top_srcdir=$ac_top_build_prefix$srcdir 15305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15306esac 15307ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15308 15309 15310 case $ac_mode in 15311 :F) 15312 # 15313 # CONFIG_FILE 15314 # 15315 15316 case $INSTALL in 15317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15318 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15319 esac 15320 ac_MKDIR_P=$MKDIR_P 15321 case $MKDIR_P in 15322 [\\/$]* | ?:[\\/]* ) ;; 15323 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15324 esac 15325_ACEOF 15326 15327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15328# If the template does not know about datarootdir, expand it. 15329# FIXME: This hack should be removed a few years after 2.60. 15330ac_datarootdir_hack=; ac_datarootdir_seen= 15331ac_sed_dataroot=' 15332/datarootdir/ { 15333 p 15334 q 15335} 15336/@datadir@/p 15337/@docdir@/p 15338/@infodir@/p 15339/@localedir@/p 15340/@mandir@/p' 15341case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15342*datarootdir*) ac_datarootdir_seen=yes;; 15343*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15345printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15346_ACEOF 15347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15348 ac_datarootdir_hack=' 15349 s&@datadir@&$datadir&g 15350 s&@docdir@&$docdir&g 15351 s&@infodir@&$infodir&g 15352 s&@localedir@&$localedir&g 15353 s&@mandir@&$mandir&g 15354 s&\\\${datarootdir}&$datarootdir&g' ;; 15355esac 15356_ACEOF 15357 15358# Neutralize VPATH when `$srcdir' = `.'. 15359# Shell code in configure.ac might set extrasub. 15360# FIXME: do we really want to maintain this feature? 15361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15362ac_sed_extra="$ac_vpsub 15363$extrasub 15364_ACEOF 15365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15366:t 15367/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15368s|@configure_input@|$ac_sed_conf_input|;t t 15369s&@top_builddir@&$ac_top_builddir_sub&;t t 15370s&@top_build_prefix@&$ac_top_build_prefix&;t t 15371s&@srcdir@&$ac_srcdir&;t t 15372s&@abs_srcdir@&$ac_abs_srcdir&;t t 15373s&@top_srcdir@&$ac_top_srcdir&;t t 15374s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15375s&@builddir@&$ac_builddir&;t t 15376s&@abs_builddir@&$ac_abs_builddir&;t t 15377s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15378s&@INSTALL@&$ac_INSTALL&;t t 15379s&@MKDIR_P@&$ac_MKDIR_P&;t t 15380$ac_datarootdir_hack 15381" 15382eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15384 15385test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15388 "$ac_tmp/out"`; test -z "$ac_out"; } && 15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15390which seems to be undefined. Please make sure it is defined" >&5 15391printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15392which seems to be undefined. Please make sure it is defined" >&2;} 15393 15394 rm -f "$ac_tmp/stdin" 15395 case $ac_file in 15396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15398 esac \ 15399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15400 ;; 15401 :H) 15402 # 15403 # CONFIG_HEADER 15404 # 15405 if test x"$ac_file" != x-; then 15406 { 15407 printf "%s\n" "/* $configure_input */" >&1 \ 15408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15409 } >"$ac_tmp/config.h" \ 15410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15413printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 15414 else 15415 rm -f "$ac_file" 15416 mv "$ac_tmp/config.h" "$ac_file" \ 15417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15418 fi 15419 else 15420 printf "%s\n" "/* $configure_input */" >&1 \ 15421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15422 || as_fn_error $? "could not create -" "$LINENO" 5 15423 fi 15424# Compute "$ac_file"'s index in $config_headers. 15425_am_arg="$ac_file" 15426_am_stamp_count=1 15427for _am_header in $config_headers :; do 15428 case $_am_header in 15429 $_am_arg | $_am_arg:* ) 15430 break ;; 15431 * ) 15432 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15433 esac 15434done 15435echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15436$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15437 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15438 X"$_am_arg" : 'X\(//\)$' \| \ 15439 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15440printf "%s\n" X"$_am_arg" | 15441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15442 s//\1/ 15443 q 15444 } 15445 /^X\(\/\/\)[^/].*/{ 15446 s//\1/ 15447 q 15448 } 15449 /^X\(\/\/\)$/{ 15450 s//\1/ 15451 q 15452 } 15453 /^X\(\/\).*/{ 15454 s//\1/ 15455 q 15456 } 15457 s/.*/./; q'`/stamp-h$_am_stamp_count 15458 ;; 15459 15460 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15461printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 15462 ;; 15463 esac 15464 15465 15466 case $ac_file$ac_mode in 15467 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15468 # Older Autoconf quotes --file arguments for eval, but not when files 15469 # are listed without --file. Let's play safe and only enable the eval 15470 # if we detect the quoting. 15471 # TODO: see whether this extra hack can be removed once we start 15472 # requiring Autoconf 2.70 or later. 15473 case $CONFIG_FILES in #( 15474 *\'*) : 15475 eval set x "$CONFIG_FILES" ;; #( 15476 *) : 15477 set x $CONFIG_FILES ;; #( 15478 *) : 15479 ;; 15480esac 15481 shift 15482 # Used to flag and report bootstrapping failures. 15483 am_rc=0 15484 for am_mf 15485 do 15486 # Strip MF so we end up with the name of the file. 15487 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 15488 # Check whether this is an Automake generated Makefile which includes 15489 # dependency-tracking related rules and includes. 15490 # Grep'ing the whole file directly is not great: AIX grep has a line 15491 # limit of 2048, but all sed's we know have understand at least 4000. 15492 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15493 || continue 15494 am_dirpart=`$as_dirname -- "$am_mf" || 15495$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15496 X"$am_mf" : 'X\(//\)[^/]' \| \ 15497 X"$am_mf" : 'X\(//\)$' \| \ 15498 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15499printf "%s\n" X"$am_mf" | 15500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15501 s//\1/ 15502 q 15503 } 15504 /^X\(\/\/\)[^/].*/{ 15505 s//\1/ 15506 q 15507 } 15508 /^X\(\/\/\)$/{ 15509 s//\1/ 15510 q 15511 } 15512 /^X\(\/\).*/{ 15513 s//\1/ 15514 q 15515 } 15516 s/.*/./; q'` 15517 am_filepart=`$as_basename -- "$am_mf" || 15518$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15519 X"$am_mf" : 'X\(//\)$' \| \ 15520 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15521printf "%s\n" X/"$am_mf" | 15522 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15523 s//\1/ 15524 q 15525 } 15526 /^X\/\(\/\/\)$/{ 15527 s//\1/ 15528 q 15529 } 15530 /^X\/\(\/\).*/{ 15531 s//\1/ 15532 q 15533 } 15534 s/.*/./; q'` 15535 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15536 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15537 | $MAKE -f - am--depfiles" >&5 15538 (cd "$am_dirpart" \ 15539 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15540 | $MAKE -f - am--depfiles) >&5 2>&5 15541 ac_status=$? 15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15543 (exit $ac_status); } || am_rc=$? 15544 done 15545 if test $am_rc -ne 0; then 15546 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15547printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15548as_fn_error $? "Something went wrong bootstrapping makefile fragments 15549 for automatic dependency tracking. If GNU make was not used, consider 15550 re-running the configure script with MAKE=\"gmake\" (or whatever is 15551 necessary). You can also try re-running configure with the 15552 '--disable-dependency-tracking' option to at least be able to build 15553 the package (albeit without support for automatic dependency tracking). 15554See \`config.log' for more details" "$LINENO" 5; } 15555 fi 15556 { am_dirpart=; unset am_dirpart;} 15557 { am_filepart=; unset am_filepart;} 15558 { am_mf=; unset am_mf;} 15559 { am_rc=; unset am_rc;} 15560 rm -f conftest-deps.mk 15561} 15562 ;; 15563 "libtool":C) 15564 15565 # See if we are running on zsh, and set the options that allow our 15566 # commands through without removal of \ escapes. 15567 if test -n "${ZSH_VERSION+set}"; then 15568 setopt NO_GLOB_SUBST 15569 fi 15570 15571 cfgfile=${ofile}T 15572 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15573 $RM "$cfgfile" 15574 15575 cat <<_LT_EOF >> "$cfgfile" 15576#! $SHELL 15577# Generated automatically by $as_me ($PACKAGE) $VERSION 15578# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15579# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15580 15581# Provide generalized library-building support services. 15582# Written by Gordon Matzigkeit, 1996 15583 15584# Copyright (C) 2014 Free Software Foundation, Inc. 15585# This is free software; see the source for copying conditions. There is NO 15586# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15587 15588# GNU Libtool is free software; you can redistribute it and/or modify 15589# it under the terms of the GNU General Public License as published by 15590# the Free Software Foundation; either version 2 of of the License, or 15591# (at your option) any later version. 15592# 15593# As a special exception to the GNU General Public License, if you 15594# distribute this file as part of a program or library that is built 15595# using GNU Libtool, you may include this file under the same 15596# distribution terms that you use for the rest of that program. 15597# 15598# GNU Libtool is distributed in the hope that it will be useful, but 15599# WITHOUT ANY WARRANTY; without even the implied warranty of 15600# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15601# GNU General Public License for more details. 15602# 15603# You should have received a copy of the GNU General Public License 15604# along with this program. If not, see <http://www.gnu.org/licenses/>. 15605 15606 15607# The names of the tagged configurations supported by this script. 15608available_tags='' 15609 15610# Configured defaults for sys_lib_dlsearch_path munging. 15611: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15612 15613# ### BEGIN LIBTOOL CONFIG 15614 15615# Which release of libtool.m4 was used? 15616macro_version=$macro_version 15617macro_revision=$macro_revision 15618 15619# Whether or not to build shared libraries. 15620build_libtool_libs=$enable_shared 15621 15622# Whether or not to build static libraries. 15623build_old_libs=$enable_static 15624 15625# What type of objects to build. 15626pic_mode=$pic_mode 15627 15628# Whether or not to optimize for fast installation. 15629fast_install=$enable_fast_install 15630 15631# Shared archive member basename,for filename based shared library versioning on AIX. 15632shared_archive_member_spec=$shared_archive_member_spec 15633 15634# Shell to use when invoking shell scripts. 15635SHELL=$lt_SHELL 15636 15637# An echo program that protects backslashes. 15638ECHO=$lt_ECHO 15639 15640# The PATH separator for the build system. 15641PATH_SEPARATOR=$lt_PATH_SEPARATOR 15642 15643# The host system. 15644host_alias=$host_alias 15645host=$host 15646host_os=$host_os 15647 15648# The build system. 15649build_alias=$build_alias 15650build=$build 15651build_os=$build_os 15652 15653# A sed program that does not truncate output. 15654SED=$lt_SED 15655 15656# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15657Xsed="\$SED -e 1s/^X//" 15658 15659# A grep program that handles long lines. 15660GREP=$lt_GREP 15661 15662# An ERE matcher. 15663EGREP=$lt_EGREP 15664 15665# A literal string matcher. 15666FGREP=$lt_FGREP 15667 15668# A BSD- or MS-compatible name lister. 15669NM=$lt_NM 15670 15671# Whether we need soft or hard links. 15672LN_S=$lt_LN_S 15673 15674# What is the maximum length of a command? 15675max_cmd_len=$max_cmd_len 15676 15677# Object file suffix (normally "o"). 15678objext=$ac_objext 15679 15680# Executable file suffix (normally ""). 15681exeext=$exeext 15682 15683# whether the shell understands "unset". 15684lt_unset=$lt_unset 15685 15686# turn spaces into newlines. 15687SP2NL=$lt_lt_SP2NL 15688 15689# turn newlines into spaces. 15690NL2SP=$lt_lt_NL2SP 15691 15692# convert \$build file names to \$host format. 15693to_host_file_cmd=$lt_cv_to_host_file_cmd 15694 15695# convert \$build files to toolchain format. 15696to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15697 15698# An object symbol dumper. 15699OBJDUMP=$lt_OBJDUMP 15700 15701# Method to check whether dependent libraries are shared objects. 15702deplibs_check_method=$lt_deplibs_check_method 15703 15704# Command to use when deplibs_check_method = "file_magic". 15705file_magic_cmd=$lt_file_magic_cmd 15706 15707# How to find potential files when deplibs_check_method = "file_magic". 15708file_magic_glob=$lt_file_magic_glob 15709 15710# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15711want_nocaseglob=$lt_want_nocaseglob 15712 15713# DLL creation program. 15714DLLTOOL=$lt_DLLTOOL 15715 15716# Command to associate shared and link libraries. 15717sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15718 15719# The archiver. 15720AR=$lt_AR 15721 15722# Flags to create an archive. 15723AR_FLAGS=$lt_AR_FLAGS 15724 15725# How to feed a file listing to the archiver. 15726archiver_list_spec=$lt_archiver_list_spec 15727 15728# A symbol stripping program. 15729STRIP=$lt_STRIP 15730 15731# Commands used to install an old-style archive. 15732RANLIB=$lt_RANLIB 15733old_postinstall_cmds=$lt_old_postinstall_cmds 15734old_postuninstall_cmds=$lt_old_postuninstall_cmds 15735 15736# Whether to use a lock for old archive extraction. 15737lock_old_archive_extraction=$lock_old_archive_extraction 15738 15739# A C compiler. 15740LTCC=$lt_CC 15741 15742# LTCC compiler flags. 15743LTCFLAGS=$lt_CFLAGS 15744 15745# Take the output of nm and produce a listing of raw symbols and C names. 15746global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15747 15748# Transform the output of nm in a proper C declaration. 15749global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15750 15751# Transform the output of nm into a list of symbols to manually relocate. 15752global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15753 15754# Transform the output of nm in a C name address pair. 15755global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15756 15757# Transform the output of nm in a C name address pair when lib prefix is needed. 15758global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15759 15760# The name lister interface. 15761nm_interface=$lt_lt_cv_nm_interface 15762 15763# Specify filename containing input files for \$NM. 15764nm_file_list_spec=$lt_nm_file_list_spec 15765 15766# The root where to search for dependent libraries,and where our libraries should be installed. 15767lt_sysroot=$lt_sysroot 15768 15769# Command to truncate a binary pipe. 15770lt_truncate_bin=$lt_lt_cv_truncate_bin 15771 15772# The name of the directory that contains temporary libtool files. 15773objdir=$objdir 15774 15775# Used to examine libraries when file_magic_cmd begins with "file". 15776MAGIC_CMD=$MAGIC_CMD 15777 15778# Must we lock files when doing compilation? 15779need_locks=$lt_need_locks 15780 15781# Manifest tool. 15782MANIFEST_TOOL=$lt_MANIFEST_TOOL 15783 15784# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15785DSYMUTIL=$lt_DSYMUTIL 15786 15787# Tool to change global to local symbols on Mac OS X. 15788NMEDIT=$lt_NMEDIT 15789 15790# Tool to manipulate fat objects and archives on Mac OS X. 15791LIPO=$lt_LIPO 15792 15793# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15794OTOOL=$lt_OTOOL 15795 15796# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15797OTOOL64=$lt_OTOOL64 15798 15799# Old archive suffix (normally "a"). 15800libext=$libext 15801 15802# Shared library suffix (normally ".so"). 15803shrext_cmds=$lt_shrext_cmds 15804 15805# The commands to extract the exported symbol list from a shared archive. 15806extract_expsyms_cmds=$lt_extract_expsyms_cmds 15807 15808# Variables whose values should be saved in libtool wrapper scripts and 15809# restored at link time. 15810variables_saved_for_relink=$lt_variables_saved_for_relink 15811 15812# Do we need the "lib" prefix for modules? 15813need_lib_prefix=$need_lib_prefix 15814 15815# Do we need a version for libraries? 15816need_version=$need_version 15817 15818# Library versioning type. 15819version_type=$version_type 15820 15821# Shared library runtime path variable. 15822runpath_var=$runpath_var 15823 15824# Shared library path variable. 15825shlibpath_var=$shlibpath_var 15826 15827# Is shlibpath searched before the hard-coded library search path? 15828shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15829 15830# Format of library name prefix. 15831libname_spec=$lt_libname_spec 15832 15833# List of archive names. First name is the real one, the rest are links. 15834# The last name is the one that the linker finds with -lNAME 15835library_names_spec=$lt_library_names_spec 15836 15837# The coded name of the library, if different from the real name. 15838soname_spec=$lt_soname_spec 15839 15840# Permission mode override for installation of shared libraries. 15841install_override_mode=$lt_install_override_mode 15842 15843# Command to use after installation of a shared archive. 15844postinstall_cmds=$lt_postinstall_cmds 15845 15846# Command to use after uninstallation of a shared archive. 15847postuninstall_cmds=$lt_postuninstall_cmds 15848 15849# Commands used to finish a libtool library installation in a directory. 15850finish_cmds=$lt_finish_cmds 15851 15852# As "finish_cmds", except a single script fragment to be evaled but 15853# not shown. 15854finish_eval=$lt_finish_eval 15855 15856# Whether we should hardcode library paths into libraries. 15857hardcode_into_libs=$hardcode_into_libs 15858 15859# Compile-time system search path for libraries. 15860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15861 15862# Detected run-time system search path for libraries. 15863sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15864 15865# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15866configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15867 15868# Whether dlopen is supported. 15869dlopen_support=$enable_dlopen 15870 15871# Whether dlopen of programs is supported. 15872dlopen_self=$enable_dlopen_self 15873 15874# Whether dlopen of statically linked programs is supported. 15875dlopen_self_static=$enable_dlopen_self_static 15876 15877# Commands to strip libraries. 15878old_striplib=$lt_old_striplib 15879striplib=$lt_striplib 15880 15881 15882# The linker used to build libraries. 15883LD=$lt_LD 15884 15885# How to create reloadable object files. 15886reload_flag=$lt_reload_flag 15887reload_cmds=$lt_reload_cmds 15888 15889# Commands used to build an old-style archive. 15890old_archive_cmds=$lt_old_archive_cmds 15891 15892# A language specific compiler. 15893CC=$lt_compiler 15894 15895# Is the compiler the GNU compiler? 15896with_gcc=$GCC 15897 15898# Compiler flag to turn off builtin functions. 15899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15900 15901# Additional compiler flags for building library objects. 15902pic_flag=$lt_lt_prog_compiler_pic 15903 15904# How to pass a linker flag through the compiler. 15905wl=$lt_lt_prog_compiler_wl 15906 15907# Compiler flag to prevent dynamic linking. 15908link_static_flag=$lt_lt_prog_compiler_static 15909 15910# Does compiler simultaneously support -c and -o options? 15911compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15912 15913# Whether or not to add -lc for building shared libraries. 15914build_libtool_need_lc=$archive_cmds_need_lc 15915 15916# Whether or not to disallow shared libs when runtime libs are static. 15917allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15918 15919# Compiler flag to allow reflexive dlopens. 15920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15921 15922# Compiler flag to generate shared objects directly from archives. 15923whole_archive_flag_spec=$lt_whole_archive_flag_spec 15924 15925# Whether the compiler copes with passing no objects directly. 15926compiler_needs_object=$lt_compiler_needs_object 15927 15928# Create an old-style archive from a shared archive. 15929old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15930 15931# Create a temporary old-style archive to link instead of a shared archive. 15932old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15933 15934# Commands used to build a shared archive. 15935archive_cmds=$lt_archive_cmds 15936archive_expsym_cmds=$lt_archive_expsym_cmds 15937 15938# Commands used to build a loadable module if different from building 15939# a shared archive. 15940module_cmds=$lt_module_cmds 15941module_expsym_cmds=$lt_module_expsym_cmds 15942 15943# Whether we are building with GNU ld or not. 15944with_gnu_ld=$lt_with_gnu_ld 15945 15946# Flag that allows shared libraries with undefined symbols to be built. 15947allow_undefined_flag=$lt_allow_undefined_flag 15948 15949# Flag that enforces no undefined symbols. 15950no_undefined_flag=$lt_no_undefined_flag 15951 15952# Flag to hardcode \$libdir into a binary during linking. 15953# This must work even if \$libdir does not exist 15954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15955 15956# Whether we need a single "-rpath" flag with a separated argument. 15957hardcode_libdir_separator=$lt_hardcode_libdir_separator 15958 15959# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15960# DIR into the resulting binary. 15961hardcode_direct=$hardcode_direct 15962 15963# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15964# DIR into the resulting binary and the resulting library dependency is 15965# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15966# library is relocated. 15967hardcode_direct_absolute=$hardcode_direct_absolute 15968 15969# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15970# into the resulting binary. 15971hardcode_minus_L=$hardcode_minus_L 15972 15973# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15974# into the resulting binary. 15975hardcode_shlibpath_var=$hardcode_shlibpath_var 15976 15977# Set to "yes" if building a shared library automatically hardcodes DIR 15978# into the library and all subsequent libraries and executables linked 15979# against it. 15980hardcode_automatic=$hardcode_automatic 15981 15982# Set to yes if linker adds runtime paths of dependent libraries 15983# to runtime path list. 15984inherit_rpath=$inherit_rpath 15985 15986# Whether libtool must link a program against all its dependency libraries. 15987link_all_deplibs=$link_all_deplibs 15988 15989# Set to "yes" if exported symbols are required. 15990always_export_symbols=$always_export_symbols 15991 15992# The commands to list exported symbols. 15993export_symbols_cmds=$lt_export_symbols_cmds 15994 15995# Symbols that should not be listed in the preloaded symbols. 15996exclude_expsyms=$lt_exclude_expsyms 15997 15998# Symbols that must always be exported. 15999include_expsyms=$lt_include_expsyms 16000 16001# Commands necessary for linking programs (against libraries) with templates. 16002prelink_cmds=$lt_prelink_cmds 16003 16004# Commands necessary for finishing linking programs. 16005postlink_cmds=$lt_postlink_cmds 16006 16007# Specify filename containing input files. 16008file_list_spec=$lt_file_list_spec 16009 16010# How to hardcode a shared library path into an executable. 16011hardcode_action=$hardcode_action 16012 16013# ### END LIBTOOL CONFIG 16014 16015_LT_EOF 16016 16017 cat <<'_LT_EOF' >> "$cfgfile" 16018 16019# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16020 16021# func_munge_path_list VARIABLE PATH 16022# ----------------------------------- 16023# VARIABLE is name of variable containing _space_ separated list of 16024# directories to be munged by the contents of PATH, which is string 16025# having a format: 16026# "DIR[:DIR]:" 16027# string "DIR[ DIR]" will be prepended to VARIABLE 16028# ":DIR[:DIR]" 16029# string "DIR[ DIR]" will be appended to VARIABLE 16030# "DIRP[:DIRP]::[DIRA:]DIRA" 16031# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16032# "DIRA[ DIRA]" will be appended to VARIABLE 16033# "DIR[:DIR]" 16034# VARIABLE will be replaced by "DIR[ DIR]" 16035func_munge_path_list () 16036{ 16037 case x$2 in 16038 x) 16039 ;; 16040 *:) 16041 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16042 ;; 16043 x:*) 16044 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16045 ;; 16046 *::*) 16047 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16048 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16049 ;; 16050 *) 16051 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16052 ;; 16053 esac 16054} 16055 16056 16057# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16058func_cc_basename () 16059{ 16060 for cc_temp in $*""; do 16061 case $cc_temp in 16062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16064 \-*) ;; 16065 *) break;; 16066 esac 16067 done 16068 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16069} 16070 16071 16072# ### END FUNCTIONS SHARED WITH CONFIGURE 16073 16074_LT_EOF 16075 16076 case $host_os in 16077 aix3*) 16078 cat <<\_LT_EOF >> "$cfgfile" 16079# AIX sometimes has problems with the GCC collect2 program. For some 16080# reason, if we set the COLLECT_NAMES environment variable, the problems 16081# vanish in a puff of smoke. 16082if test set != "${COLLECT_NAMES+set}"; then 16083 COLLECT_NAMES= 16084 export COLLECT_NAMES 16085fi 16086_LT_EOF 16087 ;; 16088 esac 16089 16090 16091 16092ltmain=$ac_aux_dir/ltmain.sh 16093 16094 16095 # We use sed instead of cat because bash on DJGPP gets confused if 16096 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16097 # text mode, it properly converts lines to CR/LF. This bash problem 16098 # is reportedly fixed, but why not run on old versions too? 16099 sed '$q' "$ltmain" >> "$cfgfile" \ 16100 || (rm -f "$cfgfile"; exit 1) 16101 16102 mv -f "$cfgfile" "$ofile" || 16103 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16104 chmod +x "$ofile" 16105 16106 ;; 16107 16108 esac 16109done # for ac_tag 16110 16111 16112as_fn_exit 0 16113_ACEOF 16114ac_clean_files=$ac_clean_files_save 16115 16116test $ac_write_fail = 0 || 16117 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16118 16119 16120# configure is writing to config.log, and then calls config.status. 16121# config.status does its own redirection, appending to config.log. 16122# Unfortunately, on DOS this fails, as config.log is still kept open 16123# by configure, so config.status won't be able to write to it; its 16124# output is simply discarded. So we exec the FD to /dev/null, 16125# effectively closing config.log, so it can be properly (re)opened and 16126# appended to by config.status. When coming back to configure, we 16127# need to make the FD available again. 16128if test "$no_create" != yes; then 16129 ac_cs_success=: 16130 ac_config_status_args= 16131 test "$silent" = yes && 16132 ac_config_status_args="$ac_config_status_args --quiet" 16133 exec 5>/dev/null 16134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16135 exec 5>>config.log 16136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16137 # would make configure fail if this is the last instruction. 16138 $ac_cs_success || as_fn_exit 1 16139fi 16140if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16142printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16143fi 16144 16145 16146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 16147 Prefix ${prefix} 16148 Libdir ${libdir} 16149 16150 Build documentation ${have_doxygen} 16151 Enable unit-tests ${HAVE_CHECK} 16152 Enable profiling ${enable_gcov} 16153 Enable coverity support ${enable_coverity} 16154 Static library symbol check ${static_symbol_leaks_test} 16155 " >&5 16156printf "%s\n" " 16157 Prefix ${prefix} 16158 Libdir ${libdir} 16159 16160 Build documentation ${have_doxygen} 16161 Enable unit-tests ${HAVE_CHECK} 16162 Enable profiling ${enable_gcov} 16163 Enable coverity support ${enable_coverity} 16164 Static library symbol check ${static_symbol_leaks_test} 16165 " >&6; } 16166 16167