1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gdnsd 2.4.3. 4# 5# Report bugs to <https://github.com/gdnsd/gdnsd/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://github.com/gdnsd/gdnsd/issues about your 279$0: system, including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='gdnsd' 592PACKAGE_TARNAME='gdnsd' 593PACKAGE_VERSION='2.4.3' 594PACKAGE_STRING='gdnsd 2.4.3' 595PACKAGE_BUGREPORT='https://github.com/gdnsd/gdnsd/issues' 596PACKAGE_URL='' 597 598ac_unique_file="src/main.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639LIBGDNSD_LIBS 640GDNSD_DEFPATH_LIBEXEC 641GDNSD_DEFPATH_LIB 642GDNSD_DEFPATH_STATE 643GDNSD_DEFPATH_CONFIG 644GDNSD_DEFPATH_RUN 645TESTPORT_START 646HAS_XZ_FALSE 647HAS_XZ_TRUE 648XZ 649TEST_CPUS 650RAGEL 651HAVE_TESTSUITE_MODULES 652PROVE 653POD2MAN 654PERL_VERSION 655PERL 656LIBEV_LIBS 657LIBEV_CFLAGS 658DO_SYSD_UNITFILE_FALSE 659DO_SYSD_UNITFILE_TRUE 660systemdsystemunitdir 661SYSD_UNITDIR 662PKG_CONFIG_LIBDIR 663PKG_CONFIG_PATH 664PKG_CONFIG 665QSBRLIBS 666GDNSD_B_QSBR 667MATH_LIB 668GEOIP2_LIBS 669LIBUNWIND_LIBS 670LDFLAGS_PIE 671CFLAGS_PIE 672LIBTOOL_DEPS 673LIBADD_DL 674LT_DLPREOPEN 675LIBADD_DLD_LINK 676LIBADD_SHL_LOAD 677LIBADD_DLOPEN 678LT_DLLOADERS 679LT_SYS_LIBRARY_PATH 680OTOOL64 681OTOOL 682LIPO 683NMEDIT 684DSYMUTIL 685MANIFEST_TOOL 686RANLIB 687DLLTOOL 688OBJDUMP 689LN_S 690NM 691ac_ct_DUMPBIN 692DUMPBIN 693LD 694FGREP 695LIBTOOL 696ac_ct_AR 697AR 698PTHREAD_CFLAGS 699PTHREAD_LIBS 700PTHREAD_CC 701ax_pthread_config 702SED 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711EGREP 712GREP 713CPP 714am__fastdepCC_FALSE 715am__fastdepCC_TRUE 716CCDEPMODE 717am__nodep 718AMDEPBACKSLASH 719AMDEP_FALSE 720AMDEP_TRUE 721am__include 722DEPDIR 723OBJEXT 724EXEEXT 725ac_ct_CC 726CPPFLAGS 727LDFLAGS 728CFLAGS 729CC 730AM_BACKSLASH 731AM_DEFAULT_VERBOSITY 732AM_DEFAULT_V 733AM_V 734am__untar 735am__tar 736AMTAR 737am__leading_dot 738SET_MAKE 739AWK 740mkdir_p 741MKDIR_P 742INSTALL_STRIP_PROGRAM 743STRIP 744install_sh 745MAKEINFO 746AUTOHEADER 747AUTOMAKE 748AUTOCONF 749ACLOCAL 750VERSION 751PACKAGE 752CYGPATH_W 753am__isrc 754INSTALL_DATA 755INSTALL_SCRIPT 756INSTALL_PROGRAM 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776runstatedir 777localstatedir 778sharedstatedir 779sysconfdir 780datadir 781datarootdir 782libexecdir 783sbindir 784bindir 785program_transform_name 786prefix 787exec_prefix 788PACKAGE_URL 789PACKAGE_BUGREPORT 790PACKAGE_STRING 791PACKAGE_VERSION 792PACKAGE_TARNAME 793PACKAGE_NAME 794PATH_SEPARATOR 795SHELL 796am__quote' 797ac_subst_files='' 798ac_user_opts=' 799enable_option_checking 800enable_silent_rules 801enable_dependency_tracking 802enable_static 803enable_shared 804with_pic 805enable_fast_install 806with_aix_soname 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810enable_developer 811with_hardening 812with_urcu 813with_systemdsystemunitdir 814with_testport 815with_rundir 816' 817 ac_precious_vars='build_alias 818host_alias 819target_alias 820CC 821CFLAGS 822LDFLAGS 823LIBS 824CPPFLAGS 825CPP 826LT_SYS_LIBRARY_PATH 827PKG_CONFIG 828PKG_CONFIG_PATH 829PKG_CONFIG_LIBDIR 830SYSD_UNITDIR 831LIBEV_CFLAGS 832LIBEV_LIBS 833PERL 834POD2MAN 835PROVE 836RAGEL 837TEST_CPUS 838XZ' 839 840 841# Initialize some variables set by options. 842ac_init_help= 843ac_init_version=false 844ac_unrecognized_opts= 845ac_unrecognized_sep= 846# The variables have the same names as the options, with 847# dashes changed to underlines. 848cache_file=/dev/null 849exec_prefix=NONE 850no_create= 851no_recursion= 852prefix=NONE 853program_prefix=NONE 854program_suffix=NONE 855program_transform_name=s,x,x, 856silent= 857site= 858srcdir= 859verbose= 860x_includes=NONE 861x_libraries=NONE 862 863# Installation directory options. 864# These are left unexpanded so users can "make install exec_prefix=/foo" 865# and all the variables that are supposed to be based on exec_prefix 866# by default will actually change. 867# Use braces instead of parens because sh, perl, etc. also accept them. 868# (The list follows the same order as the GNU Coding Standards.) 869bindir='${exec_prefix}/bin' 870sbindir='${exec_prefix}/sbin' 871libexecdir='${exec_prefix}/libexec' 872datarootdir='${prefix}/share' 873datadir='${datarootdir}' 874sysconfdir='${prefix}/etc' 875sharedstatedir='${prefix}/com' 876localstatedir='${prefix}/var' 877runstatedir='${localstatedir}/run' 878includedir='${prefix}/include' 879oldincludedir='/usr/include' 880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881infodir='${datarootdir}/info' 882htmldir='${docdir}' 883dvidir='${docdir}' 884pdfdir='${docdir}' 885psdir='${docdir}' 886libdir='${exec_prefix}/lib' 887localedir='${datarootdir}/locale' 888mandir='${datarootdir}/man' 889 890ac_prev= 891ac_dashdash= 892for ac_option 893do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 # Accept the important Cygnus configure options, so we can diagnose typos. 908 909 case $ac_dashdash$ac_option in 910 --) 911 ac_dashdash=yes ;; 912 913 -bindir | --bindir | --bindi | --bind | --bin | --bi) 914 ac_prev=bindir ;; 915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 916 bindir=$ac_optarg ;; 917 918 -build | --build | --buil | --bui | --bu) 919 ac_prev=build_alias ;; 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 921 build_alias=$ac_optarg ;; 922 923 -cache-file | --cache-file | --cache-fil | --cache-fi \ 924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 925 ac_prev=cache_file ;; 926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 928 cache_file=$ac_optarg ;; 929 930 --config-cache | -C) 931 cache_file=config.cache ;; 932 933 -datadir | --datadir | --datadi | --datad) 934 ac_prev=datadir ;; 935 -datadir=* | --datadir=* | --datadi=* | --datad=*) 936 datadir=$ac_optarg ;; 937 938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 939 | --dataroo | --dataro | --datar) 940 ac_prev=datarootdir ;; 941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 943 datarootdir=$ac_optarg ;; 944 945 -disable-* | --disable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=no ;; 960 961 -docdir | --docdir | --docdi | --doc | --do) 962 ac_prev=docdir ;; 963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 964 docdir=$ac_optarg ;; 965 966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 967 ac_prev=dvidir ;; 968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 969 dvidir=$ac_optarg ;; 970 971 -enable-* | --enable-*) 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 973 # Reject names that are not valid shell variable names. 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 975 as_fn_error $? "invalid feature name: $ac_useropt" 976 ac_useropt_orig=$ac_useropt 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 978 case $ac_user_opts in 979 *" 980"enable_$ac_useropt" 981"*) ;; 982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 983 ac_unrecognized_sep=', ';; 984 esac 985 eval enable_$ac_useropt=\$ac_optarg ;; 986 987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 989 | --exec | --exe | --ex) 990 ac_prev=exec_prefix ;; 991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 993 | --exec=* | --exe=* | --ex=*) 994 exec_prefix=$ac_optarg ;; 995 996 -gas | --gas | --ga | --g) 997 # Obsolete; use --with-gas. 998 with_gas=yes ;; 999 1000 -help | --help | --hel | --he | -h) 1001 ac_init_help=long ;; 1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1003 ac_init_help=recursive ;; 1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1005 ac_init_help=short ;; 1006 1007 -host | --host | --hos | --ho) 1008 ac_prev=host_alias ;; 1009 -host=* | --host=* | --hos=* | --ho=*) 1010 host_alias=$ac_optarg ;; 1011 1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1013 ac_prev=htmldir ;; 1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1015 | --ht=*) 1016 htmldir=$ac_optarg ;; 1017 1018 -includedir | --includedir | --includedi | --included | --include \ 1019 | --includ | --inclu | --incl | --inc) 1020 ac_prev=includedir ;; 1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1022 | --includ=* | --inclu=* | --incl=* | --inc=*) 1023 includedir=$ac_optarg ;; 1024 1025 -infodir | --infodir | --infodi | --infod | --info | --inf) 1026 ac_prev=infodir ;; 1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1028 infodir=$ac_optarg ;; 1029 1030 -libdir | --libdir | --libdi | --libd) 1031 ac_prev=libdir ;; 1032 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1033 libdir=$ac_optarg ;; 1034 1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1036 | --libexe | --libex | --libe) 1037 ac_prev=libexecdir ;; 1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1039 | --libexe=* | --libex=* | --libe=*) 1040 libexecdir=$ac_optarg ;; 1041 1042 -localedir | --localedir | --localedi | --localed | --locale) 1043 ac_prev=localedir ;; 1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1045 localedir=$ac_optarg ;; 1046 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1048 | --localstate | --localstat | --localsta | --localst | --locals) 1049 ac_prev=localstatedir ;; 1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1052 localstatedir=$ac_optarg ;; 1053 1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1055 ac_prev=mandir ;; 1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1057 mandir=$ac_optarg ;; 1058 1059 -nfp | --nfp | --nf) 1060 # Obsolete; use --without-fp. 1061 with_fp=no ;; 1062 1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1064 | --no-cr | --no-c | -n) 1065 no_create=yes ;; 1066 1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1069 no_recursion=yes ;; 1070 1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1073 | --oldin | --oldi | --old | --ol | --o) 1074 ac_prev=oldincludedir ;; 1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1078 oldincludedir=$ac_optarg ;; 1079 1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1081 ac_prev=prefix ;; 1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1083 prefix=$ac_optarg ;; 1084 1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1086 | --program-pre | --program-pr | --program-p) 1087 ac_prev=program_prefix ;; 1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1090 program_prefix=$ac_optarg ;; 1091 1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1093 | --program-suf | --program-su | --program-s) 1094 ac_prev=program_suffix ;; 1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1097 program_suffix=$ac_optarg ;; 1098 1099 -program-transform-name | --program-transform-name \ 1100 | --program-transform-nam | --program-transform-na \ 1101 | --program-transform-n | --program-transform- \ 1102 | --program-transform | --program-transfor \ 1103 | --program-transfo | --program-transf \ 1104 | --program-trans | --program-tran \ 1105 | --progr-tra | --program-tr | --program-t) 1106 ac_prev=program_transform_name ;; 1107 -program-transform-name=* | --program-transform-name=* \ 1108 | --program-transform-nam=* | --program-transform-na=* \ 1109 | --program-transform-n=* | --program-transform-=* \ 1110 | --program-transform=* | --program-transfor=* \ 1111 | --program-transfo=* | --program-transf=* \ 1112 | --program-trans=* | --program-tran=* \ 1113 | --progr-tra=* | --program-tr=* | --program-t=*) 1114 program_transform_name=$ac_optarg ;; 1115 1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1117 ac_prev=pdfdir ;; 1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1119 pdfdir=$ac_optarg ;; 1120 1121 -psdir | --psdir | --psdi | --psd | --ps) 1122 ac_prev=psdir ;; 1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1124 psdir=$ac_optarg ;; 1125 1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1127 | -silent | --silent | --silen | --sile | --sil) 1128 silent=yes ;; 1129 1130 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1131 | --runstate | --runstat | --runsta | --runst | --runs \ 1132 | --run | --ru | --r) 1133 ac_prev=runstatedir ;; 1134 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1135 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1136 | --run=* | --ru=* | --r=*) 1137 runstatedir=$ac_optarg ;; 1138 1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1140 ac_prev=sbindir ;; 1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1142 | --sbi=* | --sb=*) 1143 sbindir=$ac_optarg ;; 1144 1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1147 | --sharedst | --shareds | --shared | --share | --shar \ 1148 | --sha | --sh) 1149 ac_prev=sharedstatedir ;; 1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1153 | --sha=* | --sh=*) 1154 sharedstatedir=$ac_optarg ;; 1155 1156 -site | --site | --sit) 1157 ac_prev=site ;; 1158 -site=* | --site=* | --sit=*) 1159 site=$ac_optarg ;; 1160 1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1162 ac_prev=srcdir ;; 1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1164 srcdir=$ac_optarg ;; 1165 1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1167 | --syscon | --sysco | --sysc | --sys | --sy) 1168 ac_prev=sysconfdir ;; 1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1171 sysconfdir=$ac_optarg ;; 1172 1173 -target | --target | --targe | --targ | --tar | --ta | --t) 1174 ac_prev=target_alias ;; 1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1176 target_alias=$ac_optarg ;; 1177 1178 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1179 verbose=yes ;; 1180 1181 -version | --version | --versio | --versi | --vers | -V) 1182 ac_init_version=: ;; 1183 1184 -with-* | --with-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=\$ac_optarg ;; 1199 1200 -without-* | --without-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: $ac_useropt" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209"with_$ac_useropt" 1210"*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=no ;; 1215 1216 --x) 1217 # Obsolete; use --with-x. 1218 with_x=yes ;; 1219 1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1221 | --x-incl | --x-inc | --x-in | --x-i) 1222 ac_prev=x_includes ;; 1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1225 x_includes=$ac_optarg ;; 1226 1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1229 ac_prev=x_libraries ;; 1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1232 x_libraries=$ac_optarg ;; 1233 1234 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1235Try \`$0 --help' for more information" 1236 ;; 1237 1238 *=*) 1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1240 # Reject names that are not valid shell variable names. 1241 case $ac_envvar in #( 1242 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1244 esac 1245 eval $ac_envvar=\$ac_optarg 1246 export $ac_envvar ;; 1247 1248 *) 1249 # FIXME: should be removed in autoconf 3.0. 1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1254 ;; 1255 1256 esac 1257done 1258 1259if test -n "$ac_prev"; then 1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1261 as_fn_error $? "missing argument to $ac_option" 1262fi 1263 1264if test -n "$ac_unrecognized_opts"; then 1265 case $enable_option_checking in 1266 no) ;; 1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1269 esac 1270fi 1271 1272# Check all directory arguments for consistency. 1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1274 datadir sysconfdir sharedstatedir localstatedir includedir \ 1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1276 libdir localedir mandir runstatedir 1277do 1278 eval ac_val=\$$ac_var 1279 # Remove trailing slashes. 1280 case $ac_val in 1281 */ ) 1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1283 eval $ac_var=\$ac_val;; 1284 esac 1285 # Be sure to have absolute directory names. 1286 case $ac_val in 1287 [\\/$]* | ?:[\\/]* ) continue;; 1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1289 esac 1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1291done 1292 1293# There might be people who depend on the old broken behavior: `$host' 1294# used to hold the argument of --host etc. 1295# FIXME: To remove some day. 1296build=$build_alias 1297host=$host_alias 1298target=$target_alias 1299 1300# FIXME: To remove some day. 1301if test "x$host_alias" != x; then 1302 if test "x$build_alias" = x; then 1303 cross_compiling=maybe 1304 elif test "x$build_alias" != "x$host_alias"; then 1305 cross_compiling=yes 1306 fi 1307fi 1308 1309ac_tool_prefix= 1310test -n "$host_alias" && ac_tool_prefix=$host_alias- 1311 1312test "$silent" = yes && exec 6>/dev/null 1313 1314 1315ac_pwd=`pwd` && test -n "$ac_pwd" && 1316ac_ls_di=`ls -di .` && 1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1318 as_fn_error $? "working directory cannot be determined" 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1320 as_fn_error $? "pwd does not report name of working directory" 1321 1322 1323# Find the source files, if location was not specified. 1324if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$as_myself" || 1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$as_myself" : 'X\(//\)[^/]' \| \ 1330 X"$as_myself" : 'X\(//\)$' \| \ 1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1332$as_echo X"$as_myself" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354else 1355 ac_srcdir_defaulted=no 1356fi 1357if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1360fi 1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1362ac_abs_confdir=`( 1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1364 pwd)` 1365# When building in place, set srcdir=. 1366if test "$ac_abs_confdir" = "$ac_pwd"; then 1367 srcdir=. 1368fi 1369# Remove unnecessary trailing slashes from srcdir. 1370# Double slashes in file names in object file debugging info 1371# mess up M-x gdb in Emacs. 1372case $srcdir in 1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1374esac 1375for ac_var in $ac_precious_vars; do 1376 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_env_${ac_var}_value=\$${ac_var} 1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1380done 1381 1382# 1383# Report the --help message. 1384# 1385if test "$ac_init_help" = "long"; then 1386 # Omit some internal or obsolete options to make the list less imposing. 1387 # This message is too long to be a string in the A/UX 3.1 sh. 1388 cat <<_ACEOF 1389\`configure' configures gdnsd 2.4.3 to adapt to many kinds of systems. 1390 1391Usage: $0 [OPTION]... [VAR=VALUE]... 1392 1393To assign environment variables (e.g., CC, CFLAGS...), specify them as 1394VAR=VALUE. See below for descriptions of some of the useful variables. 1395 1396Defaults for the options are specified in brackets. 1397 1398Configuration: 1399 -h, --help display this help and exit 1400 --help=short display options specific to this package 1401 --help=recursive display the short help of all the included packages 1402 -V, --version display version information and exit 1403 -q, --quiet, --silent do not print \`checking ...' messages 1404 --cache-file=FILE cache test results in FILE [disabled] 1405 -C, --config-cache alias for \`--cache-file=config.cache' 1406 -n, --no-create do not create output files 1407 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1408 1409Installation directories: 1410 --prefix=PREFIX install architecture-independent files in PREFIX 1411 [$ac_default_prefix] 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1413 [PREFIX] 1414 1415By default, \`make install' will install all the files in 1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1417an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1418for instance \`--prefix=\$HOME'. 1419 1420For better control, use the options below. 1421 1422Fine tuning of the installation directories: 1423 --bindir=DIR user executables [EPREFIX/bin] 1424 --sbindir=DIR system admin executables [EPREFIX/sbin] 1425 --libexecdir=DIR program executables [EPREFIX/libexec] 1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/gdnsd] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443_ACEOF 1444 1445 cat <<\_ACEOF 1446 1447Program names: 1448 --program-prefix=PREFIX prepend PREFIX to installed program names 1449 --program-suffix=SUFFIX append SUFFIX to installed program names 1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1451 1452System types: 1453 --build=BUILD configure for building on BUILD [guessed] 1454 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1455_ACEOF 1456fi 1457 1458if test -n "$ac_init_help"; then 1459 case $ac_init_help in 1460 short | recursive ) echo "Configuration of gdnsd 2.4.3:";; 1461 esac 1462 cat <<\_ACEOF 1463 1464Optional Features: 1465 --disable-option-checking ignore unrecognized --enable/--with options 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --enable-silent-rules less verbose build output (undo: "make V=1") 1469 --disable-silent-rules verbose build output (undo: "make V=0") 1470 --enable-dependency-tracking 1471 do not reject slow dependency extractors 1472 --disable-dependency-tracking 1473 speeds up one-time build 1474 --enable-static[=PKGS] build static libraries [default=no] 1475 --enable-shared[=PKGS] build shared libraries [default=yes] 1476 --enable-fast-install[=PKGS] 1477 optimize for fast installation [default=yes] 1478 --disable-libtool-lock avoid locking (might break parallel builds) 1479 --enable-developer Turn on gcc developer warnings, debugging, etc (default=no) 1480 1481Optional Packages: 1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1484 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1485 both] 1486 --with-aix-soname=aix|svr4|both 1487 shared library versioning (aka "SONAME") variant to 1488 provide on AIX, [default=aix]. 1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1490 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1491 compiler's sysroot if not specified). 1492 --without-hardening Disable compiler/linker flags for security hardening 1493 --without-urcu Explicitly disable userspace-rcu detection 1494 --with-systemdsystemunitdir=DIR 1495 Directory for systemd service files 1496 --with-testport=N The testsuite needs ~300 IP port numbers to use, 1497 starting at "N", that it can bind to on "127.0.0.1" 1498 and "::1". If the default value of "12345" does not 1499 work for you, change it here. 1500 --with-rundir=LOCALSTATEDIR/run 1501 Specify alternate ditro-specific rundir, e.g. /run 1502 1503Some influential environment variables: 1504 CC C compiler command 1505 CFLAGS C compiler flags 1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1507 nonstandard directory <lib dir> 1508 LIBS libraries to pass to the linker, e.g. -l<library> 1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1510 you have headers in a nonstandard directory <include dir> 1511 CPP C preprocessor 1512 LT_SYS_LIBRARY_PATH 1513 User-defined run-time library search path. 1514 PKG_CONFIG path to pkg-config utility 1515 PKG_CONFIG_PATH 1516 directories to add to pkg-config's search path 1517 PKG_CONFIG_LIBDIR 1518 path overriding pkg-config's built-in search path 1519 SYSD_UNITDIR 1520 value of systemdsystemunitdir for systemd, overriding pkg-config 1521 LIBEV_CFLAGS 1522 C compiler flags for LIBEV, overriding pkg-config 1523 LIBEV_LIBS linker flags for LIBEV, overriding pkg-config 1524 PERL path to Perl 5.10.1 or higher 1525 POD2MAN path to the Perl "pod2man" command 1526 PROVE path to the Perl Test::Harness "prove" command 1527 RAGEL path to ragel version 6.x 1528 TEST_CPUS number of CPUs to assume when parallelizing the testsuite 1529 XZ path to xz compression utility 1530 1531Use these variables to override the choices made by `configure' or to help 1532it to find libraries and programs with nonstandard names/locations. 1533 1534Report bugs to <https://github.com/gdnsd/gdnsd/issues>. 1535_ACEOF 1536ac_status=$? 1537fi 1538 1539if test "$ac_init_help" = "recursive"; then 1540 # If there are subdirs, report their specific --help. 1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1542 test -d "$ac_dir" || 1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1544 continue 1545 ac_builddir=. 1546 1547case "$ac_dir" in 1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549*) 1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557esac 1558ac_abs_top_builddir=$ac_pwd 1559ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560# for backward compatibility: 1561ac_top_builddir=$ac_top_build_prefix 1562 1563case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576esac 1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for guested configure. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597gdnsd configure 2.4.3 1598generated by GNU Autoconf 2.69 1599 1600Copyright (C) 2012 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624$as_echo "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext; then : 1637 ac_retval=0 1638else 1639 $as_echo "$as_me: failed program was:" >&5 1640sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 ac_retval=1 1643fi 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 as_fn_set_status $ac_retval 1646 1647} # ac_fn_c_try_compile 1648 1649# ac_fn_c_try_cpp LINENO 1650# ---------------------- 1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1652ac_fn_c_try_cpp () 1653{ 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 if { { ac_try="$ac_cpp conftest.$ac_ext" 1656case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1663 ac_status=$? 1664 if test -s conftest.err; then 1665 grep -v '^ *+' conftest.err >conftest.er1 1666 cat conftest.er1 >&5 1667 mv -f conftest.er1 conftest.err 1668 fi 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } > conftest.i && { 1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1672 test ! -s conftest.err 1673 }; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_cpp 1685 1686# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1687# ------------------------------------------------------- 1688# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1689# the include files in INCLUDES and setting the cache variable VAR 1690# accordingly. 1691ac_fn_c_check_header_mongrel () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 if eval \${$3+:} false; then : 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1696$as_echo_n "checking for $2... " >&6; } 1697if eval \${$3+:} false; then : 1698 $as_echo_n "(cached) " >&6 1699fi 1700eval ac_res=\$$3 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1702$as_echo "$ac_res" >&6; } 1703else 1704 # Is the header compilable? 1705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1706$as_echo_n "checking $2 usability... " >&6; } 1707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708/* end confdefs.h. */ 1709$4 1710#include <$2> 1711_ACEOF 1712if ac_fn_c_try_compile "$LINENO"; then : 1713 ac_header_compiler=yes 1714else 1715 ac_header_compiler=no 1716fi 1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1719$as_echo "$ac_header_compiler" >&6; } 1720 1721# Is the header present? 1722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1723$as_echo_n "checking $2 presence... " >&6; } 1724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1725/* end confdefs.h. */ 1726#include <$2> 1727_ACEOF 1728if ac_fn_c_try_cpp "$LINENO"; then : 1729 ac_header_preproc=yes 1730else 1731 ac_header_preproc=no 1732fi 1733rm -f conftest.err conftest.i conftest.$ac_ext 1734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1735$as_echo "$ac_header_preproc" >&6; } 1736 1737# So? What about this header? 1738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1739 yes:no: ) 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1741$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1743$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1744 ;; 1745 no:yes:* ) 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1747$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1749$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1751$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1753$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1756( $as_echo "## ---------------------------------------------------- ## 1757## Report this to https://github.com/gdnsd/gdnsd/issues ## 1758## ---------------------------------------------------- ##" 1759 ) | sed "s/^/$as_me: WARNING: /" >&2 1760 ;; 1761esac 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1763$as_echo_n "checking for $2... " >&6; } 1764if eval \${$3+:} false; then : 1765 $as_echo_n "(cached) " >&6 1766else 1767 eval "$3=\$ac_header_compiler" 1768fi 1769eval ac_res=\$$3 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771$as_echo "$ac_res" >&6; } 1772fi 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_header_mongrel 1776 1777# ac_fn_c_try_run LINENO 1778# ---------------------- 1779# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1780# that executables *can* be run. 1781ac_fn_c_try_run () 1782{ 1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1784 if { { ac_try="$ac_link" 1785case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_link") 2>&5 1792 ac_status=$? 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1795 { { case "(($ac_try" in 1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1797 *) ac_try_echo=$ac_try;; 1798esac 1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1800$as_echo "$ac_try_echo"; } >&5 1801 (eval "$ac_try") 2>&5 1802 ac_status=$? 1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804 test $ac_status = 0; }; }; then : 1805 ac_retval=0 1806else 1807 $as_echo "$as_me: program exited with status $ac_status" >&5 1808 $as_echo "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=$ac_status 1812fi 1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 as_fn_set_status $ac_retval 1816 1817} # ac_fn_c_try_run 1818 1819# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1820# ------------------------------------------------------- 1821# Tests whether HEADER exists and can be compiled using the include files in 1822# INCLUDES, setting the cache variable VAR accordingly. 1823ac_fn_c_check_header_compile () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830else 1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833$4 1834#include <$2> 1835_ACEOF 1836if ac_fn_c_try_compile "$LINENO"; then : 1837 eval "$3=yes" 1838else 1839 eval "$3=no" 1840fi 1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1842fi 1843eval ac_res=\$$3 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845$as_echo "$ac_res" >&6; } 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 1848} # ac_fn_c_check_header_compile 1849 1850# ac_fn_c_try_link LINENO 1851# ----------------------- 1852# Try to link conftest.$ac_ext, and return whether this succeeded. 1853ac_fn_c_try_link () 1854{ 1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1856 rm -f conftest.$ac_objext conftest$ac_exeext 1857 if { { ac_try="$ac_link" 1858case "(($ac_try" in 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1860 *) ac_try_echo=$ac_try;; 1861esac 1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1863$as_echo "$ac_try_echo"; } >&5 1864 (eval "$ac_link") 2>conftest.err 1865 ac_status=$? 1866 if test -s conftest.err; then 1867 grep -v '^ *+' conftest.err >conftest.er1 1868 cat conftest.er1 >&5 1869 mv -f conftest.er1 conftest.err 1870 fi 1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; } && { 1873 test -z "$ac_c_werror_flag" || 1874 test ! -s conftest.err 1875 } && test -s conftest$ac_exeext && { 1876 test "$cross_compiling" = yes || 1877 test -x conftest$ac_exeext 1878 }; then : 1879 ac_retval=0 1880else 1881 $as_echo "$as_me: failed program was:" >&5 1882sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=1 1885fi 1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1888 # interfere with the next link command; also delete a directory that is 1889 # left behind by Apple's compiler. We do this before executing the actions. 1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 as_fn_set_status $ac_retval 1893 1894} # ac_fn_c_try_link 1895 1896# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1897# -------------------------------------------- 1898# Tries to find the compile-time value of EXPR in a program that includes 1899# INCLUDES, setting VAR accordingly. Returns whether the value could be 1900# computed 1901ac_fn_c_compute_int () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 if test "$cross_compiling" = yes; then 1905 # Depending upon the size, compute the lo and hi bounds. 1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1907/* end confdefs.h. */ 1908$4 1909int 1910main () 1911{ 1912static int test_array [1 - 2 * !(($2) >= 0)]; 1913test_array [0] = 0; 1914return test_array [0]; 1915 1916 ; 1917 return 0; 1918} 1919_ACEOF 1920if ac_fn_c_try_compile "$LINENO"; then : 1921 ac_lo=0 ac_mid=0 1922 while :; do 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926int 1927main () 1928{ 1929static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1930test_array [0] = 0; 1931return test_array [0]; 1932 1933 ; 1934 return 0; 1935} 1936_ACEOF 1937if ac_fn_c_try_compile "$LINENO"; then : 1938 ac_hi=$ac_mid; break 1939else 1940 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1941 if test $ac_lo -le $ac_mid; then 1942 ac_lo= ac_hi= 1943 break 1944 fi 1945 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1946fi 1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1948 done 1949else 1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1951/* end confdefs.h. */ 1952$4 1953int 1954main () 1955{ 1956static int test_array [1 - 2 * !(($2) < 0)]; 1957test_array [0] = 0; 1958return test_array [0]; 1959 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 ac_hi=-1 ac_mid=-1 1966 while :; do 1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969$4 1970int 1971main () 1972{ 1973static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1974test_array [0] = 0; 1975return test_array [0]; 1976 1977 ; 1978 return 0; 1979} 1980_ACEOF 1981if ac_fn_c_try_compile "$LINENO"; then : 1982 ac_lo=$ac_mid; break 1983else 1984 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1985 if test $ac_mid -le $ac_hi; then 1986 ac_lo= ac_hi= 1987 break 1988 fi 1989 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1990fi 1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1992 done 1993else 1994 ac_lo= ac_hi= 1995fi 1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1997fi 1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1999# Binary search between lo and hi bounds. 2000while test "x$ac_lo" != "x$ac_hi"; do 2001 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main () 2007{ 2008static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2009test_array [0] = 0; 2010return test_array [0]; 2011 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 ac_hi=$ac_mid 2018else 2019 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022done 2023case $ac_lo in #(( 2024?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2025'') ac_retval=1 ;; 2026esac 2027 else 2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029/* end confdefs.h. */ 2030$4 2031static long int longval () { return $2; } 2032static unsigned long int ulongval () { return $2; } 2033#include <stdio.h> 2034#include <stdlib.h> 2035int 2036main () 2037{ 2038 2039 FILE *f = fopen ("conftest.val", "w"); 2040 if (! f) 2041 return 1; 2042 if (($2) < 0) 2043 { 2044 long int i = longval (); 2045 if (i != ($2)) 2046 return 1; 2047 fprintf (f, "%ld", i); 2048 } 2049 else 2050 { 2051 unsigned long int i = ulongval (); 2052 if (i != ($2)) 2053 return 1; 2054 fprintf (f, "%lu", i); 2055 } 2056 /* Do not output a trailing newline, as this causes \r\n confusion 2057 on some platforms. */ 2058 return ferror (f) || fclose (f) != 0; 2059 2060 ; 2061 return 0; 2062} 2063_ACEOF 2064if ac_fn_c_try_run "$LINENO"; then : 2065 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2066else 2067 ac_retval=1 2068fi 2069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2070 conftest.$ac_objext conftest.beam conftest.$ac_ext 2071rm -f conftest.val 2072 2073 fi 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 as_fn_set_status $ac_retval 2076 2077} # ac_fn_c_compute_int 2078 2079# ac_fn_c_check_func LINENO FUNC VAR 2080# ---------------------------------- 2081# Tests whether FUNC exists, setting the cache variable VAR accordingly 2082ac_fn_c_check_func () 2083{ 2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2086$as_echo_n "checking for $2... " >&6; } 2087if eval \${$3+:} false; then : 2088 $as_echo_n "(cached) " >&6 2089else 2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2094#define $2 innocuous_$2 2095 2096/* System header to define __stub macros and hopefully few prototypes, 2097 which can conflict with char $2 (); below. 2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2099 <limits.h> exists even on freestanding compilers. */ 2100 2101#ifdef __STDC__ 2102# include <limits.h> 2103#else 2104# include <assert.h> 2105#endif 2106 2107#undef $2 2108 2109/* Override any GCC internal prototype to avoid an error. 2110 Use char because int might match the return type of a GCC 2111 builtin and then its argument prototype would still apply. */ 2112#ifdef __cplusplus 2113extern "C" 2114#endif 2115char $2 (); 2116/* The GNU C library defines this for functions which it implements 2117 to always fail with ENOSYS. Some functions are actually named 2118 something starting with __ and the normal name is an alias. */ 2119#if defined __stub_$2 || defined __stub___$2 2120choke me 2121#endif 2122 2123int 2124main () 2125{ 2126return $2 (); 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_link "$LINENO"; then : 2132 eval "$3=yes" 2133else 2134 eval "$3=no" 2135fi 2136rm -f core conftest.err conftest.$ac_objext \ 2137 conftest$ac_exeext conftest.$ac_ext 2138fi 2139eval ac_res=\$$3 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2141$as_echo "$ac_res" >&6; } 2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2143 2144} # ac_fn_c_check_func 2145 2146# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2147# --------------------------------------------- 2148# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2149# accordingly. 2150ac_fn_c_check_decl () 2151{ 2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2153 as_decl_name=`echo $2|sed 's/ *(.*//'` 2154 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2156$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2157if eval \${$3+:} false; then : 2158 $as_echo_n "(cached) " >&6 2159else 2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161/* end confdefs.h. */ 2162$4 2163int 2164main () 2165{ 2166#ifndef $as_decl_name 2167#ifdef __cplusplus 2168 (void) $as_decl_use; 2169#else 2170 (void) $as_decl_name; 2171#endif 2172#endif 2173 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_c_try_compile "$LINENO"; then : 2179 eval "$3=yes" 2180else 2181 eval "$3=no" 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185eval ac_res=\$$3 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2187$as_echo "$ac_res" >&6; } 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 2190} # ac_fn_c_check_decl 2191 2192# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2193# ---------------------------------------------------- 2194# Tries to find if the field MEMBER exists in type AGGR, after including 2195# INCLUDES, setting cache variable VAR accordingly. 2196ac_fn_c_check_member () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2200$as_echo_n "checking for $2.$3... " >&6; } 2201if eval \${$4+:} false; then : 2202 $as_echo_n "(cached) " >&6 2203else 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$5 2207int 2208main () 2209{ 2210static $2 ac_aggr; 2211if (ac_aggr.$3) 2212return 0; 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_c_try_compile "$LINENO"; then : 2218 eval "$4=yes" 2219else 2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2221/* end confdefs.h. */ 2222$5 2223int 2224main () 2225{ 2226static $2 ac_aggr; 2227if (sizeof ac_aggr.$3) 2228return 0; 2229 ; 2230 return 0; 2231} 2232_ACEOF 2233if ac_fn_c_try_compile "$LINENO"; then : 2234 eval "$4=yes" 2235else 2236 eval "$4=no" 2237fi 2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2241fi 2242eval ac_res=\$$4 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2244$as_echo "$ac_res" >&6; } 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2246 2247} # ac_fn_c_check_member 2248cat >config.log <<_ACEOF 2249This file contains any messages produced by compilers while 2250running configure, to aid debugging if configure makes a mistake. 2251 2252It was created by gdnsd $as_me 2.4.3, which was 2253generated by GNU Autoconf 2.69. Invocation command line was 2254 2255 $ $0 $@ 2256 2257_ACEOF 2258exec 5>>config.log 2259{ 2260cat <<_ASUNAME 2261## --------- ## 2262## Platform. ## 2263## --------- ## 2264 2265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2266uname -m = `(uname -m) 2>/dev/null || echo unknown` 2267uname -r = `(uname -r) 2>/dev/null || echo unknown` 2268uname -s = `(uname -s) 2>/dev/null || echo unknown` 2269uname -v = `(uname -v) 2>/dev/null || echo unknown` 2270 2271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2272/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2273 2274/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2275/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2277/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2278/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2279/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2280/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2281 2282_ASUNAME 2283 2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2285for as_dir in $PATH 2286do 2287 IFS=$as_save_IFS 2288 test -z "$as_dir" && as_dir=. 2289 $as_echo "PATH: $as_dir" 2290 done 2291IFS=$as_save_IFS 2292 2293} >&5 2294 2295cat >&5 <<_ACEOF 2296 2297 2298## ----------- ## 2299## Core tests. ## 2300## ----------- ## 2301 2302_ACEOF 2303 2304 2305# Keep a trace of the command line. 2306# Strip out --no-create and --no-recursion so they do not pile up. 2307# Strip out --silent because we don't want to record it for future runs. 2308# Also quote any args containing shell meta-characters. 2309# Make two passes to allow for proper duplicate-argument suppression. 2310ac_configure_args= 2311ac_configure_args0= 2312ac_configure_args1= 2313ac_must_keep_next=false 2314for ac_pass in 1 2 2315do 2316 for ac_arg 2317 do 2318 case $ac_arg in 2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2321 | -silent | --silent | --silen | --sile | --sil) 2322 continue ;; 2323 *\'*) 2324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2325 esac 2326 case $ac_pass in 2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2328 2) 2329 as_fn_append ac_configure_args1 " '$ac_arg'" 2330 if test $ac_must_keep_next = true; then 2331 ac_must_keep_next=false # Got value, back to normal. 2332 else 2333 case $ac_arg in 2334 *=* | --config-cache | -C | -disable-* | --disable-* \ 2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2337 | -with-* | --with-* | -without-* | --without-* | --x) 2338 case "$ac_configure_args0 " in 2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2340 esac 2341 ;; 2342 -* ) ac_must_keep_next=true ;; 2343 esac 2344 fi 2345 as_fn_append ac_configure_args " '$ac_arg'" 2346 ;; 2347 esac 2348 done 2349done 2350{ ac_configure_args0=; unset ac_configure_args0;} 2351{ ac_configure_args1=; unset ac_configure_args1;} 2352 2353# When interrupted or exit'd, cleanup temporary files, and complete 2354# config.log. We remove comments because anyway the quotes in there 2355# would cause problems or look ugly. 2356# WARNING: Use '\'' to represent an apostrophe within the trap. 2357# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2358trap 'exit_status=$? 2359 # Save into config.log some information that might help in debugging. 2360 { 2361 echo 2362 2363 $as_echo "## ---------------- ## 2364## Cache variables. ## 2365## ---------------- ##" 2366 echo 2367 # The following way of writing the cache mishandles newlines in values, 2368( 2369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2370 eval ac_val=\$$ac_var 2371 case $ac_val in #( 2372 *${as_nl}*) 2373 case $ac_var in #( 2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2375$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2376 esac 2377 case $ac_var in #( 2378 _ | IFS | as_nl) ;; #( 2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2380 *) { eval $ac_var=; unset $ac_var;} ;; 2381 esac ;; 2382 esac 2383 done 2384 (set) 2>&1 | 2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2386 *${as_nl}ac_space=\ *) 2387 sed -n \ 2388 "s/'\''/'\''\\\\'\'''\''/g; 2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2390 ;; #( 2391 *) 2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2393 ;; 2394 esac | 2395 sort 2396) 2397 echo 2398 2399 $as_echo "## ----------------- ## 2400## Output variables. ## 2401## ----------------- ##" 2402 echo 2403 for ac_var in $ac_subst_vars 2404 do 2405 eval ac_val=\$$ac_var 2406 case $ac_val in 2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2408 esac 2409 $as_echo "$ac_var='\''$ac_val'\''" 2410 done | sort 2411 echo 2412 2413 if test -n "$ac_subst_files"; then 2414 $as_echo "## ------------------- ## 2415## File substitutions. ## 2416## ------------------- ##" 2417 echo 2418 for ac_var in $ac_subst_files 2419 do 2420 eval ac_val=\$$ac_var 2421 case $ac_val in 2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2423 esac 2424 $as_echo "$ac_var='\''$ac_val'\''" 2425 done | sort 2426 echo 2427 fi 2428 2429 if test -s confdefs.h; then 2430 $as_echo "## ----------- ## 2431## confdefs.h. ## 2432## ----------- ##" 2433 echo 2434 cat confdefs.h 2435 echo 2436 fi 2437 test "$ac_signal" != 0 && 2438 $as_echo "$as_me: caught signal $ac_signal" 2439 $as_echo "$as_me: exit $exit_status" 2440 } >&5 2441 rm -f core *.core core.conftest.* && 2442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2443 exit $exit_status 2444' 0 2445for ac_signal in 1 2 13 15; do 2446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2447done 2448ac_signal=0 2449 2450# confdefs.h avoids OS command line length limits that DEFS can exceed. 2451rm -f -r conftest* confdefs.h 2452 2453$as_echo "/* confdefs.h */" > confdefs.h 2454 2455# Predefined preprocessor variables. 2456 2457cat >>confdefs.h <<_ACEOF 2458#define PACKAGE_NAME "$PACKAGE_NAME" 2459_ACEOF 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2463_ACEOF 2464 2465cat >>confdefs.h <<_ACEOF 2466#define PACKAGE_VERSION "$PACKAGE_VERSION" 2467_ACEOF 2468 2469cat >>confdefs.h <<_ACEOF 2470#define PACKAGE_STRING "$PACKAGE_STRING" 2471_ACEOF 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_URL "$PACKAGE_URL" 2479_ACEOF 2480 2481 2482# Let the site file select an alternate cache file if it wants to. 2483# Prefer an explicitly selected file to automatically selected ones. 2484ac_site_file1=NONE 2485ac_site_file2=NONE 2486if test -n "$CONFIG_SITE"; then 2487 # We do not want a PATH search for config.site. 2488 case $CONFIG_SITE in #(( 2489 -*) ac_site_file1=./$CONFIG_SITE;; 2490 */*) ac_site_file1=$CONFIG_SITE;; 2491 *) ac_site_file1=./$CONFIG_SITE;; 2492 esac 2493elif test "x$prefix" != xNONE; then 2494 ac_site_file1=$prefix/share/config.site 2495 ac_site_file2=$prefix/etc/config.site 2496else 2497 ac_site_file1=$ac_default_prefix/share/config.site 2498 ac_site_file2=$ac_default_prefix/etc/config.site 2499fi 2500for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2501do 2502 test "x$ac_site_file" = xNONE && continue 2503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2505$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2506 sed 's/^/| /' "$ac_site_file" >&5 2507 . "$ac_site_file" \ 2508 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2510as_fn_error $? "failed to load site script $ac_site_file 2511See \`config.log' for more details" "$LINENO" 5; } 2512 fi 2513done 2514 2515if test -r "$cache_file"; then 2516 # Some versions of bash will fail to source /dev/null (special files 2517 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2518 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2520$as_echo "$as_me: loading cache $cache_file" >&6;} 2521 case $cache_file in 2522 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2523 *) . "./$cache_file";; 2524 esac 2525 fi 2526else 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2528$as_echo "$as_me: creating cache $cache_file" >&6;} 2529 >$cache_file 2530fi 2531 2532# Check that the precious variables saved in the cache have kept the same 2533# value. 2534ac_cache_corrupted=false 2535for ac_var in $ac_precious_vars; do 2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2537 eval ac_new_set=\$ac_env_${ac_var}_set 2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2539 eval ac_new_val=\$ac_env_${ac_var}_value 2540 case $ac_old_set,$ac_new_set in 2541 set,) 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2543$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2544 ac_cache_corrupted=: ;; 2545 ,set) 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2547$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2548 ac_cache_corrupted=: ;; 2549 ,);; 2550 *) 2551 if test "x$ac_old_val" != "x$ac_new_val"; then 2552 # differences in whitespace do not lead to failure. 2553 ac_old_val_w=`echo x $ac_old_val` 2554 ac_new_val_w=`echo x $ac_new_val` 2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2557$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2558 ac_cache_corrupted=: 2559 else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2561$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2562 eval $ac_var=\$ac_old_val 2563 fi 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2565$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2567$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2568 fi;; 2569 esac 2570 # Pass precious variables to config.status. 2571 if test "$ac_new_set" = set; then 2572 case $ac_new_val in 2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2574 *) ac_arg=$ac_var=$ac_new_val ;; 2575 esac 2576 case " $ac_configure_args " in 2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2579 esac 2580 fi 2581done 2582if $ac_cache_corrupted; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2586$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2587 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2588fi 2589## -------------------- ## 2590## Main body of script. ## 2591## -------------------- ## 2592 2593ac_ext=c 2594ac_cpp='$CPP $CPPFLAGS' 2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2597ac_compiler_gnu=$ac_cv_c_compiler_gnu 2598 2599 2600 2601ac_aux_dir= 2602for ac_dir in acaux "$srcdir"/acaux; do 2603 if test -f "$ac_dir/install-sh"; then 2604 ac_aux_dir=$ac_dir 2605 ac_install_sh="$ac_aux_dir/install-sh -c" 2606 break 2607 elif test -f "$ac_dir/install.sh"; then 2608 ac_aux_dir=$ac_dir 2609 ac_install_sh="$ac_aux_dir/install.sh -c" 2610 break 2611 elif test -f "$ac_dir/shtool"; then 2612 ac_aux_dir=$ac_dir 2613 ac_install_sh="$ac_aux_dir/shtool install -c" 2614 break 2615 fi 2616done 2617if test -z "$ac_aux_dir"; then 2618 as_fn_error $? "cannot find install-sh, install.sh, or shtool in acaux \"$srcdir\"/acaux" "$LINENO" 5 2619fi 2620 2621# These three variables are undocumented and unsupported, 2622# and are intended to be withdrawn in a future Autoconf release. 2623# They can cause serious problems if a builder's source tree is in a directory 2624# whose full name contains unusual characters. 2625ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2626ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2627ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2628 2629 2630am__api_version='1.16' 2631 2632# Find a good install program. We prefer a C program (faster), 2633# so one script is as good as another. But avoid the broken or 2634# incompatible versions: 2635# SysV /etc/install, /usr/sbin/install 2636# SunOS /usr/etc/install 2637# IRIX /sbin/install 2638# AIX /bin/install 2639# AmigaOS /C/install, which installs bootblocks on floppy discs 2640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2641# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2643# OS/2's system install, which has a completely different semantic 2644# ./install, which can be erroneously created by make from ./install.sh. 2645# Reject install programs that cannot install multiple files. 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2647$as_echo_n "checking for a BSD-compatible install... " >&6; } 2648if test -z "$INSTALL"; then 2649if ${ac_cv_path_install+:} false; then : 2650 $as_echo_n "(cached) " >&6 2651else 2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 test -z "$as_dir" && as_dir=. 2657 # Account for people who put trailing slashes in PATH elements. 2658case $as_dir/ in #(( 2659 ./ | .// | /[cC]/* | \ 2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2661 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2662 /usr/ucb/* ) ;; 2663 *) 2664 # OSF1 and SCO ODT 3.0 have their own names for install. 2665 # Don't use installbsd from OSF since it installs stuff as root 2666 # by default. 2667 for ac_prog in ginstall scoinst install; do 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2670 if test $ac_prog = install && 2671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2672 # AIX install. It has an incompatible calling convention. 2673 : 2674 elif test $ac_prog = install && 2675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2676 # program-specific install script used by HP pwplus--don't use. 2677 : 2678 else 2679 rm -rf conftest.one conftest.two conftest.dir 2680 echo one > conftest.one 2681 echo two > conftest.two 2682 mkdir conftest.dir 2683 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2684 test -s conftest.one && test -s conftest.two && 2685 test -s conftest.dir/conftest.one && 2686 test -s conftest.dir/conftest.two 2687 then 2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2689 break 3 2690 fi 2691 fi 2692 fi 2693 done 2694 done 2695 ;; 2696esac 2697 2698 done 2699IFS=$as_save_IFS 2700 2701rm -rf conftest.one conftest.two conftest.dir 2702 2703fi 2704 if test "${ac_cv_path_install+set}" = set; then 2705 INSTALL=$ac_cv_path_install 2706 else 2707 # As a last resort, use the slow shell script. Don't cache a 2708 # value for INSTALL within a source directory, because that will 2709 # break other packages using the cache if that directory is 2710 # removed, or if the value is a relative name. 2711 INSTALL=$ac_install_sh 2712 fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2715$as_echo "$INSTALL" >&6; } 2716 2717# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2718# It thinks the first close brace ends the variable substitution. 2719test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2720 2721test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2722 2723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2724 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2726$as_echo_n "checking whether build environment is sane... " >&6; } 2727# Reject unsafe characters in $srcdir or the absolute working directory 2728# name. Accept space and tab only in the latter. 2729am_lf=' 2730' 2731case `pwd` in 2732 *[\\\"\#\$\&\'\`$am_lf]*) 2733 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2734esac 2735case $srcdir in 2736 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2737 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2738esac 2739 2740# Do 'set' in a subshell so we don't clobber the current shell's 2741# arguments. Must try -L first in case configure is actually a 2742# symlink; some systems play weird games with the mod time of symlinks 2743# (eg FreeBSD returns the mod time of the symlink's containing 2744# directory). 2745if ( 2746 am_has_slept=no 2747 for am_try in 1 2; do 2748 echo "timestamp, slept: $am_has_slept" > conftest.file 2749 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2750 if test "$*" = "X"; then 2751 # -L didn't work. 2752 set X `ls -t "$srcdir/configure" conftest.file` 2753 fi 2754 if test "$*" != "X $srcdir/configure conftest.file" \ 2755 && test "$*" != "X conftest.file $srcdir/configure"; then 2756 2757 # If neither matched, then we have a broken ls. This can happen 2758 # if, for instance, CONFIG_SHELL is bash and it inherits a 2759 # broken ls alias from the environment. This has actually 2760 # happened. Such a system could not be considered "sane". 2761 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2762 alias in your environment" "$LINENO" 5 2763 fi 2764 if test "$2" = conftest.file || test $am_try -eq 2; then 2765 break 2766 fi 2767 # Just in case. 2768 sleep 1 2769 am_has_slept=yes 2770 done 2771 test "$2" = conftest.file 2772 ) 2773then 2774 # Ok. 2775 : 2776else 2777 as_fn_error $? "newly created file is older than distributed files! 2778Check your system clock" "$LINENO" 5 2779fi 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2781$as_echo "yes" >&6; } 2782# If we didn't sleep, we still need to ensure time stamps of config.status and 2783# generated files are strictly newer. 2784am_sleep_pid= 2785if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2786 ( sleep 1 ) & 2787 am_sleep_pid=$! 2788fi 2789 2790rm -f conftest.file 2791 2792test "$program_prefix" != NONE && 2793 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2794# Use a double $ so make ignores it. 2795test "$program_suffix" != NONE && 2796 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2797# Double any \ or $. 2798# By default was `s,x,x', remove it if useless. 2799ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2800program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2801 2802# Expand $ac_aux_dir to an absolute path. 2803am_aux_dir=`cd "$ac_aux_dir" && pwd` 2804 2805if test x"${MISSING+set}" != xset; then 2806 case $am_aux_dir in 2807 *\ * | *\ *) 2808 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2809 *) 2810 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2811 esac 2812fi 2813# Use eval to expand $SHELL 2814if eval "$MISSING --is-lightweight"; then 2815 am_missing_run="$MISSING " 2816else 2817 am_missing_run= 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2819$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2820fi 2821 2822if test x"${install_sh+set}" != xset; then 2823 case $am_aux_dir in 2824 *\ * | *\ *) 2825 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2826 *) 2827 install_sh="\${SHELL} $am_aux_dir/install-sh" 2828 esac 2829fi 2830 2831# Installed binaries are usually stripped using 'strip' when the user 2832# run "make install-strip". However 'strip' might not be the right 2833# tool to use in cross-compilation environments, therefore Automake 2834# will honor the 'STRIP' environment variable to overrule this program. 2835if test "$cross_compiling" != no; then 2836 if test -n "$ac_tool_prefix"; then 2837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2838set dummy ${ac_tool_prefix}strip; ac_word=$2 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if ${ac_cv_prog_STRIP+:} false; then : 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test -n "$STRIP"; then 2845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2854 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859 done 2860IFS=$as_save_IFS 2861 2862fi 2863fi 2864STRIP=$ac_cv_prog_STRIP 2865if test -n "$STRIP"; then 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2867$as_echo "$STRIP" >&6; } 2868else 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2870$as_echo "no" >&6; } 2871fi 2872 2873 2874fi 2875if test -z "$ac_cv_prog_STRIP"; then 2876 ac_ct_STRIP=$STRIP 2877 # Extract the first word of "strip", so it can be a program name with args. 2878set dummy strip; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 if test -n "$ac_ct_STRIP"; then 2885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2886else 2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_ac_ct_STRIP="strip" 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi 2903fi 2904ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2905if test -n "$ac_ct_STRIP"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2907$as_echo "$ac_ct_STRIP" >&6; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911fi 2912 2913 if test "x$ac_ct_STRIP" = x; then 2914 STRIP=":" 2915 else 2916 case $cross_compiling:$ac_tool_warned in 2917yes:) 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2920ac_tool_warned=yes ;; 2921esac 2922 STRIP=$ac_ct_STRIP 2923 fi 2924else 2925 STRIP="$ac_cv_prog_STRIP" 2926fi 2927 2928fi 2929INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2930 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2932$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2933if test -z "$MKDIR_P"; then 2934 if ${ac_cv_path_mkdir+:} false; then : 2935 $as_echo_n "(cached) " >&6 2936else 2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_prog in mkdir gmkdir; do 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2945 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2946 'mkdir (GNU coreutils) '* | \ 2947 'mkdir (coreutils) '* | \ 2948 'mkdir (fileutils) '4.1*) 2949 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2950 break 3;; 2951 esac 2952 done 2953 done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958 2959 test -d ./--version && rmdir ./--version 2960 if test "${ac_cv_path_mkdir+set}" = set; then 2961 MKDIR_P="$ac_cv_path_mkdir -p" 2962 else 2963 # As a last resort, use the slow shell script. Don't cache a 2964 # value for MKDIR_P within a source directory, because that will 2965 # break other packages using the cache if that directory is 2966 # removed, or if the value is a relative name. 2967 MKDIR_P="$ac_install_sh -d" 2968 fi 2969fi 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2971$as_echo "$MKDIR_P" >&6; } 2972 2973for ac_prog in gawk mawk nawk awk 2974do 2975 # Extract the first word of "$ac_prog", so it can be a program name with args. 2976set dummy $ac_prog; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_AWK+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$AWK"; then 2983 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_AWK="$ac_prog" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002AWK=$ac_cv_prog_AWK 3003if test -n "$AWK"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3005$as_echo "$AWK" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 3012 test -n "$AWK" && break 3013done 3014 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3016$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3017set x ${MAKE-make} 3018ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3019if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 cat >conftest.make <<\_ACEOF 3023SHELL = /bin/sh 3024all: 3025 @echo '@@@%%%=$(MAKE)=@@@%%%' 3026_ACEOF 3027# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3028case `${MAKE-make} -f conftest.make 2>/dev/null` in 3029 *@@@%%%=?*=@@@%%%*) 3030 eval ac_cv_prog_make_${ac_make}_set=yes;; 3031 *) 3032 eval ac_cv_prog_make_${ac_make}_set=no;; 3033esac 3034rm -f conftest.make 3035fi 3036if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3038$as_echo "yes" >&6; } 3039 SET_MAKE= 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043 SET_MAKE="MAKE=${MAKE-make}" 3044fi 3045 3046rm -rf .tst 2>/dev/null 3047mkdir .tst 2>/dev/null 3048if test -d .tst; then 3049 am__leading_dot=. 3050else 3051 am__leading_dot=_ 3052fi 3053rmdir .tst 2>/dev/null 3054 3055# Check whether --enable-silent-rules was given. 3056if test "${enable_silent_rules+set}" = set; then : 3057 enableval=$enable_silent_rules; 3058fi 3059 3060case $enable_silent_rules in # ((( 3061 yes) AM_DEFAULT_VERBOSITY=0;; 3062 no) AM_DEFAULT_VERBOSITY=1;; 3063 *) AM_DEFAULT_VERBOSITY=1;; 3064esac 3065am_make=${MAKE-make} 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3067$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3068if ${am_cv_make_support_nested_variables+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 if $as_echo 'TRUE=$(BAR$(V)) 3072BAR0=false 3073BAR1=true 3074V=1 3075am__doit: 3076 @$(TRUE) 3077.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3078 am_cv_make_support_nested_variables=yes 3079else 3080 am_cv_make_support_nested_variables=no 3081fi 3082fi 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3084$as_echo "$am_cv_make_support_nested_variables" >&6; } 3085if test $am_cv_make_support_nested_variables = yes; then 3086 AM_V='$(V)' 3087 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3088else 3089 AM_V=$AM_DEFAULT_VERBOSITY 3090 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3091fi 3092AM_BACKSLASH='\' 3093 3094if test "`cd $srcdir && pwd`" != "`pwd`"; then 3095 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3096 # is not polluted with repeated "-I." 3097 am__isrc=' -I$(srcdir)' 3098 # test to see if srcdir already configured 3099 if test -f $srcdir/config.status; then 3100 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3101 fi 3102fi 3103 3104# test whether we have cygpath 3105if test -z "$CYGPATH_W"; then 3106 if (cygpath --version) >/dev/null 2>/dev/null; then 3107 CYGPATH_W='cygpath -w' 3108 else 3109 CYGPATH_W=echo 3110 fi 3111fi 3112 3113 3114# Define the identity of the package. 3115 PACKAGE='gdnsd' 3116 VERSION='2.4.3' 3117 3118 3119cat >>confdefs.h <<_ACEOF 3120#define PACKAGE "$PACKAGE" 3121_ACEOF 3122 3123 3124cat >>confdefs.h <<_ACEOF 3125#define VERSION "$VERSION" 3126_ACEOF 3127 3128# Some tools Automake needs. 3129 3130ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3131 3132 3133AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3134 3135 3136AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3137 3138 3139AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3140 3141 3142MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3143 3144# For better backward compatibility. To be removed once Automake 1.9.x 3145# dies out for good. For more background, see: 3146# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3147# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3148mkdir_p='$(MKDIR_P)' 3149 3150# We need awk for the "check" target (and possibly the TAP driver). The 3151# system "awk" is bad on some platforms. 3152# Always define AMTAR for backward compatibility. Yes, it's still used 3153# in the wild :-( We should find a proper way to deprecate it ... 3154AMTAR='$${TAR-tar}' 3155 3156 3157# We'll loop over all known methods to create a tar archive until one works. 3158_am_tools='gnutar plaintar pax cpio none' 3159 3160# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3161 # There is notably a 21 bits limit for the UID and the GID. In fact, 3162 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3163 # and bug#13588). 3164 am_max_uid=2097151 # 2^21 - 1 3165 am_max_gid=$am_max_uid 3166 # The $UID and $GID variables are not portable, so we need to resort 3167 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3168 # below are definitely unexpected, so allow the users to see them 3169 # (that is, avoid stderr redirection). 3170 am_uid=`id -u || echo unknown` 3171 am_gid=`id -g || echo unknown` 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3173$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3174 if test $am_uid -le $am_max_uid; then 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3176$as_echo "yes" >&6; } 3177 else 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3179$as_echo "no" >&6; } 3180 _am_tools=none 3181 fi 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3183$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3184 if test $am_gid -le $am_max_gid; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3186$as_echo "yes" >&6; } 3187 else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190 _am_tools=none 3191 fi 3192 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3194$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3195 3196 # Go ahead even if we have the value already cached. We do so because we 3197 # need to set the values for the 'am__tar' and 'am__untar' variables. 3198 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3199 3200 for _am_tool in $_am_tools; do 3201 case $_am_tool in 3202 gnutar) 3203 for _am_tar in tar gnutar gtar; do 3204 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3205 ($_am_tar --version) >&5 2>&5 3206 ac_status=$? 3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 (exit $ac_status); } && break 3209 done 3210 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3211 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3212 am__untar="$_am_tar -xf -" 3213 ;; 3214 plaintar) 3215 # Must skip GNU tar: if it does not support --format= it doesn't create 3216 # ustar tarball either. 3217 (tar --version) >/dev/null 2>&1 && continue 3218 am__tar='tar chf - "$$tardir"' 3219 am__tar_='tar chf - "$tardir"' 3220 am__untar='tar xf -' 3221 ;; 3222 pax) 3223 am__tar='pax -L -x ustar -w "$$tardir"' 3224 am__tar_='pax -L -x ustar -w "$tardir"' 3225 am__untar='pax -r' 3226 ;; 3227 cpio) 3228 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3229 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3230 am__untar='cpio -i -H ustar -d' 3231 ;; 3232 none) 3233 am__tar=false 3234 am__tar_=false 3235 am__untar=false 3236 ;; 3237 esac 3238 3239 # If the value was cached, stop now. We just wanted to have am__tar 3240 # and am__untar set. 3241 test -n "${am_cv_prog_tar_ustar}" && break 3242 3243 # tar/untar a dummy directory, and stop if the command works. 3244 rm -rf conftest.dir 3245 mkdir conftest.dir 3246 echo GrepMe > conftest.dir/file 3247 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3248 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3249 ac_status=$? 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); } 3252 rm -rf conftest.dir 3253 if test -s conftest.tar; then 3254 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3255 ($am__untar <conftest.tar) >&5 2>&5 3256 ac_status=$? 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } 3259 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3260 (cat conftest.dir/file) >&5 2>&5 3261 ac_status=$? 3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3263 (exit $ac_status); } 3264 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3265 fi 3266 done 3267 rm -rf conftest.dir 3268 3269 if ${am_cv_prog_tar_ustar+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 am_cv_prog_tar_ustar=$_am_tool 3273fi 3274 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3276$as_echo "$am_cv_prog_tar_ustar" >&6; } 3277 3278 3279 3280 3281 3282 3283# POSIX will say in a future version that running "rm -f" with no argument 3284# is OK; and we want to be able to make that assumption in our Makefile 3285# recipes. So use an aggressive probe to check that the usage we want is 3286# actually supported "in the wild" to an acceptable degree. 3287# See automake bug#10828. 3288# To make any issue more visible, cause the running configure to be aborted 3289# by default if the 'rm' program in use doesn't match our expectations; the 3290# user can still override this though. 3291if rm -f && rm -fr && rm -rf; then : OK; else 3292 cat >&2 <<'END' 3293Oops! 3294 3295Your 'rm' program seems unable to run without file operands specified 3296on the command line, even when the '-f' option is present. This is contrary 3297to the behaviour of most rm programs out there, and not conforming with 3298the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3299 3300Please tell bug-automake@gnu.org about your system, including the value 3301of your $PATH and any error possibly output before this message. This 3302can help us improve future automake versions. 3303 3304END 3305 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3306 echo 'Configuration will proceed anyway, since you have set the' >&2 3307 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3308 echo >&2 3309 else 3310 cat >&2 <<'END' 3311Aborting the configuration process, to ensure you take notice of the issue. 3312 3313You can download and install GNU coreutils to get an 'rm' implementation 3314that behaves properly: <https://www.gnu.org/software/coreutils/>. 3315 3316If you want to complete the configuration process using your problematic 3317'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3318to "yes", and re-run configure. 3319 3320END 3321 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3322 fi 3323fi 3324 3325 3326# Check whether --enable-silent-rules was given. 3327if test "${enable_silent_rules+set}" = set; then : 3328 enableval=$enable_silent_rules; 3329fi 3330 3331case $enable_silent_rules in # ((( 3332 yes) AM_DEFAULT_VERBOSITY=0;; 3333 no) AM_DEFAULT_VERBOSITY=1;; 3334 *) AM_DEFAULT_VERBOSITY=0;; 3335esac 3336am_make=${MAKE-make} 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3338$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3339if ${am_cv_make_support_nested_variables+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 if $as_echo 'TRUE=$(BAR$(V)) 3343BAR0=false 3344BAR1=true 3345V=1 3346am__doit: 3347 @$(TRUE) 3348.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3349 am_cv_make_support_nested_variables=yes 3350else 3351 am_cv_make_support_nested_variables=no 3352fi 3353fi 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3355$as_echo "$am_cv_make_support_nested_variables" >&6; } 3356if test $am_cv_make_support_nested_variables = yes; then 3357 AM_V='$(V)' 3358 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3359else 3360 AM_V=$AM_DEFAULT_VERBOSITY 3361 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3362fi 3363AM_BACKSLASH='\' 3364 3365 3366## Autoconf-2.63-Compat 3367# Future reference: both of the below could be addressed by bumping our 3368# AC_PREREQ() to 2.64. It's just a question of at what point in the future 3369# the 2.63-using distros are old enough that it's reasonable to do so. 3370#--- 3371# We're compatible to autoconf 2.63, which doesn't have PACKAGE_URL 3372# as a final arg to AC_INIT. We can't define it ourselves here 3373# with the same name as this causes compiler warnings that matter 3374# during other parts of ./configure. So, pick a new name for now. 3375 3376$as_echo "#define PKG_URL \"http://gdnsd.org\"" >>confdefs.h 3377 3378#--- 3379# This hack makes PKG_CHECK_VARS from m4/pkg.m4 work on autoconf 2.63 3380# ( courtesy of sunnybear in https://github.com/gdnsd/gdnsd/issues/85 ) 3381 3382## End Autoconf-2.63-Compat 3383 3384# TODO: when/if a new autoconf release has a C11 macro, 3385# prefer that and fall back to requiring C99. 3386DEPDIR="${am__leading_dot}deps" 3387 3388ac_config_commands="$ac_config_commands depfiles" 3389 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3391$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3392cat > confinc.mk << 'END' 3393am__doit: 3394 @echo this is the am__doit target >confinc.out 3395.PHONY: am__doit 3396END 3397am__include="#" 3398am__quote= 3399# BSD make does it like this. 3400echo '.include "confinc.mk" # ignored' > confmf.BSD 3401# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3402echo 'include confinc.mk # ignored' > confmf.GNU 3403_am_result=no 3404for s in GNU BSD; do 3405 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3406 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3407 ac_status=$? 3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3409 (exit $ac_status); } 3410 case $?:`cat confinc.out 2>/dev/null` in #( 3411 '0:this is the am__doit target') : 3412 case $s in #( 3413 BSD) : 3414 am__include='.include' am__quote='"' ;; #( 3415 *) : 3416 am__include='include' am__quote='' ;; 3417esac ;; #( 3418 *) : 3419 ;; 3420esac 3421 if test "$am__include" != "#"; then 3422 _am_result="yes ($s style)" 3423 break 3424 fi 3425done 3426rm -f confinc.* confmf.* 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3428$as_echo "${_am_result}" >&6; } 3429 3430# Check whether --enable-dependency-tracking was given. 3431if test "${enable_dependency_tracking+set}" = set; then : 3432 enableval=$enable_dependency_tracking; 3433fi 3434 3435if test "x$enable_dependency_tracking" != xno; then 3436 am_depcomp="$ac_aux_dir/depcomp" 3437 AMDEPBACKSLASH='\' 3438 am__nodep='_no' 3439fi 3440 if test "x$enable_dependency_tracking" != xno; then 3441 AMDEP_TRUE= 3442 AMDEP_FALSE='#' 3443else 3444 AMDEP_TRUE='#' 3445 AMDEP_FALSE= 3446fi 3447 3448 3449ac_ext=c 3450ac_cpp='$CPP $CPPFLAGS' 3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3453ac_compiler_gnu=$ac_cv_c_compiler_gnu 3454if test -n "$ac_tool_prefix"; then 3455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3456set dummy ${ac_tool_prefix}gcc; ac_word=$2 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3458$as_echo_n "checking for $ac_word... " >&6; } 3459if ${ac_cv_prog_CC+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 if test -n "$CC"; then 3463 ac_cv_prog_CC="$CC" # Let the user override the test. 3464else 3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466for as_dir in $PATH 3467do 3468 IFS=$as_save_IFS 3469 test -z "$as_dir" && as_dir=. 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3472 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476done 3477 done 3478IFS=$as_save_IFS 3479 3480fi 3481fi 3482CC=$ac_cv_prog_CC 3483if test -n "$CC"; then 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3485$as_echo "$CC" >&6; } 3486else 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488$as_echo "no" >&6; } 3489fi 3490 3491 3492fi 3493if test -z "$ac_cv_prog_CC"; then 3494 ac_ct_CC=$CC 3495 # Extract the first word of "gcc", so it can be a program name with args. 3496set dummy gcc; ac_word=$2 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3498$as_echo_n "checking for $ac_word... " >&6; } 3499if ${ac_cv_prog_ac_ct_CC+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 if test -n "$ac_ct_CC"; then 3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3504else 3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3506for as_dir in $PATH 3507do 3508 IFS=$as_save_IFS 3509 test -z "$as_dir" && as_dir=. 3510 for ac_exec_ext in '' $ac_executable_extensions; do 3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3512 ac_cv_prog_ac_ct_CC="gcc" 3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3514 break 2 3515 fi 3516done 3517 done 3518IFS=$as_save_IFS 3519 3520fi 3521fi 3522ac_ct_CC=$ac_cv_prog_ac_ct_CC 3523if test -n "$ac_ct_CC"; then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3525$as_echo "$ac_ct_CC" >&6; } 3526else 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528$as_echo "no" >&6; } 3529fi 3530 3531 if test "x$ac_ct_CC" = x; then 3532 CC="" 3533 else 3534 case $cross_compiling:$ac_tool_warned in 3535yes:) 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3538ac_tool_warned=yes ;; 3539esac 3540 CC=$ac_ct_CC 3541 fi 3542else 3543 CC="$ac_cv_prog_CC" 3544fi 3545 3546if test -z "$CC"; then 3547 if test -n "$ac_tool_prefix"; then 3548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3549set dummy ${ac_tool_prefix}cc; ac_word=$2 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551$as_echo_n "checking for $ac_word... " >&6; } 3552if ${ac_cv_prog_CC+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -n "$CC"; then 3556 ac_cv_prog_CC="$CC" # Let the user override the test. 3557else 3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3559for as_dir in $PATH 3560do 3561 IFS=$as_save_IFS 3562 test -z "$as_dir" && as_dir=. 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_CC="${ac_tool_prefix}cc" 3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575CC=$ac_cv_prog_CC 3576if test -n "$CC"; then 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578$as_echo "$CC" >&6; } 3579else 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581$as_echo "no" >&6; } 3582fi 3583 3584 3585 fi 3586fi 3587if test -z "$CC"; then 3588 # Extract the first word of "cc", so it can be a program name with args. 3589set dummy cc; ac_word=$2 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591$as_echo_n "checking for $ac_word... " >&6; } 3592if ${ac_cv_prog_CC+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 if test -n "$CC"; then 3596 ac_cv_prog_CC="$CC" # Let the user override the test. 3597else 3598 ac_prog_rejected=no 3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3600for as_dir in $PATH 3601do 3602 IFS=$as_save_IFS 3603 test -z "$as_dir" && as_dir=. 3604 for ac_exec_ext in '' $ac_executable_extensions; do 3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3607 ac_prog_rejected=yes 3608 continue 3609 fi 3610 ac_cv_prog_CC="cc" 3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3612 break 2 3613 fi 3614done 3615 done 3616IFS=$as_save_IFS 3617 3618if test $ac_prog_rejected = yes; then 3619 # We found a bogon in the path, so make sure we never use it. 3620 set dummy $ac_cv_prog_CC 3621 shift 3622 if test $# != 0; then 3623 # We chose a different compiler from the bogus one. 3624 # However, it has the same basename, so the bogon will be chosen 3625 # first if we set CC to just the basename; use the full file name. 3626 shift 3627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3628 fi 3629fi 3630fi 3631fi 3632CC=$ac_cv_prog_CC 3633if test -n "$CC"; then 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3635$as_echo "$CC" >&6; } 3636else 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638$as_echo "no" >&6; } 3639fi 3640 3641 3642fi 3643if test -z "$CC"; then 3644 if test -n "$ac_tool_prefix"; then 3645 for ac_prog in cl.exe 3646 do 3647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3648set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3650$as_echo_n "checking for $ac_word... " >&6; } 3651if ${ac_cv_prog_CC+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 if test -n "$CC"; then 3655 ac_cv_prog_CC="$CC" # Let the user override the test. 3656else 3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3658for as_dir in $PATH 3659do 3660 IFS=$as_save_IFS 3661 test -z "$as_dir" && as_dir=. 3662 for ac_exec_ext in '' $ac_executable_extensions; do 3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3666 break 2 3667 fi 3668done 3669 done 3670IFS=$as_save_IFS 3671 3672fi 3673fi 3674CC=$ac_cv_prog_CC 3675if test -n "$CC"; then 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3677$as_echo "$CC" >&6; } 3678else 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3680$as_echo "no" >&6; } 3681fi 3682 3683 3684 test -n "$CC" && break 3685 done 3686fi 3687if test -z "$CC"; then 3688 ac_ct_CC=$CC 3689 for ac_prog in cl.exe 3690do 3691 # Extract the first word of "$ac_prog", so it can be a program name with args. 3692set dummy $ac_prog; ac_word=$2 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3694$as_echo_n "checking for $ac_word... " >&6; } 3695if ${ac_cv_prog_ac_ct_CC+:} false; then : 3696 $as_echo_n "(cached) " >&6 3697else 3698 if test -n "$ac_ct_CC"; then 3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3700else 3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702for as_dir in $PATH 3703do 3704 IFS=$as_save_IFS 3705 test -z "$as_dir" && as_dir=. 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3708 ac_cv_prog_ac_ct_CC="$ac_prog" 3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3710 break 2 3711 fi 3712done 3713 done 3714IFS=$as_save_IFS 3715 3716fi 3717fi 3718ac_ct_CC=$ac_cv_prog_ac_ct_CC 3719if test -n "$ac_ct_CC"; then 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3721$as_echo "$ac_ct_CC" >&6; } 3722else 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3724$as_echo "no" >&6; } 3725fi 3726 3727 3728 test -n "$ac_ct_CC" && break 3729done 3730 3731 if test "x$ac_ct_CC" = x; then 3732 CC="" 3733 else 3734 case $cross_compiling:$ac_tool_warned in 3735yes:) 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3738ac_tool_warned=yes ;; 3739esac 3740 CC=$ac_ct_CC 3741 fi 3742fi 3743 3744fi 3745 3746 3747test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3749as_fn_error $? "no acceptable C compiler found in \$PATH 3750See \`config.log' for more details" "$LINENO" 5; } 3751 3752# Provide some information about the compiler. 3753$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3754set X $ac_compile 3755ac_compiler=$2 3756for ac_option in --version -v -V -qversion; do 3757 { { ac_try="$ac_compiler $ac_option >&5" 3758case "(($ac_try" in 3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3760 *) ac_try_echo=$ac_try;; 3761esac 3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3763$as_echo "$ac_try_echo"; } >&5 3764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3765 ac_status=$? 3766 if test -s conftest.err; then 3767 sed '10a\ 3768... rest of stderr output deleted ... 3769 10q' conftest.err >conftest.er1 3770 cat conftest.er1 >&5 3771 fi 3772 rm -f conftest.er1 conftest.err 3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3774 test $ac_status = 0; } 3775done 3776 3777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779 3780int 3781main () 3782{ 3783 3784 ; 3785 return 0; 3786} 3787_ACEOF 3788ac_clean_files_save=$ac_clean_files 3789ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3790# Try to create an executable without -o first, disregard a.out. 3791# It will help us diagnose broken compilers, and finding out an intuition 3792# of exeext. 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3794$as_echo_n "checking whether the C compiler works... " >&6; } 3795ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3796 3797# The possible output files: 3798ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3799 3800ac_rmfiles= 3801for ac_file in $ac_files 3802do 3803 case $ac_file in 3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3805 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3806 esac 3807done 3808rm -f $ac_rmfiles 3809 3810if { { ac_try="$ac_link_default" 3811case "(($ac_try" in 3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3813 *) ac_try_echo=$ac_try;; 3814esac 3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3816$as_echo "$ac_try_echo"; } >&5 3817 (eval "$ac_link_default") 2>&5 3818 ac_status=$? 3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3820 test $ac_status = 0; }; then : 3821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3823# in a Makefile. We should not override ac_cv_exeext if it was cached, 3824# so that the user can short-circuit this test for compilers unknown to 3825# Autoconf. 3826for ac_file in $ac_files '' 3827do 3828 test -f "$ac_file" || continue 3829 case $ac_file in 3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3831 ;; 3832 [ab].out ) 3833 # We found the default executable, but exeext='' is most 3834 # certainly right. 3835 break;; 3836 *.* ) 3837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3838 then :; else 3839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3840 fi 3841 # We set ac_cv_exeext here because the later test for it is not 3842 # safe: cross compilers may not add the suffix if given an `-o' 3843 # argument, so we may need to know it at that point already. 3844 # Even if this section looks crufty: it has the advantage of 3845 # actually working. 3846 break;; 3847 * ) 3848 break;; 3849 esac 3850done 3851test "$ac_cv_exeext" = no && ac_cv_exeext= 3852 3853else 3854 ac_file='' 3855fi 3856if test -z "$ac_file"; then : 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858$as_echo "no" >&6; } 3859$as_echo "$as_me: failed program was:" >&5 3860sed 's/^/| /' conftest.$ac_ext >&5 3861 3862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3864as_fn_error 77 "C compiler cannot create executables 3865See \`config.log' for more details" "$LINENO" 5; } 3866else 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3868$as_echo "yes" >&6; } 3869fi 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3871$as_echo_n "checking for C compiler default output file name... " >&6; } 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3873$as_echo "$ac_file" >&6; } 3874ac_exeext=$ac_cv_exeext 3875 3876rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3877ac_clean_files=$ac_clean_files_save 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3879$as_echo_n "checking for suffix of executables... " >&6; } 3880if { { ac_try="$ac_link" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886$as_echo "$ac_try_echo"; } >&5 3887 (eval "$ac_link") 2>&5 3888 ac_status=$? 3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3890 test $ac_status = 0; }; then : 3891 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3893# work properly (i.e., refer to `conftest.exe'), while it won't with 3894# `rm'. 3895for ac_file in conftest.exe conftest conftest.*; do 3896 test -f "$ac_file" || continue 3897 case $ac_file in 3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3900 break;; 3901 * ) break;; 3902 esac 3903done 3904else 3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3907as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3908See \`config.log' for more details" "$LINENO" 5; } 3909fi 3910rm -f conftest conftest$ac_cv_exeext 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3912$as_echo "$ac_cv_exeext" >&6; } 3913 3914rm -f conftest.$ac_ext 3915EXEEXT=$ac_cv_exeext 3916ac_exeext=$EXEEXT 3917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918/* end confdefs.h. */ 3919#include <stdio.h> 3920int 3921main () 3922{ 3923FILE *f = fopen ("conftest.out", "w"); 3924 return ferror (f) || fclose (f) != 0; 3925 3926 ; 3927 return 0; 3928} 3929_ACEOF 3930ac_clean_files="$ac_clean_files conftest.out" 3931# Check that the compiler produces executables we can run. If not, either 3932# the compiler is broken, or we cross compile. 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3934$as_echo_n "checking whether we are cross compiling... " >&6; } 3935if test "$cross_compiling" != yes; then 3936 { { ac_try="$ac_link" 3937case "(($ac_try" in 3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3939 *) ac_try_echo=$ac_try;; 3940esac 3941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3942$as_echo "$ac_try_echo"; } >&5 3943 (eval "$ac_link") 2>&5 3944 ac_status=$? 3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3946 test $ac_status = 0; } 3947 if { ac_try='./conftest$ac_cv_exeext' 3948 { { case "(($ac_try" in 3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3950 *) ac_try_echo=$ac_try;; 3951esac 3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3953$as_echo "$ac_try_echo"; } >&5 3954 (eval "$ac_try") 2>&5 3955 ac_status=$? 3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3957 test $ac_status = 0; }; }; then 3958 cross_compiling=no 3959 else 3960 if test "$cross_compiling" = maybe; then 3961 cross_compiling=yes 3962 else 3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3965as_fn_error $? "cannot run C compiled programs. 3966If you meant to cross compile, use \`--host'. 3967See \`config.log' for more details" "$LINENO" 5; } 3968 fi 3969 fi 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3972$as_echo "$cross_compiling" >&6; } 3973 3974rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3975ac_clean_files=$ac_clean_files_save 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3977$as_echo_n "checking for suffix of object files... " >&6; } 3978if ${ac_cv_objext+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983 3984int 3985main () 3986{ 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992rm -f conftest.o conftest.obj 3993if { { ac_try="$ac_compile" 3994case "(($ac_try" in 3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3996 *) ac_try_echo=$ac_try;; 3997esac 3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3999$as_echo "$ac_try_echo"; } >&5 4000 (eval "$ac_compile") 2>&5 4001 ac_status=$? 4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4003 test $ac_status = 0; }; then : 4004 for ac_file in conftest.o conftest.obj conftest.*; do 4005 test -f "$ac_file" || continue; 4006 case $ac_file in 4007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4009 break;; 4010 esac 4011done 4012else 4013 $as_echo "$as_me: failed program was:" >&5 4014sed 's/^/| /' conftest.$ac_ext >&5 4015 4016{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4018as_fn_error $? "cannot compute suffix of object files: cannot compile 4019See \`config.log' for more details" "$LINENO" 5; } 4020fi 4021rm -f conftest.$ac_cv_objext conftest.$ac_ext 4022fi 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4024$as_echo "$ac_cv_objext" >&6; } 4025OBJEXT=$ac_cv_objext 4026ac_objext=$OBJEXT 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4028$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4029if ${ac_cv_c_compiler_gnu+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4033/* end confdefs.h. */ 4034 4035int 4036main () 4037{ 4038#ifndef __GNUC__ 4039 choke me 4040#endif 4041 4042 ; 4043 return 0; 4044} 4045_ACEOF 4046if ac_fn_c_try_compile "$LINENO"; then : 4047 ac_compiler_gnu=yes 4048else 4049 ac_compiler_gnu=no 4050fi 4051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4052ac_cv_c_compiler_gnu=$ac_compiler_gnu 4053 4054fi 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4056$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4057if test $ac_compiler_gnu = yes; then 4058 GCC=yes 4059else 4060 GCC= 4061fi 4062ac_test_CFLAGS=${CFLAGS+set} 4063ac_save_CFLAGS=$CFLAGS 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4065$as_echo_n "checking whether $CC accepts -g... " >&6; } 4066if ${ac_cv_prog_cc_g+:} false; then : 4067 $as_echo_n "(cached) " >&6 4068else 4069 ac_save_c_werror_flag=$ac_c_werror_flag 4070 ac_c_werror_flag=yes 4071 ac_cv_prog_cc_g=no 4072 CFLAGS="-g" 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075 4076int 4077main () 4078{ 4079 4080 ; 4081 return 0; 4082} 4083_ACEOF 4084if ac_fn_c_try_compile "$LINENO"; then : 4085 ac_cv_prog_cc_g=yes 4086else 4087 CFLAGS="" 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089/* end confdefs.h. */ 4090 4091int 4092main () 4093{ 4094 4095 ; 4096 return 0; 4097} 4098_ACEOF 4099if ac_fn_c_try_compile "$LINENO"; then : 4100 4101else 4102 ac_c_werror_flag=$ac_save_c_werror_flag 4103 CFLAGS="-g" 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main () 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115if ac_fn_c_try_compile "$LINENO"; then : 4116 ac_cv_prog_cc_g=yes 4117fi 4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4119fi 4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4123 ac_c_werror_flag=$ac_save_c_werror_flag 4124fi 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4126$as_echo "$ac_cv_prog_cc_g" >&6; } 4127if test "$ac_test_CFLAGS" = set; then 4128 CFLAGS=$ac_save_CFLAGS 4129elif test $ac_cv_prog_cc_g = yes; then 4130 if test "$GCC" = yes; then 4131 CFLAGS="-g -O2" 4132 else 4133 CFLAGS="-g" 4134 fi 4135else 4136 if test "$GCC" = yes; then 4137 CFLAGS="-O2" 4138 else 4139 CFLAGS= 4140 fi 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4143$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4144if ${ac_cv_prog_cc_c89+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 ac_cv_prog_cc_c89=no 4148ac_save_CC=$CC 4149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151#include <stdarg.h> 4152#include <stdio.h> 4153struct stat; 4154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4155struct buf { int x; }; 4156FILE * (*rcsopen) (struct buf *, struct stat *, int); 4157static char *e (p, i) 4158 char **p; 4159 int i; 4160{ 4161 return p[i]; 4162} 4163static char *f (char * (*g) (char **, int), char **p, ...) 4164{ 4165 char *s; 4166 va_list v; 4167 va_start (v,p); 4168 s = g (p, va_arg (v,int)); 4169 va_end (v); 4170 return s; 4171} 4172 4173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4174 function prototypes and stuff, but not '\xHH' hex character constants. 4175 These don't provoke an error unfortunately, instead are silently treated 4176 as 'x'. The following induces an error, until -std is added to get 4177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4178 array size at least. It's necessary to write '\x00'==0 to get something 4179 that's true only with -std. */ 4180int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4181 4182/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4183 inside strings and character constants. */ 4184#define FOO(x) 'x' 4185int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4186 4187int test (int i, double x); 4188struct s1 {int (*f) (int a);}; 4189struct s2 {int (*f) (double a);}; 4190int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4191int argc; 4192char **argv; 4193int 4194main () 4195{ 4196return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4197 ; 4198 return 0; 4199} 4200_ACEOF 4201for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4203do 4204 CC="$ac_save_CC $ac_arg" 4205 if ac_fn_c_try_compile "$LINENO"; then : 4206 ac_cv_prog_cc_c89=$ac_arg 4207fi 4208rm -f core conftest.err conftest.$ac_objext 4209 test "x$ac_cv_prog_cc_c89" != "xno" && break 4210done 4211rm -f conftest.$ac_ext 4212CC=$ac_save_CC 4213 4214fi 4215# AC_CACHE_VAL 4216case "x$ac_cv_prog_cc_c89" in 4217 x) 4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4219$as_echo "none needed" >&6; } ;; 4220 xno) 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4222$as_echo "unsupported" >&6; } ;; 4223 *) 4224 CC="$CC $ac_cv_prog_cc_c89" 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4226$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4227esac 4228if test "x$ac_cv_prog_cc_c89" != xno; then : 4229 4230fi 4231 4232ac_ext=c 4233ac_cpp='$CPP $CPPFLAGS' 4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4236ac_compiler_gnu=$ac_cv_c_compiler_gnu 4237 4238ac_ext=c 4239ac_cpp='$CPP $CPPFLAGS' 4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4242ac_compiler_gnu=$ac_cv_c_compiler_gnu 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4244$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4245if ${am_cv_prog_cc_c_o+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250 4251int 4252main () 4253{ 4254 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259 # Make sure it works both with $CC and with simple cc. 4260 # Following AC_PROG_CC_C_O, we do the test twice because some 4261 # compilers refuse to overwrite an existing .o file with -o, 4262 # though they will create one. 4263 am_cv_prog_cc_c_o=yes 4264 for am_i in 1 2; do 4265 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4266 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4267 ac_status=$? 4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4269 (exit $ac_status); } \ 4270 && test -f conftest2.$ac_objext; then 4271 : OK 4272 else 4273 am_cv_prog_cc_c_o=no 4274 break 4275 fi 4276 done 4277 rm -f core conftest* 4278 unset am_i 4279fi 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4281$as_echo "$am_cv_prog_cc_c_o" >&6; } 4282if test "$am_cv_prog_cc_c_o" != yes; then 4283 # Losing compiler, so override with the script. 4284 # FIXME: It is wrong to rewrite CC. 4285 # But if we don't then we get into trouble of one sort or another. 4286 # A longer-term fix would be to have automake use am__CC in this case, 4287 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4288 CC="$am_aux_dir/compile $CC" 4289fi 4290ac_ext=c 4291ac_cpp='$CPP $CPPFLAGS' 4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4294ac_compiler_gnu=$ac_cv_c_compiler_gnu 4295 4296 4297depcc="$CC" am_compiler_list= 4298 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4300$as_echo_n "checking dependency style of $depcc... " >&6; } 4301if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4305 # We make a subdir and do the tests there. Otherwise we can end up 4306 # making bogus files that we don't know about and never remove. For 4307 # instance it was reported that on HP-UX the gcc test will end up 4308 # making a dummy file named 'D' -- because '-MD' means "put the output 4309 # in D". 4310 rm -rf conftest.dir 4311 mkdir conftest.dir 4312 # Copy depcomp to subdir because otherwise we won't find it if we're 4313 # using a relative directory. 4314 cp "$am_depcomp" conftest.dir 4315 cd conftest.dir 4316 # We will build objects and dependencies in a subdirectory because 4317 # it helps to detect inapplicable dependency modes. For instance 4318 # both Tru64's cc and ICC support -MD to output dependencies as a 4319 # side effect of compilation, but ICC will put the dependencies in 4320 # the current directory while Tru64 will put them in the object 4321 # directory. 4322 mkdir sub 4323 4324 am_cv_CC_dependencies_compiler_type=none 4325 if test "$am_compiler_list" = ""; then 4326 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4327 fi 4328 am__universal=false 4329 case " $depcc " in #( 4330 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4331 esac 4332 4333 for depmode in $am_compiler_list; do 4334 # Setup a source with many dependencies, because some compilers 4335 # like to wrap large dependency lists on column 80 (with \), and 4336 # we should not choose a depcomp mode which is confused by this. 4337 # 4338 # We need to recreate these files for each test, as the compiler may 4339 # overwrite some of them when testing with obscure command lines. 4340 # This happens at least with the AIX C compiler. 4341 : > sub/conftest.c 4342 for i in 1 2 3 4 5 6; do 4343 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4344 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4345 # Solaris 10 /bin/sh. 4346 echo '/* dummy */' > sub/conftst$i.h 4347 done 4348 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4349 4350 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4351 # mode. It turns out that the SunPro C++ compiler does not properly 4352 # handle '-M -o', and we need to detect this. Also, some Intel 4353 # versions had trouble with output in subdirs. 4354 am__obj=sub/conftest.${OBJEXT-o} 4355 am__minus_obj="-o $am__obj" 4356 case $depmode in 4357 gcc) 4358 # This depmode causes a compiler race in universal mode. 4359 test "$am__universal" = false || continue 4360 ;; 4361 nosideeffect) 4362 # After this tag, mechanisms are not by side-effect, so they'll 4363 # only be used when explicitly requested. 4364 if test "x$enable_dependency_tracking" = xyes; then 4365 continue 4366 else 4367 break 4368 fi 4369 ;; 4370 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4371 # This compiler won't grok '-c -o', but also, the minuso test has 4372 # not run yet. These depmodes are late enough in the game, and 4373 # so weak that their functioning should not be impacted. 4374 am__obj=conftest.${OBJEXT-o} 4375 am__minus_obj= 4376 ;; 4377 none) break ;; 4378 esac 4379 if depmode=$depmode \ 4380 source=sub/conftest.c object=$am__obj \ 4381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4382 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4383 >/dev/null 2>conftest.err && 4384 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4385 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4386 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4387 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4388 # icc doesn't choke on unknown options, it will just issue warnings 4389 # or remarks (even with -Werror). So we grep stderr for any message 4390 # that says an option was ignored or not supported. 4391 # When given -MP, icc 7.0 and 7.1 complain thusly: 4392 # icc: Command line warning: ignoring option '-M'; no argument required 4393 # The diagnosis changed in icc 8.0: 4394 # icc: Command line remark: option '-MP' not supported 4395 if (grep 'ignoring option' conftest.err || 4396 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4397 am_cv_CC_dependencies_compiler_type=$depmode 4398 break 4399 fi 4400 fi 4401 done 4402 4403 cd .. 4404 rm -rf conftest.dir 4405else 4406 am_cv_CC_dependencies_compiler_type=none 4407fi 4408 4409fi 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4411$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4412CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4413 4414 if 4415 test "x$enable_dependency_tracking" != xno \ 4416 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4417 am__fastdepCC_TRUE= 4418 am__fastdepCC_FALSE='#' 4419else 4420 am__fastdepCC_TRUE='#' 4421 am__fastdepCC_FALSE= 4422fi 4423 4424 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4426$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4427if ${ac_cv_prog_cc_c99+:} false; then : 4428 $as_echo_n "(cached) " >&6 4429else 4430 ac_cv_prog_cc_c99=no 4431ac_save_CC=$CC 4432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4433/* end confdefs.h. */ 4434#include <stdarg.h> 4435#include <stdbool.h> 4436#include <stdlib.h> 4437#include <wchar.h> 4438#include <stdio.h> 4439 4440// Check varargs macros. These examples are taken from C99 6.10.3.5. 4441#define debug(...) fprintf (stderr, __VA_ARGS__) 4442#define showlist(...) puts (#__VA_ARGS__) 4443#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4444static void 4445test_varargs_macros (void) 4446{ 4447 int x = 1234; 4448 int y = 5678; 4449 debug ("Flag"); 4450 debug ("X = %d\n", x); 4451 showlist (The first, second, and third items.); 4452 report (x>y, "x is %d but y is %d", x, y); 4453} 4454 4455// Check long long types. 4456#define BIG64 18446744073709551615ull 4457#define BIG32 4294967295ul 4458#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4459#if !BIG_OK 4460 your preprocessor is broken; 4461#endif 4462#if BIG_OK 4463#else 4464 your preprocessor is broken; 4465#endif 4466static long long int bignum = -9223372036854775807LL; 4467static unsigned long long int ubignum = BIG64; 4468 4469struct incomplete_array 4470{ 4471 int datasize; 4472 double data[]; 4473}; 4474 4475struct named_init { 4476 int number; 4477 const wchar_t *name; 4478 double average; 4479}; 4480 4481typedef const char *ccp; 4482 4483static inline int 4484test_restrict (ccp restrict text) 4485{ 4486 // See if C++-style comments work. 4487 // Iterate through items via the restricted pointer. 4488 // Also check for declarations in for loops. 4489 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4490 continue; 4491 return 0; 4492} 4493 4494// Check varargs and va_copy. 4495static void 4496test_varargs (const char *format, ...) 4497{ 4498 va_list args; 4499 va_start (args, format); 4500 va_list args_copy; 4501 va_copy (args_copy, args); 4502 4503 const char *str; 4504 int number; 4505 float fnumber; 4506 4507 while (*format) 4508 { 4509 switch (*format++) 4510 { 4511 case 's': // string 4512 str = va_arg (args_copy, const char *); 4513 break; 4514 case 'd': // int 4515 number = va_arg (args_copy, int); 4516 break; 4517 case 'f': // float 4518 fnumber = va_arg (args_copy, double); 4519 break; 4520 default: 4521 break; 4522 } 4523 } 4524 va_end (args_copy); 4525 va_end (args); 4526} 4527 4528int 4529main () 4530{ 4531 4532 // Check bool. 4533 _Bool success = false; 4534 4535 // Check restrict. 4536 if (test_restrict ("String literal") == 0) 4537 success = true; 4538 char *restrict newvar = "Another string"; 4539 4540 // Check varargs. 4541 test_varargs ("s, d' f .", "string", 65, 34.234); 4542 test_varargs_macros (); 4543 4544 // Check flexible array members. 4545 struct incomplete_array *ia = 4546 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4547 ia->datasize = 10; 4548 for (int i = 0; i < ia->datasize; ++i) 4549 ia->data[i] = i * 1.234; 4550 4551 // Check named initializers. 4552 struct named_init ni = { 4553 .number = 34, 4554 .name = L"Test wide string", 4555 .average = 543.34343, 4556 }; 4557 4558 ni.number = 58; 4559 4560 int dynamic_array[ni.number]; 4561 dynamic_array[ni.number - 1] = 543; 4562 4563 // work around unused variable warnings 4564 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4565 || dynamic_array[ni.number - 1] != 543); 4566 4567 ; 4568 return 0; 4569} 4570_ACEOF 4571for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4572do 4573 CC="$ac_save_CC $ac_arg" 4574 if ac_fn_c_try_compile "$LINENO"; then : 4575 ac_cv_prog_cc_c99=$ac_arg 4576fi 4577rm -f core conftest.err conftest.$ac_objext 4578 test "x$ac_cv_prog_cc_c99" != "xno" && break 4579done 4580rm -f conftest.$ac_ext 4581CC=$ac_save_CC 4582 4583fi 4584# AC_CACHE_VAL 4585case "x$ac_cv_prog_cc_c99" in 4586 x) 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4588$as_echo "none needed" >&6; } ;; 4589 xno) 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4591$as_echo "unsupported" >&6; } ;; 4592 *) 4593 CC="$CC $ac_cv_prog_cc_c99" 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4595$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4596esac 4597if test "x$ac_cv_prog_cc_c99" != xno; then : 4598 4599fi 4600 4601 4602if test "x$ac_cv_prog_cc_c99" = xno; then 4603 as_fn_error $? "Your compiler lacks sufficient C99 support" "$LINENO" 5 4604fi 4605# AC_PROG_CC_C99 has to come before this or we don't get a C99 CPP 4606 4607ac_ext=c 4608ac_cpp='$CPP $CPPFLAGS' 4609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4611ac_compiler_gnu=$ac_cv_c_compiler_gnu 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4613$as_echo_n "checking how to run the C preprocessor... " >&6; } 4614# On Suns, sometimes $CPP names a directory. 4615if test -n "$CPP" && test -d "$CPP"; then 4616 CPP= 4617fi 4618if test -z "$CPP"; then 4619 if ${ac_cv_prog_CPP+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 # Double quotes because CPP needs to be expanded 4623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4624 do 4625 ac_preproc_ok=false 4626for ac_c_preproc_warn_flag in '' yes 4627do 4628 # Use a header file that comes with gcc, so configuring glibc 4629 # with a fresh cross-compiler works. 4630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4631 # <limits.h> exists even on freestanding compilers. 4632 # On the NeXT, cc -E runs the code through the compiler's parser, 4633 # not just through cpp. "Syntax error" is here to catch this case. 4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635/* end confdefs.h. */ 4636#ifdef __STDC__ 4637# include <limits.h> 4638#else 4639# include <assert.h> 4640#endif 4641 Syntax error 4642_ACEOF 4643if ac_fn_c_try_cpp "$LINENO"; then : 4644 4645else 4646 # Broken: fails on valid input. 4647continue 4648fi 4649rm -f conftest.err conftest.i conftest.$ac_ext 4650 4651 # OK, works on sane cases. Now check whether nonexistent headers 4652 # can be detected and how. 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655#include <ac_nonexistent.h> 4656_ACEOF 4657if ac_fn_c_try_cpp "$LINENO"; then : 4658 # Broken: success on invalid input. 4659continue 4660else 4661 # Passes both tests. 4662ac_preproc_ok=: 4663break 4664fi 4665rm -f conftest.err conftest.i conftest.$ac_ext 4666 4667done 4668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4669rm -f conftest.i conftest.err conftest.$ac_ext 4670if $ac_preproc_ok; then : 4671 break 4672fi 4673 4674 done 4675 ac_cv_prog_CPP=$CPP 4676 4677fi 4678 CPP=$ac_cv_prog_CPP 4679else 4680 ac_cv_prog_CPP=$CPP 4681fi 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4683$as_echo "$CPP" >&6; } 4684ac_preproc_ok=false 4685for ac_c_preproc_warn_flag in '' yes 4686do 4687 # Use a header file that comes with gcc, so configuring glibc 4688 # with a fresh cross-compiler works. 4689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4690 # <limits.h> exists even on freestanding compilers. 4691 # On the NeXT, cc -E runs the code through the compiler's parser, 4692 # not just through cpp. "Syntax error" is here to catch this case. 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4694/* end confdefs.h. */ 4695#ifdef __STDC__ 4696# include <limits.h> 4697#else 4698# include <assert.h> 4699#endif 4700 Syntax error 4701_ACEOF 4702if ac_fn_c_try_cpp "$LINENO"; then : 4703 4704else 4705 # Broken: fails on valid input. 4706continue 4707fi 4708rm -f conftest.err conftest.i conftest.$ac_ext 4709 4710 # OK, works on sane cases. Now check whether nonexistent headers 4711 # can be detected and how. 4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4713/* end confdefs.h. */ 4714#include <ac_nonexistent.h> 4715_ACEOF 4716if ac_fn_c_try_cpp "$LINENO"; then : 4717 # Broken: success on invalid input. 4718continue 4719else 4720 # Passes both tests. 4721ac_preproc_ok=: 4722break 4723fi 4724rm -f conftest.err conftest.i conftest.$ac_ext 4725 4726done 4727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4728rm -f conftest.i conftest.err conftest.$ac_ext 4729if $ac_preproc_ok; then : 4730 4731else 4732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4734as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4735See \`config.log' for more details" "$LINENO" 5; } 4736fi 4737 4738ac_ext=c 4739ac_cpp='$CPP $CPPFLAGS' 4740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4742ac_compiler_gnu=$ac_cv_c_compiler_gnu 4743 4744 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4746$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4747if ${ac_cv_path_GREP+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 if test -z "$GREP"; then 4751 ac_path_GREP_found=false 4752 # Loop through the user's path and test for each of PROGNAME-LIST 4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4755do 4756 IFS=$as_save_IFS 4757 test -z "$as_dir" && as_dir=. 4758 for ac_prog in grep ggrep; do 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4761 as_fn_executable_p "$ac_path_GREP" || continue 4762# Check for GNU ac_path_GREP and select it if it is found. 4763 # Check for GNU $ac_path_GREP 4764case `"$ac_path_GREP" --version 2>&1` in 4765*GNU*) 4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4767*) 4768 ac_count=0 4769 $as_echo_n 0123456789 >"conftest.in" 4770 while : 4771 do 4772 cat "conftest.in" "conftest.in" >"conftest.tmp" 4773 mv "conftest.tmp" "conftest.in" 4774 cp "conftest.in" "conftest.nl" 4775 $as_echo 'GREP' >> "conftest.nl" 4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4778 as_fn_arith $ac_count + 1 && ac_count=$as_val 4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4780 # Best one so far, save it but keep looking for a better one 4781 ac_cv_path_GREP="$ac_path_GREP" 4782 ac_path_GREP_max=$ac_count 4783 fi 4784 # 10*(2^10) chars as input seems more than enough 4785 test $ac_count -gt 10 && break 4786 done 4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4788esac 4789 4790 $ac_path_GREP_found && break 3 4791 done 4792 done 4793 done 4794IFS=$as_save_IFS 4795 if test -z "$ac_cv_path_GREP"; then 4796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4797 fi 4798else 4799 ac_cv_path_GREP=$GREP 4800fi 4801 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4804$as_echo "$ac_cv_path_GREP" >&6; } 4805 GREP="$ac_cv_path_GREP" 4806 4807 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4809$as_echo_n "checking for egrep... " >&6; } 4810if ${ac_cv_path_EGREP+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4814 then ac_cv_path_EGREP="$GREP -E" 4815 else 4816 if test -z "$EGREP"; then 4817 ac_path_EGREP_found=false 4818 # Loop through the user's path and test for each of PROGNAME-LIST 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_prog in egrep; do 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4827 as_fn_executable_p "$ac_path_EGREP" || continue 4828# Check for GNU ac_path_EGREP and select it if it is found. 4829 # Check for GNU $ac_path_EGREP 4830case `"$ac_path_EGREP" --version 2>&1` in 4831*GNU*) 4832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4833*) 4834 ac_count=0 4835 $as_echo_n 0123456789 >"conftest.in" 4836 while : 4837 do 4838 cat "conftest.in" "conftest.in" >"conftest.tmp" 4839 mv "conftest.tmp" "conftest.in" 4840 cp "conftest.in" "conftest.nl" 4841 $as_echo 'EGREP' >> "conftest.nl" 4842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4844 as_fn_arith $ac_count + 1 && ac_count=$as_val 4845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4846 # Best one so far, save it but keep looking for a better one 4847 ac_cv_path_EGREP="$ac_path_EGREP" 4848 ac_path_EGREP_max=$ac_count 4849 fi 4850 # 10*(2^10) chars as input seems more than enough 4851 test $ac_count -gt 10 && break 4852 done 4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4854esac 4855 4856 $ac_path_EGREP_found && break 3 4857 done 4858 done 4859 done 4860IFS=$as_save_IFS 4861 if test -z "$ac_cv_path_EGREP"; then 4862 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4863 fi 4864else 4865 ac_cv_path_EGREP=$EGREP 4866fi 4867 4868 fi 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4871$as_echo "$ac_cv_path_EGREP" >&6; } 4872 EGREP="$ac_cv_path_EGREP" 4873 4874 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4876$as_echo_n "checking for ANSI C header files... " >&6; } 4877if ${ac_cv_header_stdc+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4881/* end confdefs.h. */ 4882#include <stdlib.h> 4883#include <stdarg.h> 4884#include <string.h> 4885#include <float.h> 4886 4887int 4888main () 4889{ 4890 4891 ; 4892 return 0; 4893} 4894_ACEOF 4895if ac_fn_c_try_compile "$LINENO"; then : 4896 ac_cv_header_stdc=yes 4897else 4898 ac_cv_header_stdc=no 4899fi 4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4901 4902if test $ac_cv_header_stdc = yes; then 4903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905/* end confdefs.h. */ 4906#include <string.h> 4907 4908_ACEOF 4909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4910 $EGREP "memchr" >/dev/null 2>&1; then : 4911 4912else 4913 ac_cv_header_stdc=no 4914fi 4915rm -f conftest* 4916 4917fi 4918 4919if test $ac_cv_header_stdc = yes; then 4920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922/* end confdefs.h. */ 4923#include <stdlib.h> 4924 4925_ACEOF 4926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4927 $EGREP "free" >/dev/null 2>&1; then : 4928 4929else 4930 ac_cv_header_stdc=no 4931fi 4932rm -f conftest* 4933 4934fi 4935 4936if test $ac_cv_header_stdc = yes; then 4937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4938 if test "$cross_compiling" = yes; then : 4939 : 4940else 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943#include <ctype.h> 4944#include <stdlib.h> 4945#if ((' ' & 0x0FF) == 0x020) 4946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4948#else 4949# define ISLOWER(c) \ 4950 (('a' <= (c) && (c) <= 'i') \ 4951 || ('j' <= (c) && (c) <= 'r') \ 4952 || ('s' <= (c) && (c) <= 'z')) 4953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4954#endif 4955 4956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4957int 4958main () 4959{ 4960 int i; 4961 for (i = 0; i < 256; i++) 4962 if (XOR (islower (i), ISLOWER (i)) 4963 || toupper (i) != TOUPPER (i)) 4964 return 2; 4965 return 0; 4966} 4967_ACEOF 4968if ac_fn_c_try_run "$LINENO"; then : 4969 4970else 4971 ac_cv_header_stdc=no 4972fi 4973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4974 conftest.$ac_objext conftest.beam conftest.$ac_ext 4975fi 4976 4977fi 4978fi 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4980$as_echo "$ac_cv_header_stdc" >&6; } 4981if test $ac_cv_header_stdc = yes; then 4982 4983$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4984 4985fi 4986 4987# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4989 inttypes.h stdint.h unistd.h 4990do : 4991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4993" 4994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4995 cat >>confdefs.h <<_ACEOF 4996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4997_ACEOF 4998 4999fi 5000 5001done 5002 5003 5004 5005 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5006if test "x$ac_cv_header_minix_config_h" = xyes; then : 5007 MINIX=yes 5008else 5009 MINIX= 5010fi 5011 5012 5013 if test "$MINIX" = yes; then 5014 5015$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5016 5017 5018$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5019 5020 5021$as_echo "#define _MINIX 1" >>confdefs.h 5022 5023 fi 5024 5025 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5027$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5028if ${ac_cv_safe_to_define___extensions__+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032/* end confdefs.h. */ 5033 5034# define __EXTENSIONS__ 1 5035 $ac_includes_default 5036int 5037main () 5038{ 5039 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044if ac_fn_c_try_compile "$LINENO"; then : 5045 ac_cv_safe_to_define___extensions__=yes 5046else 5047 ac_cv_safe_to_define___extensions__=no 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050fi 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5052$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5053 test $ac_cv_safe_to_define___extensions__ = yes && 5054 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5055 5056 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5057 5058 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5059 5060 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5061 5062 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5063 5064 5065 5066# This is explcitly checked by CC_C99 above for now, but 5067# the C11 standard reversed course and made this an optional 5068# feature, so we may as well double-check here for future-proofing 5069 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 5071$as_echo_n "checking for variable-length arrays... " >&6; } 5072if ${ac_cv_c_vararrays+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076/* end confdefs.h. */ 5077 5078int 5079main () 5080{ 5081static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0]; 5082 ; 5083 return 0; 5084} 5085_ACEOF 5086if ac_fn_c_try_compile "$LINENO"; then : 5087 ac_cv_c_vararrays=yes 5088else 5089 ac_cv_c_vararrays=no 5090fi 5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 5094$as_echo "$ac_cv_c_vararrays" >&6; } 5095 if test $ac_cv_c_vararrays = yes; then 5096 5097$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h 5098 5099 fi 5100 5101if test "x$ac_cv_c_vararrays" = xno; then 5102 as_fn_error $? "Your compiler lacks support for variable arrays" "$LINENO" 5 5103fi 5104 5105 5106 5107# POSIX threads stuff 5108# Make sure we can run config.sub. 5109$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5110 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5111 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5113$as_echo_n "checking build system type... " >&6; } 5114if ${ac_cv_build+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 ac_build_alias=$build_alias 5118test "x$ac_build_alias" = x && 5119 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5120test "x$ac_build_alias" = x && 5121 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5122ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5123 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5124 5125fi 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5127$as_echo "$ac_cv_build" >&6; } 5128case $ac_cv_build in 5129*-*-*) ;; 5130*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5131esac 5132build=$ac_cv_build 5133ac_save_IFS=$IFS; IFS='-' 5134set x $ac_cv_build 5135shift 5136build_cpu=$1 5137build_vendor=$2 5138shift; shift 5139# Remember, the first character of IFS is used to create $*, 5140# except with old shells: 5141build_os=$* 5142IFS=$ac_save_IFS 5143case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5144 5145 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5147$as_echo_n "checking host system type... " >&6; } 5148if ${ac_cv_host+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if test "x$host_alias" = x; then 5152 ac_cv_host=$ac_cv_build 5153else 5154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5156fi 5157 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5160$as_echo "$ac_cv_host" >&6; } 5161case $ac_cv_host in 5162*-*-*) ;; 5163*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5164esac 5165host=$ac_cv_host 5166ac_save_IFS=$IFS; IFS='-' 5167set x $ac_cv_host 5168shift 5169host_cpu=$1 5170host_vendor=$2 5171shift; shift 5172# Remember, the first character of IFS is used to create $*, 5173# except with old shells: 5174host_os=$* 5175IFS=$ac_save_IFS 5176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5177 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5180$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5181if ${ac_cv_path_SED+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5185 for ac_i in 1 2 3 4 5 6 7; do 5186 ac_script="$ac_script$as_nl$ac_script" 5187 done 5188 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5189 { ac_script=; unset ac_script;} 5190 if test -z "$SED"; then 5191 ac_path_SED_found=false 5192 # Loop through the user's path and test for each of PROGNAME-LIST 5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_prog in sed gsed; do 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5201 as_fn_executable_p "$ac_path_SED" || continue 5202# Check for GNU ac_path_SED and select it if it is found. 5203 # Check for GNU $ac_path_SED 5204case `"$ac_path_SED" --version 2>&1` in 5205*GNU*) 5206 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5207*) 5208 ac_count=0 5209 $as_echo_n 0123456789 >"conftest.in" 5210 while : 5211 do 5212 cat "conftest.in" "conftest.in" >"conftest.tmp" 5213 mv "conftest.tmp" "conftest.in" 5214 cp "conftest.in" "conftest.nl" 5215 $as_echo '' >> "conftest.nl" 5216 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5218 as_fn_arith $ac_count + 1 && ac_count=$as_val 5219 if test $ac_count -gt ${ac_path_SED_max-0}; then 5220 # Best one so far, save it but keep looking for a better one 5221 ac_cv_path_SED="$ac_path_SED" 5222 ac_path_SED_max=$ac_count 5223 fi 5224 # 10*(2^10) chars as input seems more than enough 5225 test $ac_count -gt 10 && break 5226 done 5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5228esac 5229 5230 $ac_path_SED_found && break 3 5231 done 5232 done 5233 done 5234IFS=$as_save_IFS 5235 if test -z "$ac_cv_path_SED"; then 5236 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5237 fi 5238else 5239 ac_cv_path_SED=$SED 5240fi 5241 5242fi 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5244$as_echo "$ac_cv_path_SED" >&6; } 5245 SED="$ac_cv_path_SED" 5246 rm -f conftest.sed 5247 5248 5249 5250 5251 5252ac_ext=c 5253ac_cpp='$CPP $CPPFLAGS' 5254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5256ac_compiler_gnu=$ac_cv_c_compiler_gnu 5257 5258ax_pthread_ok=no 5259 5260# We used to check for pthread.h first, but this fails if pthread.h 5261# requires special compiler flags (e.g. on Tru64 or Sequent). 5262# It gets checked for in the link test anyway. 5263 5264# First of all, check if the user has set any of the PTHREAD_LIBS, 5265# etcetera environment variables, and if threads linking works using 5266# them: 5267if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 5268 ax_pthread_save_CC="$CC" 5269 ax_pthread_save_CFLAGS="$CFLAGS" 5270 ax_pthread_save_LIBS="$LIBS" 5271 if test "x$PTHREAD_CC" != "x"; then : 5272 CC="$PTHREAD_CC" 5273fi 5274 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5275 LIBS="$PTHREAD_LIBS $LIBS" 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 5277$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280 5281/* Override any GCC internal prototype to avoid an error. 5282 Use char because int might match the return type of a GCC 5283 builtin and then its argument prototype would still apply. */ 5284#ifdef __cplusplus 5285extern "C" 5286#endif 5287char pthread_join (); 5288int 5289main () 5290{ 5291return pthread_join (); 5292 ; 5293 return 0; 5294} 5295_ACEOF 5296if ac_fn_c_try_link "$LINENO"; then : 5297 ax_pthread_ok=yes 5298fi 5299rm -f core conftest.err conftest.$ac_objext \ 5300 conftest$ac_exeext conftest.$ac_ext 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 5302$as_echo "$ax_pthread_ok" >&6; } 5303 if test "x$ax_pthread_ok" = "xno"; then 5304 PTHREAD_LIBS="" 5305 PTHREAD_CFLAGS="" 5306 fi 5307 CC="$ax_pthread_save_CC" 5308 CFLAGS="$ax_pthread_save_CFLAGS" 5309 LIBS="$ax_pthread_save_LIBS" 5310fi 5311 5312# We must check for the threads library under a number of different 5313# names; the ordering is very important because some systems 5314# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 5315# libraries is broken (non-POSIX). 5316 5317# Create a list of thread flags to try. Items starting with a "-" are 5318# C compiler flags, and other items are library names, except for "none" 5319# which indicates that we try without any flags at all, and "pthread-config" 5320# which is a program returning the flags for the Pth emulation library. 5321 5322ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 5323 5324# The ordering *is* (sometimes) important. Some notes on the 5325# individual items follow: 5326 5327# pthreads: AIX (must check this before -lpthread) 5328# none: in case threads are in libc; should be tried before -Kthread and 5329# other compiler flags to prevent continual compiler warnings 5330# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 5331# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 5332# (Note: HP C rejects this with "bad form for `-t' option") 5333# -pthreads: Solaris/gcc (Note: HP C also rejects) 5334# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 5335# doesn't hurt to check since this sometimes defines pthreads and 5336# -D_REENTRANT too), HP C (must be checked before -lpthread, which 5337# is present but should not be used directly; and before -mthreads, 5338# because the compiler interprets this as "-mt" + "-hreads") 5339# -mthreads: Mingw32/gcc, Lynx/gcc 5340# pthread: Linux, etcetera 5341# --thread-safe: KAI C++ 5342# pthread-config: use pthread-config program (for GNU Pth library) 5343 5344case $host_os in 5345 5346 freebsd*) 5347 5348 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 5349 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 5350 5351 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 5352 ;; 5353 5354 hpux*) 5355 5356 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 5357 # multi-threading and also sets -lpthread." 5358 5359 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 5360 ;; 5361 5362 openedition*) 5363 5364 # IBM z/OS requires a feature-test macro to be defined in order to 5365 # enable POSIX threads at all, so give the user a hint if this is 5366 # not set. (We don't define these ourselves, as they can affect 5367 # other portions of the system API in unpredictable ways.) 5368 5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5370/* end confdefs.h. */ 5371 5372# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 5373 AX_PTHREAD_ZOS_MISSING 5374# endif 5375 5376_ACEOF 5377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5378 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 5380$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 5381fi 5382rm -f conftest* 5383 5384 ;; 5385 5386 solaris*) 5387 5388 # On Solaris (at least, for some versions), libc contains stubbed 5389 # (non-functional) versions of the pthreads routines, so link-based 5390 # tests will erroneously succeed. (N.B.: The stubs are missing 5391 # pthread_cleanup_push, or rather a function called by this macro, 5392 # so we could check for that, but who knows whether they'll stub 5393 # that too in a future libc.) So we'll check first for the 5394 # standard Solaris way of linking pthreads (-mt -lpthread). 5395 5396 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 5397 ;; 5398esac 5399 5400# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 5401 5402if test "x$GCC" = "xyes"; then : 5403 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 5404fi 5405 5406# The presence of a feature test macro requesting re-entrant function 5407# definitions is, on some systems, a strong hint that pthreads support is 5408# correctly enabled 5409 5410case $host_os in 5411 darwin* | hpux* | linux* | osf* | solaris*) 5412 ax_pthread_check_macro="_REENTRANT" 5413 ;; 5414 5415 aix*) 5416 ax_pthread_check_macro="_THREAD_SAFE" 5417 ;; 5418 5419 *) 5420 ax_pthread_check_macro="--" 5421 ;; 5422esac 5423if test "x$ax_pthread_check_macro" = "x--"; then : 5424 ax_pthread_check_cond=0 5425else 5426 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 5427fi 5428 5429# Are we compiling with Clang? 5430 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 5432$as_echo_n "checking whether $CC is Clang... " >&6; } 5433if ${ax_cv_PTHREAD_CLANG+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 ax_cv_PTHREAD_CLANG=no 5437 # Note that Autoconf sets GCC=yes for Clang as well as GCC 5438 if test "x$GCC" = "xyes"; then 5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5440/* end confdefs.h. */ 5441/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 5442# if defined(__clang__) && defined(__llvm__) 5443 AX_PTHREAD_CC_IS_CLANG 5444# endif 5445 5446_ACEOF 5447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5448 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 5449 ax_cv_PTHREAD_CLANG=yes 5450fi 5451rm -f conftest* 5452 5453 fi 5454 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 5457$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 5458ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 5459 5460ax_pthread_clang_warning=no 5461 5462# Clang needs special handling, because older versions handle the -pthread 5463# option in a rather... idiosyncratic way 5464 5465if test "x$ax_pthread_clang" = "xyes"; then 5466 5467 # Clang takes -pthread; it has never supported any other flag 5468 5469 # (Note 1: This will need to be revisited if a system that Clang 5470 # supports has POSIX threads in a separate library. This tends not 5471 # to be the way of modern systems, but it's conceivable.) 5472 5473 # (Note 2: On some systems, notably Darwin, -pthread is not needed 5474 # to get POSIX threads support; the API is always present and 5475 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 5476 # -pthread does define _REENTRANT, and while the Darwin headers 5477 # ignore this macro, third-party headers might not.) 5478 5479 PTHREAD_CFLAGS="-pthread" 5480 PTHREAD_LIBS= 5481 5482 ax_pthread_ok=yes 5483 5484 # However, older versions of Clang make a point of warning the user 5485 # that, in an invocation where only linking and no compilation is 5486 # taking place, the -pthread option has no effect ("argument unused 5487 # during compilation"). They expect -pthread to be passed in only 5488 # when source code is being compiled. 5489 # 5490 # Problem is, this is at odds with the way Automake and most other 5491 # C build frameworks function, which is that the same flags used in 5492 # compilation (CFLAGS) are also used in linking. Many systems 5493 # supported by AX_PTHREAD require exactly this for POSIX threads 5494 # support, and in fact it is often not straightforward to specify a 5495 # flag that is used only in the compilation phase and not in 5496 # linking. Such a scenario is extremely rare in practice. 5497 # 5498 # Even though use of the -pthread flag in linking would only print 5499 # a warning, this can be a nuisance for well-run software projects 5500 # that build with -Werror. So if the active version of Clang has 5501 # this misfeature, we search for an option to squash it. 5502 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 5504$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 5505if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 5509 # Create an alternate version of $ac_link that compiles and 5510 # links in two steps (.c -> .o, .o -> exe) instead of one 5511 # (.c -> exe), because the warning occurs only in the second 5512 # step 5513 ax_pthread_save_ac_link="$ac_link" 5514 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 5515 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 5516 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 5517 ax_pthread_save_CFLAGS="$CFLAGS" 5518 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 5519 if test "x$ax_pthread_try" = "xunknown"; then : 5520 break 5521fi 5522 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 5523 ac_link="$ax_pthread_save_ac_link" 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5525/* end confdefs.h. */ 5526int main(void){return 0;} 5527_ACEOF 5528if ac_fn_c_try_link "$LINENO"; then : 5529 ac_link="$ax_pthread_2step_ac_link" 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int main(void){return 0;} 5533_ACEOF 5534if ac_fn_c_try_link "$LINENO"; then : 5535 break 5536fi 5537rm -f core conftest.err conftest.$ac_objext \ 5538 conftest$ac_exeext conftest.$ac_ext 5539 5540fi 5541rm -f core conftest.err conftest.$ac_objext \ 5542 conftest$ac_exeext conftest.$ac_ext 5543 done 5544 ac_link="$ax_pthread_save_ac_link" 5545 CFLAGS="$ax_pthread_save_CFLAGS" 5546 if test "x$ax_pthread_try" = "x"; then : 5547 ax_pthread_try=no 5548fi 5549 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 5550 5551fi 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 5553$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 5554 5555 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 5556 no | unknown) ;; 5557 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 5558 esac 5559 5560fi # $ax_pthread_clang = yes 5561 5562if test "x$ax_pthread_ok" = "xno"; then 5563for ax_pthread_try_flag in $ax_pthread_flags; do 5564 5565 case $ax_pthread_try_flag in 5566 none) 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 5568$as_echo_n "checking whether pthreads work without any flags... " >&6; } 5569 ;; 5570 5571 -mt,pthread) 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 5573$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 5574 PTHREAD_CFLAGS="-mt" 5575 PTHREAD_LIBS="-lpthread" 5576 ;; 5577 5578 -*) 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 5580$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 5581 PTHREAD_CFLAGS="$ax_pthread_try_flag" 5582 ;; 5583 5584 pthread-config) 5585 # Extract the first word of "pthread-config", so it can be a program name with args. 5586set dummy pthread-config; ac_word=$2 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588$as_echo_n "checking for $ac_word... " >&6; } 5589if ${ac_cv_prog_ax_pthread_config+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 if test -n "$ax_pthread_config"; then 5593 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 5594else 5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5602 ac_cv_prog_ax_pthread_config="yes" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606done 5607 done 5608IFS=$as_save_IFS 5609 5610 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 5611fi 5612fi 5613ax_pthread_config=$ac_cv_prog_ax_pthread_config 5614if test -n "$ax_pthread_config"; then 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 5616$as_echo "$ax_pthread_config" >&6; } 5617else 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5619$as_echo "no" >&6; } 5620fi 5621 5622 5623 if test "x$ax_pthread_config" = "xno"; then : 5624 continue 5625fi 5626 PTHREAD_CFLAGS="`pthread-config --cflags`" 5627 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 5628 ;; 5629 5630 *) 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 5632$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 5633 PTHREAD_LIBS="-l$ax_pthread_try_flag" 5634 ;; 5635 esac 5636 5637 ax_pthread_save_CFLAGS="$CFLAGS" 5638 ax_pthread_save_LIBS="$LIBS" 5639 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5640 LIBS="$PTHREAD_LIBS $LIBS" 5641 5642 # Check for various functions. We must include pthread.h, 5643 # since some functions may be macros. (On the Sequent, we 5644 # need a special flag -Kthread to make this header compile.) 5645 # We check for pthread_join because it is in -lpthread on IRIX 5646 # while pthread_create is in libc. We check for pthread_attr_init 5647 # due to DEC craziness with -lpthreads. We check for 5648 # pthread_cleanup_push because it is one of the few pthread 5649 # functions on Solaris that doesn't have a non-functional libc stub. 5650 # We try pthread_create on general principles. 5651 5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5653/* end confdefs.h. */ 5654#include <pthread.h> 5655# if $ax_pthread_check_cond 5656# error "$ax_pthread_check_macro must be defined" 5657# endif 5658 static void routine(void *a) { a = 0; } 5659 static void *start_routine(void *a) { return a; } 5660int 5661main () 5662{ 5663pthread_t th; pthread_attr_t attr; 5664 pthread_create(&th, 0, start_routine, 0); 5665 pthread_join(th, 0); 5666 pthread_attr_init(&attr); 5667 pthread_cleanup_push(routine, 0); 5668 pthread_cleanup_pop(0) /* ; */ 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673if ac_fn_c_try_link "$LINENO"; then : 5674 ax_pthread_ok=yes 5675fi 5676rm -f core conftest.err conftest.$ac_objext \ 5677 conftest$ac_exeext conftest.$ac_ext 5678 5679 CFLAGS="$ax_pthread_save_CFLAGS" 5680 LIBS="$ax_pthread_save_LIBS" 5681 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 5683$as_echo "$ax_pthread_ok" >&6; } 5684 if test "x$ax_pthread_ok" = "xyes"; then : 5685 break 5686fi 5687 5688 PTHREAD_LIBS="" 5689 PTHREAD_CFLAGS="" 5690done 5691fi 5692 5693# Various other checks: 5694if test "x$ax_pthread_ok" = "xyes"; then 5695 ax_pthread_save_CFLAGS="$CFLAGS" 5696 ax_pthread_save_LIBS="$LIBS" 5697 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5698 LIBS="$PTHREAD_LIBS $LIBS" 5699 5700 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 5702$as_echo_n "checking for joinable pthread attribute... " >&6; } 5703if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 5707 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709/* end confdefs.h. */ 5710#include <pthread.h> 5711int 5712main () 5713{ 5714int attr = $ax_pthread_attr; return attr /* ; */ 5715 ; 5716 return 0; 5717} 5718_ACEOF 5719if ac_fn_c_try_link "$LINENO"; then : 5720 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 5721fi 5722rm -f core conftest.err conftest.$ac_objext \ 5723 conftest$ac_exeext conftest.$ac_ext 5724 done 5725 5726fi 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 5728$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 5729 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 5730 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 5731 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 5732 5733cat >>confdefs.h <<_ACEOF 5734#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 5735_ACEOF 5736 5737 ax_pthread_joinable_attr_defined=yes 5738 5739fi 5740 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 5742$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 5743if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 ax_cv_PTHREAD_SPECIAL_FLAGS=no 5747 case $host_os in 5748 solaris*) 5749 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 5750 ;; 5751 esac 5752 5753fi 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 5755$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 5756 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 5757 test "x$ax_pthread_special_flags_added" != "xyes"; then : 5758 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 5759 ax_pthread_special_flags_added=yes 5760fi 5761 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 5763$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 5764if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5768/* end confdefs.h. */ 5769#include <pthread.h> 5770int 5771main () 5772{ 5773int i = PTHREAD_PRIO_INHERIT; 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778if ac_fn_c_try_link "$LINENO"; then : 5779 ax_cv_PTHREAD_PRIO_INHERIT=yes 5780else 5781 ax_cv_PTHREAD_PRIO_INHERIT=no 5782fi 5783rm -f core conftest.err conftest.$ac_objext \ 5784 conftest$ac_exeext conftest.$ac_ext 5785 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 5788$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 5789 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 5790 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 5791 5792$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 5793 5794 ax_pthread_prio_inherit_defined=yes 5795 5796fi 5797 5798 CFLAGS="$ax_pthread_save_CFLAGS" 5799 LIBS="$ax_pthread_save_LIBS" 5800 5801 # More AIX lossage: compile with *_r variant 5802 if test "x$GCC" != "xyes"; then 5803 case $host_os in 5804 aix*) 5805 case "x/$CC" in #( 5806 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 5807 #handle absolute path differently from PATH based program lookup 5808 case "x$CC" in #( 5809 x/*) : 5810 if as_fn_executable_p ${CC}_r; then : 5811 PTHREAD_CC="${CC}_r" 5812fi ;; #( 5813 *) : 5814 for ac_prog in ${CC}_r 5815do 5816 # Extract the first word of "$ac_prog", so it can be a program name with args. 5817set dummy $ac_prog; ac_word=$2 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5819$as_echo_n "checking for $ac_word... " >&6; } 5820if ${ac_cv_prog_PTHREAD_CC+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 if test -n "$PTHREAD_CC"; then 5824 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 5825else 5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5827for as_dir in $PATH 5828do 5829 IFS=$as_save_IFS 5830 test -z "$as_dir" && as_dir=. 5831 for ac_exec_ext in '' $ac_executable_extensions; do 5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5833 ac_cv_prog_PTHREAD_CC="$ac_prog" 5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5835 break 2 5836 fi 5837done 5838 done 5839IFS=$as_save_IFS 5840 5841fi 5842fi 5843PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 5844if test -n "$PTHREAD_CC"; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 5846$as_echo "$PTHREAD_CC" >&6; } 5847else 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849$as_echo "no" >&6; } 5850fi 5851 5852 5853 test -n "$PTHREAD_CC" && break 5854done 5855test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 5856 ;; 5857esac ;; #( 5858 *) : 5859 ;; 5860esac 5861 ;; 5862 esac 5863 fi 5864fi 5865 5866test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 5867 5868 5869 5870 5871 5872# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 5873if test "x$ax_pthread_ok" = "xyes"; then 5874 5875$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 5876 5877 : 5878else 5879 ax_pthread_ok=no 5880 as_fn_error $? "POSIX threads support is required" "$LINENO" 5 5881fi 5882ac_ext=c 5883ac_cpp='$CPP $CPPFLAGS' 5884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5886ac_compiler_gnu=$ac_cv_c_compiler_gnu 5887 5888 5889LIBS="$PTHREAD_LIBS $LIBS" 5890CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5891CC="$PTHREAD_CC" 5892 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5 5894$as_echo_n "checking if compiling with clang... " >&6; } 5895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897 5898int 5899main () 5900{ 5901 5902#ifndef __clang__ 5903 not clang 5904#endif 5905 5906 ; 5907 return 0; 5908} 5909_ACEOF 5910if ac_fn_c_try_compile "$LINENO"; then : 5911 CLANG=yes 5912else 5913 CLANG=no 5914fi 5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5 5917$as_echo "$CLANG" >&6; } 5918 5919# need to know endian-ness 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5921$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5922if ${ac_cv_c_bigendian+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 ac_cv_c_bigendian=unknown 5926 # See if we're dealing with a universal compiler. 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929#ifndef __APPLE_CC__ 5930 not a universal capable compiler 5931 #endif 5932 typedef int dummy; 5933 5934_ACEOF 5935if ac_fn_c_try_compile "$LINENO"; then : 5936 5937 # Check for potential -arch flags. It is not universal unless 5938 # there are at least two -arch flags with different values. 5939 ac_arch= 5940 ac_prev= 5941 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5942 if test -n "$ac_prev"; then 5943 case $ac_word in 5944 i?86 | x86_64 | ppc | ppc64) 5945 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5946 ac_arch=$ac_word 5947 else 5948 ac_cv_c_bigendian=universal 5949 break 5950 fi 5951 ;; 5952 esac 5953 ac_prev= 5954 elif test "x$ac_word" = "x-arch"; then 5955 ac_prev=arch 5956 fi 5957 done 5958fi 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960 if test $ac_cv_c_bigendian = unknown; then 5961 # See if sys/param.h defines the BYTE_ORDER macro. 5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963/* end confdefs.h. */ 5964#include <sys/types.h> 5965 #include <sys/param.h> 5966 5967int 5968main () 5969{ 5970#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5971 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5972 && LITTLE_ENDIAN) 5973 bogus endian macros 5974 #endif 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_compile "$LINENO"; then : 5981 # It does; now see whether it defined to BIG_ENDIAN or not. 5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983/* end confdefs.h. */ 5984#include <sys/types.h> 5985 #include <sys/param.h> 5986 5987int 5988main () 5989{ 5990#if BYTE_ORDER != BIG_ENDIAN 5991 not big endian 5992 #endif 5993 5994 ; 5995 return 0; 5996} 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO"; then : 5999 ac_cv_c_bigendian=yes 6000else 6001 ac_cv_c_bigendian=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6004fi 6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6006 fi 6007 if test $ac_cv_c_bigendian = unknown; then 6008 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011#include <limits.h> 6012 6013int 6014main () 6015{ 6016#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6017 bogus endian macros 6018 #endif 6019 6020 ; 6021 return 0; 6022} 6023_ACEOF 6024if ac_fn_c_try_compile "$LINENO"; then : 6025 # It does; now see whether it defined to _BIG_ENDIAN or not. 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028#include <limits.h> 6029 6030int 6031main () 6032{ 6033#ifndef _BIG_ENDIAN 6034 not big endian 6035 #endif 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_compile "$LINENO"; then : 6042 ac_cv_c_bigendian=yes 6043else 6044 ac_cv_c_bigendian=no 6045fi 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049 fi 6050 if test $ac_cv_c_bigendian = unknown; then 6051 # Compile a test program. 6052 if test "$cross_compiling" = yes; then : 6053 # Try to guess by grepping values from an object file. 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056short int ascii_mm[] = 6057 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6058 short int ascii_ii[] = 6059 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6060 int use_ascii (int i) { 6061 return ascii_mm[i] + ascii_ii[i]; 6062 } 6063 short int ebcdic_ii[] = 6064 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6065 short int ebcdic_mm[] = 6066 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6067 int use_ebcdic (int i) { 6068 return ebcdic_mm[i] + ebcdic_ii[i]; 6069 } 6070 extern int foo; 6071 6072int 6073main () 6074{ 6075return use_ascii (foo) == use_ebcdic (foo); 6076 ; 6077 return 0; 6078} 6079_ACEOF 6080if ac_fn_c_try_compile "$LINENO"; then : 6081 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6082 ac_cv_c_bigendian=yes 6083 fi 6084 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6085 if test "$ac_cv_c_bigendian" = unknown; then 6086 ac_cv_c_bigendian=no 6087 else 6088 # finding both strings is unlikely to happen, but who knows? 6089 ac_cv_c_bigendian=unknown 6090 fi 6091 fi 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094else 6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097$ac_includes_default 6098int 6099main () 6100{ 6101 6102 /* Are we little or big endian? From Harbison&Steele. */ 6103 union 6104 { 6105 long int l; 6106 char c[sizeof (long int)]; 6107 } u; 6108 u.l = 1; 6109 return u.c[sizeof (long int) - 1] == 1; 6110 6111 ; 6112 return 0; 6113} 6114_ACEOF 6115if ac_fn_c_try_run "$LINENO"; then : 6116 ac_cv_c_bigendian=no 6117else 6118 ac_cv_c_bigendian=yes 6119fi 6120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6121 conftest.$ac_objext conftest.beam conftest.$ac_ext 6122fi 6123 6124 fi 6125fi 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6127$as_echo "$ac_cv_c_bigendian" >&6; } 6128 case $ac_cv_c_bigendian in #( 6129 yes) 6130 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6131;; #( 6132 no) 6133 ;; #( 6134 universal) 6135 6136$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6137 6138 ;; #( 6139 *) 6140 as_fn_error $? "unknown endianness 6141 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6142 esac 6143 6144 6145# pointer width... 6146# The cast to long int works around a bug in the HP C Compiler 6147# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6148# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6149# This bug is HP SR number 8606223364. 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 6151$as_echo_n "checking size of uintptr_t... " >&6; } 6152if ${ac_cv_sizeof_uintptr_t+:} false; then : 6153 $as_echo_n "(cached) " >&6 6154else 6155 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 6156 6157else 6158 if test "$ac_cv_type_uintptr_t" = yes; then 6159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6161as_fn_error 77 "cannot compute sizeof (uintptr_t) 6162See \`config.log' for more details" "$LINENO" 5; } 6163 else 6164 ac_cv_sizeof_uintptr_t=0 6165 fi 6166fi 6167 6168fi 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 6170$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 6171 6172 6173 6174cat >>confdefs.h <<_ACEOF 6175#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 6176_ACEOF 6177 6178 6179 6180# Apparently libtool+automake need this now, in newer versions 6181# which have it at all 6182if test -n "$ac_tool_prefix"; then 6183 for ac_prog in ar lib "link -lib" 6184 do 6185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6186set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if ${ac_cv_prog_AR+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$AR"; then 6193 ac_cv_prog_AR="$AR" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6202 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207 done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212AR=$ac_cv_prog_AR 6213if test -n "$AR"; then 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6215$as_echo "$AR" >&6; } 6216else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 6222 test -n "$AR" && break 6223 done 6224fi 6225if test -z "$AR"; then 6226 ac_ct_AR=$AR 6227 for ac_prog in ar lib "link -lib" 6228do 6229 # Extract the first word of "$ac_prog", so it can be a program name with args. 6230set dummy $ac_prog; ac_word=$2 6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6232$as_echo_n "checking for $ac_word... " >&6; } 6233if ${ac_cv_prog_ac_ct_AR+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 if test -n "$ac_ct_AR"; then 6237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6238else 6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6240for as_dir in $PATH 6241do 6242 IFS=$as_save_IFS 6243 test -z "$as_dir" && as_dir=. 6244 for ac_exec_ext in '' $ac_executable_extensions; do 6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6246 ac_cv_prog_ac_ct_AR="$ac_prog" 6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6248 break 2 6249 fi 6250done 6251 done 6252IFS=$as_save_IFS 6253 6254fi 6255fi 6256ac_ct_AR=$ac_cv_prog_ac_ct_AR 6257if test -n "$ac_ct_AR"; then 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6259$as_echo "$ac_ct_AR" >&6; } 6260else 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6262$as_echo "no" >&6; } 6263fi 6264 6265 6266 test -n "$ac_ct_AR" && break 6267done 6268 6269 if test "x$ac_ct_AR" = x; then 6270 AR="false" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 AR=$ac_ct_AR 6279 fi 6280fi 6281 6282: ${AR=ar} 6283 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6285$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6286if ${am_cv_ar_interface+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 ac_ext=c 6290ac_cpp='$CPP $CPPFLAGS' 6291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6293ac_compiler_gnu=$ac_cv_c_compiler_gnu 6294 6295 am_cv_ar_interface=ar 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298int some_variable = 0; 6299_ACEOF 6300if ac_fn_c_try_compile "$LINENO"; then : 6301 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6303 (eval $am_ar_try) 2>&5 6304 ac_status=$? 6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6306 test $ac_status = 0; } 6307 if test "$ac_status" -eq 0; then 6308 am_cv_ar_interface=ar 6309 else 6310 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6312 (eval $am_ar_try) 2>&5 6313 ac_status=$? 6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6315 test $ac_status = 0; } 6316 if test "$ac_status" -eq 0; then 6317 am_cv_ar_interface=lib 6318 else 6319 am_cv_ar_interface=unknown 6320 fi 6321 fi 6322 rm -f conftest.lib libconftest.a 6323 6324fi 6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6326 ac_ext=c 6327ac_cpp='$CPP $CPPFLAGS' 6328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6330ac_compiler_gnu=$ac_cv_c_compiler_gnu 6331 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6334$as_echo "$am_cv_ar_interface" >&6; } 6335 6336case $am_cv_ar_interface in 6337ar) 6338 ;; 6339lib) 6340 # Microsoft lib, so override with the ar-lib wrapper script. 6341 # FIXME: It is wrong to rewrite AR. 6342 # But if we don't then we get into trouble of one sort or another. 6343 # A longer-term fix would be to have automake use am__AR in this case, 6344 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6345 # similar. 6346 AR="$am_aux_dir/ar-lib $AR" 6347 ;; 6348unknown) 6349 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6350 ;; 6351esac 6352 6353 6354# The libtool macros in 2.2.6b - 2.4.2 have a bug that causes 6355# them to accidentally add LIBADD_DLOPEN to LIBS permanently, 6356# so we workaround that by saving and restoring LIBS 6357XLIBS=$LIBS 6358# Check whether --enable-static was given. 6359if test "${enable_static+set}" = set; then : 6360 enableval=$enable_static; p=${PACKAGE-default} 6361 case $enableval in 6362 yes) enable_static=yes ;; 6363 no) enable_static=no ;; 6364 *) 6365 enable_static=no 6366 # Look at the argument we got. We use all the common list separators. 6367 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 6368 for pkg in $enableval; do 6369 IFS=$lt_save_ifs 6370 if test "X$pkg" = "X$p"; then 6371 enable_static=yes 6372 fi 6373 done 6374 IFS=$lt_save_ifs 6375 ;; 6376 esac 6377else 6378 enable_static=no 6379fi 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389case `pwd` in 6390 *\ * | *\ *) 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6392$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6393esac 6394 6395 6396 6397macro_version='2.4.6' 6398macro_revision='2.4.6' 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412ltmain=$ac_aux_dir/ltmain.sh 6413 6414# Backslashify metacharacters that are still active within 6415# double-quoted strings. 6416sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6417 6418# Same as above, but do not quote variable references. 6419double_quote_subst='s/\(["`\\]\)/\\\1/g' 6420 6421# Sed substitution to delay expansion of an escaped shell variable in a 6422# double_quote_subst'ed string. 6423delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6424 6425# Sed substitution to delay expansion of an escaped single quote. 6426delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6427 6428# Sed substitution to avoid accidental globbing in evaled expressions 6429no_glob_subst='s/\*/\\\*/g' 6430 6431ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6432ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6433ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6434 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6436$as_echo_n "checking how to print strings... " >&6; } 6437# Test print first, because it will be a builtin if present. 6438if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6439 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6440 ECHO='print -r --' 6441elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6442 ECHO='printf %s\n' 6443else 6444 # Use this function as a fallback that always works. 6445 func_fallback_echo () 6446 { 6447 eval 'cat <<_LTECHO_EOF 6448$1 6449_LTECHO_EOF' 6450 } 6451 ECHO='func_fallback_echo' 6452fi 6453 6454# func_echo_all arg... 6455# Invoke $ECHO with all args, space-separated. 6456func_echo_all () 6457{ 6458 $ECHO "" 6459} 6460 6461case $ECHO in 6462 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6463$as_echo "printf" >&6; } ;; 6464 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6465$as_echo "print -r" >&6; } ;; 6466 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6467$as_echo "cat" >&6; } ;; 6468esac 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6484$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6485if ${ac_cv_path_SED+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6489 for ac_i in 1 2 3 4 5 6 7; do 6490 ac_script="$ac_script$as_nl$ac_script" 6491 done 6492 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6493 { ac_script=; unset ac_script;} 6494 if test -z "$SED"; then 6495 ac_path_SED_found=false 6496 # Loop through the user's path and test for each of PROGNAME-LIST 6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6498for as_dir in $PATH 6499do 6500 IFS=$as_save_IFS 6501 test -z "$as_dir" && as_dir=. 6502 for ac_prog in sed gsed; do 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6505 as_fn_executable_p "$ac_path_SED" || continue 6506# Check for GNU ac_path_SED and select it if it is found. 6507 # Check for GNU $ac_path_SED 6508case `"$ac_path_SED" --version 2>&1` in 6509*GNU*) 6510 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6511*) 6512 ac_count=0 6513 $as_echo_n 0123456789 >"conftest.in" 6514 while : 6515 do 6516 cat "conftest.in" "conftest.in" >"conftest.tmp" 6517 mv "conftest.tmp" "conftest.in" 6518 cp "conftest.in" "conftest.nl" 6519 $as_echo '' >> "conftest.nl" 6520 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6522 as_fn_arith $ac_count + 1 && ac_count=$as_val 6523 if test $ac_count -gt ${ac_path_SED_max-0}; then 6524 # Best one so far, save it but keep looking for a better one 6525 ac_cv_path_SED="$ac_path_SED" 6526 ac_path_SED_max=$ac_count 6527 fi 6528 # 10*(2^10) chars as input seems more than enough 6529 test $ac_count -gt 10 && break 6530 done 6531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6532esac 6533 6534 $ac_path_SED_found && break 3 6535 done 6536 done 6537 done 6538IFS=$as_save_IFS 6539 if test -z "$ac_cv_path_SED"; then 6540 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6541 fi 6542else 6543 ac_cv_path_SED=$SED 6544fi 6545 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6548$as_echo "$ac_cv_path_SED" >&6; } 6549 SED="$ac_cv_path_SED" 6550 rm -f conftest.sed 6551 6552test -z "$SED" && SED=sed 6553Xsed="$SED -e 1s/^X//" 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6566$as_echo_n "checking for fgrep... " >&6; } 6567if ${ac_cv_path_FGREP+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6571 then ac_cv_path_FGREP="$GREP -F" 6572 else 6573 if test -z "$FGREP"; then 6574 ac_path_FGREP_found=false 6575 # Loop through the user's path and test for each of PROGNAME-LIST 6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_prog in fgrep; do 6582 for ac_exec_ext in '' $ac_executable_extensions; do 6583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6584 as_fn_executable_p "$ac_path_FGREP" || continue 6585# Check for GNU ac_path_FGREP and select it if it is found. 6586 # Check for GNU $ac_path_FGREP 6587case `"$ac_path_FGREP" --version 2>&1` in 6588*GNU*) 6589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6590*) 6591 ac_count=0 6592 $as_echo_n 0123456789 >"conftest.in" 6593 while : 6594 do 6595 cat "conftest.in" "conftest.in" >"conftest.tmp" 6596 mv "conftest.tmp" "conftest.in" 6597 cp "conftest.in" "conftest.nl" 6598 $as_echo 'FGREP' >> "conftest.nl" 6599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6601 as_fn_arith $ac_count + 1 && ac_count=$as_val 6602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6603 # Best one so far, save it but keep looking for a better one 6604 ac_cv_path_FGREP="$ac_path_FGREP" 6605 ac_path_FGREP_max=$ac_count 6606 fi 6607 # 10*(2^10) chars as input seems more than enough 6608 test $ac_count -gt 10 && break 6609 done 6610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6611esac 6612 6613 $ac_path_FGREP_found && break 3 6614 done 6615 done 6616 done 6617IFS=$as_save_IFS 6618 if test -z "$ac_cv_path_FGREP"; then 6619 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6620 fi 6621else 6622 ac_cv_path_FGREP=$FGREP 6623fi 6624 6625 fi 6626fi 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6628$as_echo "$ac_cv_path_FGREP" >&6; } 6629 FGREP="$ac_cv_path_FGREP" 6630 6631 6632test -z "$GREP" && GREP=grep 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652# Check whether --with-gnu-ld was given. 6653if test "${with_gnu_ld+set}" = set; then : 6654 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6655else 6656 with_gnu_ld=no 6657fi 6658 6659ac_prog=ld 6660if test yes = "$GCC"; then 6661 # Check if gcc -print-prog-name=ld gives a path. 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6663$as_echo_n "checking for ld used by $CC... " >&6; } 6664 case $host in 6665 *-*-mingw*) 6666 # gcc leaves a trailing carriage return, which upsets mingw 6667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6668 *) 6669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6670 esac 6671 case $ac_prog in 6672 # Accept absolute paths. 6673 [\\/]* | ?:[\\/]*) 6674 re_direlt='/[^/][^/]*/\.\./' 6675 # Canonicalize the pathname of ld 6676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6679 done 6680 test -z "$LD" && LD=$ac_prog 6681 ;; 6682 "") 6683 # If it fails, then pretend we aren't using GCC. 6684 ac_prog=ld 6685 ;; 6686 *) 6687 # If it is relative, then search for the first ld in PATH. 6688 with_gnu_ld=unknown 6689 ;; 6690 esac 6691elif test yes = "$with_gnu_ld"; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6693$as_echo_n "checking for GNU ld... " >&6; } 6694else 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6696$as_echo_n "checking for non-GNU ld... " >&6; } 6697fi 6698if ${lt_cv_path_LD+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 if test -z "$LD"; then 6702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6703 for ac_dir in $PATH; do 6704 IFS=$lt_save_ifs 6705 test -z "$ac_dir" && ac_dir=. 6706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6707 lt_cv_path_LD=$ac_dir/$ac_prog 6708 # Check to see if the program is GNU ld. I'd rather use --version, 6709 # but apparently some variants of GNU ld only accept -v. 6710 # Break only if it was the GNU/non-GNU ld that we prefer. 6711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6712 *GNU* | *'with BFD'*) 6713 test no != "$with_gnu_ld" && break 6714 ;; 6715 *) 6716 test yes != "$with_gnu_ld" && break 6717 ;; 6718 esac 6719 fi 6720 done 6721 IFS=$lt_save_ifs 6722else 6723 lt_cv_path_LD=$LD # Let the user override the test with a path. 6724fi 6725fi 6726 6727LD=$lt_cv_path_LD 6728if test -n "$LD"; then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6730$as_echo "$LD" >&6; } 6731else 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734fi 6735test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6737$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6738if ${lt_cv_prog_gnu_ld+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6742case `$LD -v 2>&1 </dev/null` in 6743*GNU* | *'with BFD'*) 6744 lt_cv_prog_gnu_ld=yes 6745 ;; 6746*) 6747 lt_cv_prog_gnu_ld=no 6748 ;; 6749esac 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6752$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6753with_gnu_ld=$lt_cv_prog_gnu_ld 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6764$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6765if ${lt_cv_path_NM+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 if test -n "$NM"; then 6769 # Let the user override the test. 6770 lt_cv_path_NM=$NM 6771else 6772 lt_nm_to_check=${ac_tool_prefix}nm 6773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6774 lt_nm_to_check="$lt_nm_to_check nm" 6775 fi 6776 for lt_tmp_nm in $lt_nm_to_check; do 6777 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6779 IFS=$lt_save_ifs 6780 test -z "$ac_dir" && ac_dir=. 6781 tmp_nm=$ac_dir/$lt_tmp_nm 6782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6783 # Check to see if the nm accepts a BSD-compat flag. 6784 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6785 # nm: unknown option "B" ignored 6786 # Tru64's nm complains that /dev/null is an invalid object file 6787 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6788 case $build_os in 6789 mingw*) lt_bad_file=conftest.nm/nofile ;; 6790 *) lt_bad_file=/dev/null ;; 6791 esac 6792 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6793 *$lt_bad_file* | *'Invalid file or object type'*) 6794 lt_cv_path_NM="$tmp_nm -B" 6795 break 2 6796 ;; 6797 *) 6798 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6799 */dev/null*) 6800 lt_cv_path_NM="$tmp_nm -p" 6801 break 2 6802 ;; 6803 *) 6804 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6805 continue # so that we can try to find one that supports BSD flags 6806 ;; 6807 esac 6808 ;; 6809 esac 6810 fi 6811 done 6812 IFS=$lt_save_ifs 6813 done 6814 : ${lt_cv_path_NM=no} 6815fi 6816fi 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6818$as_echo "$lt_cv_path_NM" >&6; } 6819if test no != "$lt_cv_path_NM"; then 6820 NM=$lt_cv_path_NM 6821else 6822 # Didn't find any BSD compatible name lister, look for dumpbin. 6823 if test -n "$DUMPBIN"; then : 6824 # Let the user override the test. 6825 else 6826 if test -n "$ac_tool_prefix"; then 6827 for ac_prog in dumpbin "link -dump" 6828 do 6829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6830set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6832$as_echo_n "checking for $ac_word... " >&6; } 6833if ${ac_cv_prog_DUMPBIN+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 if test -n "$DUMPBIN"; then 6837 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6838else 6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6840for as_dir in $PATH 6841do 6842 IFS=$as_save_IFS 6843 test -z "$as_dir" && as_dir=. 6844 for ac_exec_ext in '' $ac_executable_extensions; do 6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6846 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6848 break 2 6849 fi 6850done 6851 done 6852IFS=$as_save_IFS 6853 6854fi 6855fi 6856DUMPBIN=$ac_cv_prog_DUMPBIN 6857if test -n "$DUMPBIN"; then 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6859$as_echo "$DUMPBIN" >&6; } 6860else 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6862$as_echo "no" >&6; } 6863fi 6864 6865 6866 test -n "$DUMPBIN" && break 6867 done 6868fi 6869if test -z "$DUMPBIN"; then 6870 ac_ct_DUMPBIN=$DUMPBIN 6871 for ac_prog in dumpbin "link -dump" 6872do 6873 # Extract the first word of "$ac_prog", so it can be a program name with args. 6874set dummy $ac_prog; ac_word=$2 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6876$as_echo_n "checking for $ac_word... " >&6; } 6877if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 if test -n "$ac_ct_DUMPBIN"; then 6881 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6882else 6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884for as_dir in $PATH 6885do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6890 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894done 6895 done 6896IFS=$as_save_IFS 6897 6898fi 6899fi 6900ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6901if test -n "$ac_ct_DUMPBIN"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6903$as_echo "$ac_ct_DUMPBIN" >&6; } 6904else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906$as_echo "no" >&6; } 6907fi 6908 6909 6910 test -n "$ac_ct_DUMPBIN" && break 6911done 6912 6913 if test "x$ac_ct_DUMPBIN" = x; then 6914 DUMPBIN=":" 6915 else 6916 case $cross_compiling:$ac_tool_warned in 6917yes:) 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6920ac_tool_warned=yes ;; 6921esac 6922 DUMPBIN=$ac_ct_DUMPBIN 6923 fi 6924fi 6925 6926 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6927 *COFF*) 6928 DUMPBIN="$DUMPBIN -symbols -headers" 6929 ;; 6930 *) 6931 DUMPBIN=: 6932 ;; 6933 esac 6934 fi 6935 6936 if test : != "$DUMPBIN"; then 6937 NM=$DUMPBIN 6938 fi 6939fi 6940test -z "$NM" && NM=nm 6941 6942 6943 6944 6945 6946 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6948$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6949if ${lt_cv_nm_interface+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 lt_cv_nm_interface="BSD nm" 6953 echo "int some_variable = 0;" > conftest.$ac_ext 6954 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6955 (eval "$ac_compile" 2>conftest.err) 6956 cat conftest.err >&5 6957 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6958 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6959 cat conftest.err >&5 6960 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6961 cat conftest.out >&5 6962 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6963 lt_cv_nm_interface="MS dumpbin" 6964 fi 6965 rm -f conftest* 6966fi 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6968$as_echo "$lt_cv_nm_interface" >&6; } 6969 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6971$as_echo_n "checking whether ln -s works... " >&6; } 6972LN_S=$as_ln_s 6973if test "$LN_S" = "ln -s"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6975$as_echo "yes" >&6; } 6976else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6978$as_echo "no, using $LN_S" >&6; } 6979fi 6980 6981# find the maximum length of command line arguments 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6983$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6984if ${lt_cv_sys_max_cmd_len+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 i=0 6988 teststring=ABCD 6989 6990 case $build_os in 6991 msdosdjgpp*) 6992 # On DJGPP, this test can blow up pretty badly due to problems in libc 6993 # (any single argument exceeding 2000 bytes causes a buffer overrun 6994 # during glob expansion). Even if it were fixed, the result of this 6995 # check would be larger than it should be. 6996 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6997 ;; 6998 6999 gnu*) 7000 # Under GNU Hurd, this test is not required because there is 7001 # no limit to the length of command line arguments. 7002 # Libtool will interpret -1 as no limit whatsoever 7003 lt_cv_sys_max_cmd_len=-1; 7004 ;; 7005 7006 cygwin* | mingw* | cegcc*) 7007 # On Win9x/ME, this test blows up -- it succeeds, but takes 7008 # about 5 minutes as the teststring grows exponentially. 7009 # Worse, since 9x/ME are not pre-emptively multitasking, 7010 # you end up with a "frozen" computer, even though with patience 7011 # the test eventually succeeds (with a max line length of 256k). 7012 # Instead, let's just punt: use the minimum linelength reported by 7013 # all of the supported platforms: 8192 (on NT/2K/XP). 7014 lt_cv_sys_max_cmd_len=8192; 7015 ;; 7016 7017 mint*) 7018 # On MiNT this can take a long time and run out of memory. 7019 lt_cv_sys_max_cmd_len=8192; 7020 ;; 7021 7022 amigaos*) 7023 # On AmigaOS with pdksh, this test takes hours, literally. 7024 # So we just punt and use a minimum line length of 8192. 7025 lt_cv_sys_max_cmd_len=8192; 7026 ;; 7027 7028 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7029 # This has been around since 386BSD, at least. Likely further. 7030 if test -x /sbin/sysctl; then 7031 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7032 elif test -x /usr/sbin/sysctl; then 7033 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7034 else 7035 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7036 fi 7037 # And add a safety zone 7038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7040 ;; 7041 7042 interix*) 7043 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7044 lt_cv_sys_max_cmd_len=196608 7045 ;; 7046 7047 os2*) 7048 # The test takes a long time on OS/2. 7049 lt_cv_sys_max_cmd_len=8192 7050 ;; 7051 7052 osf*) 7053 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7054 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7055 # nice to cause kernel panics so lets avoid the loop below. 7056 # First set a reasonable default. 7057 lt_cv_sys_max_cmd_len=16384 7058 # 7059 if test -x /sbin/sysconfig; then 7060 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7061 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7062 esac 7063 fi 7064 ;; 7065 sco3.2v5*) 7066 lt_cv_sys_max_cmd_len=102400 7067 ;; 7068 sysv5* | sco5v6* | sysv4.2uw2*) 7069 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7070 if test -n "$kargmax"; then 7071 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7072 else 7073 lt_cv_sys_max_cmd_len=32768 7074 fi 7075 ;; 7076 *) 7077 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7078 if test -n "$lt_cv_sys_max_cmd_len" && \ 7079 test undefined != "$lt_cv_sys_max_cmd_len"; then 7080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7082 else 7083 # Make teststring a little bigger before we do anything with it. 7084 # a 1K string should be a reasonable start. 7085 for i in 1 2 3 4 5 6 7 8; do 7086 teststring=$teststring$teststring 7087 done 7088 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7089 # If test is not a shell built-in, we'll probably end up computing a 7090 # maximum length that is only half of the actual maximum length, but 7091 # we can't tell. 7092 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7093 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7094 test 17 != "$i" # 1/2 MB should be enough 7095 do 7096 i=`expr $i + 1` 7097 teststring=$teststring$teststring 7098 done 7099 # Only check the string length outside the loop. 7100 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7101 teststring= 7102 # Add a significant safety factor because C++ compilers can tack on 7103 # massive amounts of additional arguments before passing them to the 7104 # linker. It appears as though 1/2 is a usable value. 7105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7106 fi 7107 ;; 7108 esac 7109 7110fi 7111 7112if test -n "$lt_cv_sys_max_cmd_len"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7114$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7117$as_echo "none" >&6; } 7118fi 7119max_cmd_len=$lt_cv_sys_max_cmd_len 7120 7121 7122 7123 7124 7125 7126: ${CP="cp -f"} 7127: ${MV="mv -f"} 7128: ${RM="rm -f"} 7129 7130if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7131 lt_unset=unset 7132else 7133 lt_unset=false 7134fi 7135 7136 7137 7138 7139 7140# test EBCDIC or ASCII 7141case `echo X|tr X '\101'` in 7142 A) # ASCII based system 7143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7144 lt_SP2NL='tr \040 \012' 7145 lt_NL2SP='tr \015\012 \040\040' 7146 ;; 7147 *) # EBCDIC based system 7148 lt_SP2NL='tr \100 \n' 7149 lt_NL2SP='tr \r\n \100\100' 7150 ;; 7151esac 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7162$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7163if ${lt_cv_to_host_file_cmd+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 case $host in 7167 *-*-mingw* ) 7168 case $build in 7169 *-*-mingw* ) # actually msys 7170 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7171 ;; 7172 *-*-cygwin* ) 7173 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7174 ;; 7175 * ) # otherwise, assume *nix 7176 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7177 ;; 7178 esac 7179 ;; 7180 *-*-cygwin* ) 7181 case $build in 7182 *-*-mingw* ) # actually msys 7183 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7184 ;; 7185 *-*-cygwin* ) 7186 lt_cv_to_host_file_cmd=func_convert_file_noop 7187 ;; 7188 * ) # otherwise, assume *nix 7189 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7190 ;; 7191 esac 7192 ;; 7193 * ) # unhandled hosts (and "normal" native builds) 7194 lt_cv_to_host_file_cmd=func_convert_file_noop 7195 ;; 7196esac 7197 7198fi 7199 7200to_host_file_cmd=$lt_cv_to_host_file_cmd 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7202$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7203 7204 7205 7206 7207 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7209$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7210if ${lt_cv_to_tool_file_cmd+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 #assume ordinary cross tools, or native build. 7214lt_cv_to_tool_file_cmd=func_convert_file_noop 7215case $host in 7216 *-*-mingw* ) 7217 case $build in 7218 *-*-mingw* ) # actually msys 7219 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7220 ;; 7221 esac 7222 ;; 7223esac 7224 7225fi 7226 7227to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7229$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7230 7231 7232 7233 7234 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7236$as_echo_n "checking for $LD option to reload object files... " >&6; } 7237if ${lt_cv_ld_reload_flag+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 lt_cv_ld_reload_flag='-r' 7241fi 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7243$as_echo "$lt_cv_ld_reload_flag" >&6; } 7244reload_flag=$lt_cv_ld_reload_flag 7245case $reload_flag in 7246"" | " "*) ;; 7247*) reload_flag=" $reload_flag" ;; 7248esac 7249reload_cmds='$LD$reload_flag -o $output$reload_objs' 7250case $host_os in 7251 cygwin* | mingw* | pw32* | cegcc*) 7252 if test yes != "$GCC"; then 7253 reload_cmds=false 7254 fi 7255 ;; 7256 darwin*) 7257 if test yes = "$GCC"; then 7258 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7259 else 7260 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7261 fi 7262 ;; 7263esac 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273if test -n "$ac_tool_prefix"; then 7274 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7275set dummy ${ac_tool_prefix}objdump; ac_word=$2 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277$as_echo_n "checking for $ac_word... " >&6; } 7278if ${ac_cv_prog_OBJDUMP+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 if test -n "$OBJDUMP"; then 7282 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7283else 7284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 test -z "$as_dir" && as_dir=. 7289 for ac_exec_ext in '' $ac_executable_extensions; do 7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7291 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7293 break 2 7294 fi 7295done 7296 done 7297IFS=$as_save_IFS 7298 7299fi 7300fi 7301OBJDUMP=$ac_cv_prog_OBJDUMP 7302if test -n "$OBJDUMP"; then 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7304$as_echo "$OBJDUMP" >&6; } 7305else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307$as_echo "no" >&6; } 7308fi 7309 7310 7311fi 7312if test -z "$ac_cv_prog_OBJDUMP"; then 7313 ac_ct_OBJDUMP=$OBJDUMP 7314 # Extract the first word of "objdump", so it can be a program name with args. 7315set dummy objdump; ac_word=$2 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7317$as_echo_n "checking for $ac_word... " >&6; } 7318if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 if test -n "$ac_ct_OBJDUMP"; then 7322 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7323else 7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7325for as_dir in $PATH 7326do 7327 IFS=$as_save_IFS 7328 test -z "$as_dir" && as_dir=. 7329 for ac_exec_ext in '' $ac_executable_extensions; do 7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7331 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7333 break 2 7334 fi 7335done 7336 done 7337IFS=$as_save_IFS 7338 7339fi 7340fi 7341ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7342if test -n "$ac_ct_OBJDUMP"; then 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7344$as_echo "$ac_ct_OBJDUMP" >&6; } 7345else 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7347$as_echo "no" >&6; } 7348fi 7349 7350 if test "x$ac_ct_OBJDUMP" = x; then 7351 OBJDUMP="false" 7352 else 7353 case $cross_compiling:$ac_tool_warned in 7354yes:) 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7357ac_tool_warned=yes ;; 7358esac 7359 OBJDUMP=$ac_ct_OBJDUMP 7360 fi 7361else 7362 OBJDUMP="$ac_cv_prog_OBJDUMP" 7363fi 7364 7365test -z "$OBJDUMP" && OBJDUMP=objdump 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7376$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7377if ${lt_cv_deplibs_check_method+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 lt_cv_file_magic_cmd='$MAGIC_CMD' 7381lt_cv_file_magic_test_file= 7382lt_cv_deplibs_check_method='unknown' 7383# Need to set the preceding variable on all platforms that support 7384# interlibrary dependencies. 7385# 'none' -- dependencies not supported. 7386# 'unknown' -- same as none, but documents that we really don't know. 7387# 'pass_all' -- all dependencies passed with no checks. 7388# 'test_compile' -- check by making test program. 7389# 'file_magic [[regex]]' -- check by looking for files in library path 7390# that responds to the $file_magic_cmd with a given extended regex. 7391# If you have 'file' or equivalent on your system and you're not sure 7392# whether 'pass_all' will *always* work, you probably want this one. 7393 7394case $host_os in 7395aix[4-9]*) 7396 lt_cv_deplibs_check_method=pass_all 7397 ;; 7398 7399beos*) 7400 lt_cv_deplibs_check_method=pass_all 7401 ;; 7402 7403bsdi[45]*) 7404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7405 lt_cv_file_magic_cmd='/usr/bin/file -L' 7406 lt_cv_file_magic_test_file=/shlib/libc.so 7407 ;; 7408 7409cygwin*) 7410 # func_win32_libid is a shell function defined in ltmain.sh 7411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7412 lt_cv_file_magic_cmd='func_win32_libid' 7413 ;; 7414 7415mingw* | pw32*) 7416 # Base MSYS/MinGW do not provide the 'file' command needed by 7417 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7418 # unless we find 'file', for example because we are cross-compiling. 7419 if ( file / ) >/dev/null 2>&1; then 7420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7421 lt_cv_file_magic_cmd='func_win32_libid' 7422 else 7423 # Keep this pattern in sync with the one in func_win32_libid. 7424 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7425 lt_cv_file_magic_cmd='$OBJDUMP -f' 7426 fi 7427 ;; 7428 7429cegcc*) 7430 # use the weaker test based on 'objdump'. See mingw*. 7431 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7432 lt_cv_file_magic_cmd='$OBJDUMP -f' 7433 ;; 7434 7435darwin* | rhapsody*) 7436 lt_cv_deplibs_check_method=pass_all 7437 ;; 7438 7439freebsd* | dragonfly*) 7440 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7441 case $host_cpu in 7442 i*86 ) 7443 # Not sure whether the presence of OpenBSD here was a mistake. 7444 # Let's accept both of them until this is cleared up. 7445 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7446 lt_cv_file_magic_cmd=/usr/bin/file 7447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7448 ;; 7449 esac 7450 else 7451 lt_cv_deplibs_check_method=pass_all 7452 fi 7453 ;; 7454 7455haiku*) 7456 lt_cv_deplibs_check_method=pass_all 7457 ;; 7458 7459hpux10.20* | hpux11*) 7460 lt_cv_file_magic_cmd=/usr/bin/file 7461 case $host_cpu in 7462 ia64*) 7463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7464 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7465 ;; 7466 hppa*64*) 7467 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]' 7468 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7469 ;; 7470 *) 7471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7472 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7473 ;; 7474 esac 7475 ;; 7476 7477interix[3-9]*) 7478 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7480 ;; 7481 7482irix5* | irix6* | nonstopux*) 7483 case $LD in 7484 *-32|*"-32 ") libmagic=32-bit;; 7485 *-n32|*"-n32 ") libmagic=N32;; 7486 *-64|*"-64 ") libmagic=64-bit;; 7487 *) libmagic=never-match;; 7488 esac 7489 lt_cv_deplibs_check_method=pass_all 7490 ;; 7491 7492# This must be glibc/ELF. 7493linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7494 lt_cv_deplibs_check_method=pass_all 7495 ;; 7496 7497netbsd* | netbsdelf*-gnu) 7498 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7500 else 7501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7502 fi 7503 ;; 7504 7505newos6*) 7506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7507 lt_cv_file_magic_cmd=/usr/bin/file 7508 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7509 ;; 7510 7511*nto* | *qnx*) 7512 lt_cv_deplibs_check_method=pass_all 7513 ;; 7514 7515openbsd* | bitrig*) 7516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7518 else 7519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7520 fi 7521 ;; 7522 7523osf3* | osf4* | osf5*) 7524 lt_cv_deplibs_check_method=pass_all 7525 ;; 7526 7527rdos*) 7528 lt_cv_deplibs_check_method=pass_all 7529 ;; 7530 7531solaris*) 7532 lt_cv_deplibs_check_method=pass_all 7533 ;; 7534 7535sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7536 lt_cv_deplibs_check_method=pass_all 7537 ;; 7538 7539sysv4 | sysv4.3*) 7540 case $host_vendor in 7541 motorola) 7542 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]' 7543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7544 ;; 7545 ncr) 7546 lt_cv_deplibs_check_method=pass_all 7547 ;; 7548 sequent) 7549 lt_cv_file_magic_cmd='/bin/file' 7550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7551 ;; 7552 sni) 7553 lt_cv_file_magic_cmd='/bin/file' 7554 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7555 lt_cv_file_magic_test_file=/lib/libc.so 7556 ;; 7557 siemens) 7558 lt_cv_deplibs_check_method=pass_all 7559 ;; 7560 pc) 7561 lt_cv_deplibs_check_method=pass_all 7562 ;; 7563 esac 7564 ;; 7565 7566tpf*) 7567 lt_cv_deplibs_check_method=pass_all 7568 ;; 7569os2*) 7570 lt_cv_deplibs_check_method=pass_all 7571 ;; 7572esac 7573 7574fi 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7576$as_echo "$lt_cv_deplibs_check_method" >&6; } 7577 7578file_magic_glob= 7579want_nocaseglob=no 7580if test "$build" = "$host"; then 7581 case $host_os in 7582 mingw* | pw32*) 7583 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7584 want_nocaseglob=yes 7585 else 7586 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7587 fi 7588 ;; 7589 esac 7590fi 7591 7592file_magic_cmd=$lt_cv_file_magic_cmd 7593deplibs_check_method=$lt_cv_deplibs_check_method 7594test -z "$deplibs_check_method" && deplibs_check_method=unknown 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617if test -n "$ac_tool_prefix"; then 7618 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7619set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7621$as_echo_n "checking for $ac_word... " >&6; } 7622if ${ac_cv_prog_DLLTOOL+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 if test -n "$DLLTOOL"; then 7626 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7627else 7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7629for as_dir in $PATH 7630do 7631 IFS=$as_save_IFS 7632 test -z "$as_dir" && as_dir=. 7633 for ac_exec_ext in '' $ac_executable_extensions; do 7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7635 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7637 break 2 7638 fi 7639done 7640 done 7641IFS=$as_save_IFS 7642 7643fi 7644fi 7645DLLTOOL=$ac_cv_prog_DLLTOOL 7646if test -n "$DLLTOOL"; then 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7648$as_echo "$DLLTOOL" >&6; } 7649else 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7651$as_echo "no" >&6; } 7652fi 7653 7654 7655fi 7656if test -z "$ac_cv_prog_DLLTOOL"; then 7657 ac_ct_DLLTOOL=$DLLTOOL 7658 # Extract the first word of "dlltool", so it can be a program name with args. 7659set dummy dlltool; ac_word=$2 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7661$as_echo_n "checking for $ac_word... " >&6; } 7662if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 if test -n "$ac_ct_DLLTOOL"; then 7666 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7667else 7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7669for as_dir in $PATH 7670do 7671 IFS=$as_save_IFS 7672 test -z "$as_dir" && as_dir=. 7673 for ac_exec_ext in '' $ac_executable_extensions; do 7674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7675 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7677 break 2 7678 fi 7679done 7680 done 7681IFS=$as_save_IFS 7682 7683fi 7684fi 7685ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7686if test -n "$ac_ct_DLLTOOL"; then 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7688$as_echo "$ac_ct_DLLTOOL" >&6; } 7689else 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7691$as_echo "no" >&6; } 7692fi 7693 7694 if test "x$ac_ct_DLLTOOL" = x; then 7695 DLLTOOL="false" 7696 else 7697 case $cross_compiling:$ac_tool_warned in 7698yes:) 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7701ac_tool_warned=yes ;; 7702esac 7703 DLLTOOL=$ac_ct_DLLTOOL 7704 fi 7705else 7706 DLLTOOL="$ac_cv_prog_DLLTOOL" 7707fi 7708 7709test -z "$DLLTOOL" && DLLTOOL=dlltool 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7721$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7722if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7723 $as_echo_n "(cached) " >&6 7724else 7725 lt_cv_sharedlib_from_linklib_cmd='unknown' 7726 7727case $host_os in 7728cygwin* | mingw* | pw32* | cegcc*) 7729 # two different shell functions defined in ltmain.sh; 7730 # decide which one to use based on capabilities of $DLLTOOL 7731 case `$DLLTOOL --help 2>&1` in 7732 *--identify-strict*) 7733 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7734 ;; 7735 *) 7736 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7737 ;; 7738 esac 7739 ;; 7740*) 7741 # fallback: assume linklib IS sharedlib 7742 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7743 ;; 7744esac 7745 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7748$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7749sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7750test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7751 7752 7753 7754 7755 7756 7757 7758if test -n "$ac_tool_prefix"; then 7759 for ac_prog in ar 7760 do 7761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7762set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7764$as_echo_n "checking for $ac_word... " >&6; } 7765if ${ac_cv_prog_AR+:} false; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 if test -n "$AR"; then 7769 ac_cv_prog_AR="$AR" # Let the user override the test. 7770else 7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7772for as_dir in $PATH 7773do 7774 IFS=$as_save_IFS 7775 test -z "$as_dir" && as_dir=. 7776 for ac_exec_ext in '' $ac_executable_extensions; do 7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7778 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7780 break 2 7781 fi 7782done 7783 done 7784IFS=$as_save_IFS 7785 7786fi 7787fi 7788AR=$ac_cv_prog_AR 7789if test -n "$AR"; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7791$as_echo "$AR" >&6; } 7792else 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794$as_echo "no" >&6; } 7795fi 7796 7797 7798 test -n "$AR" && break 7799 done 7800fi 7801if test -z "$AR"; then 7802 ac_ct_AR=$AR 7803 for ac_prog in ar 7804do 7805 # Extract the first word of "$ac_prog", so it can be a program name with args. 7806set dummy $ac_prog; ac_word=$2 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7808$as_echo_n "checking for $ac_word... " >&6; } 7809if ${ac_cv_prog_ac_ct_AR+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 if test -n "$ac_ct_AR"; then 7813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7814else 7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7816for as_dir in $PATH 7817do 7818 IFS=$as_save_IFS 7819 test -z "$as_dir" && as_dir=. 7820 for ac_exec_ext in '' $ac_executable_extensions; do 7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7822 ac_cv_prog_ac_ct_AR="$ac_prog" 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7824 break 2 7825 fi 7826done 7827 done 7828IFS=$as_save_IFS 7829 7830fi 7831fi 7832ac_ct_AR=$ac_cv_prog_ac_ct_AR 7833if test -n "$ac_ct_AR"; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7835$as_echo "$ac_ct_AR" >&6; } 7836else 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7838$as_echo "no" >&6; } 7839fi 7840 7841 7842 test -n "$ac_ct_AR" && break 7843done 7844 7845 if test "x$ac_ct_AR" = x; then 7846 AR="false" 7847 else 7848 case $cross_compiling:$ac_tool_warned in 7849yes:) 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7852ac_tool_warned=yes ;; 7853esac 7854 AR=$ac_ct_AR 7855 fi 7856fi 7857 7858: ${AR=ar} 7859: ${AR_FLAGS=cru} 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7872$as_echo_n "checking for archiver @FILE support... " >&6; } 7873if ${lt_cv_ar_at_file+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 lt_cv_ar_at_file=no 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879 7880int 7881main () 7882{ 7883 7884 ; 7885 return 0; 7886} 7887_ACEOF 7888if ac_fn_c_try_compile "$LINENO"; then : 7889 echo conftest.$ac_objext > conftest.lst 7890 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7892 (eval $lt_ar_try) 2>&5 7893 ac_status=$? 7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7895 test $ac_status = 0; } 7896 if test 0 -eq "$ac_status"; then 7897 # Ensure the archiver fails upon bogus file names. 7898 rm -f conftest.$ac_objext libconftest.a 7899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7900 (eval $lt_ar_try) 2>&5 7901 ac_status=$? 7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7903 test $ac_status = 0; } 7904 if test 0 -ne "$ac_status"; then 7905 lt_cv_ar_at_file=@ 7906 fi 7907 fi 7908 rm -f conftest.* libconftest.a 7909 7910fi 7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7912 7913fi 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7915$as_echo "$lt_cv_ar_at_file" >&6; } 7916 7917if test no = "$lt_cv_ar_at_file"; then 7918 archiver_list_spec= 7919else 7920 archiver_list_spec=$lt_cv_ar_at_file 7921fi 7922 7923 7924 7925 7926 7927 7928 7929if test -n "$ac_tool_prefix"; then 7930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7931set dummy ${ac_tool_prefix}strip; ac_word=$2 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7933$as_echo_n "checking for $ac_word... " >&6; } 7934if ${ac_cv_prog_STRIP+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 if test -n "$STRIP"; then 7938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957STRIP=$ac_cv_prog_STRIP 7958if test -n "$STRIP"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7960$as_echo "$STRIP" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 7967fi 7968if test -z "$ac_cv_prog_STRIP"; then 7969 ac_ct_STRIP=$STRIP 7970 # Extract the first word of "strip", so it can be a program name with args. 7971set dummy strip; ac_word=$2 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973$as_echo_n "checking for $ac_word... " >&6; } 7974if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 if test -n "$ac_ct_STRIP"; then 7978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7979else 7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7981for as_dir in $PATH 7982do 7983 IFS=$as_save_IFS 7984 test -z "$as_dir" && as_dir=. 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_ac_ct_STRIP="strip" 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991done 7992 done 7993IFS=$as_save_IFS 7994 7995fi 7996fi 7997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7998if test -n "$ac_ct_STRIP"; then 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8000$as_echo "$ac_ct_STRIP" >&6; } 8001else 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8003$as_echo "no" >&6; } 8004fi 8005 8006 if test "x$ac_ct_STRIP" = x; then 8007 STRIP=":" 8008 else 8009 case $cross_compiling:$ac_tool_warned in 8010yes:) 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8013ac_tool_warned=yes ;; 8014esac 8015 STRIP=$ac_ct_STRIP 8016 fi 8017else 8018 STRIP="$ac_cv_prog_STRIP" 8019fi 8020 8021test -z "$STRIP" && STRIP=: 8022 8023 8024 8025 8026 8027 8028if test -n "$ac_tool_prefix"; then 8029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8030set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032$as_echo_n "checking for $ac_word... " >&6; } 8033if ${ac_cv_prog_RANLIB+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test -n "$RANLIB"; then 8037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 8042 IFS=$as_save_IFS 8043 test -z "$as_dir" && as_dir=. 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056RANLIB=$ac_cv_prog_RANLIB 8057if test -n "$RANLIB"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8059$as_echo "$RANLIB" >&6; } 8060else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062$as_echo "no" >&6; } 8063fi 8064 8065 8066fi 8067if test -z "$ac_cv_prog_RANLIB"; then 8068 ac_ct_RANLIB=$RANLIB 8069 # Extract the first word of "ranlib", so it can be a program name with args. 8070set dummy ranlib; ac_word=$2 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072$as_echo_n "checking for $ac_word... " >&6; } 8073if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 if test -n "$ac_ct_RANLIB"; then 8077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8078else 8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8080for as_dir in $PATH 8081do 8082 IFS=$as_save_IFS 8083 test -z "$as_dir" && as_dir=. 8084 for ac_exec_ext in '' $ac_executable_extensions; do 8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8086 ac_cv_prog_ac_ct_RANLIB="ranlib" 8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8088 break 2 8089 fi 8090done 8091 done 8092IFS=$as_save_IFS 8093 8094fi 8095fi 8096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8097if test -n "$ac_ct_RANLIB"; then 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8099$as_echo "$ac_ct_RANLIB" >&6; } 8100else 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8102$as_echo "no" >&6; } 8103fi 8104 8105 if test "x$ac_ct_RANLIB" = x; then 8106 RANLIB=":" 8107 else 8108 case $cross_compiling:$ac_tool_warned in 8109yes:) 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8112ac_tool_warned=yes ;; 8113esac 8114 RANLIB=$ac_ct_RANLIB 8115 fi 8116else 8117 RANLIB="$ac_cv_prog_RANLIB" 8118fi 8119 8120test -z "$RANLIB" && RANLIB=: 8121 8122 8123 8124 8125 8126 8127# Determine commands to create old-style static archives. 8128old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8129old_postinstall_cmds='chmod 644 $oldlib' 8130old_postuninstall_cmds= 8131 8132if test -n "$RANLIB"; then 8133 case $host_os in 8134 bitrig* | openbsd*) 8135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8136 ;; 8137 *) 8138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8139 ;; 8140 esac 8141 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8142fi 8143 8144case $host_os in 8145 darwin*) 8146 lock_old_archive_extraction=yes ;; 8147 *) 8148 lock_old_archive_extraction=no ;; 8149esac 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189# If no C compiler was specified, use CC. 8190LTCC=${LTCC-"$CC"} 8191 8192# If no C compiler flags were specified, use CFLAGS. 8193LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8194 8195# Allow CC to be a program name with arguments. 8196compiler=$CC 8197 8198 8199# Check for command to grab the raw symbol name followed by C symbol from nm. 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8201$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8202if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8203 $as_echo_n "(cached) " >&6 8204else 8205 8206# These are sane defaults that work on at least a few old systems. 8207# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8208 8209# Character class describing NM global symbol codes. 8210symcode='[BCDEGRST]' 8211 8212# Regexp to match symbols that can be accessed directly from C. 8213sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8214 8215# Define system-specific variables. 8216case $host_os in 8217aix*) 8218 symcode='[BCDT]' 8219 ;; 8220cygwin* | mingw* | pw32* | cegcc*) 8221 symcode='[ABCDGISTW]' 8222 ;; 8223hpux*) 8224 if test ia64 = "$host_cpu"; then 8225 symcode='[ABCDEGRST]' 8226 fi 8227 ;; 8228irix* | nonstopux*) 8229 symcode='[BCDEGRST]' 8230 ;; 8231osf*) 8232 symcode='[BCDEGQRST]' 8233 ;; 8234solaris*) 8235 symcode='[BDRT]' 8236 ;; 8237sco3.2v5*) 8238 symcode='[DT]' 8239 ;; 8240sysv4.2uw2*) 8241 symcode='[DT]' 8242 ;; 8243sysv5* | sco5v6* | unixware* | OpenUNIX*) 8244 symcode='[ABDT]' 8245 ;; 8246sysv4) 8247 symcode='[DFNSTU]' 8248 ;; 8249esac 8250 8251# If we're using GNU nm, then use its standard symbol codes. 8252case `$NM -V 2>&1` in 8253*GNU* | *'with BFD'*) 8254 symcode='[ABCDGIRSTW]' ;; 8255esac 8256 8257if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8258 # Gets list of data symbols to import. 8259 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8260 # Adjust the below global symbol transforms to fixup imported variables. 8261 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8262 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8263 lt_c_name_lib_hook="\ 8264 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8265 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8266else 8267 # Disable hooks by default. 8268 lt_cv_sys_global_symbol_to_import= 8269 lt_cdecl_hook= 8270 lt_c_name_hook= 8271 lt_c_name_lib_hook= 8272fi 8273 8274# Transform an extracted symbol line into a proper C declaration. 8275# Some systems (esp. on ia64) link data and code symbols differently, 8276# so use this general approach. 8277lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8278$lt_cdecl_hook\ 8279" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8280" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8281 8282# Transform an extracted symbol line into symbol name and symbol address 8283lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8284$lt_c_name_hook\ 8285" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8286" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8287 8288# Transform an extracted symbol line into symbol name with lib prefix and 8289# symbol address. 8290lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8291$lt_c_name_lib_hook\ 8292" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8293" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8294" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8295 8296# Handle CRLF in mingw tool chain 8297opt_cr= 8298case $build_os in 8299mingw*) 8300 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8301 ;; 8302esac 8303 8304# Try without a prefix underscore, then with it. 8305for ac_symprfx in "" "_"; do 8306 8307 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8308 symxfrm="\\1 $ac_symprfx\\2 \\2" 8309 8310 # Write the raw and C identifiers. 8311 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8312 # Fake it for dumpbin and say T for any non-static function, 8313 # D for any global variable and I for any imported variable. 8314 # Also find C++ and __fastcall symbols from MSVC++, 8315 # which start with @ or ?. 8316 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8317" {last_section=section; section=\$ 3};"\ 8318" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8319" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8320" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8321" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8322" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8323" \$ 0!~/External *\|/{next};"\ 8324" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8325" {if(hide[section]) next};"\ 8326" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8327" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8328" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8329" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8330" ' prfx=^$ac_symprfx" 8331 else 8332 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8333 fi 8334 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8335 8336 # Check to see that the pipe works correctly. 8337 pipe_works=no 8338 8339 rm -f conftest* 8340 cat > conftest.$ac_ext <<_LT_EOF 8341#ifdef __cplusplus 8342extern "C" { 8343#endif 8344char nm_test_var; 8345void nm_test_func(void); 8346void nm_test_func(void){} 8347#ifdef __cplusplus 8348} 8349#endif 8350int main(){nm_test_var='a';nm_test_func();return(0);} 8351_LT_EOF 8352 8353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8354 (eval $ac_compile) 2>&5 8355 ac_status=$? 8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8357 test $ac_status = 0; }; then 8358 # Now try to grab the symbols. 8359 nlist=conftest.nm 8360 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8361 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8362 # Try sorting and uniquifying the output. 8363 if sort "$nlist" | uniq > "$nlist"T; then 8364 mv -f "$nlist"T "$nlist" 8365 else 8366 rm -f "$nlist"T 8367 fi 8368 8369 # Make sure that we snagged all the symbols we need. 8370 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8371 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8372 cat <<_LT_EOF > conftest.$ac_ext 8373/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8374#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8375/* DATA imports from DLLs on WIN32 can't be const, because runtime 8376 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8377# define LT_DLSYM_CONST 8378#elif defined __osf__ 8379/* This system does not cope well with relocations in const data. */ 8380# define LT_DLSYM_CONST 8381#else 8382# define LT_DLSYM_CONST const 8383#endif 8384 8385#ifdef __cplusplus 8386extern "C" { 8387#endif 8388 8389_LT_EOF 8390 # Now generate the symbol file. 8391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8392 8393 cat <<_LT_EOF >> conftest.$ac_ext 8394 8395/* The mapping between symbol names and symbols. */ 8396LT_DLSYM_CONST struct { 8397 const char *name; 8398 void *address; 8399} 8400lt__PROGRAM__LTX_preloaded_symbols[] = 8401{ 8402 { "@PROGRAM@", (void *) 0 }, 8403_LT_EOF 8404 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8405 cat <<\_LT_EOF >> conftest.$ac_ext 8406 {0, (void *) 0} 8407}; 8408 8409/* This works around a problem in FreeBSD linker */ 8410#ifdef FREEBSD_WORKAROUND 8411static const void *lt_preloaded_setup() { 8412 return lt__PROGRAM__LTX_preloaded_symbols; 8413} 8414#endif 8415 8416#ifdef __cplusplus 8417} 8418#endif 8419_LT_EOF 8420 # Now try linking the two files. 8421 mv conftest.$ac_objext conftstm.$ac_objext 8422 lt_globsym_save_LIBS=$LIBS 8423 lt_globsym_save_CFLAGS=$CFLAGS 8424 LIBS=conftstm.$ac_objext 8425 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8427 (eval $ac_link) 2>&5 8428 ac_status=$? 8429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8430 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8431 pipe_works=yes 8432 fi 8433 LIBS=$lt_globsym_save_LIBS 8434 CFLAGS=$lt_globsym_save_CFLAGS 8435 else 8436 echo "cannot find nm_test_func in $nlist" >&5 8437 fi 8438 else 8439 echo "cannot find nm_test_var in $nlist" >&5 8440 fi 8441 else 8442 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8443 fi 8444 else 8445 echo "$progname: failed program was:" >&5 8446 cat conftest.$ac_ext >&5 8447 fi 8448 rm -rf conftest* conftst* 8449 8450 # Do not use the global_symbol_pipe unless it works. 8451 if test yes = "$pipe_works"; then 8452 break 8453 else 8454 lt_cv_sys_global_symbol_pipe= 8455 fi 8456done 8457 8458fi 8459 8460if test -z "$lt_cv_sys_global_symbol_pipe"; then 8461 lt_cv_sys_global_symbol_to_cdecl= 8462fi 8463if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8465$as_echo "failed" >&6; } 8466else 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8468$as_echo "ok" >&6; } 8469fi 8470 8471# Response file support. 8472if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8473 nm_file_list_spec='@' 8474elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8475 nm_file_list_spec='@' 8476fi 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8515$as_echo_n "checking for sysroot... " >&6; } 8516 8517# Check whether --with-sysroot was given. 8518if test "${with_sysroot+set}" = set; then : 8519 withval=$with_sysroot; 8520else 8521 with_sysroot=no 8522fi 8523 8524 8525lt_sysroot= 8526case $with_sysroot in #( 8527 yes) 8528 if test yes = "$GCC"; then 8529 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8530 fi 8531 ;; #( 8532 /*) 8533 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8534 ;; #( 8535 no|'') 8536 ;; #( 8537 *) 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8539$as_echo "$with_sysroot" >&6; } 8540 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8541 ;; 8542esac 8543 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8545$as_echo "${lt_sysroot:-no}" >&6; } 8546 8547 8548 8549 8550 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8552$as_echo_n "checking for a working dd... " >&6; } 8553if ${ac_cv_path_lt_DD+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555else 8556 printf 0123456789abcdef0123456789abcdef >conftest.i 8557cat conftest.i conftest.i >conftest2.i 8558: ${lt_DD:=$DD} 8559if test -z "$lt_DD"; then 8560 ac_path_lt_DD_found=false 8561 # Loop through the user's path and test for each of PROGNAME-LIST 8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8563for as_dir in $PATH 8564do 8565 IFS=$as_save_IFS 8566 test -z "$as_dir" && as_dir=. 8567 for ac_prog in dd; do 8568 for ac_exec_ext in '' $ac_executable_extensions; do 8569 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8570 as_fn_executable_p "$ac_path_lt_DD" || continue 8571if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8572 cmp -s conftest.i conftest.out \ 8573 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8574fi 8575 $ac_path_lt_DD_found && break 3 8576 done 8577 done 8578 done 8579IFS=$as_save_IFS 8580 if test -z "$ac_cv_path_lt_DD"; then 8581 : 8582 fi 8583else 8584 ac_cv_path_lt_DD=$lt_DD 8585fi 8586 8587rm -f conftest.i conftest2.i conftest.out 8588fi 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8590$as_echo "$ac_cv_path_lt_DD" >&6; } 8591 8592 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8594$as_echo_n "checking how to truncate binary pipes... " >&6; } 8595if ${lt_cv_truncate_bin+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 printf 0123456789abcdef0123456789abcdef >conftest.i 8599cat conftest.i conftest.i >conftest2.i 8600lt_cv_truncate_bin= 8601if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8602 cmp -s conftest.i conftest.out \ 8603 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8604fi 8605rm -f conftest.i conftest2.i conftest.out 8606test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8607fi 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8609$as_echo "$lt_cv_truncate_bin" >&6; } 8610 8611 8612 8613 8614 8615 8616 8617# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8618func_cc_basename () 8619{ 8620 for cc_temp in $*""; do 8621 case $cc_temp in 8622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8624 \-*) ;; 8625 *) break;; 8626 esac 8627 done 8628 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8629} 8630 8631# Check whether --enable-libtool-lock was given. 8632if test "${enable_libtool_lock+set}" = set; then : 8633 enableval=$enable_libtool_lock; 8634fi 8635 8636test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8637 8638# Some flags need to be propagated to the compiler or linker for good 8639# libtool support. 8640case $host in 8641ia64-*-hpux*) 8642 # Find out what ABI is being produced by ac_compile, and set mode 8643 # options accordingly. 8644 echo 'int i;' > conftest.$ac_ext 8645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8646 (eval $ac_compile) 2>&5 8647 ac_status=$? 8648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8649 test $ac_status = 0; }; then 8650 case `/usr/bin/file conftest.$ac_objext` in 8651 *ELF-32*) 8652 HPUX_IA64_MODE=32 8653 ;; 8654 *ELF-64*) 8655 HPUX_IA64_MODE=64 8656 ;; 8657 esac 8658 fi 8659 rm -rf conftest* 8660 ;; 8661*-*-irix6*) 8662 # Find out what ABI is being produced by ac_compile, and set linker 8663 # options accordingly. 8664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8666 (eval $ac_compile) 2>&5 8667 ac_status=$? 8668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8669 test $ac_status = 0; }; then 8670 if test yes = "$lt_cv_prog_gnu_ld"; then 8671 case `/usr/bin/file conftest.$ac_objext` in 8672 *32-bit*) 8673 LD="${LD-ld} -melf32bsmip" 8674 ;; 8675 *N32*) 8676 LD="${LD-ld} -melf32bmipn32" 8677 ;; 8678 *64-bit*) 8679 LD="${LD-ld} -melf64bmip" 8680 ;; 8681 esac 8682 else 8683 case `/usr/bin/file conftest.$ac_objext` in 8684 *32-bit*) 8685 LD="${LD-ld} -32" 8686 ;; 8687 *N32*) 8688 LD="${LD-ld} -n32" 8689 ;; 8690 *64-bit*) 8691 LD="${LD-ld} -64" 8692 ;; 8693 esac 8694 fi 8695 fi 8696 rm -rf conftest* 8697 ;; 8698 8699mips64*-*linux*) 8700 # Find out what ABI is being produced by ac_compile, and set linker 8701 # options accordingly. 8702 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8704 (eval $ac_compile) 2>&5 8705 ac_status=$? 8706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8707 test $ac_status = 0; }; then 8708 emul=elf 8709 case `/usr/bin/file conftest.$ac_objext` in 8710 *32-bit*) 8711 emul="${emul}32" 8712 ;; 8713 *64-bit*) 8714 emul="${emul}64" 8715 ;; 8716 esac 8717 case `/usr/bin/file conftest.$ac_objext` in 8718 *MSB*) 8719 emul="${emul}btsmip" 8720 ;; 8721 *LSB*) 8722 emul="${emul}ltsmip" 8723 ;; 8724 esac 8725 case `/usr/bin/file conftest.$ac_objext` in 8726 *N32*) 8727 emul="${emul}n32" 8728 ;; 8729 esac 8730 LD="${LD-ld} -m $emul" 8731 fi 8732 rm -rf conftest* 8733 ;; 8734 8735x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8736s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8737 # Find out what ABI is being produced by ac_compile, and set linker 8738 # options accordingly. Note that the listed cases only cover the 8739 # situations where additional linker options are needed (such as when 8740 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8741 # vice versa); the common cases where no linker options are needed do 8742 # not appear in the list. 8743 echo 'int i;' > conftest.$ac_ext 8744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8745 (eval $ac_compile) 2>&5 8746 ac_status=$? 8747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8748 test $ac_status = 0; }; then 8749 case `/usr/bin/file conftest.o` in 8750 *32-bit*) 8751 case $host in 8752 x86_64-*kfreebsd*-gnu) 8753 LD="${LD-ld} -m elf_i386_fbsd" 8754 ;; 8755 x86_64-*linux*) 8756 case `/usr/bin/file conftest.o` in 8757 *x86-64*) 8758 LD="${LD-ld} -m elf32_x86_64" 8759 ;; 8760 *) 8761 LD="${LD-ld} -m elf_i386" 8762 ;; 8763 esac 8764 ;; 8765 powerpc64le-*linux*) 8766 LD="${LD-ld} -m elf32lppclinux" 8767 ;; 8768 powerpc64-*linux*) 8769 LD="${LD-ld} -m elf32ppclinux" 8770 ;; 8771 s390x-*linux*) 8772 LD="${LD-ld} -m elf_s390" 8773 ;; 8774 sparc64-*linux*) 8775 LD="${LD-ld} -m elf32_sparc" 8776 ;; 8777 esac 8778 ;; 8779 *64-bit*) 8780 case $host in 8781 x86_64-*kfreebsd*-gnu) 8782 LD="${LD-ld} -m elf_x86_64_fbsd" 8783 ;; 8784 x86_64-*linux*) 8785 LD="${LD-ld} -m elf_x86_64" 8786 ;; 8787 powerpcle-*linux*) 8788 LD="${LD-ld} -m elf64lppc" 8789 ;; 8790 powerpc-*linux*) 8791 LD="${LD-ld} -m elf64ppc" 8792 ;; 8793 s390*-*linux*|s390*-*tpf*) 8794 LD="${LD-ld} -m elf64_s390" 8795 ;; 8796 sparc*-*linux*) 8797 LD="${LD-ld} -m elf64_sparc" 8798 ;; 8799 esac 8800 ;; 8801 esac 8802 fi 8803 rm -rf conftest* 8804 ;; 8805 8806*-*-sco3.2v5*) 8807 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8808 SAVE_CFLAGS=$CFLAGS 8809 CFLAGS="$CFLAGS -belf" 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8811$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8812if ${lt_cv_cc_needs_belf+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 ac_ext=c 8816ac_cpp='$CPP $CPPFLAGS' 8817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8819ac_compiler_gnu=$ac_cv_c_compiler_gnu 8820 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823 8824int 8825main () 8826{ 8827 8828 ; 8829 return 0; 8830} 8831_ACEOF 8832if ac_fn_c_try_link "$LINENO"; then : 8833 lt_cv_cc_needs_belf=yes 8834else 8835 lt_cv_cc_needs_belf=no 8836fi 8837rm -f core conftest.err conftest.$ac_objext \ 8838 conftest$ac_exeext conftest.$ac_ext 8839 ac_ext=c 8840ac_cpp='$CPP $CPPFLAGS' 8841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8843ac_compiler_gnu=$ac_cv_c_compiler_gnu 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8847$as_echo "$lt_cv_cc_needs_belf" >&6; } 8848 if test yes != "$lt_cv_cc_needs_belf"; then 8849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8850 CFLAGS=$SAVE_CFLAGS 8851 fi 8852 ;; 8853*-*solaris*) 8854 # Find out what ABI is being produced by ac_compile, and set linker 8855 # options accordingly. 8856 echo 'int i;' > conftest.$ac_ext 8857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8858 (eval $ac_compile) 2>&5 8859 ac_status=$? 8860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8861 test $ac_status = 0; }; then 8862 case `/usr/bin/file conftest.o` in 8863 *64-bit*) 8864 case $lt_cv_prog_gnu_ld in 8865 yes*) 8866 case $host in 8867 i?86-*-solaris*|x86_64-*-solaris*) 8868 LD="${LD-ld} -m elf_x86_64" 8869 ;; 8870 sparc*-*-solaris*) 8871 LD="${LD-ld} -m elf64_sparc" 8872 ;; 8873 esac 8874 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8875 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8876 LD=${LD-ld}_sol2 8877 fi 8878 ;; 8879 *) 8880 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8881 LD="${LD-ld} -64" 8882 fi 8883 ;; 8884 esac 8885 ;; 8886 esac 8887 fi 8888 rm -rf conftest* 8889 ;; 8890esac 8891 8892need_locks=$enable_libtool_lock 8893 8894if test -n "$ac_tool_prefix"; then 8895 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8896set dummy ${ac_tool_prefix}mt; ac_word=$2 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8898$as_echo_n "checking for $ac_word... " >&6; } 8899if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 if test -n "$MANIFEST_TOOL"; then 8903 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8904else 8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8906for as_dir in $PATH 8907do 8908 IFS=$as_save_IFS 8909 test -z "$as_dir" && as_dir=. 8910 for ac_exec_ext in '' $ac_executable_extensions; do 8911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8912 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8914 break 2 8915 fi 8916done 8917 done 8918IFS=$as_save_IFS 8919 8920fi 8921fi 8922MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8923if test -n "$MANIFEST_TOOL"; then 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8925$as_echo "$MANIFEST_TOOL" >&6; } 8926else 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8928$as_echo "no" >&6; } 8929fi 8930 8931 8932fi 8933if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8934 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8935 # Extract the first word of "mt", so it can be a program name with args. 8936set dummy mt; ac_word=$2 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8938$as_echo_n "checking for $ac_word... " >&6; } 8939if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 if test -n "$ac_ct_MANIFEST_TOOL"; then 8943 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8944else 8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8946for as_dir in $PATH 8947do 8948 IFS=$as_save_IFS 8949 test -z "$as_dir" && as_dir=. 8950 for ac_exec_ext in '' $ac_executable_extensions; do 8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8952 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8954 break 2 8955 fi 8956done 8957 done 8958IFS=$as_save_IFS 8959 8960fi 8961fi 8962ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8963if test -n "$ac_ct_MANIFEST_TOOL"; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8965$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8966else 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8968$as_echo "no" >&6; } 8969fi 8970 8971 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8972 MANIFEST_TOOL=":" 8973 else 8974 case $cross_compiling:$ac_tool_warned in 8975yes:) 8976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8978ac_tool_warned=yes ;; 8979esac 8980 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8981 fi 8982else 8983 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8984fi 8985 8986test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8988$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8989if ${lt_cv_path_mainfest_tool+:} false; then : 8990 $as_echo_n "(cached) " >&6 8991else 8992 lt_cv_path_mainfest_tool=no 8993 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8994 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8995 cat conftest.err >&5 8996 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8997 lt_cv_path_mainfest_tool=yes 8998 fi 8999 rm -f conftest* 9000fi 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9002$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9003if test yes != "$lt_cv_path_mainfest_tool"; then 9004 MANIFEST_TOOL=: 9005fi 9006 9007 9008 9009 9010 9011 9012 case $host_os in 9013 rhapsody* | darwin*) 9014 if test -n "$ac_tool_prefix"; then 9015 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9016set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9018$as_echo_n "checking for $ac_word... " >&6; } 9019if ${ac_cv_prog_DSYMUTIL+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 if test -n "$DSYMUTIL"; then 9023 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9024else 9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9026for as_dir in $PATH 9027do 9028 IFS=$as_save_IFS 9029 test -z "$as_dir" && as_dir=. 9030 for ac_exec_ext in '' $ac_executable_extensions; do 9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9032 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9034 break 2 9035 fi 9036done 9037 done 9038IFS=$as_save_IFS 9039 9040fi 9041fi 9042DSYMUTIL=$ac_cv_prog_DSYMUTIL 9043if test -n "$DSYMUTIL"; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9045$as_echo "$DSYMUTIL" >&6; } 9046else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9048$as_echo "no" >&6; } 9049fi 9050 9051 9052fi 9053if test -z "$ac_cv_prog_DSYMUTIL"; then 9054 ac_ct_DSYMUTIL=$DSYMUTIL 9055 # Extract the first word of "dsymutil", so it can be a program name with args. 9056set dummy dsymutil; ac_word=$2 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9058$as_echo_n "checking for $ac_word... " >&6; } 9059if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 if test -n "$ac_ct_DSYMUTIL"; then 9063 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9064else 9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9066for as_dir in $PATH 9067do 9068 IFS=$as_save_IFS 9069 test -z "$as_dir" && as_dir=. 9070 for ac_exec_ext in '' $ac_executable_extensions; do 9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9072 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9074 break 2 9075 fi 9076done 9077 done 9078IFS=$as_save_IFS 9079 9080fi 9081fi 9082ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9083if test -n "$ac_ct_DSYMUTIL"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9085$as_echo "$ac_ct_DSYMUTIL" >&6; } 9086else 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9088$as_echo "no" >&6; } 9089fi 9090 9091 if test "x$ac_ct_DSYMUTIL" = x; then 9092 DSYMUTIL=":" 9093 else 9094 case $cross_compiling:$ac_tool_warned in 9095yes:) 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9098ac_tool_warned=yes ;; 9099esac 9100 DSYMUTIL=$ac_ct_DSYMUTIL 9101 fi 9102else 9103 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9104fi 9105 9106 if test -n "$ac_tool_prefix"; then 9107 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9108set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9110$as_echo_n "checking for $ac_word... " >&6; } 9111if ${ac_cv_prog_NMEDIT+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 if test -n "$NMEDIT"; then 9115 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9116else 9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9118for as_dir in $PATH 9119do 9120 IFS=$as_save_IFS 9121 test -z "$as_dir" && as_dir=. 9122 for ac_exec_ext in '' $ac_executable_extensions; do 9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9124 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9126 break 2 9127 fi 9128done 9129 done 9130IFS=$as_save_IFS 9131 9132fi 9133fi 9134NMEDIT=$ac_cv_prog_NMEDIT 9135if test -n "$NMEDIT"; then 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9137$as_echo "$NMEDIT" >&6; } 9138else 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9140$as_echo "no" >&6; } 9141fi 9142 9143 9144fi 9145if test -z "$ac_cv_prog_NMEDIT"; then 9146 ac_ct_NMEDIT=$NMEDIT 9147 # Extract the first word of "nmedit", so it can be a program name with args. 9148set dummy nmedit; ac_word=$2 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9150$as_echo_n "checking for $ac_word... " >&6; } 9151if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153else 9154 if test -n "$ac_ct_NMEDIT"; then 9155 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9156else 9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9158for as_dir in $PATH 9159do 9160 IFS=$as_save_IFS 9161 test -z "$as_dir" && as_dir=. 9162 for ac_exec_ext in '' $ac_executable_extensions; do 9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9164 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9166 break 2 9167 fi 9168done 9169 done 9170IFS=$as_save_IFS 9171 9172fi 9173fi 9174ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9175if test -n "$ac_ct_NMEDIT"; then 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9177$as_echo "$ac_ct_NMEDIT" >&6; } 9178else 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9180$as_echo "no" >&6; } 9181fi 9182 9183 if test "x$ac_ct_NMEDIT" = x; then 9184 NMEDIT=":" 9185 else 9186 case $cross_compiling:$ac_tool_warned in 9187yes:) 9188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9190ac_tool_warned=yes ;; 9191esac 9192 NMEDIT=$ac_ct_NMEDIT 9193 fi 9194else 9195 NMEDIT="$ac_cv_prog_NMEDIT" 9196fi 9197 9198 if test -n "$ac_tool_prefix"; then 9199 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9200set dummy ${ac_tool_prefix}lipo; ac_word=$2 9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9202$as_echo_n "checking for $ac_word... " >&6; } 9203if ${ac_cv_prog_LIPO+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 if test -n "$LIPO"; then 9207 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9208else 9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9210for as_dir in $PATH 9211do 9212 IFS=$as_save_IFS 9213 test -z "$as_dir" && as_dir=. 9214 for ac_exec_ext in '' $ac_executable_extensions; do 9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9216 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9218 break 2 9219 fi 9220done 9221 done 9222IFS=$as_save_IFS 9223 9224fi 9225fi 9226LIPO=$ac_cv_prog_LIPO 9227if test -n "$LIPO"; then 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9229$as_echo "$LIPO" >&6; } 9230else 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9232$as_echo "no" >&6; } 9233fi 9234 9235 9236fi 9237if test -z "$ac_cv_prog_LIPO"; then 9238 ac_ct_LIPO=$LIPO 9239 # Extract the first word of "lipo", so it can be a program name with args. 9240set dummy lipo; ac_word=$2 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9242$as_echo_n "checking for $ac_word... " >&6; } 9243if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 if test -n "$ac_ct_LIPO"; then 9247 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9248else 9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9250for as_dir in $PATH 9251do 9252 IFS=$as_save_IFS 9253 test -z "$as_dir" && as_dir=. 9254 for ac_exec_ext in '' $ac_executable_extensions; do 9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9256 ac_cv_prog_ac_ct_LIPO="lipo" 9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9258 break 2 9259 fi 9260done 9261 done 9262IFS=$as_save_IFS 9263 9264fi 9265fi 9266ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9267if test -n "$ac_ct_LIPO"; then 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9269$as_echo "$ac_ct_LIPO" >&6; } 9270else 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9272$as_echo "no" >&6; } 9273fi 9274 9275 if test "x$ac_ct_LIPO" = x; then 9276 LIPO=":" 9277 else 9278 case $cross_compiling:$ac_tool_warned in 9279yes:) 9280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9282ac_tool_warned=yes ;; 9283esac 9284 LIPO=$ac_ct_LIPO 9285 fi 9286else 9287 LIPO="$ac_cv_prog_LIPO" 9288fi 9289 9290 if test -n "$ac_tool_prefix"; then 9291 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9292set dummy ${ac_tool_prefix}otool; ac_word=$2 9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9294$as_echo_n "checking for $ac_word... " >&6; } 9295if ${ac_cv_prog_OTOOL+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 if test -n "$OTOOL"; then 9299 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9300else 9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9302for as_dir in $PATH 9303do 9304 IFS=$as_save_IFS 9305 test -z "$as_dir" && as_dir=. 9306 for ac_exec_ext in '' $ac_executable_extensions; do 9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9308 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9310 break 2 9311 fi 9312done 9313 done 9314IFS=$as_save_IFS 9315 9316fi 9317fi 9318OTOOL=$ac_cv_prog_OTOOL 9319if test -n "$OTOOL"; then 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9321$as_echo "$OTOOL" >&6; } 9322else 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9324$as_echo "no" >&6; } 9325fi 9326 9327 9328fi 9329if test -z "$ac_cv_prog_OTOOL"; then 9330 ac_ct_OTOOL=$OTOOL 9331 # Extract the first word of "otool", so it can be a program name with args. 9332set dummy otool; ac_word=$2 9333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9334$as_echo_n "checking for $ac_word... " >&6; } 9335if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 if test -n "$ac_ct_OTOOL"; then 9339 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9340else 9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9342for as_dir in $PATH 9343do 9344 IFS=$as_save_IFS 9345 test -z "$as_dir" && as_dir=. 9346 for ac_exec_ext in '' $ac_executable_extensions; do 9347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9348 ac_cv_prog_ac_ct_OTOOL="otool" 9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9350 break 2 9351 fi 9352done 9353 done 9354IFS=$as_save_IFS 9355 9356fi 9357fi 9358ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9359if test -n "$ac_ct_OTOOL"; then 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9361$as_echo "$ac_ct_OTOOL" >&6; } 9362else 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9364$as_echo "no" >&6; } 9365fi 9366 9367 if test "x$ac_ct_OTOOL" = x; then 9368 OTOOL=":" 9369 else 9370 case $cross_compiling:$ac_tool_warned in 9371yes:) 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9374ac_tool_warned=yes ;; 9375esac 9376 OTOOL=$ac_ct_OTOOL 9377 fi 9378else 9379 OTOOL="$ac_cv_prog_OTOOL" 9380fi 9381 9382 if test -n "$ac_tool_prefix"; then 9383 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9384set dummy ${ac_tool_prefix}otool64; ac_word=$2 9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9386$as_echo_n "checking for $ac_word... " >&6; } 9387if ${ac_cv_prog_OTOOL64+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 if test -n "$OTOOL64"; then 9391 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9392else 9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9394for as_dir in $PATH 9395do 9396 IFS=$as_save_IFS 9397 test -z "$as_dir" && as_dir=. 9398 for ac_exec_ext in '' $ac_executable_extensions; do 9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9400 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9402 break 2 9403 fi 9404done 9405 done 9406IFS=$as_save_IFS 9407 9408fi 9409fi 9410OTOOL64=$ac_cv_prog_OTOOL64 9411if test -n "$OTOOL64"; then 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9413$as_echo "$OTOOL64" >&6; } 9414else 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9416$as_echo "no" >&6; } 9417fi 9418 9419 9420fi 9421if test -z "$ac_cv_prog_OTOOL64"; then 9422 ac_ct_OTOOL64=$OTOOL64 9423 # Extract the first word of "otool64", so it can be a program name with args. 9424set dummy otool64; ac_word=$2 9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9426$as_echo_n "checking for $ac_word... " >&6; } 9427if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 if test -n "$ac_ct_OTOOL64"; then 9431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9432else 9433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9434for as_dir in $PATH 9435do 9436 IFS=$as_save_IFS 9437 test -z "$as_dir" && as_dir=. 9438 for ac_exec_ext in '' $ac_executable_extensions; do 9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9440 ac_cv_prog_ac_ct_OTOOL64="otool64" 9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9442 break 2 9443 fi 9444done 9445 done 9446IFS=$as_save_IFS 9447 9448fi 9449fi 9450ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9451if test -n "$ac_ct_OTOOL64"; then 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9453$as_echo "$ac_ct_OTOOL64" >&6; } 9454else 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9456$as_echo "no" >&6; } 9457fi 9458 9459 if test "x$ac_ct_OTOOL64" = x; then 9460 OTOOL64=":" 9461 else 9462 case $cross_compiling:$ac_tool_warned in 9463yes:) 9464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9466ac_tool_warned=yes ;; 9467esac 9468 OTOOL64=$ac_ct_OTOOL64 9469 fi 9470else 9471 OTOOL64="$ac_cv_prog_OTOOL64" 9472fi 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9501$as_echo_n "checking for -single_module linker flag... " >&6; } 9502if ${lt_cv_apple_cc_single_mod+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 lt_cv_apple_cc_single_mod=no 9506 if test -z "$LT_MULTI_MODULE"; then 9507 # By default we will add the -single_module flag. You can override 9508 # by either setting the environment variable LT_MULTI_MODULE 9509 # non-empty at configure time, or by adding -multi_module to the 9510 # link flags. 9511 rm -rf libconftest.dylib* 9512 echo "int foo(void){return 1;}" > conftest.c 9513 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9514-dynamiclib -Wl,-single_module conftest.c" >&5 9515 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9516 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9517 _lt_result=$? 9518 # If there is a non-empty error log, and "single_module" 9519 # appears in it, assume the flag caused a linker warning 9520 if test -s conftest.err && $GREP single_module conftest.err; then 9521 cat conftest.err >&5 9522 # Otherwise, if the output was created with a 0 exit code from 9523 # the compiler, it worked. 9524 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9525 lt_cv_apple_cc_single_mod=yes 9526 else 9527 cat conftest.err >&5 9528 fi 9529 rm -rf libconftest.dylib* 9530 rm -f conftest.* 9531 fi 9532fi 9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9534$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9535 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9537$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9538if ${lt_cv_ld_exported_symbols_list+:} false; then : 9539 $as_echo_n "(cached) " >&6 9540else 9541 lt_cv_ld_exported_symbols_list=no 9542 save_LDFLAGS=$LDFLAGS 9543 echo "_main" > conftest.sym 9544 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9546/* end confdefs.h. */ 9547 9548int 9549main () 9550{ 9551 9552 ; 9553 return 0; 9554} 9555_ACEOF 9556if ac_fn_c_try_link "$LINENO"; then : 9557 lt_cv_ld_exported_symbols_list=yes 9558else 9559 lt_cv_ld_exported_symbols_list=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext \ 9562 conftest$ac_exeext conftest.$ac_ext 9563 LDFLAGS=$save_LDFLAGS 9564 9565fi 9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9567$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9568 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9570$as_echo_n "checking for -force_load linker flag... " >&6; } 9571if ${lt_cv_ld_force_load+:} false; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 lt_cv_ld_force_load=no 9575 cat > conftest.c << _LT_EOF 9576int forced_loaded() { return 2;} 9577_LT_EOF 9578 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9579 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9580 echo "$AR cru libconftest.a conftest.o" >&5 9581 $AR cru libconftest.a conftest.o 2>&5 9582 echo "$RANLIB libconftest.a" >&5 9583 $RANLIB libconftest.a 2>&5 9584 cat > conftest.c << _LT_EOF 9585int main() { return 0;} 9586_LT_EOF 9587 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9588 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9589 _lt_result=$? 9590 if test -s conftest.err && $GREP force_load conftest.err; then 9591 cat conftest.err >&5 9592 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9593 lt_cv_ld_force_load=yes 9594 else 9595 cat conftest.err >&5 9596 fi 9597 rm -f conftest.err libconftest.a conftest conftest.c 9598 rm -rf conftest.dSYM 9599 9600fi 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9602$as_echo "$lt_cv_ld_force_load" >&6; } 9603 case $host_os in 9604 rhapsody* | darwin1.[012]) 9605 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9606 darwin1.*) 9607 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9608 darwin*) # darwin 5.x on 9609 # if running on 10.5 or later, the deployment target defaults 9610 # to the OS version, if on x86, and 10.4, the deployment 9611 # target defaults to 10.4. Don't you love it? 9612 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9613 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9614 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9615 10.[012][,.]*) 9616 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9617 10.*) 9618 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9619 esac 9620 ;; 9621 esac 9622 if test yes = "$lt_cv_apple_cc_single_mod"; then 9623 _lt_dar_single_mod='$single_module' 9624 fi 9625 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9626 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9627 else 9628 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9629 fi 9630 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9631 _lt_dsymutil='~$DSYMUTIL $lib || :' 9632 else 9633 _lt_dsymutil= 9634 fi 9635 ;; 9636 esac 9637 9638# func_munge_path_list VARIABLE PATH 9639# ----------------------------------- 9640# VARIABLE is name of variable containing _space_ separated list of 9641# directories to be munged by the contents of PATH, which is string 9642# having a format: 9643# "DIR[:DIR]:" 9644# string "DIR[ DIR]" will be prepended to VARIABLE 9645# ":DIR[:DIR]" 9646# string "DIR[ DIR]" will be appended to VARIABLE 9647# "DIRP[:DIRP]::[DIRA:]DIRA" 9648# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9649# "DIRA[ DIRA]" will be appended to VARIABLE 9650# "DIR[:DIR]" 9651# VARIABLE will be replaced by "DIR[ DIR]" 9652func_munge_path_list () 9653{ 9654 case x$2 in 9655 x) 9656 ;; 9657 *:) 9658 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9659 ;; 9660 x:*) 9661 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9662 ;; 9663 *::*) 9664 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9665 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9666 ;; 9667 *) 9668 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9669 ;; 9670 esac 9671} 9672 9673for ac_header in dlfcn.h 9674do : 9675 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9676" 9677if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9678 cat >>confdefs.h <<_ACEOF 9679#define HAVE_DLFCN_H 1 9680_ACEOF 9681 9682fi 9683 9684done 9685 9686 9687 9688 9689 9690# Set options 9691enable_dlopen=yes 9692 9693 9694 9695 9696 enable_win32_dll=no 9697 9698 9699 # Check whether --enable-shared was given. 9700if test "${enable_shared+set}" = set; then : 9701 enableval=$enable_shared; p=${PACKAGE-default} 9702 case $enableval in 9703 yes) enable_shared=yes ;; 9704 no) enable_shared=no ;; 9705 *) 9706 enable_shared=no 9707 # Look at the argument we got. We use all the common list separators. 9708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9709 for pkg in $enableval; do 9710 IFS=$lt_save_ifs 9711 if test "X$pkg" = "X$p"; then 9712 enable_shared=yes 9713 fi 9714 done 9715 IFS=$lt_save_ifs 9716 ;; 9717 esac 9718else 9719 enable_shared=yes 9720fi 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732# Check whether --with-pic was given. 9733if test "${with_pic+set}" = set; then : 9734 withval=$with_pic; lt_p=${PACKAGE-default} 9735 case $withval in 9736 yes|no) pic_mode=$withval ;; 9737 *) 9738 pic_mode=default 9739 # Look at the argument we got. We use all the common list separators. 9740 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9741 for lt_pkg in $withval; do 9742 IFS=$lt_save_ifs 9743 if test "X$lt_pkg" = "X$lt_p"; then 9744 pic_mode=yes 9745 fi 9746 done 9747 IFS=$lt_save_ifs 9748 ;; 9749 esac 9750else 9751 pic_mode=default 9752fi 9753 9754 9755 9756 9757 9758 9759 9760 9761 # Check whether --enable-fast-install was given. 9762if test "${enable_fast_install+set}" = set; then : 9763 enableval=$enable_fast_install; p=${PACKAGE-default} 9764 case $enableval in 9765 yes) enable_fast_install=yes ;; 9766 no) enable_fast_install=no ;; 9767 *) 9768 enable_fast_install=no 9769 # Look at the argument we got. We use all the common list separators. 9770 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9771 for pkg in $enableval; do 9772 IFS=$lt_save_ifs 9773 if test "X$pkg" = "X$p"; then 9774 enable_fast_install=yes 9775 fi 9776 done 9777 IFS=$lt_save_ifs 9778 ;; 9779 esac 9780else 9781 enable_fast_install=yes 9782fi 9783 9784 9785 9786 9787 9788 9789 9790 9791 shared_archive_member_spec= 9792case $host,$enable_shared in 9793power*-*-aix[5-9]*,yes) 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9795$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9796 9797# Check whether --with-aix-soname was given. 9798if test "${with_aix_soname+set}" = set; then : 9799 withval=$with_aix_soname; case $withval in 9800 aix|svr4|both) 9801 ;; 9802 *) 9803 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9804 ;; 9805 esac 9806 lt_cv_with_aix_soname=$with_aix_soname 9807else 9808 if ${lt_cv_with_aix_soname+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810else 9811 lt_cv_with_aix_soname=aix 9812fi 9813 9814 with_aix_soname=$lt_cv_with_aix_soname 9815fi 9816 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9818$as_echo "$with_aix_soname" >&6; } 9819 if test aix != "$with_aix_soname"; then 9820 # For the AIX way of multilib, we name the shared archive member 9821 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9822 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9823 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9824 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9825 if test 64 = "${OBJECT_MODE-32}"; then 9826 shared_archive_member_spec=shr_64 9827 else 9828 shared_archive_member_spec=shr 9829 fi 9830 fi 9831 ;; 9832*) 9833 with_aix_soname=aix 9834 ;; 9835esac 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846# This can be used to rebuild libtool when needed 9847LIBTOOL_DEPS=$ltmain 9848 9849# Always use our own libtool. 9850LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881test -z "$LN_S" && LN_S="ln -s" 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896if test -n "${ZSH_VERSION+set}"; then 9897 setopt NO_GLOB_SUBST 9898fi 9899 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9901$as_echo_n "checking for objdir... " >&6; } 9902if ${lt_cv_objdir+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 rm -f .libs 2>/dev/null 9906mkdir .libs 2>/dev/null 9907if test -d .libs; then 9908 lt_cv_objdir=.libs 9909else 9910 # MS-DOS does not allow filenames that begin with a dot. 9911 lt_cv_objdir=_libs 9912fi 9913rmdir .libs 2>/dev/null 9914fi 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9916$as_echo "$lt_cv_objdir" >&6; } 9917objdir=$lt_cv_objdir 9918 9919 9920 9921 9922 9923cat >>confdefs.h <<_ACEOF 9924#define LT_OBJDIR "$lt_cv_objdir/" 9925_ACEOF 9926 9927 9928 9929 9930case $host_os in 9931aix3*) 9932 # AIX sometimes has problems with the GCC collect2 program. For some 9933 # reason, if we set the COLLECT_NAMES environment variable, the problems 9934 # vanish in a puff of smoke. 9935 if test set != "${COLLECT_NAMES+set}"; then 9936 COLLECT_NAMES= 9937 export COLLECT_NAMES 9938 fi 9939 ;; 9940esac 9941 9942# Global variables: 9943ofile=libtool 9944can_build_shared=yes 9945 9946# All known linkers require a '.a' archive for static linking (except MSVC, 9947# which needs '.lib'). 9948libext=a 9949 9950with_gnu_ld=$lt_cv_prog_gnu_ld 9951 9952old_CC=$CC 9953old_CFLAGS=$CFLAGS 9954 9955# Set sane defaults for various variables 9956test -z "$CC" && CC=cc 9957test -z "$LTCC" && LTCC=$CC 9958test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9959test -z "$LD" && LD=ld 9960test -z "$ac_objext" && ac_objext=o 9961 9962func_cc_basename $compiler 9963cc_basename=$func_cc_basename_result 9964 9965 9966# Only perform the check for file, if the check method requires it 9967test -z "$MAGIC_CMD" && MAGIC_CMD=file 9968case $deplibs_check_method in 9969file_magic*) 9970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9972$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9973if ${lt_cv_path_MAGIC_CMD+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975else 9976 case $MAGIC_CMD in 9977[\\/*] | ?:[\\/]*) 9978 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9979 ;; 9980*) 9981 lt_save_MAGIC_CMD=$MAGIC_CMD 9982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9984 for ac_dir in $ac_dummy; do 9985 IFS=$lt_save_ifs 9986 test -z "$ac_dir" && ac_dir=. 9987 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9988 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9989 if test -n "$file_magic_test_file"; then 9990 case $deplibs_check_method in 9991 "file_magic "*) 9992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9993 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9995 $EGREP "$file_magic_regex" > /dev/null; then 9996 : 9997 else 9998 cat <<_LT_EOF 1>&2 9999 10000*** Warning: the command libtool uses to detect shared libraries, 10001*** $file_magic_cmd, produces output that libtool cannot recognize. 10002*** The result is that libtool may fail to recognize shared libraries 10003*** as such. This will affect the creation of libtool libraries that 10004*** depend on shared libraries, but programs linked with such libtool 10005*** libraries will work regardless of this problem. Nevertheless, you 10006*** may want to report the problem to your system manager and/or to 10007*** bug-libtool@gnu.org 10008 10009_LT_EOF 10010 fi ;; 10011 esac 10012 fi 10013 break 10014 fi 10015 done 10016 IFS=$lt_save_ifs 10017 MAGIC_CMD=$lt_save_MAGIC_CMD 10018 ;; 10019esac 10020fi 10021 10022MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10023if test -n "$MAGIC_CMD"; then 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10025$as_echo "$MAGIC_CMD" >&6; } 10026else 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10028$as_echo "no" >&6; } 10029fi 10030 10031 10032 10033 10034 10035if test -z "$lt_cv_path_MAGIC_CMD"; then 10036 if test -n "$ac_tool_prefix"; then 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10038$as_echo_n "checking for file... " >&6; } 10039if ${lt_cv_path_MAGIC_CMD+:} false; then : 10040 $as_echo_n "(cached) " >&6 10041else 10042 case $MAGIC_CMD in 10043[\\/*] | ?:[\\/]*) 10044 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10045 ;; 10046*) 10047 lt_save_MAGIC_CMD=$MAGIC_CMD 10048 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10050 for ac_dir in $ac_dummy; do 10051 IFS=$lt_save_ifs 10052 test -z "$ac_dir" && ac_dir=. 10053 if test -f "$ac_dir/file"; then 10054 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10055 if test -n "$file_magic_test_file"; then 10056 case $deplibs_check_method in 10057 "file_magic "*) 10058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10061 $EGREP "$file_magic_regex" > /dev/null; then 10062 : 10063 else 10064 cat <<_LT_EOF 1>&2 10065 10066*** Warning: the command libtool uses to detect shared libraries, 10067*** $file_magic_cmd, produces output that libtool cannot recognize. 10068*** The result is that libtool may fail to recognize shared libraries 10069*** as such. This will affect the creation of libtool libraries that 10070*** depend on shared libraries, but programs linked with such libtool 10071*** libraries will work regardless of this problem. Nevertheless, you 10072*** may want to report the problem to your system manager and/or to 10073*** bug-libtool@gnu.org 10074 10075_LT_EOF 10076 fi ;; 10077 esac 10078 fi 10079 break 10080 fi 10081 done 10082 IFS=$lt_save_ifs 10083 MAGIC_CMD=$lt_save_MAGIC_CMD 10084 ;; 10085esac 10086fi 10087 10088MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10089if test -n "$MAGIC_CMD"; then 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10091$as_echo "$MAGIC_CMD" >&6; } 10092else 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10094$as_echo "no" >&6; } 10095fi 10096 10097 10098 else 10099 MAGIC_CMD=: 10100 fi 10101fi 10102 10103 fi 10104 ;; 10105esac 10106 10107# Use C for the default configuration in the libtool script 10108 10109lt_save_CC=$CC 10110ac_ext=c 10111ac_cpp='$CPP $CPPFLAGS' 10112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10114ac_compiler_gnu=$ac_cv_c_compiler_gnu 10115 10116 10117# Source file extension for C test sources. 10118ac_ext=c 10119 10120# Object file extension for compiled C test sources. 10121objext=o 10122objext=$objext 10123 10124# Code to be used in simple compile tests 10125lt_simple_compile_test_code="int some_variable = 0;" 10126 10127# Code to be used in simple link tests 10128lt_simple_link_test_code='int main(){return(0);}' 10129 10130 10131 10132 10133 10134 10135 10136# If no C compiler was specified, use CC. 10137LTCC=${LTCC-"$CC"} 10138 10139# If no C compiler flags were specified, use CFLAGS. 10140LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10141 10142# Allow CC to be a program name with arguments. 10143compiler=$CC 10144 10145# Save the default compiler, since it gets overwritten when the other 10146# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10147compiler_DEFAULT=$CC 10148 10149# save warnings/boilerplate of simple test code 10150ac_outfile=conftest.$ac_objext 10151echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10153_lt_compiler_boilerplate=`cat conftest.err` 10154$RM conftest* 10155 10156ac_outfile=conftest.$ac_objext 10157echo "$lt_simple_link_test_code" >conftest.$ac_ext 10158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10159_lt_linker_boilerplate=`cat conftest.err` 10160$RM -r conftest* 10161 10162 10163## CAVEAT EMPTOR: 10164## There is no encapsulation within the following macros, do not change 10165## the running order or otherwise move them around unless you know exactly 10166## what you are doing... 10167if test -n "$compiler"; then 10168 10169lt_prog_compiler_no_builtin_flag= 10170 10171if test yes = "$GCC"; then 10172 case $cc_basename in 10173 nvcc*) 10174 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10175 *) 10176 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10177 esac 10178 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10180$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10181if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 lt_cv_prog_compiler_rtti_exceptions=no 10185 ac_outfile=conftest.$ac_objext 10186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10187 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10188 # Insert the option either (1) after the last *FLAGS variable, or 10189 # (2) before a word containing "conftest.", or (3) at the end. 10190 # Note that $ac_compile itself does not contain backslashes and begins 10191 # with a dollar sign (not a hyphen), so the echo should work correctly. 10192 # The option is referenced via a variable to avoid confusing sed. 10193 lt_compile=`echo "$ac_compile" | $SED \ 10194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10196 -e 's:$: $lt_compiler_flag:'` 10197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10198 (eval "$lt_compile" 2>conftest.err) 10199 ac_status=$? 10200 cat conftest.err >&5 10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10202 if (exit $ac_status) && test -s "$ac_outfile"; then 10203 # The compiler can only warn and ignore the option if not recognized 10204 # So say no if there are warnings other than the usual output. 10205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10208 lt_cv_prog_compiler_rtti_exceptions=yes 10209 fi 10210 fi 10211 $RM conftest* 10212 10213fi 10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10215$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10216 10217if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10218 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10219else 10220 : 10221fi 10222 10223fi 10224 10225 10226 10227 10228 10229 10230 lt_prog_compiler_wl= 10231lt_prog_compiler_pic= 10232lt_prog_compiler_static= 10233 10234 10235 if test yes = "$GCC"; then 10236 lt_prog_compiler_wl='-Wl,' 10237 lt_prog_compiler_static='-static' 10238 10239 case $host_os in 10240 aix*) 10241 # All AIX code is PIC. 10242 if test ia64 = "$host_cpu"; then 10243 # AIX 5 now supports IA64 processor 10244 lt_prog_compiler_static='-Bstatic' 10245 fi 10246 lt_prog_compiler_pic='-fPIC' 10247 ;; 10248 10249 amigaos*) 10250 case $host_cpu in 10251 powerpc) 10252 # see comment about AmigaOS4 .so support 10253 lt_prog_compiler_pic='-fPIC' 10254 ;; 10255 m68k) 10256 # FIXME: we need at least 68020 code to build shared libraries, but 10257 # adding the '-m68020' flag to GCC prevents building anything better, 10258 # like '-m68040'. 10259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10260 ;; 10261 esac 10262 ;; 10263 10264 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10265 # PIC is the default for these OSes. 10266 ;; 10267 10268 mingw* | cygwin* | pw32* | os2* | cegcc*) 10269 # This hack is so that the source file can tell whether it is being 10270 # built for inclusion in a dll (and should export symbols for example). 10271 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10272 # (--disable-auto-import) libraries 10273 lt_prog_compiler_pic='-DDLL_EXPORT' 10274 case $host_os in 10275 os2*) 10276 lt_prog_compiler_static='$wl-static' 10277 ;; 10278 esac 10279 ;; 10280 10281 darwin* | rhapsody*) 10282 # PIC is the default on this platform 10283 # Common symbols not allowed in MH_DYLIB files 10284 lt_prog_compiler_pic='-fno-common' 10285 ;; 10286 10287 haiku*) 10288 # PIC is the default for Haiku. 10289 # The "-static" flag exists, but is broken. 10290 lt_prog_compiler_static= 10291 ;; 10292 10293 hpux*) 10294 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10295 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10296 # sets the default TLS model and affects inlining. 10297 case $host_cpu in 10298 hppa*64*) 10299 # +Z the default 10300 ;; 10301 *) 10302 lt_prog_compiler_pic='-fPIC' 10303 ;; 10304 esac 10305 ;; 10306 10307 interix[3-9]*) 10308 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10309 # Instead, we relocate shared libraries at runtime. 10310 ;; 10311 10312 msdosdjgpp*) 10313 # Just because we use GCC doesn't mean we suddenly get shared libraries 10314 # on systems that don't support them. 10315 lt_prog_compiler_can_build_shared=no 10316 enable_shared=no 10317 ;; 10318 10319 *nto* | *qnx*) 10320 # QNX uses GNU C++, but need to define -shared option too, otherwise 10321 # it will coredump. 10322 lt_prog_compiler_pic='-fPIC -shared' 10323 ;; 10324 10325 sysv4*MP*) 10326 if test -d /usr/nec; then 10327 lt_prog_compiler_pic=-Kconform_pic 10328 fi 10329 ;; 10330 10331 *) 10332 lt_prog_compiler_pic='-fPIC' 10333 ;; 10334 esac 10335 10336 case $cc_basename in 10337 nvcc*) # Cuda Compiler Driver 2.2 10338 lt_prog_compiler_wl='-Xlinker ' 10339 if test -n "$lt_prog_compiler_pic"; then 10340 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10341 fi 10342 ;; 10343 esac 10344 else 10345 # PORTME Check for flag to pass linker flags through the system compiler. 10346 case $host_os in 10347 aix*) 10348 lt_prog_compiler_wl='-Wl,' 10349 if test ia64 = "$host_cpu"; then 10350 # AIX 5 now supports IA64 processor 10351 lt_prog_compiler_static='-Bstatic' 10352 else 10353 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10354 fi 10355 ;; 10356 10357 darwin* | rhapsody*) 10358 # PIC is the default on this platform 10359 # Common symbols not allowed in MH_DYLIB files 10360 lt_prog_compiler_pic='-fno-common' 10361 case $cc_basename in 10362 nagfor*) 10363 # NAG Fortran compiler 10364 lt_prog_compiler_wl='-Wl,-Wl,,' 10365 lt_prog_compiler_pic='-PIC' 10366 lt_prog_compiler_static='-Bstatic' 10367 ;; 10368 esac 10369 ;; 10370 10371 mingw* | cygwin* | pw32* | os2* | cegcc*) 10372 # This hack is so that the source file can tell whether it is being 10373 # built for inclusion in a dll (and should export symbols for example). 10374 lt_prog_compiler_pic='-DDLL_EXPORT' 10375 case $host_os in 10376 os2*) 10377 lt_prog_compiler_static='$wl-static' 10378 ;; 10379 esac 10380 ;; 10381 10382 hpux9* | hpux10* | hpux11*) 10383 lt_prog_compiler_wl='-Wl,' 10384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10385 # not for PA HP-UX. 10386 case $host_cpu in 10387 hppa*64*|ia64*) 10388 # +Z the default 10389 ;; 10390 *) 10391 lt_prog_compiler_pic='+Z' 10392 ;; 10393 esac 10394 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10395 lt_prog_compiler_static='$wl-a ${wl}archive' 10396 ;; 10397 10398 irix5* | irix6* | nonstopux*) 10399 lt_prog_compiler_wl='-Wl,' 10400 # PIC (with -KPIC) is the default. 10401 lt_prog_compiler_static='-non_shared' 10402 ;; 10403 10404 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10405 case $cc_basename in 10406 # old Intel for x86_64, which still supported -KPIC. 10407 ecc*) 10408 lt_prog_compiler_wl='-Wl,' 10409 lt_prog_compiler_pic='-KPIC' 10410 lt_prog_compiler_static='-static' 10411 ;; 10412 # icc used to be incompatible with GCC. 10413 # ICC 10 doesn't accept -KPIC any more. 10414 icc* | ifort*) 10415 lt_prog_compiler_wl='-Wl,' 10416 lt_prog_compiler_pic='-fPIC' 10417 lt_prog_compiler_static='-static' 10418 ;; 10419 # Lahey Fortran 8.1. 10420 lf95*) 10421 lt_prog_compiler_wl='-Wl,' 10422 lt_prog_compiler_pic='--shared' 10423 lt_prog_compiler_static='--static' 10424 ;; 10425 nagfor*) 10426 # NAG Fortran compiler 10427 lt_prog_compiler_wl='-Wl,-Wl,,' 10428 lt_prog_compiler_pic='-PIC' 10429 lt_prog_compiler_static='-Bstatic' 10430 ;; 10431 tcc*) 10432 # Fabrice Bellard et al's Tiny C Compiler 10433 lt_prog_compiler_wl='-Wl,' 10434 lt_prog_compiler_pic='-fPIC' 10435 lt_prog_compiler_static='-static' 10436 ;; 10437 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10438 # Portland Group compilers (*not* the Pentium gcc compiler, 10439 # which looks to be a dead project) 10440 lt_prog_compiler_wl='-Wl,' 10441 lt_prog_compiler_pic='-fpic' 10442 lt_prog_compiler_static='-Bstatic' 10443 ;; 10444 ccc*) 10445 lt_prog_compiler_wl='-Wl,' 10446 # All Alpha code is PIC. 10447 lt_prog_compiler_static='-non_shared' 10448 ;; 10449 xl* | bgxl* | bgf* | mpixl*) 10450 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10451 lt_prog_compiler_wl='-Wl,' 10452 lt_prog_compiler_pic='-qpic' 10453 lt_prog_compiler_static='-qstaticlink' 10454 ;; 10455 *) 10456 case `$CC -V 2>&1 | sed 5q` in 10457 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10458 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10459 lt_prog_compiler_pic='-KPIC' 10460 lt_prog_compiler_static='-Bstatic' 10461 lt_prog_compiler_wl='' 10462 ;; 10463 *Sun\ F* | *Sun*Fortran*) 10464 lt_prog_compiler_pic='-KPIC' 10465 lt_prog_compiler_static='-Bstatic' 10466 lt_prog_compiler_wl='-Qoption ld ' 10467 ;; 10468 *Sun\ C*) 10469 # Sun C 5.9 10470 lt_prog_compiler_pic='-KPIC' 10471 lt_prog_compiler_static='-Bstatic' 10472 lt_prog_compiler_wl='-Wl,' 10473 ;; 10474 *Intel*\ [CF]*Compiler*) 10475 lt_prog_compiler_wl='-Wl,' 10476 lt_prog_compiler_pic='-fPIC' 10477 lt_prog_compiler_static='-static' 10478 ;; 10479 *Portland\ Group*) 10480 lt_prog_compiler_wl='-Wl,' 10481 lt_prog_compiler_pic='-fpic' 10482 lt_prog_compiler_static='-Bstatic' 10483 ;; 10484 esac 10485 ;; 10486 esac 10487 ;; 10488 10489 newsos6) 10490 lt_prog_compiler_pic='-KPIC' 10491 lt_prog_compiler_static='-Bstatic' 10492 ;; 10493 10494 *nto* | *qnx*) 10495 # QNX uses GNU C++, but need to define -shared option too, otherwise 10496 # it will coredump. 10497 lt_prog_compiler_pic='-fPIC -shared' 10498 ;; 10499 10500 osf3* | osf4* | osf5*) 10501 lt_prog_compiler_wl='-Wl,' 10502 # All OSF/1 code is PIC. 10503 lt_prog_compiler_static='-non_shared' 10504 ;; 10505 10506 rdos*) 10507 lt_prog_compiler_static='-non_shared' 10508 ;; 10509 10510 solaris*) 10511 lt_prog_compiler_pic='-KPIC' 10512 lt_prog_compiler_static='-Bstatic' 10513 case $cc_basename in 10514 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10515 lt_prog_compiler_wl='-Qoption ld ';; 10516 *) 10517 lt_prog_compiler_wl='-Wl,';; 10518 esac 10519 ;; 10520 10521 sunos4*) 10522 lt_prog_compiler_wl='-Qoption ld ' 10523 lt_prog_compiler_pic='-PIC' 10524 lt_prog_compiler_static='-Bstatic' 10525 ;; 10526 10527 sysv4 | sysv4.2uw2* | sysv4.3*) 10528 lt_prog_compiler_wl='-Wl,' 10529 lt_prog_compiler_pic='-KPIC' 10530 lt_prog_compiler_static='-Bstatic' 10531 ;; 10532 10533 sysv4*MP*) 10534 if test -d /usr/nec; then 10535 lt_prog_compiler_pic='-Kconform_pic' 10536 lt_prog_compiler_static='-Bstatic' 10537 fi 10538 ;; 10539 10540 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10541 lt_prog_compiler_wl='-Wl,' 10542 lt_prog_compiler_pic='-KPIC' 10543 lt_prog_compiler_static='-Bstatic' 10544 ;; 10545 10546 unicos*) 10547 lt_prog_compiler_wl='-Wl,' 10548 lt_prog_compiler_can_build_shared=no 10549 ;; 10550 10551 uts4*) 10552 lt_prog_compiler_pic='-pic' 10553 lt_prog_compiler_static='-Bstatic' 10554 ;; 10555 10556 *) 10557 lt_prog_compiler_can_build_shared=no 10558 ;; 10559 esac 10560 fi 10561 10562case $host_os in 10563 # For platforms that do not support PIC, -DPIC is meaningless: 10564 *djgpp*) 10565 lt_prog_compiler_pic= 10566 ;; 10567 *) 10568 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10569 ;; 10570esac 10571 10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10573$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10574if ${lt_cv_prog_compiler_pic+:} false; then : 10575 $as_echo_n "(cached) " >&6 10576else 10577 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10578fi 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10580$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10581lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10582 10583# 10584# Check to make sure the PIC flag actually works. 10585# 10586if test -n "$lt_prog_compiler_pic"; then 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10588$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10589if ${lt_cv_prog_compiler_pic_works+:} false; then : 10590 $as_echo_n "(cached) " >&6 10591else 10592 lt_cv_prog_compiler_pic_works=no 10593 ac_outfile=conftest.$ac_objext 10594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10595 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10596 # Insert the option either (1) after the last *FLAGS variable, or 10597 # (2) before a word containing "conftest.", or (3) at the end. 10598 # Note that $ac_compile itself does not contain backslashes and begins 10599 # with a dollar sign (not a hyphen), so the echo should work correctly. 10600 # The option is referenced via a variable to avoid confusing sed. 10601 lt_compile=`echo "$ac_compile" | $SED \ 10602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10604 -e 's:$: $lt_compiler_flag:'` 10605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10606 (eval "$lt_compile" 2>conftest.err) 10607 ac_status=$? 10608 cat conftest.err >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 if (exit $ac_status) && test -s "$ac_outfile"; then 10611 # The compiler can only warn and ignore the option if not recognized 10612 # So say no if there are warnings other than the usual output. 10613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10616 lt_cv_prog_compiler_pic_works=yes 10617 fi 10618 fi 10619 $RM conftest* 10620 10621fi 10622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10623$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10624 10625if test yes = "$lt_cv_prog_compiler_pic_works"; then 10626 case $lt_prog_compiler_pic in 10627 "" | " "*) ;; 10628 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10629 esac 10630else 10631 lt_prog_compiler_pic= 10632 lt_prog_compiler_can_build_shared=no 10633fi 10634 10635fi 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647# 10648# Check to make sure the static flag actually works. 10649# 10650wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10652$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10653if ${lt_cv_prog_compiler_static_works+:} false; then : 10654 $as_echo_n "(cached) " >&6 10655else 10656 lt_cv_prog_compiler_static_works=no 10657 save_LDFLAGS=$LDFLAGS 10658 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10659 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10661 # The linker can only warn and ignore the option if not recognized 10662 # So say no if there are warnings 10663 if test -s conftest.err; then 10664 # Append any errors to the config.log. 10665 cat conftest.err 1>&5 10666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10668 if diff conftest.exp conftest.er2 >/dev/null; then 10669 lt_cv_prog_compiler_static_works=yes 10670 fi 10671 else 10672 lt_cv_prog_compiler_static_works=yes 10673 fi 10674 fi 10675 $RM -r conftest* 10676 LDFLAGS=$save_LDFLAGS 10677 10678fi 10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10680$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10681 10682if test yes = "$lt_cv_prog_compiler_static_works"; then 10683 : 10684else 10685 lt_prog_compiler_static= 10686fi 10687 10688 10689 10690 10691 10692 10693 10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10696if ${lt_cv_prog_compiler_c_o+:} false; then : 10697 $as_echo_n "(cached) " >&6 10698else 10699 lt_cv_prog_compiler_c_o=no 10700 $RM -r conftest 2>/dev/null 10701 mkdir conftest 10702 cd conftest 10703 mkdir out 10704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10705 10706 lt_compiler_flag="-o out/conftest2.$ac_objext" 10707 # Insert the option either (1) after the last *FLAGS variable, or 10708 # (2) before a word containing "conftest.", or (3) at the end. 10709 # Note that $ac_compile itself does not contain backslashes and begins 10710 # with a dollar sign (not a hyphen), so the echo should work correctly. 10711 lt_compile=`echo "$ac_compile" | $SED \ 10712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10714 -e 's:$: $lt_compiler_flag:'` 10715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10716 (eval "$lt_compile" 2>out/conftest.err) 10717 ac_status=$? 10718 cat out/conftest.err >&5 10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10720 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10721 then 10722 # The compiler can only warn and ignore the option if not recognized 10723 # So say no if there are warnings 10724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10727 lt_cv_prog_compiler_c_o=yes 10728 fi 10729 fi 10730 chmod u+w . 2>&5 10731 $RM conftest* 10732 # SGI C++ compiler will create directory out/ii_files/ for 10733 # template instantiation 10734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10735 $RM out/* && rmdir out 10736 cd .. 10737 $RM -r conftest 10738 $RM conftest* 10739 10740fi 10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10742$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10743 10744 10745 10746 10747 10748 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10750$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10751if ${lt_cv_prog_compiler_c_o+:} false; then : 10752 $as_echo_n "(cached) " >&6 10753else 10754 lt_cv_prog_compiler_c_o=no 10755 $RM -r conftest 2>/dev/null 10756 mkdir conftest 10757 cd conftest 10758 mkdir out 10759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10760 10761 lt_compiler_flag="-o out/conftest2.$ac_objext" 10762 # Insert the option either (1) after the last *FLAGS variable, or 10763 # (2) before a word containing "conftest.", or (3) at the end. 10764 # Note that $ac_compile itself does not contain backslashes and begins 10765 # with a dollar sign (not a hyphen), so the echo should work correctly. 10766 lt_compile=`echo "$ac_compile" | $SED \ 10767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10769 -e 's:$: $lt_compiler_flag:'` 10770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10771 (eval "$lt_compile" 2>out/conftest.err) 10772 ac_status=$? 10773 cat out/conftest.err >&5 10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10775 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10776 then 10777 # The compiler can only warn and ignore the option if not recognized 10778 # So say no if there are warnings 10779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10782 lt_cv_prog_compiler_c_o=yes 10783 fi 10784 fi 10785 chmod u+w . 2>&5 10786 $RM conftest* 10787 # SGI C++ compiler will create directory out/ii_files/ for 10788 # template instantiation 10789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10790 $RM out/* && rmdir out 10791 cd .. 10792 $RM -r conftest 10793 $RM conftest* 10794 10795fi 10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10797$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10798 10799 10800 10801 10802hard_links=nottested 10803if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10804 # do not overwrite the value of need_locks provided by the user 10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10806$as_echo_n "checking if we can lock with hard links... " >&6; } 10807 hard_links=yes 10808 $RM conftest* 10809 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10810 touch conftest.a 10811 ln conftest.a conftest.b 2>&5 || hard_links=no 10812 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10814$as_echo "$hard_links" >&6; } 10815 if test no = "$hard_links"; then 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10817$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10818 need_locks=warn 10819 fi 10820else 10821 need_locks=no 10822fi 10823 10824 10825 10826 10827 10828 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10830$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10831 10832 runpath_var= 10833 allow_undefined_flag= 10834 always_export_symbols=no 10835 archive_cmds= 10836 archive_expsym_cmds= 10837 compiler_needs_object=no 10838 enable_shared_with_static_runtimes=no 10839 export_dynamic_flag_spec= 10840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10841 hardcode_automatic=no 10842 hardcode_direct=no 10843 hardcode_direct_absolute=no 10844 hardcode_libdir_flag_spec= 10845 hardcode_libdir_separator= 10846 hardcode_minus_L=no 10847 hardcode_shlibpath_var=unsupported 10848 inherit_rpath=no 10849 link_all_deplibs=unknown 10850 module_cmds= 10851 module_expsym_cmds= 10852 old_archive_from_new_cmds= 10853 old_archive_from_expsyms_cmds= 10854 thread_safe_flag_spec= 10855 whole_archive_flag_spec= 10856 # include_expsyms should be a list of space-separated symbols to be *always* 10857 # included in the symbol list 10858 include_expsyms= 10859 # exclude_expsyms can be an extended regexp of symbols to exclude 10860 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10861 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10862 # as well as any symbol that contains 'd'. 10863 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10864 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10865 # platforms (ab)use it in PIC code, but their linkers get confused if 10866 # the symbol is explicitly referenced. Since portable code cannot 10867 # rely on this symbol name, it's probably fine to never include it in 10868 # preloaded symbol tables. 10869 # Exclude shared library initialization/finalization symbols. 10870 extract_expsyms_cmds= 10871 10872 case $host_os in 10873 cygwin* | mingw* | pw32* | cegcc*) 10874 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10875 # When not using gcc, we currently assume that we are using 10876 # Microsoft Visual C++. 10877 if test yes != "$GCC"; then 10878 with_gnu_ld=no 10879 fi 10880 ;; 10881 interix*) 10882 # we just hope/assume this is gcc and not c89 (= MSVC++) 10883 with_gnu_ld=yes 10884 ;; 10885 openbsd* | bitrig*) 10886 with_gnu_ld=no 10887 ;; 10888 linux* | k*bsd*-gnu | gnu*) 10889 link_all_deplibs=no 10890 ;; 10891 esac 10892 10893 ld_shlibs=yes 10894 10895 # On some targets, GNU ld is compatible enough with the native linker 10896 # that we're better off using the native interface for both. 10897 lt_use_gnu_ld_interface=no 10898 if test yes = "$with_gnu_ld"; then 10899 case $host_os in 10900 aix*) 10901 # The AIX port of GNU ld has always aspired to compatibility 10902 # with the native linker. However, as the warning in the GNU ld 10903 # block says, versions before 2.19.5* couldn't really create working 10904 # shared libraries, regardless of the interface used. 10905 case `$LD -v 2>&1` in 10906 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10907 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10908 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10909 *) 10910 lt_use_gnu_ld_interface=yes 10911 ;; 10912 esac 10913 ;; 10914 *) 10915 lt_use_gnu_ld_interface=yes 10916 ;; 10917 esac 10918 fi 10919 10920 if test yes = "$lt_use_gnu_ld_interface"; then 10921 # If archive_cmds runs LD, not CC, wlarc should be empty 10922 wlarc='$wl' 10923 10924 # Set some defaults for GNU ld with shared library support. These 10925 # are reset later if shared libraries are not supported. Putting them 10926 # here allows them to be overridden if necessary. 10927 runpath_var=LD_RUN_PATH 10928 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10929 export_dynamic_flag_spec='$wl--export-dynamic' 10930 # ancient GNU ld didn't support --whole-archive et. al. 10931 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10932 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10933 else 10934 whole_archive_flag_spec= 10935 fi 10936 supports_anon_versioning=no 10937 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10938 *GNU\ gold*) supports_anon_versioning=yes ;; 10939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10942 *\ 2.11.*) ;; # other 2.11 versions 10943 *) supports_anon_versioning=yes ;; 10944 esac 10945 10946 # See if GNU ld supports shared libraries. 10947 case $host_os in 10948 aix[3-9]*) 10949 # On AIX/PPC, the GNU linker is very broken 10950 if test ia64 != "$host_cpu"; then 10951 ld_shlibs=no 10952 cat <<_LT_EOF 1>&2 10953 10954*** Warning: the GNU linker, at least up to release 2.19, is reported 10955*** to be unable to reliably create shared libraries on AIX. 10956*** Therefore, libtool is disabling shared libraries support. If you 10957*** really care for shared libraries, you may want to install binutils 10958*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10959*** You will then need to restart the configuration process. 10960 10961_LT_EOF 10962 fi 10963 ;; 10964 10965 amigaos*) 10966 case $host_cpu in 10967 powerpc) 10968 # see comment about AmigaOS4 .so support 10969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10970 archive_expsym_cmds='' 10971 ;; 10972 m68k) 10973 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)' 10974 hardcode_libdir_flag_spec='-L$libdir' 10975 hardcode_minus_L=yes 10976 ;; 10977 esac 10978 ;; 10979 10980 beos*) 10981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10982 allow_undefined_flag=unsupported 10983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10984 # support --undefined. This deserves some investigation. FIXME 10985 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10986 else 10987 ld_shlibs=no 10988 fi 10989 ;; 10990 10991 cygwin* | mingw* | pw32* | cegcc*) 10992 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10993 # as there is no search path for DLLs. 10994 hardcode_libdir_flag_spec='-L$libdir' 10995 export_dynamic_flag_spec='$wl--export-all-symbols' 10996 allow_undefined_flag=unsupported 10997 always_export_symbols=no 10998 enable_shared_with_static_runtimes=yes 10999 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' 11000 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11001 11002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11004 # If the export-symbols file already is a .def file, use it as 11005 # is; otherwise, prepend EXPORTS... 11006 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11007 cp $export_symbols $output_objdir/$soname.def; 11008 else 11009 echo EXPORTS > $output_objdir/$soname.def; 11010 cat $export_symbols >> $output_objdir/$soname.def; 11011 fi~ 11012 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11013 else 11014 ld_shlibs=no 11015 fi 11016 ;; 11017 11018 haiku*) 11019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11020 link_all_deplibs=yes 11021 ;; 11022 11023 os2*) 11024 hardcode_libdir_flag_spec='-L$libdir' 11025 hardcode_minus_L=yes 11026 allow_undefined_flag=unsupported 11027 shrext_cmds=.dll 11028 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11031 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11032 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11034 emximp -o $lib $output_objdir/$libname.def' 11035 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11036 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11037 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11038 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11039 prefix_cmds="$SED"~ 11040 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11041 prefix_cmds="$prefix_cmds -e 1d"; 11042 fi~ 11043 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11044 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11045 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11046 emximp -o $lib $output_objdir/$libname.def' 11047 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11048 enable_shared_with_static_runtimes=yes 11049 ;; 11050 11051 interix[3-9]*) 11052 hardcode_direct=no 11053 hardcode_shlibpath_var=no 11054 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11055 export_dynamic_flag_spec='$wl-E' 11056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11057 # Instead, shared libraries are loaded at an image base (0x10000000 by 11058 # default) and relocated if they conflict, which is a slow very memory 11059 # consuming and fragmenting process. To avoid this, we pick a random, 11060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11061 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11063 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' 11064 ;; 11065 11066 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11067 tmp_diet=no 11068 if test linux-dietlibc = "$host_os"; then 11069 case $cc_basename in 11070 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11071 esac 11072 fi 11073 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11074 && test no = "$tmp_diet" 11075 then 11076 tmp_addflag=' $pic_flag' 11077 tmp_sharedflag='-shared' 11078 case $cc_basename,$host_cpu in 11079 pgcc*) # Portland Group C compiler 11080 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' 11081 tmp_addflag=' $pic_flag' 11082 ;; 11083 pgf77* | pgf90* | pgf95* | pgfortran*) 11084 # Portland Group f77 and f90 compilers 11085 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' 11086 tmp_addflag=' $pic_flag -Mnomain' ;; 11087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11088 tmp_addflag=' -i_dynamic' ;; 11089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11090 tmp_addflag=' -i_dynamic -nofor_main' ;; 11091 ifc* | ifort*) # Intel Fortran compiler 11092 tmp_addflag=' -nofor_main' ;; 11093 lf95*) # Lahey Fortran 8.1 11094 whole_archive_flag_spec= 11095 tmp_sharedflag='--shared' ;; 11096 nagfor*) # NAGFOR 5.3 11097 tmp_sharedflag='-Wl,-shared' ;; 11098 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11099 tmp_sharedflag='-qmkshrobj' 11100 tmp_addflag= ;; 11101 nvcc*) # Cuda Compiler Driver 2.2 11102 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' 11103 compiler_needs_object=yes 11104 ;; 11105 esac 11106 case `$CC -V 2>&1 | sed 5q` in 11107 *Sun\ C*) # Sun C 5.9 11108 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' 11109 compiler_needs_object=yes 11110 tmp_sharedflag='-G' ;; 11111 *Sun\ F*) # Sun Fortran 8.3 11112 tmp_sharedflag='-G' ;; 11113 esac 11114 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11115 11116 if test yes = "$supports_anon_versioning"; then 11117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11119 echo "local: *; };" >> $output_objdir/$libname.ver~ 11120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11121 fi 11122 11123 case $cc_basename in 11124 tcc*) 11125 export_dynamic_flag_spec='-rdynamic' 11126 ;; 11127 xlf* | bgf* | bgxlf* | mpixlf*) 11128 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11129 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11131 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11132 if test yes = "$supports_anon_versioning"; then 11133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11135 echo "local: *; };" >> $output_objdir/$libname.ver~ 11136 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11137 fi 11138 ;; 11139 esac 11140 else 11141 ld_shlibs=no 11142 fi 11143 ;; 11144 11145 netbsd* | netbsdelf*-gnu) 11146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11147 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11148 wlarc= 11149 else 11150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11151 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11152 fi 11153 ;; 11154 11155 solaris*) 11156 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11157 ld_shlibs=no 11158 cat <<_LT_EOF 1>&2 11159 11160*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11161*** create shared libraries on Solaris systems. Therefore, libtool 11162*** is disabling shared libraries support. We urge you to upgrade GNU 11163*** binutils to release 2.9.1 or newer. Another option is to modify 11164*** your PATH or compiler configuration so that the native linker is 11165*** used, and then restart. 11166 11167_LT_EOF 11168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11171 else 11172 ld_shlibs=no 11173 fi 11174 ;; 11175 11176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11177 case `$LD -v 2>&1` in 11178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11179 ld_shlibs=no 11180 cat <<_LT_EOF 1>&2 11181 11182*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11183*** reliably create shared libraries on SCO systems. Therefore, libtool 11184*** is disabling shared libraries support. We urge you to upgrade GNU 11185*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11186*** your PATH or compiler configuration so that the native linker is 11187*** used, and then restart. 11188 11189_LT_EOF 11190 ;; 11191 *) 11192 # For security reasons, it is highly recommended that you always 11193 # use absolute paths for naming shared libraries, and exclude the 11194 # DT_RUNPATH tag from executables and libraries. But doing so 11195 # requires that you compile everything twice, which is a pain. 11196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11200 else 11201 ld_shlibs=no 11202 fi 11203 ;; 11204 esac 11205 ;; 11206 11207 sunos4*) 11208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11209 wlarc= 11210 hardcode_direct=yes 11211 hardcode_shlibpath_var=no 11212 ;; 11213 11214 *) 11215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11217 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11218 else 11219 ld_shlibs=no 11220 fi 11221 ;; 11222 esac 11223 11224 if test no = "$ld_shlibs"; then 11225 runpath_var= 11226 hardcode_libdir_flag_spec= 11227 export_dynamic_flag_spec= 11228 whole_archive_flag_spec= 11229 fi 11230 else 11231 # PORTME fill in a description of your system's linker (not GNU ld) 11232 case $host_os in 11233 aix3*) 11234 allow_undefined_flag=unsupported 11235 always_export_symbols=yes 11236 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' 11237 # Note: this linker hardcodes the directories in LIBPATH if there 11238 # are no directories specified by -L. 11239 hardcode_minus_L=yes 11240 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11241 # Neither direct hardcoding nor static linking is supported with a 11242 # broken collect2. 11243 hardcode_direct=unsupported 11244 fi 11245 ;; 11246 11247 aix[4-9]*) 11248 if test ia64 = "$host_cpu"; then 11249 # On IA64, the linker does run time linking by default, so we don't 11250 # have to do anything special. 11251 aix_use_runtimelinking=no 11252 exp_sym_flag='-Bexport' 11253 no_entry_flag= 11254 else 11255 # If we're using GNU nm, then we don't want the "-C" option. 11256 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11257 # Without the "-l" option, or with the "-B" option, AIX nm treats 11258 # weak defined symbols like other global defined symbols, whereas 11259 # GNU nm marks them as "W". 11260 # While the 'weak' keyword is ignored in the Export File, we need 11261 # it in the Import File for the 'aix-soname' feature, so we have 11262 # to replace the "-B" option with "-P" for AIX nm. 11263 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11264 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' 11265 else 11266 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' 11267 fi 11268 aix_use_runtimelinking=no 11269 11270 # Test if we are trying to use run time linking or normal 11271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11272 # have runtime linking enabled, and use it for executables. 11273 # For shared libraries, we enable/disable runtime linking 11274 # depending on the kind of the shared library created - 11275 # when "with_aix_soname,aix_use_runtimelinking" is: 11276 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11277 # "aix,yes" lib.so shared, rtl:yes, for executables 11278 # lib.a static archive 11279 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11280 # lib.a(lib.so.V) shared, rtl:no, for executables 11281 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11282 # lib.a(lib.so.V) shared, rtl:no 11283 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11284 # lib.a static archive 11285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11286 for ld_flag in $LDFLAGS; do 11287 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11288 aix_use_runtimelinking=yes 11289 break 11290 fi 11291 done 11292 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11293 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11294 # so we don't have lib.a shared libs to link our executables. 11295 # We have to force runtime linking in this case. 11296 aix_use_runtimelinking=yes 11297 LDFLAGS="$LDFLAGS -Wl,-brtl" 11298 fi 11299 ;; 11300 esac 11301 11302 exp_sym_flag='-bexport' 11303 no_entry_flag='-bnoentry' 11304 fi 11305 11306 # When large executables or shared objects are built, AIX ld can 11307 # have problems creating the table of contents. If linking a library 11308 # or program results in "error TOC overflow" add -mminimal-toc to 11309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11311 11312 archive_cmds='' 11313 hardcode_direct=yes 11314 hardcode_direct_absolute=yes 11315 hardcode_libdir_separator=':' 11316 link_all_deplibs=yes 11317 file_list_spec='$wl-f,' 11318 case $with_aix_soname,$aix_use_runtimelinking in 11319 aix,*) ;; # traditional, no import file 11320 svr4,* | *,yes) # use import file 11321 # The Import File defines what to hardcode. 11322 hardcode_direct=no 11323 hardcode_direct_absolute=no 11324 ;; 11325 esac 11326 11327 if test yes = "$GCC"; then 11328 case $host_os in aix4.[012]|aix4.[012].*) 11329 # We only want to do this on AIX 4.2 and lower, the check 11330 # below for broken collect2 doesn't work under 4.3+ 11331 collect2name=`$CC -print-prog-name=collect2` 11332 if test -f "$collect2name" && 11333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11334 then 11335 # We have reworked collect2 11336 : 11337 else 11338 # We have old collect2 11339 hardcode_direct=unsupported 11340 # It fails to find uninstalled libraries when the uninstalled 11341 # path is not listed in the libpath. Setting hardcode_minus_L 11342 # to unsupported forces relinking 11343 hardcode_minus_L=yes 11344 hardcode_libdir_flag_spec='-L$libdir' 11345 hardcode_libdir_separator= 11346 fi 11347 ;; 11348 esac 11349 shared_flag='-shared' 11350 if test yes = "$aix_use_runtimelinking"; then 11351 shared_flag="$shared_flag "'$wl-G' 11352 fi 11353 # Need to ensure runtime linking is disabled for the traditional 11354 # shared library, or the linker may eventually find shared libraries 11355 # /with/ Import File - we do not want to mix them. 11356 shared_flag_aix='-shared' 11357 shared_flag_svr4='-shared $wl-G' 11358 else 11359 # not using gcc 11360 if test ia64 = "$host_cpu"; then 11361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11362 # chokes on -Wl,-G. The following line is correct: 11363 shared_flag='-G' 11364 else 11365 if test yes = "$aix_use_runtimelinking"; then 11366 shared_flag='$wl-G' 11367 else 11368 shared_flag='$wl-bM:SRE' 11369 fi 11370 shared_flag_aix='$wl-bM:SRE' 11371 shared_flag_svr4='$wl-G' 11372 fi 11373 fi 11374 11375 export_dynamic_flag_spec='$wl-bexpall' 11376 # It seems that -bexpall does not export symbols beginning with 11377 # underscore (_), so it is better to generate a list of symbols to export. 11378 always_export_symbols=yes 11379 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11380 # Warning - without using the other runtime loading flags (-brtl), 11381 # -berok will link without error, but may produce a broken library. 11382 allow_undefined_flag='-berok' 11383 # Determine the default libpath from the value encoded in an 11384 # empty executable. 11385 if test set = "${lt_cv_aix_libpath+set}"; then 11386 aix_libpath=$lt_cv_aix_libpath 11387else 11388 if ${lt_cv_aix_libpath_+:} false; then : 11389 $as_echo_n "(cached) " >&6 11390else 11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11392/* end confdefs.h. */ 11393 11394int 11395main () 11396{ 11397 11398 ; 11399 return 0; 11400} 11401_ACEOF 11402if ac_fn_c_try_link "$LINENO"; then : 11403 11404 lt_aix_libpath_sed=' 11405 /Import File Strings/,/^$/ { 11406 /^0/ { 11407 s/^0 *\([^ ]*\) *$/\1/ 11408 p 11409 } 11410 }' 11411 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11412 # Check for a 64-bit object if we didn't find anything. 11413 if test -z "$lt_cv_aix_libpath_"; then 11414 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11415 fi 11416fi 11417rm -f core conftest.err conftest.$ac_objext \ 11418 conftest$ac_exeext conftest.$ac_ext 11419 if test -z "$lt_cv_aix_libpath_"; then 11420 lt_cv_aix_libpath_=/usr/lib:/lib 11421 fi 11422 11423fi 11424 11425 aix_libpath=$lt_cv_aix_libpath_ 11426fi 11427 11428 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11429 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 11430 else 11431 if test ia64 = "$host_cpu"; then 11432 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11433 allow_undefined_flag="-z nodefs" 11434 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" 11435 else 11436 # Determine the default libpath from the value encoded in an 11437 # empty executable. 11438 if test set = "${lt_cv_aix_libpath+set}"; then 11439 aix_libpath=$lt_cv_aix_libpath 11440else 11441 if ${lt_cv_aix_libpath_+:} false; then : 11442 $as_echo_n "(cached) " >&6 11443else 11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11445/* end confdefs.h. */ 11446 11447int 11448main () 11449{ 11450 11451 ; 11452 return 0; 11453} 11454_ACEOF 11455if ac_fn_c_try_link "$LINENO"; then : 11456 11457 lt_aix_libpath_sed=' 11458 /Import File Strings/,/^$/ { 11459 /^0/ { 11460 s/^0 *\([^ ]*\) *$/\1/ 11461 p 11462 } 11463 }' 11464 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11465 # Check for a 64-bit object if we didn't find anything. 11466 if test -z "$lt_cv_aix_libpath_"; then 11467 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11468 fi 11469fi 11470rm -f core conftest.err conftest.$ac_objext \ 11471 conftest$ac_exeext conftest.$ac_ext 11472 if test -z "$lt_cv_aix_libpath_"; then 11473 lt_cv_aix_libpath_=/usr/lib:/lib 11474 fi 11475 11476fi 11477 11478 aix_libpath=$lt_cv_aix_libpath_ 11479fi 11480 11481 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11482 # Warning - without using the other run time loading flags, 11483 # -berok will link without error, but may produce a broken library. 11484 no_undefined_flag=' $wl-bernotok' 11485 allow_undefined_flag=' $wl-berok' 11486 if test yes = "$with_gnu_ld"; then 11487 # We only use this code for GNU lds that support --whole-archive. 11488 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11489 else 11490 # Exported symbols can be pulled into shared objects from archives 11491 whole_archive_flag_spec='$convenience' 11492 fi 11493 archive_cmds_need_lc=yes 11494 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11495 # -brtl affects multiple linker settings, -berok does not and is overridden later 11496 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11497 if test svr4 != "$with_aix_soname"; then 11498 # This is similar to how AIX traditionally builds its shared libraries. 11499 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' 11500 fi 11501 if test aix != "$with_aix_soname"; then 11502 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' 11503 else 11504 # used by -dlpreopen to get the symbols 11505 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11506 fi 11507 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11508 fi 11509 fi 11510 ;; 11511 11512 amigaos*) 11513 case $host_cpu in 11514 powerpc) 11515 # see comment about AmigaOS4 .so support 11516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11517 archive_expsym_cmds='' 11518 ;; 11519 m68k) 11520 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)' 11521 hardcode_libdir_flag_spec='-L$libdir' 11522 hardcode_minus_L=yes 11523 ;; 11524 esac 11525 ;; 11526 11527 bsdi[45]*) 11528 export_dynamic_flag_spec=-rdynamic 11529 ;; 11530 11531 cygwin* | mingw* | pw32* | cegcc*) 11532 # When not using gcc, we currently assume that we are using 11533 # Microsoft Visual C++. 11534 # hardcode_libdir_flag_spec is actually meaningless, as there is 11535 # no search path for DLLs. 11536 case $cc_basename in 11537 cl*) 11538 # Native MSVC 11539 hardcode_libdir_flag_spec=' ' 11540 allow_undefined_flag=unsupported 11541 always_export_symbols=yes 11542 file_list_spec='@' 11543 # Tell ltmain to make .lib files, not .a files. 11544 libext=lib 11545 # Tell ltmain to make .dll files, not .so files. 11546 shrext_cmds=.dll 11547 # FIXME: Setting linknames here is a bad hack. 11548 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11549 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11550 cp "$export_symbols" "$output_objdir/$soname.def"; 11551 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11552 else 11553 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11554 fi~ 11555 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11556 linknames=' 11557 # The linker will not automatically build a static lib if we build a DLL. 11558 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11559 enable_shared_with_static_runtimes=yes 11560 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11562 # Don't use ranlib 11563 old_postinstall_cmds='chmod 644 $oldlib' 11564 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11565 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11566 case $lt_outputfile in 11567 *.exe|*.EXE) ;; 11568 *) 11569 lt_outputfile=$lt_outputfile.exe 11570 lt_tool_outputfile=$lt_tool_outputfile.exe 11571 ;; 11572 esac~ 11573 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11574 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11575 $RM "$lt_outputfile.manifest"; 11576 fi' 11577 ;; 11578 *) 11579 # Assume MSVC wrapper 11580 hardcode_libdir_flag_spec=' ' 11581 allow_undefined_flag=unsupported 11582 # Tell ltmain to make .lib files, not .a files. 11583 libext=lib 11584 # Tell ltmain to make .dll files, not .so files. 11585 shrext_cmds=.dll 11586 # FIXME: Setting linknames here is a bad hack. 11587 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11588 # The linker will automatically build a .lib file if we build a DLL. 11589 old_archive_from_new_cmds='true' 11590 # FIXME: Should let the user specify the lib program. 11591 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11592 enable_shared_with_static_runtimes=yes 11593 ;; 11594 esac 11595 ;; 11596 11597 darwin* | rhapsody*) 11598 11599 11600 archive_cmds_need_lc=no 11601 hardcode_direct=no 11602 hardcode_automatic=yes 11603 hardcode_shlibpath_var=unsupported 11604 if test yes = "$lt_cv_ld_force_load"; then 11605 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\"`' 11606 11607 else 11608 whole_archive_flag_spec='' 11609 fi 11610 link_all_deplibs=yes 11611 allow_undefined_flag=$_lt_dar_allow_undefined 11612 case $cc_basename in 11613 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11614 *) _lt_dar_can_shared=$GCC ;; 11615 esac 11616 if test yes = "$_lt_dar_can_shared"; then 11617 output_verbose_link_cmd=func_echo_all 11618 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11619 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11620 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" 11621 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" 11622 11623 else 11624 ld_shlibs=no 11625 fi 11626 11627 ;; 11628 11629 dgux*) 11630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11631 hardcode_libdir_flag_spec='-L$libdir' 11632 hardcode_shlibpath_var=no 11633 ;; 11634 11635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11636 # support. Future versions do this automatically, but an explicit c++rt0.o 11637 # does not break anything, and helps significantly (at the cost of a little 11638 # extra space). 11639 freebsd2.2*) 11640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11641 hardcode_libdir_flag_spec='-R$libdir' 11642 hardcode_direct=yes 11643 hardcode_shlibpath_var=no 11644 ;; 11645 11646 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11647 freebsd2.*) 11648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11649 hardcode_direct=yes 11650 hardcode_minus_L=yes 11651 hardcode_shlibpath_var=no 11652 ;; 11653 11654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11655 freebsd* | dragonfly*) 11656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11657 hardcode_libdir_flag_spec='-R$libdir' 11658 hardcode_direct=yes 11659 hardcode_shlibpath_var=no 11660 ;; 11661 11662 hpux9*) 11663 if test yes = "$GCC"; then 11664 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' 11665 else 11666 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' 11667 fi 11668 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11669 hardcode_libdir_separator=: 11670 hardcode_direct=yes 11671 11672 # hardcode_minus_L: Not really in the search PATH, 11673 # but as the default location of the library. 11674 hardcode_minus_L=yes 11675 export_dynamic_flag_spec='$wl-E' 11676 ;; 11677 11678 hpux10*) 11679 if test yes,no = "$GCC,$with_gnu_ld"; then 11680 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11681 else 11682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11683 fi 11684 if test no = "$with_gnu_ld"; then 11685 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11686 hardcode_libdir_separator=: 11687 hardcode_direct=yes 11688 hardcode_direct_absolute=yes 11689 export_dynamic_flag_spec='$wl-E' 11690 # hardcode_minus_L: Not really in the search PATH, 11691 # but as the default location of the library. 11692 hardcode_minus_L=yes 11693 fi 11694 ;; 11695 11696 hpux11*) 11697 if test yes,no = "$GCC,$with_gnu_ld"; then 11698 case $host_cpu in 11699 hppa*64*) 11700 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11701 ;; 11702 ia64*) 11703 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11704 ;; 11705 *) 11706 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11707 ;; 11708 esac 11709 else 11710 case $host_cpu in 11711 hppa*64*) 11712 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11713 ;; 11714 ia64*) 11715 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11716 ;; 11717 *) 11718 11719 # Older versions of the 11.00 compiler do not understand -b yet 11720 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11722$as_echo_n "checking if $CC understands -b... " >&6; } 11723if ${lt_cv_prog_compiler__b+:} false; then : 11724 $as_echo_n "(cached) " >&6 11725else 11726 lt_cv_prog_compiler__b=no 11727 save_LDFLAGS=$LDFLAGS 11728 LDFLAGS="$LDFLAGS -b" 11729 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11731 # The linker can only warn and ignore the option if not recognized 11732 # So say no if there are warnings 11733 if test -s conftest.err; then 11734 # Append any errors to the config.log. 11735 cat conftest.err 1>&5 11736 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11738 if diff conftest.exp conftest.er2 >/dev/null; then 11739 lt_cv_prog_compiler__b=yes 11740 fi 11741 else 11742 lt_cv_prog_compiler__b=yes 11743 fi 11744 fi 11745 $RM -r conftest* 11746 LDFLAGS=$save_LDFLAGS 11747 11748fi 11749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11750$as_echo "$lt_cv_prog_compiler__b" >&6; } 11751 11752if test yes = "$lt_cv_prog_compiler__b"; then 11753 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11754else 11755 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11756fi 11757 11758 ;; 11759 esac 11760 fi 11761 if test no = "$with_gnu_ld"; then 11762 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11763 hardcode_libdir_separator=: 11764 11765 case $host_cpu in 11766 hppa*64*|ia64*) 11767 hardcode_direct=no 11768 hardcode_shlibpath_var=no 11769 ;; 11770 *) 11771 hardcode_direct=yes 11772 hardcode_direct_absolute=yes 11773 export_dynamic_flag_spec='$wl-E' 11774 11775 # hardcode_minus_L: Not really in the search PATH, 11776 # but as the default location of the library. 11777 hardcode_minus_L=yes 11778 ;; 11779 esac 11780 fi 11781 ;; 11782 11783 irix5* | irix6* | nonstopux*) 11784 if test yes = "$GCC"; then 11785 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' 11786 # Try to use the -exported_symbol ld option, if it does not 11787 # work, assume that -exports_file does not work either and 11788 # implicitly export all symbols. 11789 # This should be the same for all languages, so no per-tag cache variable. 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11791$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11792if ${lt_cv_irix_exported_symbol+:} false; then : 11793 $as_echo_n "(cached) " >&6 11794else 11795 save_LDFLAGS=$LDFLAGS 11796 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799int foo (void) { return 0; } 11800_ACEOF 11801if ac_fn_c_try_link "$LINENO"; then : 11802 lt_cv_irix_exported_symbol=yes 11803else 11804 lt_cv_irix_exported_symbol=no 11805fi 11806rm -f core conftest.err conftest.$ac_objext \ 11807 conftest$ac_exeext conftest.$ac_ext 11808 LDFLAGS=$save_LDFLAGS 11809fi 11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11811$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11812 if test yes = "$lt_cv_irix_exported_symbol"; then 11813 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' 11814 fi 11815 link_all_deplibs=no 11816 else 11817 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' 11818 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' 11819 fi 11820 archive_cmds_need_lc='no' 11821 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11822 hardcode_libdir_separator=: 11823 inherit_rpath=yes 11824 link_all_deplibs=yes 11825 ;; 11826 11827 linux*) 11828 case $cc_basename in 11829 tcc*) 11830 # Fabrice Bellard et al's Tiny C Compiler 11831 ld_shlibs=yes 11832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11833 ;; 11834 esac 11835 ;; 11836 11837 netbsd* | netbsdelf*-gnu) 11838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11840 else 11841 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11842 fi 11843 hardcode_libdir_flag_spec='-R$libdir' 11844 hardcode_direct=yes 11845 hardcode_shlibpath_var=no 11846 ;; 11847 11848 newsos6) 11849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11850 hardcode_direct=yes 11851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11852 hardcode_libdir_separator=: 11853 hardcode_shlibpath_var=no 11854 ;; 11855 11856 *nto* | *qnx*) 11857 ;; 11858 11859 openbsd* | bitrig*) 11860 if test -f /usr/libexec/ld.so; then 11861 hardcode_direct=yes 11862 hardcode_shlibpath_var=no 11863 hardcode_direct_absolute=yes 11864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11866 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11867 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11868 export_dynamic_flag_spec='$wl-E' 11869 else 11870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11871 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11872 fi 11873 else 11874 ld_shlibs=no 11875 fi 11876 ;; 11877 11878 os2*) 11879 hardcode_libdir_flag_spec='-L$libdir' 11880 hardcode_minus_L=yes 11881 allow_undefined_flag=unsupported 11882 shrext_cmds=.dll 11883 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11884 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11885 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11886 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11887 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11888 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11889 emximp -o $lib $output_objdir/$libname.def' 11890 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11891 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11892 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11893 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11894 prefix_cmds="$SED"~ 11895 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11896 prefix_cmds="$prefix_cmds -e 1d"; 11897 fi~ 11898 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11899 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11900 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11901 emximp -o $lib $output_objdir/$libname.def' 11902 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11903 enable_shared_with_static_runtimes=yes 11904 ;; 11905 11906 osf3*) 11907 if test yes = "$GCC"; then 11908 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11909 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' 11910 else 11911 allow_undefined_flag=' -expect_unresolved \*' 11912 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' 11913 fi 11914 archive_cmds_need_lc='no' 11915 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11916 hardcode_libdir_separator=: 11917 ;; 11918 11919 osf4* | osf5*) # as osf3* with the addition of -msym flag 11920 if test yes = "$GCC"; then 11921 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11922 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' 11923 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11924 else 11925 allow_undefined_flag=' -expect_unresolved \*' 11926 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' 11927 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~ 11928 $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' 11929 11930 # Both c and cxx compiler support -rpath directly 11931 hardcode_libdir_flag_spec='-rpath $libdir' 11932 fi 11933 archive_cmds_need_lc='no' 11934 hardcode_libdir_separator=: 11935 ;; 11936 11937 solaris*) 11938 no_undefined_flag=' -z defs' 11939 if test yes = "$GCC"; then 11940 wlarc='$wl' 11941 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11943 $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' 11944 else 11945 case `$CC -V 2>&1` in 11946 *"Compilers 5.0"*) 11947 wlarc='' 11948 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11950 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11951 ;; 11952 *) 11953 wlarc='$wl' 11954 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11956 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11957 ;; 11958 esac 11959 fi 11960 hardcode_libdir_flag_spec='-R$libdir' 11961 hardcode_shlibpath_var=no 11962 case $host_os in 11963 solaris2.[0-5] | solaris2.[0-5].*) ;; 11964 *) 11965 # The compiler driver will combine and reorder linker options, 11966 # but understands '-z linker_flag'. GCC discards it without '$wl', 11967 # but is careful enough not to reorder. 11968 # Supported since Solaris 2.6 (maybe 2.5.1?) 11969 if test yes = "$GCC"; then 11970 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11971 else 11972 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11973 fi 11974 ;; 11975 esac 11976 link_all_deplibs=yes 11977 ;; 11978 11979 sunos4*) 11980 if test sequent = "$host_vendor"; then 11981 # Use $CC to link under sequent, because it throws in some extra .o 11982 # files that make .init and .fini sections work. 11983 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11984 else 11985 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11986 fi 11987 hardcode_libdir_flag_spec='-L$libdir' 11988 hardcode_direct=yes 11989 hardcode_minus_L=yes 11990 hardcode_shlibpath_var=no 11991 ;; 11992 11993 sysv4) 11994 case $host_vendor in 11995 sni) 11996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11997 hardcode_direct=yes # is this really true??? 11998 ;; 11999 siemens) 12000 ## LD is ld it makes a PLAMLIB 12001 ## CC just makes a GrossModule. 12002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12003 reload_cmds='$CC -r -o $output$reload_objs' 12004 hardcode_direct=no 12005 ;; 12006 motorola) 12007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12009 ;; 12010 esac 12011 runpath_var='LD_RUN_PATH' 12012 hardcode_shlibpath_var=no 12013 ;; 12014 12015 sysv4.3*) 12016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12017 hardcode_shlibpath_var=no 12018 export_dynamic_flag_spec='-Bexport' 12019 ;; 12020 12021 sysv4*MP*) 12022 if test -d /usr/nec; then 12023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12024 hardcode_shlibpath_var=no 12025 runpath_var=LD_RUN_PATH 12026 hardcode_runpath_var=yes 12027 ld_shlibs=yes 12028 fi 12029 ;; 12030 12031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12032 no_undefined_flag='$wl-z,text' 12033 archive_cmds_need_lc=no 12034 hardcode_shlibpath_var=no 12035 runpath_var='LD_RUN_PATH' 12036 12037 if test yes = "$GCC"; then 12038 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12039 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12040 else 12041 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12042 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12043 fi 12044 ;; 12045 12046 sysv5* | sco3.2v5* | sco5v6*) 12047 # Note: We CANNOT use -z defs as we might desire, because we do not 12048 # link with -lc, and that would cause any symbols used from libc to 12049 # always be unresolved, which means just about no library would 12050 # ever link correctly. If we're not using GNU ld we use -z text 12051 # though, which does catch some bad symbols but isn't as heavy-handed 12052 # as -z defs. 12053 no_undefined_flag='$wl-z,text' 12054 allow_undefined_flag='$wl-z,nodefs' 12055 archive_cmds_need_lc=no 12056 hardcode_shlibpath_var=no 12057 hardcode_libdir_flag_spec='$wl-R,$libdir' 12058 hardcode_libdir_separator=':' 12059 link_all_deplibs=yes 12060 export_dynamic_flag_spec='$wl-Bexport' 12061 runpath_var='LD_RUN_PATH' 12062 12063 if test yes = "$GCC"; then 12064 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12065 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12066 else 12067 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12068 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12069 fi 12070 ;; 12071 12072 uts4*) 12073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12074 hardcode_libdir_flag_spec='-L$libdir' 12075 hardcode_shlibpath_var=no 12076 ;; 12077 12078 *) 12079 ld_shlibs=no 12080 ;; 12081 esac 12082 12083 if test sni = "$host_vendor"; then 12084 case $host in 12085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12086 export_dynamic_flag_spec='$wl-Blargedynsym' 12087 ;; 12088 esac 12089 fi 12090 fi 12091 12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12093$as_echo "$ld_shlibs" >&6; } 12094test no = "$ld_shlibs" && can_build_shared=no 12095 12096with_gnu_ld=$with_gnu_ld 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112# 12113# Do we need to explicitly link libc? 12114# 12115case "x$archive_cmds_need_lc" in 12116x|xyes) 12117 # Assume -lc should be added 12118 archive_cmds_need_lc=yes 12119 12120 if test yes,yes = "$GCC,$enable_shared"; then 12121 case $archive_cmds in 12122 *'~'*) 12123 # FIXME: we may have to deal with multi-command sequences. 12124 ;; 12125 '$CC '*) 12126 # Test whether the compiler implicitly links with -lc since on some 12127 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12128 # to ld, don't add -lc before -lgcc. 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12130$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12131if ${lt_cv_archive_cmds_need_lc+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133else 12134 $RM conftest* 12135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12136 12137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12138 (eval $ac_compile) 2>&5 12139 ac_status=$? 12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12141 test $ac_status = 0; } 2>conftest.err; then 12142 soname=conftest 12143 lib=conftest 12144 libobjs=conftest.$ac_objext 12145 deplibs= 12146 wl=$lt_prog_compiler_wl 12147 pic_flag=$lt_prog_compiler_pic 12148 compiler_flags=-v 12149 linker_flags=-v 12150 verstring= 12151 output_objdir=. 12152 libname=conftest 12153 lt_save_allow_undefined_flag=$allow_undefined_flag 12154 allow_undefined_flag= 12155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12157 ac_status=$? 12158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12159 test $ac_status = 0; } 12160 then 12161 lt_cv_archive_cmds_need_lc=no 12162 else 12163 lt_cv_archive_cmds_need_lc=yes 12164 fi 12165 allow_undefined_flag=$lt_save_allow_undefined_flag 12166 else 12167 cat conftest.err 1>&5 12168 fi 12169 $RM conftest* 12170 12171fi 12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12173$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12174 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12175 ;; 12176 esac 12177 fi 12178 ;; 12179esac 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12333$as_echo_n "checking dynamic linker characteristics... " >&6; } 12334 12335if test yes = "$GCC"; then 12336 case $host_os in 12337 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12338 *) lt_awk_arg='/^libraries:/' ;; 12339 esac 12340 case $host_os in 12341 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12342 *) lt_sed_strip_eq='s|=/|/|g' ;; 12343 esac 12344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12345 case $lt_search_path_spec in 12346 *\;*) 12347 # if the path contains ";" then we assume it to be the separator 12348 # otherwise default to the standard path separator (i.e. ":") - it is 12349 # assumed that no part of a normal pathname contains ";" but that should 12350 # okay in the real world where ";" in dirpaths is itself problematic. 12351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12352 ;; 12353 *) 12354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12355 ;; 12356 esac 12357 # Ok, now we have the path, separated by spaces, we can step through it 12358 # and add multilib dir if necessary... 12359 lt_tmp_lt_search_path_spec= 12360 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12361 # ...but if some path component already ends with the multilib dir we assume 12362 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12363 case "$lt_multi_os_dir; $lt_search_path_spec " in 12364 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12365 lt_multi_os_dir= 12366 ;; 12367 esac 12368 for lt_sys_path in $lt_search_path_spec; do 12369 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12371 elif test -n "$lt_multi_os_dir"; then 12372 test -d "$lt_sys_path" && \ 12373 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12374 fi 12375 done 12376 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12377BEGIN {RS = " "; FS = "/|\n";} { 12378 lt_foo = ""; 12379 lt_count = 0; 12380 for (lt_i = NF; lt_i > 0; lt_i--) { 12381 if ($lt_i != "" && $lt_i != ".") { 12382 if ($lt_i == "..") { 12383 lt_count++; 12384 } else { 12385 if (lt_count == 0) { 12386 lt_foo = "/" $lt_i lt_foo; 12387 } else { 12388 lt_count--; 12389 } 12390 } 12391 } 12392 } 12393 if (lt_foo != "") { lt_freq[lt_foo]++; } 12394 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12395}'` 12396 # AWK program above erroneously prepends '/' to C:/dos/paths 12397 # for these hosts. 12398 case $host_os in 12399 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12400 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12401 esac 12402 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12403else 12404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12405fi 12406library_names_spec= 12407libname_spec='lib$name' 12408soname_spec= 12409shrext_cmds=.so 12410postinstall_cmds= 12411postuninstall_cmds= 12412finish_cmds= 12413finish_eval= 12414shlibpath_var= 12415shlibpath_overrides_runpath=unknown 12416version_type=none 12417dynamic_linker="$host_os ld.so" 12418sys_lib_dlsearch_path_spec="/lib /usr/lib" 12419need_lib_prefix=unknown 12420hardcode_into_libs=no 12421 12422# when you set need_version to no, make sure it does not cause -set_version 12423# flags to be left without arguments 12424need_version=unknown 12425 12426 12427 12428case $host_os in 12429aix3*) 12430 version_type=linux # correct to gnu/linux during the next big refactor 12431 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12432 shlibpath_var=LIBPATH 12433 12434 # AIX 3 has no versioning support, so we append a major version to the name. 12435 soname_spec='$libname$release$shared_ext$major' 12436 ;; 12437 12438aix[4-9]*) 12439 version_type=linux # correct to gnu/linux during the next big refactor 12440 need_lib_prefix=no 12441 need_version=no 12442 hardcode_into_libs=yes 12443 if test ia64 = "$host_cpu"; then 12444 # AIX 5 supports IA64 12445 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12446 shlibpath_var=LD_LIBRARY_PATH 12447 else 12448 # With GCC up to 2.95.x, collect2 would create an import file 12449 # for dependence libraries. The import file would start with 12450 # the line '#! .'. This would cause the generated library to 12451 # depend on '.', always an invalid library. This was fixed in 12452 # development snapshots of GCC prior to 3.0. 12453 case $host_os in 12454 aix4 | aix4.[01] | aix4.[01].*) 12455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12456 echo ' yes ' 12457 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12458 : 12459 else 12460 can_build_shared=no 12461 fi 12462 ;; 12463 esac 12464 # Using Import Files as archive members, it is possible to support 12465 # filename-based versioning of shared library archives on AIX. While 12466 # this would work for both with and without runtime linking, it will 12467 # prevent static linking of such archives. So we do filename-based 12468 # shared library versioning with .so extension only, which is used 12469 # when both runtime linking and shared linking is enabled. 12470 # Unfortunately, runtime linking may impact performance, so we do 12471 # not want this to be the default eventually. Also, we use the 12472 # versioned .so libs for executables only if there is the -brtl 12473 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12474 # To allow for filename-based versioning support, we need to create 12475 # libNAME.so.V as an archive file, containing: 12476 # *) an Import File, referring to the versioned filename of the 12477 # archive as well as the shared archive member, telling the 12478 # bitwidth (32 or 64) of that shared object, and providing the 12479 # list of exported symbols of that shared object, eventually 12480 # decorated with the 'weak' keyword 12481 # *) the shared object with the F_LOADONLY flag set, to really avoid 12482 # it being seen by the linker. 12483 # At run time we better use the real file rather than another symlink, 12484 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12485 12486 case $with_aix_soname,$aix_use_runtimelinking in 12487 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12488 # soname into executable. Probably we can add versioning support to 12489 # collect2, so additional links can be useful in future. 12490 aix,yes) # traditional libtool 12491 dynamic_linker='AIX unversionable lib.so' 12492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12493 # instead of lib<name>.a to let people know that these are not 12494 # typical AIX shared libraries. 12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12496 ;; 12497 aix,no) # traditional AIX only 12498 dynamic_linker='AIX lib.a(lib.so.V)' 12499 # We preserve .a as extension for shared libraries through AIX4.2 12500 # and later when we are not doing run time linking. 12501 library_names_spec='$libname$release.a $libname.a' 12502 soname_spec='$libname$release$shared_ext$major' 12503 ;; 12504 svr4,*) # full svr4 only 12505 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12506 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12507 # We do not specify a path in Import Files, so LIBPATH fires. 12508 shlibpath_overrides_runpath=yes 12509 ;; 12510 *,yes) # both, prefer svr4 12511 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12512 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12513 # unpreferred sharedlib libNAME.a needs extra handling 12514 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"' 12515 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"' 12516 # We do not specify a path in Import Files, so LIBPATH fires. 12517 shlibpath_overrides_runpath=yes 12518 ;; 12519 *,no) # both, prefer aix 12520 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12521 library_names_spec='$libname$release.a $libname.a' 12522 soname_spec='$libname$release$shared_ext$major' 12523 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12524 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)' 12525 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"' 12526 ;; 12527 esac 12528 shlibpath_var=LIBPATH 12529 fi 12530 ;; 12531 12532amigaos*) 12533 case $host_cpu in 12534 powerpc) 12535 # Since July 2007 AmigaOS4 officially supports .so libraries. 12536 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12538 ;; 12539 m68k) 12540 library_names_spec='$libname.ixlibrary $libname.a' 12541 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12542 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' 12543 ;; 12544 esac 12545 ;; 12546 12547beos*) 12548 library_names_spec='$libname$shared_ext' 12549 dynamic_linker="$host_os ld.so" 12550 shlibpath_var=LIBRARY_PATH 12551 ;; 12552 12553bsdi[45]*) 12554 version_type=linux # correct to gnu/linux during the next big refactor 12555 need_version=no 12556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12557 soname_spec='$libname$release$shared_ext$major' 12558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12559 shlibpath_var=LD_LIBRARY_PATH 12560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12562 # the default ld.so.conf also contains /usr/contrib/lib and 12563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12564 # libtool to hard-code these into programs 12565 ;; 12566 12567cygwin* | mingw* | pw32* | cegcc*) 12568 version_type=windows 12569 shrext_cmds=.dll 12570 need_version=no 12571 need_lib_prefix=no 12572 12573 case $GCC,$cc_basename in 12574 yes,*) 12575 # gcc 12576 library_names_spec='$libname.dll.a' 12577 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12578 postinstall_cmds='base_file=`basename \$file`~ 12579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12580 dldir=$destdir/`dirname \$dlpath`~ 12581 test -d \$dldir || mkdir -p \$dldir~ 12582 $install_prog $dir/$dlname \$dldir/$dlname~ 12583 chmod a+x \$dldir/$dlname~ 12584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12586 fi' 12587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12588 dlpath=$dir/\$dldll~ 12589 $RM \$dlpath' 12590 shlibpath_overrides_runpath=yes 12591 12592 case $host_os in 12593 cygwin*) 12594 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12595 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12596 12597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12598 ;; 12599 mingw* | cegcc*) 12600 # MinGW DLLs use traditional 'lib' prefix 12601 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12602 ;; 12603 pw32*) 12604 # pw32 DLLs use 'pw' prefix rather than 'lib' 12605 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12606 ;; 12607 esac 12608 dynamic_linker='Win32 ld.exe' 12609 ;; 12610 12611 *,cl*) 12612 # Native MSVC 12613 libname_spec='$name' 12614 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12615 library_names_spec='$libname.dll.lib' 12616 12617 case $build_os in 12618 mingw*) 12619 sys_lib_search_path_spec= 12620 lt_save_ifs=$IFS 12621 IFS=';' 12622 for lt_path in $LIB 12623 do 12624 IFS=$lt_save_ifs 12625 # Let DOS variable expansion print the short 8.3 style file name. 12626 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12627 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12628 done 12629 IFS=$lt_save_ifs 12630 # Convert to MSYS style. 12631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12632 ;; 12633 cygwin*) 12634 # Convert to unix form, then to dos form, then back to unix form 12635 # but this time dos style (no spaces!) so that the unix form looks 12636 # like /cygdrive/c/PROGRA~1:/cygdr... 12637 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12638 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12639 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12640 ;; 12641 *) 12642 sys_lib_search_path_spec=$LIB 12643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12644 # It is most probably a Windows format PATH. 12645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12646 else 12647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12648 fi 12649 # FIXME: find the short name or the path components, as spaces are 12650 # common. (e.g. "Program Files" -> "PROGRA~1") 12651 ;; 12652 esac 12653 12654 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12655 postinstall_cmds='base_file=`basename \$file`~ 12656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12657 dldir=$destdir/`dirname \$dlpath`~ 12658 test -d \$dldir || mkdir -p \$dldir~ 12659 $install_prog $dir/$dlname \$dldir/$dlname' 12660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12661 dlpath=$dir/\$dldll~ 12662 $RM \$dlpath' 12663 shlibpath_overrides_runpath=yes 12664 dynamic_linker='Win32 link.exe' 12665 ;; 12666 12667 *) 12668 # Assume MSVC wrapper 12669 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12670 dynamic_linker='Win32 ld.exe' 12671 ;; 12672 esac 12673 # FIXME: first we should search . and the directory the executable is in 12674 shlibpath_var=PATH 12675 ;; 12676 12677darwin* | rhapsody*) 12678 dynamic_linker="$host_os dyld" 12679 version_type=darwin 12680 need_lib_prefix=no 12681 need_version=no 12682 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12683 soname_spec='$libname$release$major$shared_ext' 12684 shlibpath_overrides_runpath=yes 12685 shlibpath_var=DYLD_LIBRARY_PATH 12686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12687 12688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12690 ;; 12691 12692dgux*) 12693 version_type=linux # correct to gnu/linux during the next big refactor 12694 need_lib_prefix=no 12695 need_version=no 12696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12697 soname_spec='$libname$release$shared_ext$major' 12698 shlibpath_var=LD_LIBRARY_PATH 12699 ;; 12700 12701freebsd* | dragonfly*) 12702 # DragonFly does not have aout. When/if they implement a new 12703 # versioning mechanism, adjust this. 12704 if test -x /usr/bin/objformat; then 12705 objformat=`/usr/bin/objformat` 12706 else 12707 case $host_os in 12708 freebsd[23].*) objformat=aout ;; 12709 *) objformat=elf ;; 12710 esac 12711 fi 12712 version_type=freebsd-$objformat 12713 case $version_type in 12714 freebsd-elf*) 12715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12716 soname_spec='$libname$release$shared_ext$major' 12717 need_version=no 12718 need_lib_prefix=no 12719 ;; 12720 freebsd-*) 12721 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12722 need_version=yes 12723 ;; 12724 esac 12725 shlibpath_var=LD_LIBRARY_PATH 12726 case $host_os in 12727 freebsd2.*) 12728 shlibpath_overrides_runpath=yes 12729 ;; 12730 freebsd3.[01]* | freebsdelf3.[01]*) 12731 shlibpath_overrides_runpath=yes 12732 hardcode_into_libs=yes 12733 ;; 12734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12736 shlibpath_overrides_runpath=no 12737 hardcode_into_libs=yes 12738 ;; 12739 *) # from 4.6 on, and DragonFly 12740 shlibpath_overrides_runpath=yes 12741 hardcode_into_libs=yes 12742 ;; 12743 esac 12744 ;; 12745 12746haiku*) 12747 version_type=linux # correct to gnu/linux during the next big refactor 12748 need_lib_prefix=no 12749 need_version=no 12750 dynamic_linker="$host_os runtime_loader" 12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12752 soname_spec='$libname$release$shared_ext$major' 12753 shlibpath_var=LIBRARY_PATH 12754 shlibpath_overrides_runpath=no 12755 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12756 hardcode_into_libs=yes 12757 ;; 12758 12759hpux9* | hpux10* | hpux11*) 12760 # Give a soname corresponding to the major version so that dld.sl refuses to 12761 # link against other versions. 12762 version_type=sunos 12763 need_lib_prefix=no 12764 need_version=no 12765 case $host_cpu in 12766 ia64*) 12767 shrext_cmds='.so' 12768 hardcode_into_libs=yes 12769 dynamic_linker="$host_os dld.so" 12770 shlibpath_var=LD_LIBRARY_PATH 12771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12773 soname_spec='$libname$release$shared_ext$major' 12774 if test 32 = "$HPUX_IA64_MODE"; then 12775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12776 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12777 else 12778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12779 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12780 fi 12781 ;; 12782 hppa*64*) 12783 shrext_cmds='.sl' 12784 hardcode_into_libs=yes 12785 dynamic_linker="$host_os dld.sl" 12786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12789 soname_spec='$libname$release$shared_ext$major' 12790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12792 ;; 12793 *) 12794 shrext_cmds='.sl' 12795 dynamic_linker="$host_os dld.sl" 12796 shlibpath_var=SHLIB_PATH 12797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12799 soname_spec='$libname$release$shared_ext$major' 12800 ;; 12801 esac 12802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12803 postinstall_cmds='chmod 555 $lib' 12804 # or fails outright, so override atomically: 12805 install_override_mode=555 12806 ;; 12807 12808interix[3-9]*) 12809 version_type=linux # correct to gnu/linux during the next big refactor 12810 need_lib_prefix=no 12811 need_version=no 12812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12813 soname_spec='$libname$release$shared_ext$major' 12814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12815 shlibpath_var=LD_LIBRARY_PATH 12816 shlibpath_overrides_runpath=no 12817 hardcode_into_libs=yes 12818 ;; 12819 12820irix5* | irix6* | nonstopux*) 12821 case $host_os in 12822 nonstopux*) version_type=nonstopux ;; 12823 *) 12824 if test yes = "$lt_cv_prog_gnu_ld"; then 12825 version_type=linux # correct to gnu/linux during the next big refactor 12826 else 12827 version_type=irix 12828 fi ;; 12829 esac 12830 need_lib_prefix=no 12831 need_version=no 12832 soname_spec='$libname$release$shared_ext$major' 12833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12834 case $host_os in 12835 irix5* | nonstopux*) 12836 libsuff= shlibsuff= 12837 ;; 12838 *) 12839 case $LD in # libtool.m4 will add one of these switches to LD 12840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12841 libsuff= shlibsuff= libmagic=32-bit;; 12842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12843 libsuff=32 shlibsuff=N32 libmagic=N32;; 12844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12845 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12846 *) libsuff= shlibsuff= libmagic=never-match;; 12847 esac 12848 ;; 12849 esac 12850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12851 shlibpath_overrides_runpath=no 12852 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12853 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12854 hardcode_into_libs=yes 12855 ;; 12856 12857# No shared lib support for Linux oldld, aout, or coff. 12858linux*oldld* | linux*aout* | linux*coff*) 12859 dynamic_linker=no 12860 ;; 12861 12862linux*android*) 12863 version_type=none # Android doesn't support versioned libraries. 12864 need_lib_prefix=no 12865 need_version=no 12866 library_names_spec='$libname$release$shared_ext' 12867 soname_spec='$libname$release$shared_ext' 12868 finish_cmds= 12869 shlibpath_var=LD_LIBRARY_PATH 12870 shlibpath_overrides_runpath=yes 12871 12872 # This implies no fast_install, which is unacceptable. 12873 # Some rework will be needed to allow for fast_install 12874 # before this can be enabled. 12875 hardcode_into_libs=yes 12876 12877 dynamic_linker='Android linker' 12878 # Don't embed -rpath directories since the linker doesn't support them. 12879 hardcode_libdir_flag_spec='-L$libdir' 12880 ;; 12881 12882# This must be glibc/ELF. 12883linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12884 version_type=linux # correct to gnu/linux during the next big refactor 12885 need_lib_prefix=no 12886 need_version=no 12887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12888 soname_spec='$libname$release$shared_ext$major' 12889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12890 shlibpath_var=LD_LIBRARY_PATH 12891 shlibpath_overrides_runpath=no 12892 12893 # Some binutils ld are patched to set DT_RUNPATH 12894 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12895 $as_echo_n "(cached) " >&6 12896else 12897 lt_cv_shlibpath_overrides_runpath=no 12898 save_LDFLAGS=$LDFLAGS 12899 save_libdir=$libdir 12900 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12901 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904 12905int 12906main () 12907{ 12908 12909 ; 12910 return 0; 12911} 12912_ACEOF 12913if ac_fn_c_try_link "$LINENO"; then : 12914 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12915 lt_cv_shlibpath_overrides_runpath=yes 12916fi 12917fi 12918rm -f core conftest.err conftest.$ac_objext \ 12919 conftest$ac_exeext conftest.$ac_ext 12920 LDFLAGS=$save_LDFLAGS 12921 libdir=$save_libdir 12922 12923fi 12924 12925 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12926 12927 # This implies no fast_install, which is unacceptable. 12928 # Some rework will be needed to allow for fast_install 12929 # before this can be enabled. 12930 hardcode_into_libs=yes 12931 12932 # Ideally, we could use ldconfig to report *all* directores which are 12933 # searched for libraries, however this is still not possible. Aside from not 12934 # being certain /sbin/ldconfig is available, command 12935 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12936 # even though it is searched at run-time. Try to do the best guess by 12937 # appending ld.so.conf contents (and includes) to the search path. 12938 if test -f /etc/ld.so.conf; then 12939 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' ' '` 12940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12941 fi 12942 12943 # We used to test for /lib/ld.so.1 and disable shared libraries on 12944 # powerpc, because MkLinux only supported shared libraries with the 12945 # GNU dynamic linker. Since this was broken with cross compilers, 12946 # most powerpc-linux boxes support dynamic linking these days and 12947 # people can always --disable-shared, the test was removed, and we 12948 # assume the GNU/Linux dynamic linker is in use. 12949 dynamic_linker='GNU/Linux ld.so' 12950 ;; 12951 12952netbsdelf*-gnu) 12953 version_type=linux 12954 need_lib_prefix=no 12955 need_version=no 12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12957 soname_spec='${libname}${release}${shared_ext}$major' 12958 shlibpath_var=LD_LIBRARY_PATH 12959 shlibpath_overrides_runpath=no 12960 hardcode_into_libs=yes 12961 dynamic_linker='NetBSD ld.elf_so' 12962 ;; 12963 12964netbsd*) 12965 version_type=sunos 12966 need_lib_prefix=no 12967 need_version=no 12968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12969 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12971 dynamic_linker='NetBSD (a.out) ld.so' 12972 else 12973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12974 soname_spec='$libname$release$shared_ext$major' 12975 dynamic_linker='NetBSD ld.elf_so' 12976 fi 12977 shlibpath_var=LD_LIBRARY_PATH 12978 shlibpath_overrides_runpath=yes 12979 hardcode_into_libs=yes 12980 ;; 12981 12982newsos6) 12983 version_type=linux # correct to gnu/linux during the next big refactor 12984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12985 shlibpath_var=LD_LIBRARY_PATH 12986 shlibpath_overrides_runpath=yes 12987 ;; 12988 12989*nto* | *qnx*) 12990 version_type=qnx 12991 need_lib_prefix=no 12992 need_version=no 12993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12994 soname_spec='$libname$release$shared_ext$major' 12995 shlibpath_var=LD_LIBRARY_PATH 12996 shlibpath_overrides_runpath=no 12997 hardcode_into_libs=yes 12998 dynamic_linker='ldqnx.so' 12999 ;; 13000 13001openbsd* | bitrig*) 13002 version_type=sunos 13003 sys_lib_dlsearch_path_spec=/usr/lib 13004 need_lib_prefix=no 13005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13006 need_version=no 13007 else 13008 need_version=yes 13009 fi 13010 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13012 shlibpath_var=LD_LIBRARY_PATH 13013 shlibpath_overrides_runpath=yes 13014 ;; 13015 13016os2*) 13017 libname_spec='$name' 13018 version_type=windows 13019 shrext_cmds=.dll 13020 need_version=no 13021 need_lib_prefix=no 13022 # OS/2 can only load a DLL with a base name of 8 characters or less. 13023 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13024 v=$($ECHO $release$versuffix | tr -d .-); 13025 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13026 $ECHO $n$v`$shared_ext' 13027 library_names_spec='${libname}_dll.$libext' 13028 dynamic_linker='OS/2 ld.exe' 13029 shlibpath_var=BEGINLIBPATH 13030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13032 postinstall_cmds='base_file=`basename \$file`~ 13033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13034 dldir=$destdir/`dirname \$dlpath`~ 13035 test -d \$dldir || mkdir -p \$dldir~ 13036 $install_prog $dir/$dlname \$dldir/$dlname~ 13037 chmod a+x \$dldir/$dlname~ 13038 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13039 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13040 fi' 13041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13042 dlpath=$dir/\$dldll~ 13043 $RM \$dlpath' 13044 ;; 13045 13046osf3* | osf4* | osf5*) 13047 version_type=osf 13048 need_lib_prefix=no 13049 need_version=no 13050 soname_spec='$libname$release$shared_ext$major' 13051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13052 shlibpath_var=LD_LIBRARY_PATH 13053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13055 ;; 13056 13057rdos*) 13058 dynamic_linker=no 13059 ;; 13060 13061solaris*) 13062 version_type=linux # correct to gnu/linux during the next big refactor 13063 need_lib_prefix=no 13064 need_version=no 13065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13066 soname_spec='$libname$release$shared_ext$major' 13067 shlibpath_var=LD_LIBRARY_PATH 13068 shlibpath_overrides_runpath=yes 13069 hardcode_into_libs=yes 13070 # ldd complains unless libraries are executable 13071 postinstall_cmds='chmod +x $lib' 13072 ;; 13073 13074sunos4*) 13075 version_type=sunos 13076 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13078 shlibpath_var=LD_LIBRARY_PATH 13079 shlibpath_overrides_runpath=yes 13080 if test yes = "$with_gnu_ld"; then 13081 need_lib_prefix=no 13082 fi 13083 need_version=yes 13084 ;; 13085 13086sysv4 | sysv4.3*) 13087 version_type=linux # correct to gnu/linux during the next big refactor 13088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13089 soname_spec='$libname$release$shared_ext$major' 13090 shlibpath_var=LD_LIBRARY_PATH 13091 case $host_vendor in 13092 sni) 13093 shlibpath_overrides_runpath=no 13094 need_lib_prefix=no 13095 runpath_var=LD_RUN_PATH 13096 ;; 13097 siemens) 13098 need_lib_prefix=no 13099 ;; 13100 motorola) 13101 need_lib_prefix=no 13102 need_version=no 13103 shlibpath_overrides_runpath=no 13104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13105 ;; 13106 esac 13107 ;; 13108 13109sysv4*MP*) 13110 if test -d /usr/nec; then 13111 version_type=linux # correct to gnu/linux during the next big refactor 13112 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13113 soname_spec='$libname$shared_ext.$major' 13114 shlibpath_var=LD_LIBRARY_PATH 13115 fi 13116 ;; 13117 13118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13119 version_type=sco 13120 need_lib_prefix=no 13121 need_version=no 13122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13123 soname_spec='$libname$release$shared_ext$major' 13124 shlibpath_var=LD_LIBRARY_PATH 13125 shlibpath_overrides_runpath=yes 13126 hardcode_into_libs=yes 13127 if test yes = "$with_gnu_ld"; then 13128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13129 else 13130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13131 case $host_os in 13132 sco3.2v5*) 13133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13134 ;; 13135 esac 13136 fi 13137 sys_lib_dlsearch_path_spec='/usr/lib' 13138 ;; 13139 13140tpf*) 13141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13142 version_type=linux # correct to gnu/linux during the next big refactor 13143 need_lib_prefix=no 13144 need_version=no 13145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13146 shlibpath_var=LD_LIBRARY_PATH 13147 shlibpath_overrides_runpath=no 13148 hardcode_into_libs=yes 13149 ;; 13150 13151uts4*) 13152 version_type=linux # correct to gnu/linux during the next big refactor 13153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13154 soname_spec='$libname$release$shared_ext$major' 13155 shlibpath_var=LD_LIBRARY_PATH 13156 ;; 13157 13158*) 13159 dynamic_linker=no 13160 ;; 13161esac 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13163$as_echo "$dynamic_linker" >&6; } 13164test no = "$dynamic_linker" && can_build_shared=no 13165 13166variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13167if test yes = "$GCC"; then 13168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13169fi 13170 13171if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13172 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13173fi 13174 13175if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13176 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13177fi 13178 13179# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13180configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13181 13182# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13183func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13184 13185# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13186configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13285$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13286hardcode_action= 13287if test -n "$hardcode_libdir_flag_spec" || 13288 test -n "$runpath_var" || 13289 test yes = "$hardcode_automatic"; then 13290 13291 # We can hardcode non-existent directories. 13292 if test no != "$hardcode_direct" && 13293 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13294 # have to relink, otherwise we might link with an installed library 13295 # when we should be linking with a yet-to-be-installed one 13296 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13297 test no != "$hardcode_minus_L"; then 13298 # Linking always hardcodes the temporary library directory. 13299 hardcode_action=relink 13300 else 13301 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13302 hardcode_action=immediate 13303 fi 13304else 13305 # We cannot hardcode anything, or else we can only hardcode existing 13306 # directories. 13307 hardcode_action=unsupported 13308fi 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13310$as_echo "$hardcode_action" >&6; } 13311 13312if test relink = "$hardcode_action" || 13313 test yes = "$inherit_rpath"; then 13314 # Fast installation is not supported 13315 enable_fast_install=no 13316elif test yes = "$shlibpath_overrides_runpath" || 13317 test no = "$enable_shared"; then 13318 # Fast installation is not necessary 13319 enable_fast_install=needless 13320fi 13321 13322 13323 13324 13325 13326 13327 if test yes != "$enable_dlopen"; then 13328 enable_dlopen=unknown 13329 enable_dlopen_self=unknown 13330 enable_dlopen_self_static=unknown 13331else 13332 lt_cv_dlopen=no 13333 lt_cv_dlopen_libs= 13334 13335 case $host_os in 13336 beos*) 13337 lt_cv_dlopen=load_add_on 13338 lt_cv_dlopen_libs= 13339 lt_cv_dlopen_self=yes 13340 ;; 13341 13342 mingw* | pw32* | cegcc*) 13343 lt_cv_dlopen=LoadLibrary 13344 lt_cv_dlopen_libs= 13345 ;; 13346 13347 cygwin*) 13348 lt_cv_dlopen=dlopen 13349 lt_cv_dlopen_libs= 13350 ;; 13351 13352 darwin*) 13353 # if libdl is installed we need to link against it 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13355$as_echo_n "checking for dlopen in -ldl... " >&6; } 13356if ${ac_cv_lib_dl_dlopen+:} false; then : 13357 $as_echo_n "(cached) " >&6 13358else 13359 ac_check_lib_save_LIBS=$LIBS 13360LIBS="-ldl $LIBS" 13361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13362/* end confdefs.h. */ 13363 13364/* Override any GCC internal prototype to avoid an error. 13365 Use char because int might match the return type of a GCC 13366 builtin and then its argument prototype would still apply. */ 13367#ifdef __cplusplus 13368extern "C" 13369#endif 13370char dlopen (); 13371int 13372main () 13373{ 13374return dlopen (); 13375 ; 13376 return 0; 13377} 13378_ACEOF 13379if ac_fn_c_try_link "$LINENO"; then : 13380 ac_cv_lib_dl_dlopen=yes 13381else 13382 ac_cv_lib_dl_dlopen=no 13383fi 13384rm -f core conftest.err conftest.$ac_objext \ 13385 conftest$ac_exeext conftest.$ac_ext 13386LIBS=$ac_check_lib_save_LIBS 13387fi 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13389$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13390if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13391 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13392else 13393 13394 lt_cv_dlopen=dyld 13395 lt_cv_dlopen_libs= 13396 lt_cv_dlopen_self=yes 13397 13398fi 13399 13400 ;; 13401 13402 tpf*) 13403 # Don't try to run any link tests for TPF. We know it's impossible 13404 # because TPF is a cross-compiler, and we know how we open DSOs. 13405 lt_cv_dlopen=dlopen 13406 lt_cv_dlopen_libs= 13407 lt_cv_dlopen_self=no 13408 ;; 13409 13410 *) 13411 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13412if test "x$ac_cv_func_shl_load" = xyes; then : 13413 lt_cv_dlopen=shl_load 13414else 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13416$as_echo_n "checking for shl_load in -ldld... " >&6; } 13417if ${ac_cv_lib_dld_shl_load+:} false; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 ac_check_lib_save_LIBS=$LIBS 13421LIBS="-ldld $LIBS" 13422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13423/* end confdefs.h. */ 13424 13425/* Override any GCC internal prototype to avoid an error. 13426 Use char because int might match the return type of a GCC 13427 builtin and then its argument prototype would still apply. */ 13428#ifdef __cplusplus 13429extern "C" 13430#endif 13431char shl_load (); 13432int 13433main () 13434{ 13435return shl_load (); 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440if ac_fn_c_try_link "$LINENO"; then : 13441 ac_cv_lib_dld_shl_load=yes 13442else 13443 ac_cv_lib_dld_shl_load=no 13444fi 13445rm -f core conftest.err conftest.$ac_objext \ 13446 conftest$ac_exeext conftest.$ac_ext 13447LIBS=$ac_check_lib_save_LIBS 13448fi 13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13450$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13451if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13452 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13453else 13454 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13455if test "x$ac_cv_func_dlopen" = xyes; then : 13456 lt_cv_dlopen=dlopen 13457else 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13459$as_echo_n "checking for dlopen in -ldl... " >&6; } 13460if ${ac_cv_lib_dl_dlopen+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 ac_check_lib_save_LIBS=$LIBS 13464LIBS="-ldl $LIBS" 13465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13466/* end confdefs.h. */ 13467 13468/* Override any GCC internal prototype to avoid an error. 13469 Use char because int might match the return type of a GCC 13470 builtin and then its argument prototype would still apply. */ 13471#ifdef __cplusplus 13472extern "C" 13473#endif 13474char dlopen (); 13475int 13476main () 13477{ 13478return dlopen (); 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483if ac_fn_c_try_link "$LINENO"; then : 13484 ac_cv_lib_dl_dlopen=yes 13485else 13486 ac_cv_lib_dl_dlopen=no 13487fi 13488rm -f core conftest.err conftest.$ac_objext \ 13489 conftest$ac_exeext conftest.$ac_ext 13490LIBS=$ac_check_lib_save_LIBS 13491fi 13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13493$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13494if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13495 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13496else 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13498$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13499if ${ac_cv_lib_svld_dlopen+:} false; then : 13500 $as_echo_n "(cached) " >&6 13501else 13502 ac_check_lib_save_LIBS=$LIBS 13503LIBS="-lsvld $LIBS" 13504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506 13507/* Override any GCC internal prototype to avoid an error. 13508 Use char because int might match the return type of a GCC 13509 builtin and then its argument prototype would still apply. */ 13510#ifdef __cplusplus 13511extern "C" 13512#endif 13513char dlopen (); 13514int 13515main () 13516{ 13517return dlopen (); 13518 ; 13519 return 0; 13520} 13521_ACEOF 13522if ac_fn_c_try_link "$LINENO"; then : 13523 ac_cv_lib_svld_dlopen=yes 13524else 13525 ac_cv_lib_svld_dlopen=no 13526fi 13527rm -f core conftest.err conftest.$ac_objext \ 13528 conftest$ac_exeext conftest.$ac_ext 13529LIBS=$ac_check_lib_save_LIBS 13530fi 13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13532$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13533if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13534 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13535else 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13537$as_echo_n "checking for dld_link in -ldld... " >&6; } 13538if ${ac_cv_lib_dld_dld_link+:} false; then : 13539 $as_echo_n "(cached) " >&6 13540else 13541 ac_check_lib_save_LIBS=$LIBS 13542LIBS="-ldld $LIBS" 13543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13544/* end confdefs.h. */ 13545 13546/* Override any GCC internal prototype to avoid an error. 13547 Use char because int might match the return type of a GCC 13548 builtin and then its argument prototype would still apply. */ 13549#ifdef __cplusplus 13550extern "C" 13551#endif 13552char dld_link (); 13553int 13554main () 13555{ 13556return dld_link (); 13557 ; 13558 return 0; 13559} 13560_ACEOF 13561if ac_fn_c_try_link "$LINENO"; then : 13562 ac_cv_lib_dld_dld_link=yes 13563else 13564 ac_cv_lib_dld_dld_link=no 13565fi 13566rm -f core conftest.err conftest.$ac_objext \ 13567 conftest$ac_exeext conftest.$ac_ext 13568LIBS=$ac_check_lib_save_LIBS 13569fi 13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13571$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13572if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13573 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13574fi 13575 13576 13577fi 13578 13579 13580fi 13581 13582 13583fi 13584 13585 13586fi 13587 13588 13589fi 13590 13591 ;; 13592 esac 13593 13594 if test no = "$lt_cv_dlopen"; then 13595 enable_dlopen=no 13596 else 13597 enable_dlopen=yes 13598 fi 13599 13600 case $lt_cv_dlopen in 13601 dlopen) 13602 save_CPPFLAGS=$CPPFLAGS 13603 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13604 13605 save_LDFLAGS=$LDFLAGS 13606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13607 13608 save_LIBS=$LIBS 13609 LIBS="$lt_cv_dlopen_libs $LIBS" 13610 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13612$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13613if ${lt_cv_dlopen_self+:} false; then : 13614 $as_echo_n "(cached) " >&6 13615else 13616 if test yes = "$cross_compiling"; then : 13617 lt_cv_dlopen_self=cross 13618else 13619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13620 lt_status=$lt_dlunknown 13621 cat > conftest.$ac_ext <<_LT_EOF 13622#line $LINENO "configure" 13623#include "confdefs.h" 13624 13625#if HAVE_DLFCN_H 13626#include <dlfcn.h> 13627#endif 13628 13629#include <stdio.h> 13630 13631#ifdef RTLD_GLOBAL 13632# define LT_DLGLOBAL RTLD_GLOBAL 13633#else 13634# ifdef DL_GLOBAL 13635# define LT_DLGLOBAL DL_GLOBAL 13636# else 13637# define LT_DLGLOBAL 0 13638# endif 13639#endif 13640 13641/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13642 find out it does not work in some platform. */ 13643#ifndef LT_DLLAZY_OR_NOW 13644# ifdef RTLD_LAZY 13645# define LT_DLLAZY_OR_NOW RTLD_LAZY 13646# else 13647# ifdef DL_LAZY 13648# define LT_DLLAZY_OR_NOW DL_LAZY 13649# else 13650# ifdef RTLD_NOW 13651# define LT_DLLAZY_OR_NOW RTLD_NOW 13652# else 13653# ifdef DL_NOW 13654# define LT_DLLAZY_OR_NOW DL_NOW 13655# else 13656# define LT_DLLAZY_OR_NOW 0 13657# endif 13658# endif 13659# endif 13660# endif 13661#endif 13662 13663/* When -fvisibility=hidden is used, assume the code has been annotated 13664 correspondingly for the symbols needed. */ 13665#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13666int fnord () __attribute__((visibility("default"))); 13667#endif 13668 13669int fnord () { return 42; } 13670int main () 13671{ 13672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13673 int status = $lt_dlunknown; 13674 13675 if (self) 13676 { 13677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13678 else 13679 { 13680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13681 else puts (dlerror ()); 13682 } 13683 /* dlclose (self); */ 13684 } 13685 else 13686 puts (dlerror ()); 13687 13688 return status; 13689} 13690_LT_EOF 13691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13692 (eval $ac_link) 2>&5 13693 ac_status=$? 13694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13695 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13696 (./conftest; exit; ) >&5 2>/dev/null 13697 lt_status=$? 13698 case x$lt_status in 13699 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13700 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13701 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13702 esac 13703 else : 13704 # compilation failed 13705 lt_cv_dlopen_self=no 13706 fi 13707fi 13708rm -fr conftest* 13709 13710 13711fi 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13713$as_echo "$lt_cv_dlopen_self" >&6; } 13714 13715 if test yes = "$lt_cv_dlopen_self"; then 13716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13718$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13719if ${lt_cv_dlopen_self_static+:} false; then : 13720 $as_echo_n "(cached) " >&6 13721else 13722 if test yes = "$cross_compiling"; then : 13723 lt_cv_dlopen_self_static=cross 13724else 13725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13726 lt_status=$lt_dlunknown 13727 cat > conftest.$ac_ext <<_LT_EOF 13728#line $LINENO "configure" 13729#include "confdefs.h" 13730 13731#if HAVE_DLFCN_H 13732#include <dlfcn.h> 13733#endif 13734 13735#include <stdio.h> 13736 13737#ifdef RTLD_GLOBAL 13738# define LT_DLGLOBAL RTLD_GLOBAL 13739#else 13740# ifdef DL_GLOBAL 13741# define LT_DLGLOBAL DL_GLOBAL 13742# else 13743# define LT_DLGLOBAL 0 13744# endif 13745#endif 13746 13747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13748 find out it does not work in some platform. */ 13749#ifndef LT_DLLAZY_OR_NOW 13750# ifdef RTLD_LAZY 13751# define LT_DLLAZY_OR_NOW RTLD_LAZY 13752# else 13753# ifdef DL_LAZY 13754# define LT_DLLAZY_OR_NOW DL_LAZY 13755# else 13756# ifdef RTLD_NOW 13757# define LT_DLLAZY_OR_NOW RTLD_NOW 13758# else 13759# ifdef DL_NOW 13760# define LT_DLLAZY_OR_NOW DL_NOW 13761# else 13762# define LT_DLLAZY_OR_NOW 0 13763# endif 13764# endif 13765# endif 13766# endif 13767#endif 13768 13769/* When -fvisibility=hidden is used, assume the code has been annotated 13770 correspondingly for the symbols needed. */ 13771#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13772int fnord () __attribute__((visibility("default"))); 13773#endif 13774 13775int fnord () { return 42; } 13776int main () 13777{ 13778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13779 int status = $lt_dlunknown; 13780 13781 if (self) 13782 { 13783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13784 else 13785 { 13786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13787 else puts (dlerror ()); 13788 } 13789 /* dlclose (self); */ 13790 } 13791 else 13792 puts (dlerror ()); 13793 13794 return status; 13795} 13796_LT_EOF 13797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13798 (eval $ac_link) 2>&5 13799 ac_status=$? 13800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13801 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13802 (./conftest; exit; ) >&5 2>/dev/null 13803 lt_status=$? 13804 case x$lt_status in 13805 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13806 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13807 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13808 esac 13809 else : 13810 # compilation failed 13811 lt_cv_dlopen_self_static=no 13812 fi 13813fi 13814rm -fr conftest* 13815 13816 13817fi 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13819$as_echo "$lt_cv_dlopen_self_static" >&6; } 13820 fi 13821 13822 CPPFLAGS=$save_CPPFLAGS 13823 LDFLAGS=$save_LDFLAGS 13824 LIBS=$save_LIBS 13825 ;; 13826 esac 13827 13828 case $lt_cv_dlopen_self in 13829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13830 *) enable_dlopen_self=unknown ;; 13831 esac 13832 13833 case $lt_cv_dlopen_self_static in 13834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13835 *) enable_dlopen_self_static=unknown ;; 13836 esac 13837fi 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855striplib= 13856old_striplib= 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13858$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13859if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13861 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13863$as_echo "yes" >&6; } 13864else 13865# FIXME - insert some real tests, host_os isn't really good enough 13866 case $host_os in 13867 darwin*) 13868 if test -n "$STRIP"; then 13869 striplib="$STRIP -x" 13870 old_striplib="$STRIP -S" 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13872$as_echo "yes" >&6; } 13873 else 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13875$as_echo "no" >&6; } 13876 fi 13877 ;; 13878 *) 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13880$as_echo "no" >&6; } 13881 ;; 13882 esac 13883fi 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 # Report what library types will actually be built 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13898$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13900$as_echo "$can_build_shared" >&6; } 13901 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13903$as_echo_n "checking whether to build shared libraries... " >&6; } 13904 test no = "$can_build_shared" && enable_shared=no 13905 13906 # On AIX, shared libraries and static libraries use the same namespace, and 13907 # are all built from PIC. 13908 case $host_os in 13909 aix3*) 13910 test yes = "$enable_shared" && enable_static=no 13911 if test -n "$RANLIB"; then 13912 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13913 postinstall_cmds='$RANLIB $lib' 13914 fi 13915 ;; 13916 13917 aix[4-9]*) 13918 if test ia64 != "$host_cpu"; then 13919 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13920 yes,aix,yes) ;; # shared object as lib.so file only 13921 yes,svr4,*) ;; # shared object as lib.so archive member only 13922 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13923 esac 13924 fi 13925 ;; 13926 esac 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13928$as_echo "$enable_shared" >&6; } 13929 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13931$as_echo_n "checking whether to build static libraries... " >&6; } 13932 # Make sure either enable_shared or enable_static is yes. 13933 test yes = "$enable_shared" || enable_static=yes 13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13935$as_echo "$enable_static" >&6; } 13936 13937 13938 13939 13940fi 13941ac_ext=c 13942ac_cpp='$CPP $CPPFLAGS' 13943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13945ac_compiler_gnu=$ac_cv_c_compiler_gnu 13946 13947CC=$lt_save_CC 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 ac_config_commands="$ac_config_commands libtool" 13964 13965 13966 13967 13968# Only expand once: 13969 13970 13971 13972 13973LT_DLLOADERS= 13974 13975 13976ac_ext=c 13977ac_cpp='$CPP $CPPFLAGS' 13978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13980ac_compiler_gnu=$ac_cv_c_compiler_gnu 13981 13982lt_dlload_save_LIBS=$LIBS 13983 13984LIBADD_DLOPEN= 13985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13986$as_echo_n "checking for library containing dlopen... " >&6; } 13987if ${ac_cv_search_dlopen+:} false; then : 13988 $as_echo_n "(cached) " >&6 13989else 13990 ac_func_search_save_LIBS=$LIBS 13991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13992/* end confdefs.h. */ 13993 13994/* Override any GCC internal prototype to avoid an error. 13995 Use char because int might match the return type of a GCC 13996 builtin and then its argument prototype would still apply. */ 13997#ifdef __cplusplus 13998extern "C" 13999#endif 14000char dlopen (); 14001int 14002main () 14003{ 14004return dlopen (); 14005 ; 14006 return 0; 14007} 14008_ACEOF 14009for ac_lib in '' dl; do 14010 if test -z "$ac_lib"; then 14011 ac_res="none required" 14012 else 14013 ac_res=-l$ac_lib 14014 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14015 fi 14016 if ac_fn_c_try_link "$LINENO"; then : 14017 ac_cv_search_dlopen=$ac_res 14018fi 14019rm -f core conftest.err conftest.$ac_objext \ 14020 conftest$ac_exeext 14021 if ${ac_cv_search_dlopen+:} false; then : 14022 break 14023fi 14024done 14025if ${ac_cv_search_dlopen+:} false; then : 14026 14027else 14028 ac_cv_search_dlopen=no 14029fi 14030rm conftest.$ac_ext 14031LIBS=$ac_func_search_save_LIBS 14032fi 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14034$as_echo "$ac_cv_search_dlopen" >&6; } 14035ac_res=$ac_cv_search_dlopen 14036if test "$ac_res" != no; then : 14037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14038 14039$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 14040 14041 if test "$ac_cv_search_dlopen" != "none required"; then 14042 LIBADD_DLOPEN=-ldl 14043 fi 14044 libltdl_cv_lib_dl_dlopen=yes 14045 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 14046else 14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048/* end confdefs.h. */ 14049#if HAVE_DLFCN_H 14050# include <dlfcn.h> 14051#endif 14052 14053int 14054main () 14055{ 14056dlopen(0, 0); 14057 ; 14058 return 0; 14059} 14060_ACEOF 14061if ac_fn_c_try_link "$LINENO"; then : 14062 14063$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 14064 14065 libltdl_cv_func_dlopen=yes 14066 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 14067else 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14069$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14070if ${ac_cv_lib_svld_dlopen+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072else 14073 ac_check_lib_save_LIBS=$LIBS 14074LIBS="-lsvld $LIBS" 14075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14076/* end confdefs.h. */ 14077 14078/* Override any GCC internal prototype to avoid an error. 14079 Use char because int might match the return type of a GCC 14080 builtin and then its argument prototype would still apply. */ 14081#ifdef __cplusplus 14082extern "C" 14083#endif 14084char dlopen (); 14085int 14086main () 14087{ 14088return dlopen (); 14089 ; 14090 return 0; 14091} 14092_ACEOF 14093if ac_fn_c_try_link "$LINENO"; then : 14094 ac_cv_lib_svld_dlopen=yes 14095else 14096 ac_cv_lib_svld_dlopen=no 14097fi 14098rm -f core conftest.err conftest.$ac_objext \ 14099 conftest$ac_exeext conftest.$ac_ext 14100LIBS=$ac_check_lib_save_LIBS 14101fi 14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14103$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14104if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14105 14106$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 14107 14108 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes 14109 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 14110fi 14111 14112fi 14113rm -f core conftest.err conftest.$ac_objext \ 14114 conftest$ac_exeext conftest.$ac_ext 14115fi 14116 14117if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" 14118then 14119 lt_save_LIBS=$LIBS 14120 LIBS="$LIBS $LIBADD_DLOPEN" 14121 for ac_func in dlerror 14122do : 14123 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 14124if test "x$ac_cv_func_dlerror" = xyes; then : 14125 cat >>confdefs.h <<_ACEOF 14126#define HAVE_DLERROR 1 14127_ACEOF 14128 14129fi 14130done 14131 14132 LIBS=$lt_save_LIBS 14133fi 14134 14135 14136LIBADD_SHL_LOAD= 14137ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14138if test "x$ac_cv_func_shl_load" = xyes; then : 14139 14140$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14141 14142 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 14143else 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14145$as_echo_n "checking for shl_load in -ldld... " >&6; } 14146if ${ac_cv_lib_dld_shl_load+:} false; then : 14147 $as_echo_n "(cached) " >&6 14148else 14149 ac_check_lib_save_LIBS=$LIBS 14150LIBS="-ldld $LIBS" 14151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14152/* end confdefs.h. */ 14153 14154/* Override any GCC internal prototype to avoid an error. 14155 Use char because int might match the return type of a GCC 14156 builtin and then its argument prototype would still apply. */ 14157#ifdef __cplusplus 14158extern "C" 14159#endif 14160char shl_load (); 14161int 14162main () 14163{ 14164return shl_load (); 14165 ; 14166 return 0; 14167} 14168_ACEOF 14169if ac_fn_c_try_link "$LINENO"; then : 14170 ac_cv_lib_dld_shl_load=yes 14171else 14172 ac_cv_lib_dld_shl_load=no 14173fi 14174rm -f core conftest.err conftest.$ac_objext \ 14175 conftest$ac_exeext conftest.$ac_ext 14176LIBS=$ac_check_lib_save_LIBS 14177fi 14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14179$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14180if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14181 14182$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14183 14184 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 14185 LIBADD_SHL_LOAD=-ldld 14186fi 14187 14188fi 14189 14190 14191 14192case $host_os in 14193darwin[1567].*) 14194# We only want this for pre-Mac OS X 10.4. 14195 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 14196if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 14197 14198$as_echo "#define HAVE_DYLD 1" >>confdefs.h 14199 14200 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 14201fi 14202 14203 ;; 14204beos*) 14205 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 14206 ;; 14207cygwin* | mingw* | pw32*) 14208 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 14209" 14210if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 14211 ac_have_decl=1 14212else 14213 ac_have_decl=0 14214fi 14215 14216cat >>confdefs.h <<_ACEOF 14217#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 14218_ACEOF 14219 14220 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 14221 ;; 14222esac 14223 14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14225$as_echo_n "checking for dld_link in -ldld... " >&6; } 14226if ${ac_cv_lib_dld_dld_link+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228else 14229 ac_check_lib_save_LIBS=$LIBS 14230LIBS="-ldld $LIBS" 14231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233 14234/* Override any GCC internal prototype to avoid an error. 14235 Use char because int might match the return type of a GCC 14236 builtin and then its argument prototype would still apply. */ 14237#ifdef __cplusplus 14238extern "C" 14239#endif 14240char dld_link (); 14241int 14242main () 14243{ 14244return dld_link (); 14245 ; 14246 return 0; 14247} 14248_ACEOF 14249if ac_fn_c_try_link "$LINENO"; then : 14250 ac_cv_lib_dld_dld_link=yes 14251else 14252 ac_cv_lib_dld_dld_link=no 14253fi 14254rm -f core conftest.err conftest.$ac_objext \ 14255 conftest$ac_exeext conftest.$ac_ext 14256LIBS=$ac_check_lib_save_LIBS 14257fi 14258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14259$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14260if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14261 14262$as_echo "#define HAVE_DLD 1" >>confdefs.h 14263 14264 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 14265fi 14266 14267 14268 14269 14270LT_DLPREOPEN= 14271if test -n "$LT_DLLOADERS" 14272then 14273 for lt_loader in $LT_DLLOADERS; do 14274 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 14275 done 14276 14277$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 14278 14279fi 14280 14281 14282LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 14283 14284 14285LIBS=$lt_dlload_save_LIBS 14286ac_ext=c 14287ac_cpp='$CPP $CPPFLAGS' 14288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14290ac_compiler_gnu=$ac_cv_c_compiler_gnu 14291 14292 14293 14294 14295LIBS=$XLIBS 14296 14297# Check for --enable-developer 14298developer=no 14299# Check whether --enable-developer was given. 14300if test "${enable_developer+set}" = set; then : 14301 enableval=$enable_developer; if test "x$enable_developer" = xyes; then developer=yes; fi 14302fi 14303 14304 14305# normal builds set -DNDEBUG because we make very very heavy 14306# use of assertions that really slow stuff down. 14307# --enable-developer sets liburcu debug stuff and doesn't set -DNDEBUG, 14308if test "x$developer" != xno; then 14309 14310$as_echo "#define DEBUG_RCU 1" >>confdefs.h 14311 14312 14313$as_echo "#define RCU_DEBUG 1" >>confdefs.h 14314 14315 TRY_DEBUG_CFLAGS=-g 14316else 14317 CPPFLAGS="-DNDEBUG ${CPPFLAGS}" 14318 TRY_DEBUG_CFLAGS= 14319fi 14320 14321# These are only for urcu header stuff currently 14322 14323$as_echo "#define _LGPL_SOURCE 1" >>confdefs.h 14324 14325 14326$as_echo "#define GDNSD_SOURCE_TREE 1" >>confdefs.h 14327 14328 14329harden=1 14330 14331# Check whether --with-hardening was given. 14332if test "${with_hardening+set}" = set; then : 14333 withval=$with_hardening; 14334 if test "x$withval" = xno; then 14335 harden=0 14336 fi 14337 14338fi 14339 14340HARDEN_COMPILER= 14341HARDEN_LINKER= 14342CFLAGS_PIE= 14343LDFLAGS_PIE= 14344if test $harden = 1; then 14345 case $CFLAGS in #( 14346 *-O[1-6]*) : 14347 CPPFLAGS="-D_FORTIFY_SOURCE=2 ${CPPFLAGS}" ;; #( 14348 *) : 14349 ;; 14350esac 14351 HARDEN_COMPILER="-fstack-protector-all -ftrapv" 14352 HARDEN_LINKER="-Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack" 14353 14354 14355 14356 14357for flag in -fPIE; do 14358 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 14359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 14360$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 14361if eval \${$as_CACHEVAR+:} false; then : 14362 $as_echo_n "(cached) " >&6 14363else 14364 14365 ax_check_save_flags=$CFLAGS 14366 CFLAGS="$CFLAGS $flag" 14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14368/* end confdefs.h. */ 14369 14370int 14371main () 14372{ 14373 14374 ; 14375 return 0; 14376} 14377_ACEOF 14378if ac_fn_c_try_compile "$LINENO"; then : 14379 eval "$as_CACHEVAR=yes" 14380else 14381 eval "$as_CACHEVAR=no" 14382fi 14383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14384 CFLAGS=$ax_check_save_flags 14385fi 14386eval ac_res=\$$as_CACHEVAR 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14388$as_echo "$ac_res" >&6; } 14389if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 14390 14391if ${CFLAGS_PIE+:} false; then : 14392 14393 case " $CFLAGS_PIE " in #( 14394 *" $flag "*) : 14395 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_PIE already contains \$flag"; } >&5 14396 (: CFLAGS_PIE already contains $flag) 2>&5 14397 ac_status=$? 14398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14399 test $ac_status = 0; } ;; #( 14400 *) : 14401 14402 as_fn_append CFLAGS_PIE " $flag" 14403 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_PIE=\"\$CFLAGS_PIE\""; } >&5 14404 (: CFLAGS_PIE="$CFLAGS_PIE") 2>&5 14405 ac_status=$? 14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14407 test $ac_status = 0; } 14408 ;; 14409esac 14410 14411else 14412 14413 CFLAGS_PIE=$flag 14414 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_PIE=\"\$CFLAGS_PIE\""; } >&5 14415 (: CFLAGS_PIE="$CFLAGS_PIE") 2>&5 14416 ac_status=$? 14417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14418 test $ac_status = 0; } 14419 14420fi 14421 14422else 14423 : 14424fi 14425 14426done 14427 14428 14429 14430 14431 14432for flag in -pie; do 14433 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh` 14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 14435$as_echo_n "checking whether the linker accepts $flag... " >&6; } 14436if eval \${$as_CACHEVAR+:} false; then : 14437 $as_echo_n "(cached) " >&6 14438else 14439 14440 ax_check_save_flags=$LDFLAGS 14441 LDFLAGS="$LDFLAGS $flag" 14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14443/* end confdefs.h. */ 14444 14445int 14446main () 14447{ 14448 14449 ; 14450 return 0; 14451} 14452_ACEOF 14453if ac_fn_c_try_link "$LINENO"; then : 14454 eval "$as_CACHEVAR=yes" 14455else 14456 eval "$as_CACHEVAR=no" 14457fi 14458rm -f core conftest.err conftest.$ac_objext \ 14459 conftest$ac_exeext conftest.$ac_ext 14460 LDFLAGS=$ax_check_save_flags 14461fi 14462eval ac_res=\$$as_CACHEVAR 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14464$as_echo "$ac_res" >&6; } 14465if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 14466 14467if ${LDFLAGS_PIE+:} false; then : 14468 14469 case " $LDFLAGS_PIE " in #( 14470 *" $flag "*) : 14471 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS_PIE already contains \$flag"; } >&5 14472 (: LDFLAGS_PIE already contains $flag) 2>&5 14473 ac_status=$? 14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14475 test $ac_status = 0; } ;; #( 14476 *) : 14477 14478 as_fn_append LDFLAGS_PIE " $flag" 14479 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS_PIE=\"\$LDFLAGS_PIE\""; } >&5 14480 (: LDFLAGS_PIE="$LDFLAGS_PIE") 2>&5 14481 ac_status=$? 14482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14483 test $ac_status = 0; } 14484 ;; 14485esac 14486 14487else 14488 14489 LDFLAGS_PIE=$flag 14490 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS_PIE=\"\$LDFLAGS_PIE\""; } >&5 14491 (: LDFLAGS_PIE="$LDFLAGS_PIE") 2>&5 14492 ac_status=$? 14493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14494 test $ac_status = 0; } 14495 14496fi 14497 14498else 14499 : 14500fi 14501 14502done 14503 14504fi 14505 14506 14507 14508# clang does not fail on some unsupported options without this, 14509# but it screws up some of our warnflag tests on gcc as well. 14510CLANG_WERROR= 14511if test $CLANG = yes; then 14512 CLANG_WERROR="-Werror" 14513fi 14514 14515 14516 14517 14518 14519for flag in \ 14520 $HARDEN_LINKER \ 14521 -Wl,--as-needed \ 14522 -Wl,--gc-sections \ 14523; do 14524 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$CLANG_WERROR_$flag" | $as_tr_sh` 14525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 14526$as_echo_n "checking whether the linker accepts $flag... " >&6; } 14527if eval \${$as_CACHEVAR+:} false; then : 14528 $as_echo_n "(cached) " >&6 14529else 14530 14531 ax_check_save_flags=$LDFLAGS 14532 LDFLAGS="$LDFLAGS $CLANG_WERROR $flag" 14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14534/* end confdefs.h. */ 14535 14536int 14537main () 14538{ 14539 14540 ; 14541 return 0; 14542} 14543_ACEOF 14544if ac_fn_c_try_link "$LINENO"; then : 14545 eval "$as_CACHEVAR=yes" 14546else 14547 eval "$as_CACHEVAR=no" 14548fi 14549rm -f core conftest.err conftest.$ac_objext \ 14550 conftest$ac_exeext conftest.$ac_ext 14551 LDFLAGS=$ax_check_save_flags 14552fi 14553eval ac_res=\$$as_CACHEVAR 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14555$as_echo "$ac_res" >&6; } 14556if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 14557 14558if ${LDFLAGS+:} false; then : 14559 14560 case " $LDFLAGS " in #( 14561 *" $flag "*) : 14562 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5 14563 (: LDFLAGS already contains $flag) 2>&5 14564 ac_status=$? 14565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14566 test $ac_status = 0; } ;; #( 14567 *) : 14568 14569 as_fn_append LDFLAGS " $flag" 14570 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5 14571 (: LDFLAGS="$LDFLAGS") 2>&5 14572 ac_status=$? 14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14574 test $ac_status = 0; } 14575 ;; 14576esac 14577 14578else 14579 14580 LDFLAGS=$flag 14581 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5 14582 (: LDFLAGS="$LDFLAGS") 2>&5 14583 ac_status=$? 14584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14585 test $ac_status = 0; } 14586 14587fi 14588 14589else 14590 : 14591fi 14592 14593done 14594 14595 14596 14597 14598 14599 14600for flag in \ 14601 $TRY_DEBUG_CFLAGS \ 14602 $HARDEN_COMPILER \ 14603 -fvisibility=hidden \ 14604 -ffunction-sections \ 14605 -fdata-sections \ 14606 -fno-common \ 14607 -pipe \ 14608 -Wall \ 14609 -Wextra \ 14610 -Warray-bounds=2 \ 14611 -Wbad-function-cast \ 14612 -Wcast-align \ 14613 -Wcast-qual \ 14614 -Wduplicated-cond \ 14615 -Wendif-labels \ 14616 -Wfloat-equal \ 14617 -Wfloat-conversion \ 14618 -Wformat=2 \ 14619 -Wformat-signedness \ 14620 -Winit-self \ 14621 -Wjump-misses-init \ 14622 -Wlogical-op \ 14623 -Wloop-analysis \ 14624 -Wmissing-declarations \ 14625 -Wmissing-include-dirs \ 14626 -Wmissing-prototypes \ 14627 -Wnull-dereference \ 14628 -Wold-style-definition \ 14629 -Wpointer-arith \ 14630 -Wredundant-decls \ 14631 -Wshadow \ 14632 -Wsign-conversion \ 14633 -Wshift-overflow=2 \ 14634 -Wstrict-overflow=5 \ 14635 -Wstrict-prototypes \ 14636 -Wswitch-default \ 14637 -Wswitch-enum \ 14638 -Wtrampolines \ 14639 -Wundef \ 14640 -Wunused \ 14641 -Wwrite-strings \ 14642 -Wthis-does-not-exist \ 14643; do 14644 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$CLANG_WERROR_$flag" | $as_tr_sh` 14645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 14646$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 14647if eval \${$as_CACHEVAR+:} false; then : 14648 $as_echo_n "(cached) " >&6 14649else 14650 14651 ax_check_save_flags=$CFLAGS 14652 CFLAGS="$CFLAGS $CLANG_WERROR $flag" 14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14654/* end confdefs.h. */ 14655 14656int 14657main () 14658{ 14659 14660 ; 14661 return 0; 14662} 14663_ACEOF 14664if ac_fn_c_try_compile "$LINENO"; then : 14665 eval "$as_CACHEVAR=yes" 14666else 14667 eval "$as_CACHEVAR=no" 14668fi 14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14670 CFLAGS=$ax_check_save_flags 14671fi 14672eval ac_res=\$$as_CACHEVAR 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14674$as_echo "$ac_res" >&6; } 14675if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 14676 14677if ${CFLAGS+:} false; then : 14678 14679 case " $CFLAGS " in #( 14680 *" $flag "*) : 14681 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 14682 (: CFLAGS already contains $flag) 2>&5 14683 ac_status=$? 14684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14685 test $ac_status = 0; } ;; #( 14686 *) : 14687 14688 as_fn_append CFLAGS " $flag" 14689 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 14690 (: CFLAGS="$CFLAGS") 2>&5 14691 ac_status=$? 14692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14693 test $ac_status = 0; } 14694 ;; 14695esac 14696 14697else 14698 14699 CFLAGS=$flag 14700 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 14701 (: CFLAGS="$CFLAGS") 2>&5 14702 ac_status=$? 14703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14704 test $ac_status = 0; } 14705 14706fi 14707 14708else 14709 : 14710fi 14711 14712done 14713 14714 14715# include libdmn configure stuff 14716# Find out which strerror_r we have 14717ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 14718if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 14719 ac_have_decl=1 14720else 14721 ac_have_decl=0 14722fi 14723 14724cat >>confdefs.h <<_ACEOF 14725#define HAVE_DECL_STRERROR_R $ac_have_decl 14726_ACEOF 14727 14728for ac_func in strerror_r 14729do : 14730 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 14731if test "x$ac_cv_func_strerror_r" = xyes; then : 14732 cat >>confdefs.h <<_ACEOF 14733#define HAVE_STRERROR_R 1 14734_ACEOF 14735 14736fi 14737done 14738 14739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 14740$as_echo_n "checking whether strerror_r returns char *... " >&6; } 14741if ${ac_cv_func_strerror_r_char_p+:} false; then : 14742 $as_echo_n "(cached) " >&6 14743else 14744 14745 ac_cv_func_strerror_r_char_p=no 14746 if test $ac_cv_have_decl_strerror_r = yes; then 14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14748/* end confdefs.h. */ 14749$ac_includes_default 14750int 14751main () 14752{ 14753 14754 char buf[100]; 14755 char x = *strerror_r (0, buf, sizeof buf); 14756 char *p = strerror_r (0, buf, sizeof buf); 14757 return !p || x; 14758 14759 ; 14760 return 0; 14761} 14762_ACEOF 14763if ac_fn_c_try_compile "$LINENO"; then : 14764 ac_cv_func_strerror_r_char_p=yes 14765fi 14766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14767 else 14768 # strerror_r is not declared. Choose between 14769 # systems that have relatively inaccessible declarations for the 14770 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 14771 # former has a strerror_r that returns char*, while the latter 14772 # has a strerror_r that returns `int'. 14773 # This test should segfault on the DEC system. 14774 if test "$cross_compiling" = yes; then : 14775 : 14776else 14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14778/* end confdefs.h. */ 14779$ac_includes_default 14780 extern char *strerror_r (); 14781int 14782main () 14783{ 14784char buf[100]; 14785 char x = *strerror_r (0, buf, sizeof buf); 14786 return ! isalpha (x); 14787 ; 14788 return 0; 14789} 14790_ACEOF 14791if ac_fn_c_try_run "$LINENO"; then : 14792 ac_cv_func_strerror_r_char_p=yes 14793fi 14794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14795 conftest.$ac_objext conftest.beam conftest.$ac_ext 14796fi 14797 14798 fi 14799 14800fi 14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 14802$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 14803if test $ac_cv_func_strerror_r_char_p = yes; then 14804 14805$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 14806 14807fi 14808 14809 14810# Check on fputs_unlocked 14811ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "#include <stdio.h> 14812" 14813if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then : 14814 ac_have_decl=1 14815else 14816 ac_have_decl=0 14817fi 14818 14819cat >>confdefs.h <<_ACEOF 14820#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl 14821_ACEOF 14822 14823 14824# Check on fflush_unlocked 14825ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "#include <stdio.h> 14826" 14827if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then : 14828 ac_have_decl=1 14829else 14830 ac_have_decl=0 14831fi 14832 14833cat >>confdefs.h <<_ACEOF 14834#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl 14835_ACEOF 14836 14837 14838HAVE_LIBUNWIND=0 14839LIBUNWIND_LIBS= 14840ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 14841if test "x$ac_cv_header_libunwind_h" = xyes; then : 14842 14843 XLIBS=$LIBS 14844 LIBS="" 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror in -lunwind" >&5 14846$as_echo_n "checking for perror in -lunwind... " >&6; } 14847if ${ac_cv_lib_unwind_perror+:} false; then : 14848 $as_echo_n "(cached) " >&6 14849else 14850 ac_check_lib_save_LIBS=$LIBS 14851LIBS="-lunwind $LIBS" 14852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854 14855/* Override any GCC internal prototype to avoid an error. 14856 Use char because int might match the return type of a GCC 14857 builtin and then its argument prototype would still apply. */ 14858#ifdef __cplusplus 14859extern "C" 14860#endif 14861char perror (); 14862int 14863main () 14864{ 14865return perror (); 14866 ; 14867 return 0; 14868} 14869_ACEOF 14870if ac_fn_c_try_link "$LINENO"; then : 14871 ac_cv_lib_unwind_perror=yes 14872else 14873 ac_cv_lib_unwind_perror=no 14874fi 14875rm -f core conftest.err conftest.$ac_objext \ 14876 conftest$ac_exeext conftest.$ac_ext 14877LIBS=$ac_check_lib_save_LIBS 14878fi 14879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_perror" >&5 14880$as_echo "$ac_cv_lib_unwind_perror" >&6; } 14881if test "x$ac_cv_lib_unwind_perror" = xyes; then : 14882 14883 HAVE_LIBUNWIND=1 14884 14885$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h 14886 14887 LIBUNWIND_LIBS="-lunwind" 14888 14889fi 14890 14891 LIBS=$XLIBS 14892 14893fi 14894 14895 14896 14897 14898 14899# include libgdmaps configure stuff 14900HAVE_GEOIP2=0 14901GEOIP2_LIBS= 14902ac_fn_c_check_header_mongrel "$LINENO" "maxminddb.h" "ac_cv_header_maxminddb_h" "$ac_includes_default" 14903if test "x$ac_cv_header_maxminddb_h" = xyes; then : 14904 14905 ac_fn_c_check_member "$LINENO" "MMDB_search_node_s" "left_record_type" "ac_cv_member_MMDB_search_node_s_left_record_type" "#include <maxminddb.h> 14906" 14907if test "x$ac_cv_member_MMDB_search_node_s_left_record_type" = xyes; then : 14908 14909$as_echo "#define MMDB_GTE_120 1" >>confdefs.h 14910 14911fi 14912 14913 XLIBS=$LIBS 14914 LIBS="" 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMDB_open in -lmaxminddb" >&5 14916$as_echo_n "checking for MMDB_open in -lmaxminddb... " >&6; } 14917if ${ac_cv_lib_maxminddb_MMDB_open+:} false; then : 14918 $as_echo_n "(cached) " >&6 14919else 14920 ac_check_lib_save_LIBS=$LIBS 14921LIBS="-lmaxminddb $LIBS" 14922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923/* end confdefs.h. */ 14924 14925/* Override any GCC internal prototype to avoid an error. 14926 Use char because int might match the return type of a GCC 14927 builtin and then its argument prototype would still apply. */ 14928#ifdef __cplusplus 14929extern "C" 14930#endif 14931char MMDB_open (); 14932int 14933main () 14934{ 14935return MMDB_open (); 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_link "$LINENO"; then : 14941 ac_cv_lib_maxminddb_MMDB_open=yes 14942else 14943 ac_cv_lib_maxminddb_MMDB_open=no 14944fi 14945rm -f core conftest.err conftest.$ac_objext \ 14946 conftest$ac_exeext conftest.$ac_ext 14947LIBS=$ac_check_lib_save_LIBS 14948fi 14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maxminddb_MMDB_open" >&5 14950$as_echo "$ac_cv_lib_maxminddb_MMDB_open" >&6; } 14951if test "x$ac_cv_lib_maxminddb_MMDB_open" = xyes; then : 14952 14953 HAVE_GEOIP2=1 14954 14955$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h 14956 14957 GEOIP2_LIBS="-lmaxminddb" 14958 14959fi 14960 14961 LIBS=$XLIBS 14962 14963fi 14964 14965 14966 14967 14968 14969# explicit check on math lib. libev also does this, but 14970# might not in the future, and we need it directly 14971XLIBS=$LIBS 14972LIBS="" 14973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5 14974$as_echo_n "checking for atan2 in -lm... " >&6; } 14975if ${ac_cv_lib_m_atan2+:} false; then : 14976 $as_echo_n "(cached) " >&6 14977else 14978 ac_check_lib_save_LIBS=$LIBS 14979LIBS="-lm $LIBS" 14980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14981/* end confdefs.h. */ 14982 14983/* Override any GCC internal prototype to avoid an error. 14984 Use char because int might match the return type of a GCC 14985 builtin and then its argument prototype would still apply. */ 14986#ifdef __cplusplus 14987extern "C" 14988#endif 14989char atan2 (); 14990int 14991main () 14992{ 14993return atan2 (); 14994 ; 14995 return 0; 14996} 14997_ACEOF 14998if ac_fn_c_try_link "$LINENO"; then : 14999 ac_cv_lib_m_atan2=yes 15000else 15001 ac_cv_lib_m_atan2=no 15002fi 15003rm -f core conftest.err conftest.$ac_objext \ 15004 conftest$ac_exeext conftest.$ac_ext 15005LIBS=$ac_check_lib_save_LIBS 15006fi 15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5 15008$as_echo "$ac_cv_lib_m_atan2" >&6; } 15009if test "x$ac_cv_lib_m_atan2" = xyes; then : 15010 cat >>confdefs.h <<_ACEOF 15011#define HAVE_LIBM 1 15012_ACEOF 15013 15014 LIBS="-lm $LIBS" 15015 15016fi 15017 15018MATH_LIB=$LIBS 15019LIBS=$XLIBS 15020 15021 15022# posix_madvise to readahead on zonefiles 15023for ac_func in posix_madvise 15024do : 15025 ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise" 15026if test "x$ac_cv_func_posix_madvise" = xyes; then : 15027 cat >>confdefs.h <<_ACEOF 15028#define HAVE_POSIX_MADVISE 1 15029_ACEOF 15030 15031fi 15032done 15033 15034 15035# high-precision mtime from struct stat 15036ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default" 15037if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : 15038 15039cat >>confdefs.h <<_ACEOF 15040#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 15041_ACEOF 15042 15043 15044fi 15045 15046ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default" 15047if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then : 15048 15049cat >>confdefs.h <<_ACEOF 15050#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 15051_ACEOF 15052 15053 15054fi 15055 15056ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" 15057if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 15058 15059cat >>confdefs.h <<_ACEOF 15060#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 15061_ACEOF 15062 15063 15064fi 15065 15066 15067# *mmsg for Linux 15068HAS_SENDMMSG=1 15069ac_fn_c_check_decl "$LINENO" "sendmmsg" "ac_cv_have_decl_sendmmsg" "#include <sys/socket.h> 15070" 15071if test "x$ac_cv_have_decl_sendmmsg" = xyes; then : 15072 ac_have_decl=1 15073else 15074 ac_have_decl=0 15075fi 15076 15077cat >>confdefs.h <<_ACEOF 15078#define HAVE_DECL_SENDMMSG $ac_have_decl 15079_ACEOF 15080if test $ac_have_decl = 1; then : 15081 15082else 15083 HAS_SENDMMSG=0 15084fi 15085ac_fn_c_check_decl "$LINENO" "recvmmsg" "ac_cv_have_decl_recvmmsg" "#include <sys/socket.h> 15086" 15087if test "x$ac_cv_have_decl_recvmmsg" = xyes; then : 15088 ac_have_decl=1 15089else 15090 ac_have_decl=0 15091fi 15092 15093cat >>confdefs.h <<_ACEOF 15094#define HAVE_DECL_RECVMMSG $ac_have_decl 15095_ACEOF 15096if test $ac_have_decl = 1; then : 15097 15098else 15099 HAS_SENDMMSG=0 15100fi 15101 15102for ac_func in sendmmsg recvmmsg 15103do : 15104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15105ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15106if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15107 cat >>confdefs.h <<_ACEOF 15108#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15109_ACEOF 15110 15111else 15112 HAS_SENDMMSG=0 15113fi 15114done 15115 15116if test $HAS_SENDMMSG -eq 1; then 15117 15118$as_echo "#define USE_SENDMMSG 1" >>confdefs.h 15119 15120fi 15121 15122# Network Stuff 15123 15124$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 15125 15126 15127# liburcu-qsbr 15128KILL_QSBR=0 15129 15130# Check whether --with-urcu was given. 15131if test "${with_urcu+set}" = set; then : 15132 withval=$with_urcu; 15133 if test "x$withval" = xno; then 15134 KILL_QSBR=1 15135 fi 15136 15137fi 15138 15139 15140GDNSD_B_QSBR=0 15141QSBRLIBS= 15142if test $KILL_QSBR -eq 0; then 15143 ac_fn_c_check_header_mongrel "$LINENO" "urcu-qsbr.h" "ac_cv_header_urcu_qsbr_h" "$ac_includes_default" 15144if test "x$ac_cv_header_urcu_qsbr_h" = xyes; then : 15145 15146 XLIBS=$LIBS 15147 LIBS="" 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror in -lurcu-qsbr" >&5 15149$as_echo_n "checking for perror in -lurcu-qsbr... " >&6; } 15150if ${ac_cv_lib_urcu_qsbr_perror+:} false; then : 15151 $as_echo_n "(cached) " >&6 15152else 15153 ac_check_lib_save_LIBS=$LIBS 15154LIBS="-lurcu-qsbr $LIBS" 15155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156/* end confdefs.h. */ 15157 15158/* Override any GCC internal prototype to avoid an error. 15159 Use char because int might match the return type of a GCC 15160 builtin and then its argument prototype would still apply. */ 15161#ifdef __cplusplus 15162extern "C" 15163#endif 15164char perror (); 15165int 15166main () 15167{ 15168return perror (); 15169 ; 15170 return 0; 15171} 15172_ACEOF 15173if ac_fn_c_try_link "$LINENO"; then : 15174 ac_cv_lib_urcu_qsbr_perror=yes 15175else 15176 ac_cv_lib_urcu_qsbr_perror=no 15177fi 15178rm -f core conftest.err conftest.$ac_objext \ 15179 conftest$ac_exeext conftest.$ac_ext 15180LIBS=$ac_check_lib_save_LIBS 15181fi 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_urcu_qsbr_perror" >&5 15183$as_echo "$ac_cv_lib_urcu_qsbr_perror" >&6; } 15184if test "x$ac_cv_lib_urcu_qsbr_perror" = xyes; then : 15185 15186 GDNSD_B_QSBR=1 15187 QSBRLIBS="-lurcu-qsbr" 15188 15189fi 15190 15191 LIBS=$XLIBS 15192 15193fi 15194 15195 15196fi 15197 15198cat >>confdefs.h <<_ACEOF 15199#define GDNSD_B_QSBR $GDNSD_B_QSBR 15200_ACEOF 15201 15202 15203 15204 15205# systemd unit dir for "make install" of gdnsd.service 15206 15207 15208 15209 15210 15211 15212 15213if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15214 if test -n "$ac_tool_prefix"; then 15215 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15216set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15218$as_echo_n "checking for $ac_word... " >&6; } 15219if ${ac_cv_path_PKG_CONFIG+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 case $PKG_CONFIG in 15223 [\\/]* | ?:[\\/]*) 15224 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15225 ;; 15226 *) 15227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15228for as_dir in $PATH 15229do 15230 IFS=$as_save_IFS 15231 test -z "$as_dir" && as_dir=. 15232 for ac_exec_ext in '' $ac_executable_extensions; do 15233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15234 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15236 break 2 15237 fi 15238done 15239 done 15240IFS=$as_save_IFS 15241 15242 ;; 15243esac 15244fi 15245PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15246if test -n "$PKG_CONFIG"; then 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15248$as_echo "$PKG_CONFIG" >&6; } 15249else 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15251$as_echo "no" >&6; } 15252fi 15253 15254 15255fi 15256if test -z "$ac_cv_path_PKG_CONFIG"; then 15257 ac_pt_PKG_CONFIG=$PKG_CONFIG 15258 # Extract the first word of "pkg-config", so it can be a program name with args. 15259set dummy pkg-config; ac_word=$2 15260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15261$as_echo_n "checking for $ac_word... " >&6; } 15262if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15263 $as_echo_n "(cached) " >&6 15264else 15265 case $ac_pt_PKG_CONFIG in 15266 [\\/]* | ?:[\\/]*) 15267 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15268 ;; 15269 *) 15270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15271for as_dir in $PATH 15272do 15273 IFS=$as_save_IFS 15274 test -z "$as_dir" && as_dir=. 15275 for ac_exec_ext in '' $ac_executable_extensions; do 15276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15277 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15279 break 2 15280 fi 15281done 15282 done 15283IFS=$as_save_IFS 15284 15285 ;; 15286esac 15287fi 15288ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15289if test -n "$ac_pt_PKG_CONFIG"; then 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15291$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15292else 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15294$as_echo "no" >&6; } 15295fi 15296 15297 if test "x$ac_pt_PKG_CONFIG" = x; then 15298 PKG_CONFIG="" 15299 else 15300 case $cross_compiling:$ac_tool_warned in 15301yes:) 15302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15304ac_tool_warned=yes ;; 15305esac 15306 PKG_CONFIG=$ac_pt_PKG_CONFIG 15307 fi 15308else 15309 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15310fi 15311 15312fi 15313if test -n "$PKG_CONFIG"; then 15314 _pkg_min_version=0.9.0 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15316$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15317 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15319$as_echo "yes" >&6; } 15320 else 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15322$as_echo "no" >&6; } 15323 PKG_CONFIG="" 15324 fi 15325fi 15326 15327if test -n "$SYSD_UNITDIR"; then 15328 pkg_cv_SYSD_UNITDIR="$SYSD_UNITDIR" 15329 elif test -n "$PKG_CONFIG"; then 15330 if test -n "$PKG_CONFIG" && \ 15331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 15332 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 15333 ac_status=$? 15334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15335 test $ac_status = 0; }; then 15336 pkg_cv_SYSD_UNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null` 15337 test "x$?" != "x0" && pkg_failed=yes 15338else 15339 pkg_failed=yes 15340fi 15341 else 15342 pkg_failed=untried 15343fi 15344SYSD_UNITDIR=$pkg_cv_SYSD_UNITDIR 15345 15346if test "x$SYSD_UNITDIR" = x""; then : 15347 15348fi 15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit installdir" >&5 15350$as_echo_n "checking for systemd system unit installdir... " >&6; } 15351 15352# Check whether --with-systemdsystemunitdir was given. 15353if test "${with_systemdsystemunitdir+set}" = set; then : 15354 withval=$with_systemdsystemunitdir; if test x"$with_systemdsystemunitdir" = xno; then 15355 with_systemdsystemunitdir="" 15356 fi 15357else 15358 with_systemdsystemunitdir="$SYSD_UNITDIR" 15359 15360fi 15361 15362if test -n "$with_systemdsystemunitdir"; then 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5 15364$as_echo "$with_systemdsystemunitdir" >&6; } 15365else 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 15367$as_echo "none" >&6; } 15368fi 15369systemdsystemunitdir=$with_systemdsystemunitdir 15370 15371 if test -n "$with_systemdsystemunitdir"; then 15372 DO_SYSD_UNITFILE_TRUE= 15373 DO_SYSD_UNITFILE_FALSE='#' 15374else 15375 DO_SYSD_UNITFILE_TRUE='#' 15376 DO_SYSD_UNITFILE_FALSE= 15377fi 15378 15379 15380# libev (which shouldn't use pkg-config anyways, but has 15381# to on Fedora because they munge the header path the author intended...) 15382 15383pkg_failed=no 15384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev >= 4.0" >&5 15385$as_echo_n "checking for libev >= 4.0... " >&6; } 15386 15387if test -n "$LIBEV_CFLAGS"; then 15388 pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS" 15389 elif test -n "$PKG_CONFIG"; then 15390 if test -n "$PKG_CONFIG" && \ 15391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev >= 4.0\""; } >&5 15392 ($PKG_CONFIG --exists --print-errors "libev >= 4.0") 2>&5 15393 ac_status=$? 15394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15395 test $ac_status = 0; }; then 15396 pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev >= 4.0" 2>/dev/null` 15397 test "x$?" != "x0" && pkg_failed=yes 15398else 15399 pkg_failed=yes 15400fi 15401 else 15402 pkg_failed=untried 15403fi 15404if test -n "$LIBEV_LIBS"; then 15405 pkg_cv_LIBEV_LIBS="$LIBEV_LIBS" 15406 elif test -n "$PKG_CONFIG"; then 15407 if test -n "$PKG_CONFIG" && \ 15408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev >= 4.0\""; } >&5 15409 ($PKG_CONFIG --exists --print-errors "libev >= 4.0") 2>&5 15410 ac_status=$? 15411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15412 test $ac_status = 0; }; then 15413 pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev >= 4.0" 2>/dev/null` 15414 test "x$?" != "x0" && pkg_failed=yes 15415else 15416 pkg_failed=yes 15417fi 15418 else 15419 pkg_failed=untried 15420fi 15421 15422 15423 15424if test $pkg_failed = yes; then 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15426$as_echo "no" >&6; } 15427 15428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15429 _pkg_short_errors_supported=yes 15430else 15431 _pkg_short_errors_supported=no 15432fi 15433 if test $_pkg_short_errors_supported = yes; then 15434 LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev >= 4.0" 2>&1` 15435 else 15436 LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev >= 4.0" 2>&1` 15437 fi 15438 # Put the nasty error message in config.log where it belongs 15439 echo "$LIBEV_PKG_ERRORS" >&5 15440 15441 # try manually... 15442 XLIBS=$LIBS 15443 LIBS="" 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_break in -lev" >&5 15445$as_echo_n "checking for ev_break in -lev... " >&6; } 15446if ${ac_cv_lib_ev_ev_break+:} false; then : 15447 $as_echo_n "(cached) " >&6 15448else 15449 ac_check_lib_save_LIBS=$LIBS 15450LIBS="-lev $LIBS" 15451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453 15454/* Override any GCC internal prototype to avoid an error. 15455 Use char because int might match the return type of a GCC 15456 builtin and then its argument prototype would still apply. */ 15457#ifdef __cplusplus 15458extern "C" 15459#endif 15460char ev_break (); 15461int 15462main () 15463{ 15464return ev_break (); 15465 ; 15466 return 0; 15467} 15468_ACEOF 15469if ac_fn_c_try_link "$LINENO"; then : 15470 ac_cv_lib_ev_ev_break=yes 15471else 15472 ac_cv_lib_ev_ev_break=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext \ 15475 conftest$ac_exeext conftest.$ac_ext 15476LIBS=$ac_check_lib_save_LIBS 15477fi 15478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_break" >&5 15479$as_echo "$ac_cv_lib_ev_ev_break" >&6; } 15480if test "x$ac_cv_lib_ev_ev_break" = xyes; then : 15481 cat >>confdefs.h <<_ACEOF 15482#define HAVE_LIBEV 1 15483_ACEOF 15484 15485 LIBS="-lev $LIBS" 15486 15487else 15488 as_fn_error $? "libev 4.x library not found!" "$LINENO" 5 15489fi 15490 15491 ac_fn_c_check_decl "$LINENO" "EVBREAK_ALL" "ac_cv_have_decl_EVBREAK_ALL" " 15492 #include <ev.h> 15493 15494" 15495if test "x$ac_cv_have_decl_EVBREAK_ALL" = xyes; then : 15496 ac_have_decl=1 15497else 15498 ac_have_decl=0 15499fi 15500 15501cat >>confdefs.h <<_ACEOF 15502#define HAVE_DECL_EVBREAK_ALL $ac_have_decl 15503_ACEOF 15504if test $ac_have_decl = 1; then : 15505 15506else 15507 as_fn_error $? "libev 4.x headers not found!" "$LINENO" 5 15508fi 15509 15510 LIBEV_LIBS=$LIBS 15511 LIBS=$XLIBS 15512 15513elif test $pkg_failed = untried; then 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15515$as_echo "no" >&6; } 15516 # try manually... 15517 XLIBS=$LIBS 15518 LIBS="" 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_break in -lev" >&5 15520$as_echo_n "checking for ev_break in -lev... " >&6; } 15521if ${ac_cv_lib_ev_ev_break+:} false; then : 15522 $as_echo_n "(cached) " >&6 15523else 15524 ac_check_lib_save_LIBS=$LIBS 15525LIBS="-lev $LIBS" 15526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527/* end confdefs.h. */ 15528 15529/* Override any GCC internal prototype to avoid an error. 15530 Use char because int might match the return type of a GCC 15531 builtin and then its argument prototype would still apply. */ 15532#ifdef __cplusplus 15533extern "C" 15534#endif 15535char ev_break (); 15536int 15537main () 15538{ 15539return ev_break (); 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_link "$LINENO"; then : 15545 ac_cv_lib_ev_ev_break=yes 15546else 15547 ac_cv_lib_ev_ev_break=no 15548fi 15549rm -f core conftest.err conftest.$ac_objext \ 15550 conftest$ac_exeext conftest.$ac_ext 15551LIBS=$ac_check_lib_save_LIBS 15552fi 15553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_break" >&5 15554$as_echo "$ac_cv_lib_ev_ev_break" >&6; } 15555if test "x$ac_cv_lib_ev_ev_break" = xyes; then : 15556 cat >>confdefs.h <<_ACEOF 15557#define HAVE_LIBEV 1 15558_ACEOF 15559 15560 LIBS="-lev $LIBS" 15561 15562else 15563 as_fn_error $? "libev 4.x library not found!" "$LINENO" 5 15564fi 15565 15566 ac_fn_c_check_decl "$LINENO" "EVBREAK_ALL" "ac_cv_have_decl_EVBREAK_ALL" " 15567 #include <ev.h> 15568 15569" 15570if test "x$ac_cv_have_decl_EVBREAK_ALL" = xyes; then : 15571 ac_have_decl=1 15572else 15573 ac_have_decl=0 15574fi 15575 15576cat >>confdefs.h <<_ACEOF 15577#define HAVE_DECL_EVBREAK_ALL $ac_have_decl 15578_ACEOF 15579if test $ac_have_decl = 1; then : 15580 15581else 15582 as_fn_error $? "libev 4.x headers not found!" "$LINENO" 5 15583fi 15584 15585 LIBEV_LIBS=$LIBS 15586 LIBS=$XLIBS 15587 15588else 15589 LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS 15590 LIBEV_LIBS=$pkg_cv_LIBEV_LIBS 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15592$as_echo "yes" >&6; } 15593 CPPFLAGS="${CPPFLAGS} ${LIBEV_CFLAGS}" 15594 15595fi 15596 15597 15598#--------------------------------------------- 15599# pthread setname (4 non-portable variants...) 15600#--------------------------------------------- 15601for ac_header in pthread_np.h 15602do : 15603 ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" 15604if test "x$ac_cv_header_pthread_np_h" = xyes; then : 15605 cat >>confdefs.h <<_ACEOF 15606#define HAVE_PTHREAD_NP_H 1 15607_ACEOF 15608 15609fi 15610 15611done 15612 15613 15614# 2-arg setname (e.g. Linux/glibc, QNX, IBM) 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2-arg pthread_setname_np" >&5 15616$as_echo_n "checking for 2-arg pthread_setname_np... " >&6; } 15617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618/* end confdefs.h. */ 15619 15620 #include <pthread.h> 15621 #if HAVE_PTHREAD_NP_H 15622 # include <pthread_np.h> 15623 #endif 15624 15625int 15626main () 15627{ 15628 15629 pthread_setname_np(pthread_self(), "foo") 15630 15631 ; 15632 return 0; 15633} 15634_ACEOF 15635if ac_fn_c_try_link "$LINENO"; then : 15636 15637 15638$as_echo "#define HAVE_PTHREAD_SETNAME_NP_2 1" >>confdefs.h 15639 15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15641$as_echo "yes" >&6; } 15642 15643else 15644 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15646$as_echo "no" >&6; } 15647 15648 # 2-arg set_name (e.g. FreeBSD, OpenBSD) 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2-arg pthread_set_name_np" >&5 15650$as_echo_n "checking for 2-arg pthread_set_name_np... " >&6; } 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653 15654 #include <pthread.h> 15655 #if HAVE_PTHREAD_NP_H 15656 # include <pthread_np.h> 15657 #endif 15658 15659int 15660main () 15661{ 15662 15663 pthread_set_name_np(pthread_self(), "foo"); 15664 15665 ; 15666 return 0; 15667} 15668_ACEOF 15669if ac_fn_c_try_link "$LINENO"; then : 15670 15671 15672$as_echo "#define HAVE_PTHREAD_SET_NAME_NP_2 1" >>confdefs.h 15673 15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15675$as_echo "yes" >&6; } 15676 15677else 15678 15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15680$as_echo "no" >&6; } 15681 15682 # 1-arg setname (e.g. Darwin) 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1-arg pthread_setname_np" >&5 15684$as_echo_n "checking for 1-arg pthread_setname_np... " >&6; } 15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15686/* end confdefs.h. */ 15687 15688 #include <pthread.h> 15689 #if HAVE_PTHREAD_NP_H 15690 # include <pthread_np.h> 15691 #endif 15692 15693int 15694main () 15695{ 15696 15697 return pthread_setname_np("foo"); 15698 15699 ; 15700 return 0; 15701} 15702_ACEOF 15703if ac_fn_c_try_link "$LINENO"; then : 15704 15705 15706$as_echo "#define HAVE_PTHREAD_SETNAME_NP_1 1" >>confdefs.h 15707 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15709$as_echo "yes" >&6; } 15710 15711else 15712 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15714$as_echo "no" >&6; } 15715 15716 # 3-arg setname (e.g. NetBSD) 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-arg pthread_setname_np" >&5 15718$as_echo_n "checking for 3-arg pthread_setname_np... " >&6; } 15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15720/* end confdefs.h. */ 15721 15722 #include <pthread.h> 15723 #if HAVE_PTHREAD_NP_H 15724 # include <pthread_np.h> 15725 #endif 15726 15727int 15728main () 15729{ 15730 15731 return pthread_setname_np(pthread_self(), "foo", NULL); 15732 15733 ; 15734 return 0; 15735} 15736_ACEOF 15737if ac_fn_c_try_link "$LINENO"; then : 15738 15739 15740$as_echo "#define HAVE_PTHREAD_SETNAME_NP_3 1" >>confdefs.h 15741 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15743$as_echo "yes" >&6; } 15744 15745else 15746 15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15748$as_echo "no" >&6; } 15749 15750fi 15751rm -f core conftest.err conftest.$ac_objext \ 15752 conftest$ac_exeext conftest.$ac_ext 15753 15754fi 15755rm -f core conftest.err conftest.$ac_objext \ 15756 conftest$ac_exeext conftest.$ac_ext 15757 15758fi 15759rm -f core conftest.err conftest.$ac_objext \ 15760 conftest$ac_exeext conftest.$ac_ext 15761 15762fi 15763rm -f core conftest.err conftest.$ac_objext \ 15764 conftest$ac_exeext conftest.$ac_ext 15765#--------------------------------------------- 15766# end pthread_setname stuff 15767#--------------------------------------------- 15768 15769# == inotify stuff == 15770# inotify_init1() is Linux 2.6.27+ and glibc 2.9 15771# We also use Linux 2.6.36+ / glibc 2.13 IN_EXCL_UNLINK, but we 15772# fix that with a manual ifndef for the define and a runtime 15773# kernel version check for the support 15774USE_INOTIFY=1 15775for ac_func in inotify_init1 15776do : 15777 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1" 15778if test "x$ac_cv_func_inotify_init1" = xyes; then : 15779 cat >>confdefs.h <<_ACEOF 15780#define HAVE_INOTIFY_INIT1 1 15781_ACEOF 15782 15783else 15784 USE_INOTIFY=0 15785fi 15786done 15787 15788if test $USE_INOTIFY -eq 1; then 15789 15790$as_echo "#define USE_INOTIFY 1" >>confdefs.h 15791 15792fi 15793 15794# Basic perl 5.10.1+ 15795 15796if test "x$ac_cv_env_PERL_set" != "xset"; then 15797 # Extract the first word of "perl", so it can be a program name with args. 15798set dummy perl; ac_word=$2 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15800$as_echo_n "checking for $ac_word... " >&6; } 15801if ${ac_cv_path_PERL+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 case $PERL in 15805 [\\/]* | ?:[\\/]*) 15806 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 15807 ;; 15808 *) 15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15810for as_dir in $PATH 15811do 15812 IFS=$as_save_IFS 15813 test -z "$as_dir" && as_dir=. 15814 for ac_exec_ext in '' $ac_executable_extensions; do 15815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15816 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 15817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15818 break 2 15819 fi 15820done 15821 done 15822IFS=$as_save_IFS 15823 15824 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="missing" 15825 ;; 15826esac 15827fi 15828PERL=$ac_cv_path_PERL 15829if test -n "$PERL"; then 15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 15831$as_echo "$PERL" >&6; } 15832else 15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15834$as_echo "no" >&6; } 15835fi 15836 15837 15838fi 15839if test x"$PERL" = xmissing; then 15840 as_fn_error $? "Cannot find required perl binary" "$LINENO" 5 15841fi 15842 15843 15844 15845 15846 if test -n "$PERL"; then : 15847 15848 ax_perl_version="5.10.1" 15849 15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 15851$as_echo_n "checking for perl version... " >&6; } 15852 15853 perl_version=`$PERL --version 2>&1 \ 15854 | $SED -n -e '/This is perl/b inspect 15855b 15856: inspect 15857s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'` 15858 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 15860$as_echo "$perl_version" >&6; } 15861 15862 PERL_VERSION=$perl_version 15863 15864 15865 15866 15867 15868 # Used to indicate true or false condition 15869 ax_compare_version=false 15870 15871 # Convert the two version strings to be compared into a format that 15872 # allows a simple string comparison. The end result is that a version 15873 # string of the form 1.12.5-r617 will be converted to the form 15874 # 0001001200050617. In other words, each number is zero padded to four 15875 # digits, and non digits are removed. 15876 15877 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 15878 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 15879 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 15880 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 15881 -e 's/[^0-9]//g'` 15882 15883 15884 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 15885 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 15886 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 15887 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 15888 -e 's/[^0-9]//g'` 15889 15890 15891 ax_compare_version=`echo "x$ax_compare_version_A 15892x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 15893 15894 15895 15896 if test "$ax_compare_version" = "true" ; then 15897 15898 : 15899 15900 15901 else 15902 : 15903 as_fn_error $? "Perl 5.10.1 or higher required" "$LINENO" 5 15904 15905 fi 15906 15907 15908else 15909 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 15911$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} 15912 as_fn_error $? "Perl 5.10.1 or higher required" "$LINENO" 5 15913 15914fi 15915 15916 15917# pod2man 15918 15919if test "x$ac_cv_env_POD2MAN_set" != "xset"; then 15920 # Extract the first word of "pod2man", so it can be a program name with args. 15921set dummy pod2man; ac_word=$2 15922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15923$as_echo_n "checking for $ac_word... " >&6; } 15924if ${ac_cv_path_POD2MAN+:} false; then : 15925 $as_echo_n "(cached) " >&6 15926else 15927 case $POD2MAN in 15928 [\\/]* | ?:[\\/]*) 15929 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 15930 ;; 15931 *) 15932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15933for as_dir in $PATH 15934do 15935 IFS=$as_save_IFS 15936 test -z "$as_dir" && as_dir=. 15937 for ac_exec_ext in '' $ac_executable_extensions; do 15938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15939 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 15940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15941 break 2 15942 fi 15943done 15944 done 15945IFS=$as_save_IFS 15946 15947 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="missing" 15948 ;; 15949esac 15950fi 15951POD2MAN=$ac_cv_path_POD2MAN 15952if test -n "$POD2MAN"; then 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 15954$as_echo "$POD2MAN" >&6; } 15955else 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15957$as_echo "no" >&6; } 15958fi 15959 15960 15961fi 15962if test x"$POD2MAN" = xmissing; then 15963 as_fn_error $? "Cannot find required pod2man binary (perl podlater)" "$LINENO" 5 15964fi 15965 15966# prove for test harness (optional) 15967 15968if test "x$ac_cv_env_PROVE_set" != "xset"; then 15969 # Extract the first word of "prove", so it can be a program name with args. 15970set dummy prove; ac_word=$2 15971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15972$as_echo_n "checking for $ac_word... " >&6; } 15973if ${ac_cv_path_PROVE+:} false; then : 15974 $as_echo_n "(cached) " >&6 15975else 15976 case $PROVE in 15977 [\\/]* | ?:[\\/]*) 15978 ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path. 15979 ;; 15980 *) 15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15982for as_dir in $PATH 15983do 15984 IFS=$as_save_IFS 15985 test -z "$as_dir" && as_dir=. 15986 for ac_exec_ext in '' $ac_executable_extensions; do 15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15988 ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext" 15989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15990 break 2 15991 fi 15992done 15993 done 15994IFS=$as_save_IFS 15995 15996 test -z "$ac_cv_path_PROVE" && ac_cv_path_PROVE="missing" 15997 ;; 15998esac 15999fi 16000PROVE=$ac_cv_path_PROVE 16001if test -n "$PROVE"; then 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5 16003$as_echo "$PROVE" >&6; } 16004else 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16006$as_echo "no" >&6; } 16007fi 16008 16009 16010fi 16011if test x"$PROVE" = xmissing; then 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot \"make check\" without the Perl Test::Harness \"prove\" command" >&5 16013$as_echo "$as_me: WARNING: Cannot \"make check\" without the Perl Test::Harness \"prove\" command" >&2;} 16014fi 16015 16016# various perl modules for the testsuites (optional) 16017HAVE_TESTSUITE_MODULES=0 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034# Make sure we have perl 16035if test -z "$PERL"; then 16036# Extract the first word of "perl", so it can be a program name with args. 16037set dummy perl; ac_word=$2 16038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16039$as_echo_n "checking for $ac_word... " >&6; } 16040if ${ac_cv_prog_PERL+:} false; then : 16041 $as_echo_n "(cached) " >&6 16042else 16043 if test -n "$PERL"; then 16044 ac_cv_prog_PERL="$PERL" # Let the user override the test. 16045else 16046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16047for as_dir in $PATH 16048do 16049 IFS=$as_save_IFS 16050 test -z "$as_dir" && as_dir=. 16051 for ac_exec_ext in '' $ac_executable_extensions; do 16052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16053 ac_cv_prog_PERL="perl" 16054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16055 break 2 16056 fi 16057done 16058 done 16059IFS=$as_save_IFS 16060 16061fi 16062fi 16063PERL=$ac_cv_prog_PERL 16064if test -n "$PERL"; then 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 16066$as_echo "$PERL" >&6; } 16067else 16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16069$as_echo "no" >&6; } 16070fi 16071 16072 16073fi 16074 16075if test "x$PERL" != x; then 16076 ax_perl_modules_failed=0 16077 for ax_perl_module in 'Test::More' 'JSON::PP' 'Socket6' 'IO::Socket::INET6' 'HTTP::Daemon' 'LWP' ; do 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 16079$as_echo_n "checking for perl module $ax_perl_module... " >&6; } 16080 16081 # Would be nice to log result here, but can't rely on autoconf internals 16082 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 16083 if test $? -ne 0; then 16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16085$as_echo "no" >&6; }; 16086 ax_perl_modules_failed=1 16087 else 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16089$as_echo "ok" >&6; }; 16090 fi 16091 done 16092 16093 # Run optional shell commands 16094 if test "$ax_perl_modules_failed" = 0; then 16095 : 16096 HAVE_TESTSUITE_MODULES=1 16097 else 16098 : 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot \"make check\" without Perl modules Test::More, JSON::PP, Socket6, IO::Socket::INET6, HTTP::Daemon, and LWP (aka libwww-perl)" >&5 16100$as_echo "$as_me: WARNING: Cannot \"make check\" without Perl modules Test::More, JSON::PP, Socket6, IO::Socket::INET6, HTTP::Daemon, and LWP (aka libwww-perl)" >&2;} 16101 16102 fi 16103else 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 16105$as_echo "$as_me: WARNING: could not find perl" >&2;} 16106fi 16107 16108 16109# Find ragel 16110 16111if test "x$ac_cv_env_RAGEL_set" != "xset"; then 16112 # Extract the first word of "ragel", so it can be a program name with args. 16113set dummy ragel; ac_word=$2 16114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16115$as_echo_n "checking for $ac_word... " >&6; } 16116if ${ac_cv_path_RAGEL+:} false; then : 16117 $as_echo_n "(cached) " >&6 16118else 16119 case $RAGEL in 16120 [\\/]* | ?:[\\/]*) 16121 ac_cv_path_RAGEL="$RAGEL" # Let the user override the test with a path. 16122 ;; 16123 *) 16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16125for as_dir in $PATH 16126do 16127 IFS=$as_save_IFS 16128 test -z "$as_dir" && as_dir=. 16129 for ac_exec_ext in '' $ac_executable_extensions; do 16130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16131 ac_cv_path_RAGEL="$as_dir/$ac_word$ac_exec_ext" 16132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16133 break 2 16134 fi 16135done 16136 done 16137IFS=$as_save_IFS 16138 16139 test -z "$ac_cv_path_RAGEL" && ac_cv_path_RAGEL="missing" 16140 ;; 16141esac 16142fi 16143RAGEL=$ac_cv_path_RAGEL 16144if test -n "$RAGEL"; then 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAGEL" >&5 16146$as_echo "$RAGEL" >&6; } 16147else 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16149$as_echo "no" >&6; } 16150fi 16151 16152 16153fi 16154if test "x$RAGEL" = xmissing; then 16155 as_fn_error $? "Ragel not found" "$LINENO" 5 16156else 16157 $RAGEL --version|$EGREP 'Ragel State Machine Compiler version 6\.' >/dev/null \ 16158 || as_fn_error $? "Ragel is not version 6.x" "$LINENO" 5 16159fi 16160 16161# Discover CPUs for testsuite parallelism, allowing user to override via env var. 16162# I'd much rather either: 16163# (a) steal the user-supplied -jN argument from make inside of Makefile.am, 16164# but there doesn't seem to be a really good way to do that reliably, especially with 16165# recursive make. or... 16166# (b) Set -jN based on TEST_CPUS (and rename it BUILD_CPUS), but there doesn't seem 16167# to be any clean way to do that either without disabling direct user override 16168# of that in MAKEFLAGS at make invocation time... 16169# As things stand with this commit, user-supplied -jN controls build parallelism 16170# and is not auto-detected, while TEST_CPUS controls testsuite parallelism, and 16171# is auto-detected but can be overridden at configure time. 16172 16173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of CPUs available for testing" >&5 16174$as_echo_n "checking number of CPUs available for testing... " >&6; } 16175if test "x$ac_cv_env_TEST_CPUS_set" = "xset"; then 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_CPUS (user-specified)" >&5 16177$as_echo "$TEST_CPUS (user-specified)" >&6; } 16178else 16179 # These two methods should work for the *BSDs, MacOS, and Linux 16180 TEST_CPUS=$(sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1) 16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_CPUS" >&5 16182$as_echo "$TEST_CPUS" >&6; } 16183fi 16184 16185# Decompressor for compressed test data from git submodule 16186 16187if test "x$ac_cv_env_XZ_set" != "xset"; then 16188 # Extract the first word of "xz", so it can be a program name with args. 16189set dummy xz; ac_word=$2 16190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16191$as_echo_n "checking for $ac_word... " >&6; } 16192if ${ac_cv_path_XZ+:} false; then : 16193 $as_echo_n "(cached) " >&6 16194else 16195 case $XZ in 16196 [\\/]* | ?:[\\/]*) 16197 ac_cv_path_XZ="$XZ" # Let the user override the test with a path. 16198 ;; 16199 *) 16200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16201for as_dir in $PATH 16202do 16203 IFS=$as_save_IFS 16204 test -z "$as_dir" && as_dir=. 16205 for ac_exec_ext in '' $ac_executable_extensions; do 16206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16207 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext" 16208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16209 break 2 16210 fi 16211done 16212 done 16213IFS=$as_save_IFS 16214 16215 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="missing" 16216 ;; 16217esac 16218fi 16219XZ=$ac_cv_path_XZ 16220if test -n "$XZ"; then 16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5 16222$as_echo "$XZ" >&6; } 16223else 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16225$as_echo "no" >&6; } 16226fi 16227 16228 16229fi 16230 if test x$XZ != xmissing; then 16231 HAS_XZ_TRUE= 16232 HAS_XZ_FALSE='#' 16233else 16234 HAS_XZ_TRUE='#' 16235 HAS_XZ_FALSE= 16236fi 16237 16238 16239# Allow user to override the port range we use for testing 16240 16241# Check whether --with-testport was given. 16242if test "${with_testport+set}" = set; then : 16243 withval=$with_testport; 16244else 16245 with_testport=12345 16246 16247fi 16248 16249 16250TESTPORT_START=$with_testport 16251 16252 16253for ac_header in valgrind/memcheck.h 16254do : 16255 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" 16256if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : 16257 cat >>confdefs.h <<_ACEOF 16258#define HAVE_VALGRIND_MEMCHECK_H 1 16259_ACEOF 16260 16261fi 16262 16263done 16264 16265 16266# Allow specifying an alternate rundir (default $localstatedir/run) for distros 16267# that prefer e.g. /run to /var/run 16268rundir_fail="The --with-rundir= option must specify an absolute pathname if used"; 16269 16270# Check whether --with-rundir was given. 16271if test "${with_rundir+set}" = set; then : 16272 withval=$with_rundir; 16273 echo "$with_rundir" | $GREP '^/' >/dev/null || as_fn_error $? "$rundir_fail" "$LINENO" 5 16274 GDNSD_DEFPATH_RUN="${with_rundir}/${PACKAGE_NAME}" 16275 16276else 16277 16278 GDNSD_DEFPATH_RUN="${localstatedir}/run/${PACKAGE_NAME}" 16279 16280fi 16281 16282GDNSD_DEFPATH_CONFIG="${sysconfdir}/${PACKAGE_NAME}" 16283GDNSD_DEFPATH_STATE="/var/db/gdnsd" 16284GDNSD_DEFPATH_LIB="${libdir}/${PACKAGE_NAME}" 16285GDNSD_DEFPATH_LIBEXEC="${libexecdir}/${PACKAGE_NAME}" 16286 16287 16288 16289 16290 16291 16292# clump up all of the libgdnsd libdeps for re-use in LDADD for 16293# binaries that link libgdnsd on platforms where libtool's 16294# automatic dep resolution is disabled 16295LIBGDNSD_LIBS="$MATH_LIB $QSBRLIBS $LIBEV_LIBS $LIBADD_DLOPEN $LIBUNWIND_LIBS" 16296 16297 16298# BUILD_FEATURES for cmdline output 16299B_FEAT="prod" 16300if test "x$developer" != xno; then B_FEAT="dev"; fi 16301if test "x$HAS_SENDMMSG" = x1; then B_FEAT="$B_FEAT mmsg"; fi 16302if test "x$USE_INOTIFY" = x1; then B_FEAT="$B_FEAT inotify"; fi 16303if test "x$HAVE_LIBUNWIND" = x1; then B_FEAT="$B_FEAT unwind"; fi 16304if test "x$HAVE_GEOIP2" = x1; then B_FEAT="$B_FEAT geoip2"; fi 16305if test "x$GDNSD_B_QSBR" = x1; then B_FEAT="$B_FEAT urcu"; fi 16306 16307cat >>confdefs.h <<_ACEOF 16308#define BUILD_FEATURES "$B_FEAT" 16309_ACEOF 16310 16311 16312# BUILD_INFO for cmdline output 16313B_INFO=non-git 16314if test -d ${srcdir}/${GIT_DIR:-.git} -o -f ${srcdir}/.git; then 16315 B_INFO=`cd ${srcdir}; git describe --match 'v[0-9]*' --always --dirty` 16316fi 16317 16318cat >>confdefs.h <<_ACEOF 16319#define BUILD_INFO "$B_INFO" 16320_ACEOF 16321 16322 16323# Output generation 16324ac_config_headers="$ac_config_headers config.h" 16325 16326ac_config_files="$ac_config_files Makefile t/Makefile t/libtap/Makefile t/libgdmaps/Makefile" 16327 16328ac_config_commands="$ac_config_commands mkdirs" 16329 16330cat >confcache <<\_ACEOF 16331# This file is a shell script that caches the results of configure 16332# tests run on this system so they can be shared between configure 16333# scripts and configure runs, see configure's option --config-cache. 16334# It is not useful on other systems. If it contains results you don't 16335# want to keep, you may remove or edit it. 16336# 16337# config.status only pays attention to the cache file if you give it 16338# the --recheck option to rerun configure. 16339# 16340# `ac_cv_env_foo' variables (set or unset) will be overridden when 16341# loading this file, other *unset* `ac_cv_foo' will be assigned the 16342# following values. 16343 16344_ACEOF 16345 16346# The following way of writing the cache mishandles newlines in values, 16347# but we know of no workaround that is simple, portable, and efficient. 16348# So, we kill variables containing newlines. 16349# Ultrix sh set writes to stderr and can't be redirected directly, 16350# and sets the high bit in the cache file unless we assign to the vars. 16351( 16352 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16353 eval ac_val=\$$ac_var 16354 case $ac_val in #( 16355 *${as_nl}*) 16356 case $ac_var in #( 16357 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16358$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16359 esac 16360 case $ac_var in #( 16361 _ | IFS | as_nl) ;; #( 16362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16363 *) { eval $ac_var=; unset $ac_var;} ;; 16364 esac ;; 16365 esac 16366 done 16367 16368 (set) 2>&1 | 16369 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16370 *${as_nl}ac_space=\ *) 16371 # `set' does not quote correctly, so add quotes: double-quote 16372 # substitution turns \\\\ into \\, and sed turns \\ into \. 16373 sed -n \ 16374 "s/'/'\\\\''/g; 16375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16376 ;; #( 16377 *) 16378 # `set' quotes correctly as required by POSIX, so do not add quotes. 16379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16380 ;; 16381 esac | 16382 sort 16383) | 16384 sed ' 16385 /^ac_cv_env_/b end 16386 t clear 16387 :clear 16388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16389 t end 16390 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16391 :end' >>confcache 16392if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16393 if test -w "$cache_file"; then 16394 if test "x$cache_file" != "x/dev/null"; then 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16396$as_echo "$as_me: updating cache $cache_file" >&6;} 16397 if test ! -f "$cache_file" || test -h "$cache_file"; then 16398 cat confcache >"$cache_file" 16399 else 16400 case $cache_file in #( 16401 */* | ?:*) 16402 mv -f confcache "$cache_file"$$ && 16403 mv -f "$cache_file"$$ "$cache_file" ;; #( 16404 *) 16405 mv -f confcache "$cache_file" ;; 16406 esac 16407 fi 16408 fi 16409 else 16410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16411$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16412 fi 16413fi 16414rm -f confcache 16415 16416test "x$prefix" = xNONE && prefix=$ac_default_prefix 16417# Let make expand exec_prefix. 16418test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16419 16420DEFS=-DHAVE_CONFIG_H 16421 16422ac_libobjs= 16423ac_ltlibobjs= 16424U= 16425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16426 # 1. Remove the extension, and $U if already installed. 16427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16430 # will be set to the directory where LIBOBJS objects are built. 16431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16433done 16434LIBOBJS=$ac_libobjs 16435 16436LTLIBOBJS=$ac_ltlibobjs 16437 16438 16439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16440$as_echo_n "checking that generated files are newer than configure... " >&6; } 16441 if test -n "$am_sleep_pid"; then 16442 # Hide warnings about reused PIDs. 16443 wait $am_sleep_pid 2>/dev/null 16444 fi 16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16446$as_echo "done" >&6; } 16447 if test -n "$EXEEXT"; then 16448 am__EXEEXT_TRUE= 16449 am__EXEEXT_FALSE='#' 16450else 16451 am__EXEEXT_TRUE='#' 16452 am__EXEEXT_FALSE= 16453fi 16454 16455if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16456 as_fn_error $? "conditional \"AMDEP\" was never defined. 16457Usually this means the macro was only invoked conditionally." "$LINENO" 5 16458fi 16459if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16460 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16461Usually this means the macro was only invoked conditionally." "$LINENO" 5 16462fi 16463 16464if test -z "${DO_SYSD_UNITFILE_TRUE}" && test -z "${DO_SYSD_UNITFILE_FALSE}"; then 16465 as_fn_error $? "conditional \"DO_SYSD_UNITFILE\" was never defined. 16466Usually this means the macro was only invoked conditionally." "$LINENO" 5 16467fi 16468if test -z "${HAS_XZ_TRUE}" && test -z "${HAS_XZ_FALSE}"; then 16469 as_fn_error $? "conditional \"HAS_XZ\" was never defined. 16470Usually this means the macro was only invoked conditionally." "$LINENO" 5 16471fi 16472 16473: "${CONFIG_STATUS=./config.status}" 16474ac_write_fail=0 16475ac_clean_files_save=$ac_clean_files 16476ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16477{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16478$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16479as_write_fail=0 16480cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16481#! $SHELL 16482# Generated by $as_me. 16483# Run this file to recreate the current configuration. 16484# Compiler output produced by configure, useful for debugging 16485# configure, is in config.log if it exists. 16486 16487debug=false 16488ac_cs_recheck=false 16489ac_cs_silent=false 16490 16491SHELL=\${CONFIG_SHELL-$SHELL} 16492export SHELL 16493_ASEOF 16494cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16495## -------------------- ## 16496## M4sh Initialization. ## 16497## -------------------- ## 16498 16499# Be more Bourne compatible 16500DUALCASE=1; export DUALCASE # for MKS sh 16501if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16502 emulate sh 16503 NULLCMD=: 16504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16505 # is contrary to our usage. Disable this feature. 16506 alias -g '${1+"$@"}'='"$@"' 16507 setopt NO_GLOB_SUBST 16508else 16509 case `(set -o) 2>/dev/null` in #( 16510 *posix*) : 16511 set -o posix ;; #( 16512 *) : 16513 ;; 16514esac 16515fi 16516 16517 16518as_nl=' 16519' 16520export as_nl 16521# Printing a long string crashes Solaris 7 /usr/bin/printf. 16522as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16523as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16524as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16525# Prefer a ksh shell builtin over an external printf program on Solaris, 16526# but without wasting forks for bash or zsh. 16527if test -z "$BASH_VERSION$ZSH_VERSION" \ 16528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16529 as_echo='print -r --' 16530 as_echo_n='print -rn --' 16531elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16532 as_echo='printf %s\n' 16533 as_echo_n='printf %s' 16534else 16535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16537 as_echo_n='/usr/ucb/echo -n' 16538 else 16539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16540 as_echo_n_body='eval 16541 arg=$1; 16542 case $arg in #( 16543 *"$as_nl"*) 16544 expr "X$arg" : "X\\(.*\\)$as_nl"; 16545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16546 esac; 16547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16548 ' 16549 export as_echo_n_body 16550 as_echo_n='sh -c $as_echo_n_body as_echo' 16551 fi 16552 export as_echo_body 16553 as_echo='sh -c $as_echo_body as_echo' 16554fi 16555 16556# The user is always right. 16557if test "${PATH_SEPARATOR+set}" != set; then 16558 PATH_SEPARATOR=: 16559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16561 PATH_SEPARATOR=';' 16562 } 16563fi 16564 16565 16566# IFS 16567# We need space, tab and new line, in precisely that order. Quoting is 16568# there to prevent editors from complaining about space-tab. 16569# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16570# splitting by setting IFS to empty value.) 16571IFS=" "" $as_nl" 16572 16573# Find who we are. Look in the path if we contain no directory separator. 16574as_myself= 16575case $0 in #(( 16576 *[\\/]* ) as_myself=$0 ;; 16577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16578for as_dir in $PATH 16579do 16580 IFS=$as_save_IFS 16581 test -z "$as_dir" && as_dir=. 16582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16583 done 16584IFS=$as_save_IFS 16585 16586 ;; 16587esac 16588# We did not find ourselves, most probably we were run as `sh COMMAND' 16589# in which case we are not to be found in the path. 16590if test "x$as_myself" = x; then 16591 as_myself=$0 16592fi 16593if test ! -f "$as_myself"; then 16594 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16595 exit 1 16596fi 16597 16598# Unset variables that we do not need and which cause bugs (e.g. in 16599# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16600# suppresses any "Segmentation fault" message there. '((' could 16601# trigger a bug in pdksh 5.2.14. 16602for as_var in BASH_ENV ENV MAIL MAILPATH 16603do eval test x\${$as_var+set} = xset \ 16604 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16605done 16606PS1='$ ' 16607PS2='> ' 16608PS4='+ ' 16609 16610# NLS nuisances. 16611LC_ALL=C 16612export LC_ALL 16613LANGUAGE=C 16614export LANGUAGE 16615 16616# CDPATH. 16617(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16618 16619 16620# as_fn_error STATUS ERROR [LINENO LOG_FD] 16621# ---------------------------------------- 16622# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16623# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16624# script with STATUS, using 1 if that was 0. 16625as_fn_error () 16626{ 16627 as_status=$1; test $as_status -eq 0 && as_status=1 16628 if test "$4"; then 16629 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16630 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16631 fi 16632 $as_echo "$as_me: error: $2" >&2 16633 as_fn_exit $as_status 16634} # as_fn_error 16635 16636 16637# as_fn_set_status STATUS 16638# ----------------------- 16639# Set $? to STATUS, without forking. 16640as_fn_set_status () 16641{ 16642 return $1 16643} # as_fn_set_status 16644 16645# as_fn_exit STATUS 16646# ----------------- 16647# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16648as_fn_exit () 16649{ 16650 set +e 16651 as_fn_set_status $1 16652 exit $1 16653} # as_fn_exit 16654 16655# as_fn_unset VAR 16656# --------------- 16657# Portably unset VAR. 16658as_fn_unset () 16659{ 16660 { eval $1=; unset $1;} 16661} 16662as_unset=as_fn_unset 16663# as_fn_append VAR VALUE 16664# ---------------------- 16665# Append the text in VALUE to the end of the definition contained in VAR. Take 16666# advantage of any shell optimizations that allow amortized linear growth over 16667# repeated appends, instead of the typical quadratic growth present in naive 16668# implementations. 16669if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16670 eval 'as_fn_append () 16671 { 16672 eval $1+=\$2 16673 }' 16674else 16675 as_fn_append () 16676 { 16677 eval $1=\$$1\$2 16678 } 16679fi # as_fn_append 16680 16681# as_fn_arith ARG... 16682# ------------------ 16683# Perform arithmetic evaluation on the ARGs, and store the result in the 16684# global $as_val. Take advantage of shells that can avoid forks. The arguments 16685# must be portable across $(()) and expr. 16686if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16687 eval 'as_fn_arith () 16688 { 16689 as_val=$(( $* )) 16690 }' 16691else 16692 as_fn_arith () 16693 { 16694 as_val=`expr "$@" || test $? -eq 1` 16695 } 16696fi # as_fn_arith 16697 16698 16699if expr a : '\(a\)' >/dev/null 2>&1 && 16700 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16701 as_expr=expr 16702else 16703 as_expr=false 16704fi 16705 16706if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16707 as_basename=basename 16708else 16709 as_basename=false 16710fi 16711 16712if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16713 as_dirname=dirname 16714else 16715 as_dirname=false 16716fi 16717 16718as_me=`$as_basename -- "$0" || 16719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16720 X"$0" : 'X\(//\)$' \| \ 16721 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16722$as_echo X/"$0" | 16723 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16724 s//\1/ 16725 q 16726 } 16727 /^X\/\(\/\/\)$/{ 16728 s//\1/ 16729 q 16730 } 16731 /^X\/\(\/\).*/{ 16732 s//\1/ 16733 q 16734 } 16735 s/.*/./; q'` 16736 16737# Avoid depending upon Character Ranges. 16738as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16739as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16740as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16741as_cr_digits='0123456789' 16742as_cr_alnum=$as_cr_Letters$as_cr_digits 16743 16744ECHO_C= ECHO_N= ECHO_T= 16745case `echo -n x` in #((((( 16746-n*) 16747 case `echo 'xy\c'` in 16748 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16749 xy) ECHO_C='\c';; 16750 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16751 ECHO_T=' ';; 16752 esac;; 16753*) 16754 ECHO_N='-n';; 16755esac 16756 16757rm -f conf$$ conf$$.exe conf$$.file 16758if test -d conf$$.dir; then 16759 rm -f conf$$.dir/conf$$.file 16760else 16761 rm -f conf$$.dir 16762 mkdir conf$$.dir 2>/dev/null 16763fi 16764if (echo >conf$$.file) 2>/dev/null; then 16765 if ln -s conf$$.file conf$$ 2>/dev/null; then 16766 as_ln_s='ln -s' 16767 # ... but there are two gotchas: 16768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16770 # In both cases, we have to default to `cp -pR'. 16771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16772 as_ln_s='cp -pR' 16773 elif ln conf$$.file conf$$ 2>/dev/null; then 16774 as_ln_s=ln 16775 else 16776 as_ln_s='cp -pR' 16777 fi 16778else 16779 as_ln_s='cp -pR' 16780fi 16781rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16782rmdir conf$$.dir 2>/dev/null 16783 16784 16785# as_fn_mkdir_p 16786# ------------- 16787# Create "$as_dir" as a directory, including parents if necessary. 16788as_fn_mkdir_p () 16789{ 16790 16791 case $as_dir in #( 16792 -*) as_dir=./$as_dir;; 16793 esac 16794 test -d "$as_dir" || eval $as_mkdir_p || { 16795 as_dirs= 16796 while :; do 16797 case $as_dir in #( 16798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16799 *) as_qdir=$as_dir;; 16800 esac 16801 as_dirs="'$as_qdir' $as_dirs" 16802 as_dir=`$as_dirname -- "$as_dir" || 16803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16804 X"$as_dir" : 'X\(//\)[^/]' \| \ 16805 X"$as_dir" : 'X\(//\)$' \| \ 16806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16807$as_echo X"$as_dir" | 16808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16809 s//\1/ 16810 q 16811 } 16812 /^X\(\/\/\)[^/].*/{ 16813 s//\1/ 16814 q 16815 } 16816 /^X\(\/\/\)$/{ 16817 s//\1/ 16818 q 16819 } 16820 /^X\(\/\).*/{ 16821 s//\1/ 16822 q 16823 } 16824 s/.*/./; q'` 16825 test -d "$as_dir" && break 16826 done 16827 test -z "$as_dirs" || eval "mkdir $as_dirs" 16828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16829 16830 16831} # as_fn_mkdir_p 16832if mkdir -p . 2>/dev/null; then 16833 as_mkdir_p='mkdir -p "$as_dir"' 16834else 16835 test -d ./-p && rmdir ./-p 16836 as_mkdir_p=false 16837fi 16838 16839 16840# as_fn_executable_p FILE 16841# ----------------------- 16842# Test if FILE is an executable regular file. 16843as_fn_executable_p () 16844{ 16845 test -f "$1" && test -x "$1" 16846} # as_fn_executable_p 16847as_test_x='test -x' 16848as_executable_p=as_fn_executable_p 16849 16850# Sed expression to map a string onto a valid CPP name. 16851as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16852 16853# Sed expression to map a string onto a valid variable name. 16854as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16855 16856 16857exec 6>&1 16858## ----------------------------------- ## 16859## Main body of $CONFIG_STATUS script. ## 16860## ----------------------------------- ## 16861_ASEOF 16862test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16863 16864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16865# Save the log message, to keep $0 and so on meaningful, and to 16866# report actual input values of CONFIG_FILES etc. instead of their 16867# values after options handling. 16868ac_log=" 16869This file was extended by gdnsd $as_me 2.4.3, which was 16870generated by GNU Autoconf 2.69. Invocation command line was 16871 16872 CONFIG_FILES = $CONFIG_FILES 16873 CONFIG_HEADERS = $CONFIG_HEADERS 16874 CONFIG_LINKS = $CONFIG_LINKS 16875 CONFIG_COMMANDS = $CONFIG_COMMANDS 16876 $ $0 $@ 16877 16878on `(hostname || uname -n) 2>/dev/null | sed 1q` 16879" 16880 16881_ACEOF 16882 16883case $ac_config_files in *" 16884"*) set x $ac_config_files; shift; ac_config_files=$*;; 16885esac 16886 16887case $ac_config_headers in *" 16888"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16889esac 16890 16891 16892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16893# Files that config.status was made for. 16894config_files="$ac_config_files" 16895config_headers="$ac_config_headers" 16896config_commands="$ac_config_commands" 16897 16898_ACEOF 16899 16900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16901ac_cs_usage="\ 16902\`$as_me' instantiates files and other configuration actions 16903from templates according to the current configuration. Unless the files 16904and actions are specified as TAGs, all are instantiated by default. 16905 16906Usage: $0 [OPTION]... [TAG]... 16907 16908 -h, --help print this help, then exit 16909 -V, --version print version number and configuration settings, then exit 16910 --config print configuration, then exit 16911 -q, --quiet, --silent 16912 do not print progress messages 16913 -d, --debug don't remove temporary files 16914 --recheck update $as_me by reconfiguring in the same conditions 16915 --file=FILE[:TEMPLATE] 16916 instantiate the configuration file FILE 16917 --header=FILE[:TEMPLATE] 16918 instantiate the configuration header FILE 16919 16920Configuration files: 16921$config_files 16922 16923Configuration headers: 16924$config_headers 16925 16926Configuration commands: 16927$config_commands 16928 16929Report bugs to <https://github.com/gdnsd/gdnsd/issues>." 16930 16931_ACEOF 16932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16933ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16934ac_cs_version="\\ 16935gdnsd config.status 2.4.3 16936configured by $0, generated by GNU Autoconf 2.69, 16937 with options \\"\$ac_cs_config\\" 16938 16939Copyright (C) 2012 Free Software Foundation, Inc. 16940This config.status script is free software; the Free Software Foundation 16941gives unlimited permission to copy, distribute and modify it." 16942 16943ac_pwd='$ac_pwd' 16944srcdir='$srcdir' 16945INSTALL='$INSTALL' 16946MKDIR_P='$MKDIR_P' 16947AWK='$AWK' 16948test -n "\$AWK" || AWK=awk 16949_ACEOF 16950 16951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16952# The default lists apply if the user does not specify any file. 16953ac_need_defaults=: 16954while test $# != 0 16955do 16956 case $1 in 16957 --*=?*) 16958 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16960 ac_shift=: 16961 ;; 16962 --*=) 16963 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16964 ac_optarg= 16965 ac_shift=: 16966 ;; 16967 *) 16968 ac_option=$1 16969 ac_optarg=$2 16970 ac_shift=shift 16971 ;; 16972 esac 16973 16974 case $ac_option in 16975 # Handling of the options. 16976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16977 ac_cs_recheck=: ;; 16978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16979 $as_echo "$ac_cs_version"; exit ;; 16980 --config | --confi | --conf | --con | --co | --c ) 16981 $as_echo "$ac_cs_config"; exit ;; 16982 --debug | --debu | --deb | --de | --d | -d ) 16983 debug=: ;; 16984 --file | --fil | --fi | --f ) 16985 $ac_shift 16986 case $ac_optarg in 16987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16988 '') as_fn_error $? "missing file argument" ;; 16989 esac 16990 as_fn_append CONFIG_FILES " '$ac_optarg'" 16991 ac_need_defaults=false;; 16992 --header | --heade | --head | --hea ) 16993 $ac_shift 16994 case $ac_optarg in 16995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16996 esac 16997 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16998 ac_need_defaults=false;; 16999 --he | --h) 17000 # Conflict between --help and --header 17001 as_fn_error $? "ambiguous option: \`$1' 17002Try \`$0 --help' for more information.";; 17003 --help | --hel | -h ) 17004 $as_echo "$ac_cs_usage"; exit ;; 17005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17006 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17007 ac_cs_silent=: ;; 17008 17009 # This is an error. 17010 -*) as_fn_error $? "unrecognized option: \`$1' 17011Try \`$0 --help' for more information." ;; 17012 17013 *) as_fn_append ac_config_targets " $1" 17014 ac_need_defaults=false ;; 17015 17016 esac 17017 shift 17018done 17019 17020ac_configure_extra_args= 17021 17022if $ac_cs_silent; then 17023 exec 6>/dev/null 17024 ac_configure_extra_args="$ac_configure_extra_args --silent" 17025fi 17026 17027_ACEOF 17028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17029if \$ac_cs_recheck; then 17030 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17031 shift 17032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17033 CONFIG_SHELL='$SHELL' 17034 export CONFIG_SHELL 17035 exec "\$@" 17036fi 17037 17038_ACEOF 17039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17040exec 5>>config.log 17041{ 17042 echo 17043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17044## Running $as_me. ## 17045_ASBOX 17046 $as_echo "$ac_log" 17047} >&5 17048 17049_ACEOF 17050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17051# 17052# INIT-COMMANDS 17053# 17054AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17055 17056 17057# The HP-UX ksh and POSIX shell print the target directory to stdout 17058# if CDPATH is set. 17059(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17060 17061sed_quote_subst='$sed_quote_subst' 17062double_quote_subst='$double_quote_subst' 17063delay_variable_subst='$delay_variable_subst' 17064enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17065macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17066macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17067enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17068pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17069enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17070shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17071SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17072ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17073PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17074host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17075host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17076host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17077build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17078build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17079build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17080SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17081Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17082GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17083EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17084FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17085LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17086NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17087LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17088max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17089ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17090exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17091lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17092lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17093lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17094lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17095lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17096reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17097reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17098OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17099deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17100file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17101file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17102want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17103DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17104sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17105AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17106AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17107archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17108STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17109RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17110old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17111old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17112old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17113lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17114CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17115CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17116compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17117GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17118lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17119lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17120lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17121lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17122lt_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"`' 17123lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17124nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17125lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17126lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17127objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17128MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17129lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17130lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17131lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17132lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17133lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17134need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17135MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17136DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17137NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17138LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17139OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17140OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17141libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17142shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17143extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17144archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17145enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17146export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17147whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17148compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17149old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17150old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17151archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17152archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17153module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17154module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17155with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17156allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17157no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17158hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17159hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17160hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17161hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17162hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17163hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17164hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17165inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17166link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17167always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17168export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17169exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17170include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17171prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17172postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17173file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17174variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17175need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17176need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17177version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17178runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17179shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17180shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17181libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17182library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17183soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17184install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17185postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17186postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17187finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17188finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17189hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17190sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17191configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17192configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17193hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17194enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17195enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17196enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17197old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17198striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17199 17200LTCC='$LTCC' 17201LTCFLAGS='$LTCFLAGS' 17202compiler='$compiler_DEFAULT' 17203 17204# A function that is used when there is no print builtin or printf. 17205func_fallback_echo () 17206{ 17207 eval 'cat <<_LTECHO_EOF 17208\$1 17209_LTECHO_EOF' 17210} 17211 17212# Quote evaled strings. 17213for var in SHELL \ 17214ECHO \ 17215PATH_SEPARATOR \ 17216SED \ 17217GREP \ 17218EGREP \ 17219FGREP \ 17220LD \ 17221NM \ 17222LN_S \ 17223lt_SP2NL \ 17224lt_NL2SP \ 17225reload_flag \ 17226OBJDUMP \ 17227deplibs_check_method \ 17228file_magic_cmd \ 17229file_magic_glob \ 17230want_nocaseglob \ 17231DLLTOOL \ 17232sharedlib_from_linklib_cmd \ 17233AR \ 17234AR_FLAGS \ 17235archiver_list_spec \ 17236STRIP \ 17237RANLIB \ 17238CC \ 17239CFLAGS \ 17240compiler \ 17241lt_cv_sys_global_symbol_pipe \ 17242lt_cv_sys_global_symbol_to_cdecl \ 17243lt_cv_sys_global_symbol_to_import \ 17244lt_cv_sys_global_symbol_to_c_name_address \ 17245lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17246lt_cv_nm_interface \ 17247nm_file_list_spec \ 17248lt_cv_truncate_bin \ 17249lt_prog_compiler_no_builtin_flag \ 17250lt_prog_compiler_pic \ 17251lt_prog_compiler_wl \ 17252lt_prog_compiler_static \ 17253lt_cv_prog_compiler_c_o \ 17254need_locks \ 17255MANIFEST_TOOL \ 17256DSYMUTIL \ 17257NMEDIT \ 17258LIPO \ 17259OTOOL \ 17260OTOOL64 \ 17261shrext_cmds \ 17262export_dynamic_flag_spec \ 17263whole_archive_flag_spec \ 17264compiler_needs_object \ 17265with_gnu_ld \ 17266allow_undefined_flag \ 17267no_undefined_flag \ 17268hardcode_libdir_flag_spec \ 17269hardcode_libdir_separator \ 17270exclude_expsyms \ 17271include_expsyms \ 17272file_list_spec \ 17273variables_saved_for_relink \ 17274libname_spec \ 17275library_names_spec \ 17276soname_spec \ 17277install_override_mode \ 17278finish_eval \ 17279old_striplib \ 17280striplib; do 17281 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17282 *[\\\\\\\`\\"\\\$]*) 17283 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17284 ;; 17285 *) 17286 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17287 ;; 17288 esac 17289done 17290 17291# Double-quote double-evaled strings. 17292for var in reload_cmds \ 17293old_postinstall_cmds \ 17294old_postuninstall_cmds \ 17295old_archive_cmds \ 17296extract_expsyms_cmds \ 17297old_archive_from_new_cmds \ 17298old_archive_from_expsyms_cmds \ 17299archive_cmds \ 17300archive_expsym_cmds \ 17301module_cmds \ 17302module_expsym_cmds \ 17303export_symbols_cmds \ 17304prelink_cmds \ 17305postlink_cmds \ 17306postinstall_cmds \ 17307postuninstall_cmds \ 17308finish_cmds \ 17309sys_lib_search_path_spec \ 17310configure_time_dlsearch_path \ 17311configure_time_lt_sys_library_path; do 17312 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17313 *[\\\\\\\`\\"\\\$]*) 17314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17315 ;; 17316 *) 17317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17318 ;; 17319 esac 17320done 17321 17322ac_aux_dir='$ac_aux_dir' 17323 17324# See if we are running on zsh, and set the options that allow our 17325# commands through without removal of \ escapes INIT. 17326if test -n "\${ZSH_VERSION+set}"; then 17327 setopt NO_GLOB_SUBST 17328fi 17329 17330 17331 PACKAGE='$PACKAGE' 17332 VERSION='$VERSION' 17333 RM='$RM' 17334 ofile='$ofile' 17335 17336 17337 17338 17339_ACEOF 17340 17341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17342 17343# Handling of arguments. 17344for ac_config_target in $ac_config_targets 17345do 17346 case $ac_config_target in 17347 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17348 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17351 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;; 17352 "t/libtap/Makefile") CONFIG_FILES="$CONFIG_FILES t/libtap/Makefile" ;; 17353 "t/libgdmaps/Makefile") CONFIG_FILES="$CONFIG_FILES t/libgdmaps/Makefile" ;; 17354 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;; 17355 17356 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17357 esac 17358done 17359 17360 17361# If the user did not use the arguments to specify the items to instantiate, 17362# then the envvar interface is used. Set only those that are not. 17363# We use the long form for the default assignment because of an extremely 17364# bizarre bug on SunOS 4.1.3. 17365if $ac_need_defaults; then 17366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17369fi 17370 17371# Have a temporary directory for convenience. Make it in the build tree 17372# simply because there is no reason against having it here, and in addition, 17373# creating and moving files from /tmp can sometimes cause problems. 17374# Hook for its removal unless debugging. 17375# Note that there is a small window in which the directory will not be cleaned: 17376# after its creation but before its name has been assigned to `$tmp'. 17377$debug || 17378{ 17379 tmp= ac_tmp= 17380 trap 'exit_status=$? 17381 : "${ac_tmp:=$tmp}" 17382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17383' 0 17384 trap 'as_fn_exit 1' 1 2 13 15 17385} 17386# Create a (secure) tmp directory for tmp files. 17387 17388{ 17389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17390 test -d "$tmp" 17391} || 17392{ 17393 tmp=./conf$$-$RANDOM 17394 (umask 077 && mkdir "$tmp") 17395} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17396ac_tmp=$tmp 17397 17398# Set up the scripts for CONFIG_FILES section. 17399# No need to generate them if there are no CONFIG_FILES. 17400# This happens for instance with `./config.status config.h'. 17401if test -n "$CONFIG_FILES"; then 17402 17403 17404ac_cr=`echo X | tr X '\015'` 17405# On cygwin, bash can eat \r inside `` if the user requested igncr. 17406# But we know of no other shell where ac_cr would be empty at this 17407# point, so we can use a bashism as a fallback. 17408if test "x$ac_cr" = x; then 17409 eval ac_cr=\$\'\\r\' 17410fi 17411ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17412if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17413 ac_cs_awk_cr='\\r' 17414else 17415 ac_cs_awk_cr=$ac_cr 17416fi 17417 17418echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17419_ACEOF 17420 17421 17422{ 17423 echo "cat >conf$$subs.awk <<_ACEOF" && 17424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17425 echo "_ACEOF" 17426} >conf$$subs.sh || 17427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17428ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17429ac_delim='%!_!# ' 17430for ac_last_try in false false false false false :; do 17431 . ./conf$$subs.sh || 17432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17433 17434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17435 if test $ac_delim_n = $ac_delim_num; then 17436 break 17437 elif $ac_last_try; then 17438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17439 else 17440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17441 fi 17442done 17443rm -f conf$$subs.sh 17444 17445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17446cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17447_ACEOF 17448sed -n ' 17449h 17450s/^/S["/; s/!.*/"]=/ 17451p 17452g 17453s/^[^!]*!// 17454:repl 17455t repl 17456s/'"$ac_delim"'$// 17457t delim 17458:nl 17459h 17460s/\(.\{148\}\)..*/\1/ 17461t more1 17462s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17463p 17464n 17465b repl 17466:more1 17467s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17468p 17469g 17470s/.\{148\}// 17471t nl 17472:delim 17473h 17474s/\(.\{148\}\)..*/\1/ 17475t more2 17476s/["\\]/\\&/g; s/^/"/; s/$/"/ 17477p 17478b 17479:more2 17480s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17481p 17482g 17483s/.\{148\}// 17484t delim 17485' <conf$$subs.awk | sed ' 17486/^[^""]/{ 17487 N 17488 s/\n// 17489} 17490' >>$CONFIG_STATUS || ac_write_fail=1 17491rm -f conf$$subs.awk 17492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17493_ACAWK 17494cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17495 for (key in S) S_is_set[key] = 1 17496 FS = "" 17497 17498} 17499{ 17500 line = $ 0 17501 nfields = split(line, field, "@") 17502 substed = 0 17503 len = length(field[1]) 17504 for (i = 2; i < nfields; i++) { 17505 key = field[i] 17506 keylen = length(key) 17507 if (S_is_set[key]) { 17508 value = S[key] 17509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17510 len += length(value) + length(field[++i]) 17511 substed = 1 17512 } else 17513 len += 1 + keylen 17514 } 17515 17516 print line 17517} 17518 17519_ACAWK 17520_ACEOF 17521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17522if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17523 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17524else 17525 cat 17526fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17527 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17528_ACEOF 17529 17530# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17531# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17532# trailing colons and then remove the whole line if VPATH becomes empty 17533# (actually we leave an empty line to preserve line numbers). 17534if test "x$srcdir" = x.; then 17535 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17536h 17537s/// 17538s/^/:/ 17539s/[ ]*$/:/ 17540s/:\$(srcdir):/:/g 17541s/:\${srcdir}:/:/g 17542s/:@srcdir@:/:/g 17543s/^:*// 17544s/:*$// 17545x 17546s/\(=[ ]*\).*/\1/ 17547G 17548s/\n// 17549s/^[^=]*=[ ]*$// 17550}' 17551fi 17552 17553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17554fi # test -n "$CONFIG_FILES" 17555 17556# Set up the scripts for CONFIG_HEADERS section. 17557# No need to generate them if there are no CONFIG_HEADERS. 17558# This happens for instance with `./config.status Makefile'. 17559if test -n "$CONFIG_HEADERS"; then 17560cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17561BEGIN { 17562_ACEOF 17563 17564# Transform confdefs.h into an awk script `defines.awk', embedded as 17565# here-document in config.status, that substitutes the proper values into 17566# config.h.in to produce config.h. 17567 17568# Create a delimiter string that does not exist in confdefs.h, to ease 17569# handling of long lines. 17570ac_delim='%!_!# ' 17571for ac_last_try in false false :; do 17572 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17573 if test -z "$ac_tt"; then 17574 break 17575 elif $ac_last_try; then 17576 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17577 else 17578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17579 fi 17580done 17581 17582# For the awk script, D is an array of macro values keyed by name, 17583# likewise P contains macro parameters if any. Preserve backslash 17584# newline sequences. 17585 17586ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17587sed -n ' 17588s/.\{148\}/&'"$ac_delim"'/g 17589t rset 17590:rset 17591s/^[ ]*#[ ]*define[ ][ ]*/ / 17592t def 17593d 17594:def 17595s/\\$// 17596t bsnl 17597s/["\\]/\\&/g 17598s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17599D["\1"]=" \3"/p 17600s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17601d 17602:bsnl 17603s/["\\]/\\&/g 17604s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17605D["\1"]=" \3\\\\\\n"\\/p 17606t cont 17607s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17608t cont 17609d 17610:cont 17611n 17612s/.\{148\}/&'"$ac_delim"'/g 17613t clear 17614:clear 17615s/\\$// 17616t bsnlc 17617s/["\\]/\\&/g; s/^/"/; s/$/"/p 17618d 17619:bsnlc 17620s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17621b cont 17622' <confdefs.h | sed ' 17623s/'"$ac_delim"'/"\\\ 17624"/g' >>$CONFIG_STATUS || ac_write_fail=1 17625 17626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17627 for (key in D) D_is_set[key] = 1 17628 FS = "" 17629} 17630/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17631 line = \$ 0 17632 split(line, arg, " ") 17633 if (arg[1] == "#") { 17634 defundef = arg[2] 17635 mac1 = arg[3] 17636 } else { 17637 defundef = substr(arg[1], 2) 17638 mac1 = arg[2] 17639 } 17640 split(mac1, mac2, "(") #) 17641 macro = mac2[1] 17642 prefix = substr(line, 1, index(line, defundef) - 1) 17643 if (D_is_set[macro]) { 17644 # Preserve the white space surrounding the "#". 17645 print prefix "define", macro P[macro] D[macro] 17646 next 17647 } else { 17648 # Replace #undef with comments. This is necessary, for example, 17649 # in the case of _POSIX_SOURCE, which is predefined and required 17650 # on some systems where configure will not decide to define it. 17651 if (defundef == "undef") { 17652 print "/*", prefix defundef, macro, "*/" 17653 next 17654 } 17655 } 17656} 17657{ print } 17658_ACAWK 17659_ACEOF 17660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17661 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17662fi # test -n "$CONFIG_HEADERS" 17663 17664 17665eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17666shift 17667for ac_tag 17668do 17669 case $ac_tag in 17670 :[FHLC]) ac_mode=$ac_tag; continue;; 17671 esac 17672 case $ac_mode$ac_tag in 17673 :[FHL]*:*);; 17674 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17675 :[FH]-) ac_tag=-:-;; 17676 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17677 esac 17678 ac_save_IFS=$IFS 17679 IFS=: 17680 set x $ac_tag 17681 IFS=$ac_save_IFS 17682 shift 17683 ac_file=$1 17684 shift 17685 17686 case $ac_mode in 17687 :L) ac_source=$1;; 17688 :[FH]) 17689 ac_file_inputs= 17690 for ac_f 17691 do 17692 case $ac_f in 17693 -) ac_f="$ac_tmp/stdin";; 17694 *) # Look for the file first in the build tree, then in the source tree 17695 # (if the path is not absolute). The absolute path cannot be DOS-style, 17696 # because $ac_f cannot contain `:'. 17697 test -f "$ac_f" || 17698 case $ac_f in 17699 [\\/$]*) false;; 17700 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17701 esac || 17702 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17703 esac 17704 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17705 as_fn_append ac_file_inputs " '$ac_f'" 17706 done 17707 17708 # Let's still pretend it is `configure' which instantiates (i.e., don't 17709 # use $as_me), people would be surprised to read: 17710 # /* config.h. Generated by config.status. */ 17711 configure_input='Generated from '` 17712 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17713 `' by configure.' 17714 if test x"$ac_file" != x-; then 17715 configure_input="$ac_file. $configure_input" 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17717$as_echo "$as_me: creating $ac_file" >&6;} 17718 fi 17719 # Neutralize special characters interpreted by sed in replacement strings. 17720 case $configure_input in #( 17721 *\&* | *\|* | *\\* ) 17722 ac_sed_conf_input=`$as_echo "$configure_input" | 17723 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17724 *) ac_sed_conf_input=$configure_input;; 17725 esac 17726 17727 case $ac_tag in 17728 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17730 esac 17731 ;; 17732 esac 17733 17734 ac_dir=`$as_dirname -- "$ac_file" || 17735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17736 X"$ac_file" : 'X\(//\)[^/]' \| \ 17737 X"$ac_file" : 'X\(//\)$' \| \ 17738 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17739$as_echo X"$ac_file" | 17740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17741 s//\1/ 17742 q 17743 } 17744 /^X\(\/\/\)[^/].*/{ 17745 s//\1/ 17746 q 17747 } 17748 /^X\(\/\/\)$/{ 17749 s//\1/ 17750 q 17751 } 17752 /^X\(\/\).*/{ 17753 s//\1/ 17754 q 17755 } 17756 s/.*/./; q'` 17757 as_dir="$ac_dir"; as_fn_mkdir_p 17758 ac_builddir=. 17759 17760case "$ac_dir" in 17761.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17762*) 17763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17764 # A ".." for each directory in $ac_dir_suffix. 17765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17766 case $ac_top_builddir_sub in 17767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17769 esac ;; 17770esac 17771ac_abs_top_builddir=$ac_pwd 17772ac_abs_builddir=$ac_pwd$ac_dir_suffix 17773# for backward compatibility: 17774ac_top_builddir=$ac_top_build_prefix 17775 17776case $srcdir in 17777 .) # We are building in place. 17778 ac_srcdir=. 17779 ac_top_srcdir=$ac_top_builddir_sub 17780 ac_abs_top_srcdir=$ac_pwd ;; 17781 [\\/]* | ?:[\\/]* ) # Absolute name. 17782 ac_srcdir=$srcdir$ac_dir_suffix; 17783 ac_top_srcdir=$srcdir 17784 ac_abs_top_srcdir=$srcdir ;; 17785 *) # Relative name. 17786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17787 ac_top_srcdir=$ac_top_build_prefix$srcdir 17788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17789esac 17790ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17791 17792 17793 case $ac_mode in 17794 :F) 17795 # 17796 # CONFIG_FILE 17797 # 17798 17799 case $INSTALL in 17800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17801 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17802 esac 17803 ac_MKDIR_P=$MKDIR_P 17804 case $MKDIR_P in 17805 [\\/$]* | ?:[\\/]* ) ;; 17806 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17807 esac 17808_ACEOF 17809 17810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17811# If the template does not know about datarootdir, expand it. 17812# FIXME: This hack should be removed a few years after 2.60. 17813ac_datarootdir_hack=; ac_datarootdir_seen= 17814ac_sed_dataroot=' 17815/datarootdir/ { 17816 p 17817 q 17818} 17819/@datadir@/p 17820/@docdir@/p 17821/@infodir@/p 17822/@localedir@/p 17823/@mandir@/p' 17824case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17825*datarootdir*) ac_datarootdir_seen=yes;; 17826*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17828$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17829_ACEOF 17830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17831 ac_datarootdir_hack=' 17832 s&@datadir@&$datadir&g 17833 s&@docdir@&$docdir&g 17834 s&@infodir@&$infodir&g 17835 s&@localedir@&$localedir&g 17836 s&@mandir@&$mandir&g 17837 s&\\\${datarootdir}&$datarootdir&g' ;; 17838esac 17839_ACEOF 17840 17841# Neutralize VPATH when `$srcdir' = `.'. 17842# Shell code in configure.ac might set extrasub. 17843# FIXME: do we really want to maintain this feature? 17844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17845ac_sed_extra="$ac_vpsub 17846$extrasub 17847_ACEOF 17848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17849:t 17850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17851s|@configure_input@|$ac_sed_conf_input|;t t 17852s&@top_builddir@&$ac_top_builddir_sub&;t t 17853s&@top_build_prefix@&$ac_top_build_prefix&;t t 17854s&@srcdir@&$ac_srcdir&;t t 17855s&@abs_srcdir@&$ac_abs_srcdir&;t t 17856s&@top_srcdir@&$ac_top_srcdir&;t t 17857s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17858s&@builddir@&$ac_builddir&;t t 17859s&@abs_builddir@&$ac_abs_builddir&;t t 17860s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17861s&@INSTALL@&$ac_INSTALL&;t t 17862s&@MKDIR_P@&$ac_MKDIR_P&;t t 17863$ac_datarootdir_hack 17864" 17865eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17866 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17867 17868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17871 "$ac_tmp/out"`; test -z "$ac_out"; } && 17872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17873which seems to be undefined. Please make sure it is defined" >&5 17874$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17875which seems to be undefined. Please make sure it is defined" >&2;} 17876 17877 rm -f "$ac_tmp/stdin" 17878 case $ac_file in 17879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17881 esac \ 17882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17883 ;; 17884 :H) 17885 # 17886 # CONFIG_HEADER 17887 # 17888 if test x"$ac_file" != x-; then 17889 { 17890 $as_echo "/* $configure_input */" \ 17891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17892 } >"$ac_tmp/config.h" \ 17893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17894 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17896$as_echo "$as_me: $ac_file is unchanged" >&6;} 17897 else 17898 rm -f "$ac_file" 17899 mv "$ac_tmp/config.h" "$ac_file" \ 17900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17901 fi 17902 else 17903 $as_echo "/* $configure_input */" \ 17904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17905 || as_fn_error $? "could not create -" "$LINENO" 5 17906 fi 17907# Compute "$ac_file"'s index in $config_headers. 17908_am_arg="$ac_file" 17909_am_stamp_count=1 17910for _am_header in $config_headers :; do 17911 case $_am_header in 17912 $_am_arg | $_am_arg:* ) 17913 break ;; 17914 * ) 17915 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17916 esac 17917done 17918echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17919$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17920 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17921 X"$_am_arg" : 'X\(//\)$' \| \ 17922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17923$as_echo X"$_am_arg" | 17924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17925 s//\1/ 17926 q 17927 } 17928 /^X\(\/\/\)[^/].*/{ 17929 s//\1/ 17930 q 17931 } 17932 /^X\(\/\/\)$/{ 17933 s//\1/ 17934 q 17935 } 17936 /^X\(\/\).*/{ 17937 s//\1/ 17938 q 17939 } 17940 s/.*/./; q'`/stamp-h$_am_stamp_count 17941 ;; 17942 17943 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17944$as_echo "$as_me: executing $ac_file commands" >&6;} 17945 ;; 17946 esac 17947 17948 17949 case $ac_file$ac_mode in 17950 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17951 # Older Autoconf quotes --file arguments for eval, but not when files 17952 # are listed without --file. Let's play safe and only enable the eval 17953 # if we detect the quoting. 17954 # TODO: see whether this extra hack can be removed once we start 17955 # requiring Autoconf 2.70 or later. 17956 case $CONFIG_FILES in #( 17957 *\'*) : 17958 eval set x "$CONFIG_FILES" ;; #( 17959 *) : 17960 set x $CONFIG_FILES ;; #( 17961 *) : 17962 ;; 17963esac 17964 shift 17965 # Used to flag and report bootstrapping failures. 17966 am_rc=0 17967 for am_mf 17968 do 17969 # Strip MF so we end up with the name of the file. 17970 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17971 # Check whether this is an Automake generated Makefile which includes 17972 # dependency-tracking related rules and includes. 17973 # Grep'ing the whole file directly is not great: AIX grep has a line 17974 # limit of 2048, but all sed's we know have understand at least 4000. 17975 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17976 || continue 17977 am_dirpart=`$as_dirname -- "$am_mf" || 17978$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17979 X"$am_mf" : 'X\(//\)[^/]' \| \ 17980 X"$am_mf" : 'X\(//\)$' \| \ 17981 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17982$as_echo X"$am_mf" | 17983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17984 s//\1/ 17985 q 17986 } 17987 /^X\(\/\/\)[^/].*/{ 17988 s//\1/ 17989 q 17990 } 17991 /^X\(\/\/\)$/{ 17992 s//\1/ 17993 q 17994 } 17995 /^X\(\/\).*/{ 17996 s//\1/ 17997 q 17998 } 17999 s/.*/./; q'` 18000 am_filepart=`$as_basename -- "$am_mf" || 18001$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18002 X"$am_mf" : 'X\(//\)$' \| \ 18003 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18004$as_echo X/"$am_mf" | 18005 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18006 s//\1/ 18007 q 18008 } 18009 /^X\/\(\/\/\)$/{ 18010 s//\1/ 18011 q 18012 } 18013 /^X\/\(\/\).*/{ 18014 s//\1/ 18015 q 18016 } 18017 s/.*/./; q'` 18018 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18019 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18020 | $MAKE -f - am--depfiles" >&5 18021 (cd "$am_dirpart" \ 18022 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18023 | $MAKE -f - am--depfiles) >&5 2>&5 18024 ac_status=$? 18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18026 (exit $ac_status); } || am_rc=$? 18027 done 18028 if test $am_rc -ne 0; then 18029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18031as_fn_error $? "Something went wrong bootstrapping makefile fragments 18032 for automatic dependency tracking. Try re-running configure with the 18033 '--disable-dependency-tracking' option to at least be able to build 18034 the package (albeit without support for automatic dependency tracking). 18035See \`config.log' for more details" "$LINENO" 5; } 18036 fi 18037 { am_dirpart=; unset am_dirpart;} 18038 { am_filepart=; unset am_filepart;} 18039 { am_mf=; unset am_mf;} 18040 { am_rc=; unset am_rc;} 18041 rm -f conftest-deps.mk 18042} 18043 ;; 18044 "libtool":C) 18045 18046 # See if we are running on zsh, and set the options that allow our 18047 # commands through without removal of \ escapes. 18048 if test -n "${ZSH_VERSION+set}"; then 18049 setopt NO_GLOB_SUBST 18050 fi 18051 18052 cfgfile=${ofile}T 18053 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18054 $RM "$cfgfile" 18055 18056 cat <<_LT_EOF >> "$cfgfile" 18057#! $SHELL 18058# Generated automatically by $as_me ($PACKAGE) $VERSION 18059# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18060 18061# Provide generalized library-building support services. 18062# Written by Gordon Matzigkeit, 1996 18063 18064# Copyright (C) 2014 Free Software Foundation, Inc. 18065# This is free software; see the source for copying conditions. There is NO 18066# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18067 18068# GNU Libtool is free software; you can redistribute it and/or modify 18069# it under the terms of the GNU General Public License as published by 18070# the Free Software Foundation; either version 2 of of the License, or 18071# (at your option) any later version. 18072# 18073# As a special exception to the GNU General Public License, if you 18074# distribute this file as part of a program or library that is built 18075# using GNU Libtool, you may include this file under the same 18076# distribution terms that you use for the rest of that program. 18077# 18078# GNU Libtool is distributed in the hope that it will be useful, but 18079# WITHOUT ANY WARRANTY; without even the implied warranty of 18080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18081# GNU General Public License for more details. 18082# 18083# You should have received a copy of the GNU General Public License 18084# along with this program. If not, see <http://www.gnu.org/licenses/>. 18085 18086 18087# The names of the tagged configurations supported by this script. 18088available_tags='' 18089 18090# Configured defaults for sys_lib_dlsearch_path munging. 18091: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18092 18093# ### BEGIN LIBTOOL CONFIG 18094 18095# Whether or not to build static libraries. 18096build_old_libs=$enable_static 18097 18098# Which release of libtool.m4 was used? 18099macro_version=$macro_version 18100macro_revision=$macro_revision 18101 18102# Whether or not to build shared libraries. 18103build_libtool_libs=$enable_shared 18104 18105# What type of objects to build. 18106pic_mode=$pic_mode 18107 18108# Whether or not to optimize for fast installation. 18109fast_install=$enable_fast_install 18110 18111# Shared archive member basename,for filename based shared library versioning on AIX. 18112shared_archive_member_spec=$shared_archive_member_spec 18113 18114# Shell to use when invoking shell scripts. 18115SHELL=$lt_SHELL 18116 18117# An echo program that protects backslashes. 18118ECHO=$lt_ECHO 18119 18120# The PATH separator for the build system. 18121PATH_SEPARATOR=$lt_PATH_SEPARATOR 18122 18123# The host system. 18124host_alias=$host_alias 18125host=$host 18126host_os=$host_os 18127 18128# The build system. 18129build_alias=$build_alias 18130build=$build 18131build_os=$build_os 18132 18133# A sed program that does not truncate output. 18134SED=$lt_SED 18135 18136# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18137Xsed="\$SED -e 1s/^X//" 18138 18139# A grep program that handles long lines. 18140GREP=$lt_GREP 18141 18142# An ERE matcher. 18143EGREP=$lt_EGREP 18144 18145# A literal string matcher. 18146FGREP=$lt_FGREP 18147 18148# A BSD- or MS-compatible name lister. 18149NM=$lt_NM 18150 18151# Whether we need soft or hard links. 18152LN_S=$lt_LN_S 18153 18154# What is the maximum length of a command? 18155max_cmd_len=$max_cmd_len 18156 18157# Object file suffix (normally "o"). 18158objext=$ac_objext 18159 18160# Executable file suffix (normally ""). 18161exeext=$exeext 18162 18163# whether the shell understands "unset". 18164lt_unset=$lt_unset 18165 18166# turn spaces into newlines. 18167SP2NL=$lt_lt_SP2NL 18168 18169# turn newlines into spaces. 18170NL2SP=$lt_lt_NL2SP 18171 18172# convert \$build file names to \$host format. 18173to_host_file_cmd=$lt_cv_to_host_file_cmd 18174 18175# convert \$build files to toolchain format. 18176to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18177 18178# An object symbol dumper. 18179OBJDUMP=$lt_OBJDUMP 18180 18181# Method to check whether dependent libraries are shared objects. 18182deplibs_check_method=$lt_deplibs_check_method 18183 18184# Command to use when deplibs_check_method = "file_magic". 18185file_magic_cmd=$lt_file_magic_cmd 18186 18187# How to find potential files when deplibs_check_method = "file_magic". 18188file_magic_glob=$lt_file_magic_glob 18189 18190# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18191want_nocaseglob=$lt_want_nocaseglob 18192 18193# DLL creation program. 18194DLLTOOL=$lt_DLLTOOL 18195 18196# Command to associate shared and link libraries. 18197sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18198 18199# The archiver. 18200AR=$lt_AR 18201 18202# Flags to create an archive. 18203AR_FLAGS=$lt_AR_FLAGS 18204 18205# How to feed a file listing to the archiver. 18206archiver_list_spec=$lt_archiver_list_spec 18207 18208# A symbol stripping program. 18209STRIP=$lt_STRIP 18210 18211# Commands used to install an old-style archive. 18212RANLIB=$lt_RANLIB 18213old_postinstall_cmds=$lt_old_postinstall_cmds 18214old_postuninstall_cmds=$lt_old_postuninstall_cmds 18215 18216# Whether to use a lock for old archive extraction. 18217lock_old_archive_extraction=$lock_old_archive_extraction 18218 18219# A C compiler. 18220LTCC=$lt_CC 18221 18222# LTCC compiler flags. 18223LTCFLAGS=$lt_CFLAGS 18224 18225# Take the output of nm and produce a listing of raw symbols and C names. 18226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18227 18228# Transform the output of nm in a proper C declaration. 18229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18230 18231# Transform the output of nm into a list of symbols to manually relocate. 18232global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18233 18234# Transform the output of nm in a C name address pair. 18235global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18236 18237# Transform the output of nm in a C name address pair when lib prefix is needed. 18238global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18239 18240# The name lister interface. 18241nm_interface=$lt_lt_cv_nm_interface 18242 18243# Specify filename containing input files for \$NM. 18244nm_file_list_spec=$lt_nm_file_list_spec 18245 18246# The root where to search for dependent libraries,and where our libraries should be installed. 18247lt_sysroot=$lt_sysroot 18248 18249# Command to truncate a binary pipe. 18250lt_truncate_bin=$lt_lt_cv_truncate_bin 18251 18252# The name of the directory that contains temporary libtool files. 18253objdir=$objdir 18254 18255# Used to examine libraries when file_magic_cmd begins with "file". 18256MAGIC_CMD=$MAGIC_CMD 18257 18258# Must we lock files when doing compilation? 18259need_locks=$lt_need_locks 18260 18261# Manifest tool. 18262MANIFEST_TOOL=$lt_MANIFEST_TOOL 18263 18264# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18265DSYMUTIL=$lt_DSYMUTIL 18266 18267# Tool to change global to local symbols on Mac OS X. 18268NMEDIT=$lt_NMEDIT 18269 18270# Tool to manipulate fat objects and archives on Mac OS X. 18271LIPO=$lt_LIPO 18272 18273# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18274OTOOL=$lt_OTOOL 18275 18276# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18277OTOOL64=$lt_OTOOL64 18278 18279# Old archive suffix (normally "a"). 18280libext=$libext 18281 18282# Shared library suffix (normally ".so"). 18283shrext_cmds=$lt_shrext_cmds 18284 18285# The commands to extract the exported symbol list from a shared archive. 18286extract_expsyms_cmds=$lt_extract_expsyms_cmds 18287 18288# Variables whose values should be saved in libtool wrapper scripts and 18289# restored at link time. 18290variables_saved_for_relink=$lt_variables_saved_for_relink 18291 18292# Do we need the "lib" prefix for modules? 18293need_lib_prefix=$need_lib_prefix 18294 18295# Do we need a version for libraries? 18296need_version=$need_version 18297 18298# Library versioning type. 18299version_type=$version_type 18300 18301# Shared library runtime path variable. 18302runpath_var=$runpath_var 18303 18304# Shared library path variable. 18305shlibpath_var=$shlibpath_var 18306 18307# Is shlibpath searched before the hard-coded library search path? 18308shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18309 18310# Format of library name prefix. 18311libname_spec=$lt_libname_spec 18312 18313# List of archive names. First name is the real one, the rest are links. 18314# The last name is the one that the linker finds with -lNAME 18315library_names_spec=$lt_library_names_spec 18316 18317# The coded name of the library, if different from the real name. 18318soname_spec=$lt_soname_spec 18319 18320# Permission mode override for installation of shared libraries. 18321install_override_mode=$lt_install_override_mode 18322 18323# Command to use after installation of a shared archive. 18324postinstall_cmds=$lt_postinstall_cmds 18325 18326# Command to use after uninstallation of a shared archive. 18327postuninstall_cmds=$lt_postuninstall_cmds 18328 18329# Commands used to finish a libtool library installation in a directory. 18330finish_cmds=$lt_finish_cmds 18331 18332# As "finish_cmds", except a single script fragment to be evaled but 18333# not shown. 18334finish_eval=$lt_finish_eval 18335 18336# Whether we should hardcode library paths into libraries. 18337hardcode_into_libs=$hardcode_into_libs 18338 18339# Compile-time system search path for libraries. 18340sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18341 18342# Detected run-time system search path for libraries. 18343sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18344 18345# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18346configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18347 18348# Whether dlopen is supported. 18349dlopen_support=$enable_dlopen 18350 18351# Whether dlopen of programs is supported. 18352dlopen_self=$enable_dlopen_self 18353 18354# Whether dlopen of statically linked programs is supported. 18355dlopen_self_static=$enable_dlopen_self_static 18356 18357# Commands to strip libraries. 18358old_striplib=$lt_old_striplib 18359striplib=$lt_striplib 18360 18361 18362# The linker used to build libraries. 18363LD=$lt_LD 18364 18365# How to create reloadable object files. 18366reload_flag=$lt_reload_flag 18367reload_cmds=$lt_reload_cmds 18368 18369# Commands used to build an old-style archive. 18370old_archive_cmds=$lt_old_archive_cmds 18371 18372# A language specific compiler. 18373CC=$lt_compiler 18374 18375# Is the compiler the GNU compiler? 18376with_gcc=$GCC 18377 18378# Compiler flag to turn off builtin functions. 18379no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18380 18381# Additional compiler flags for building library objects. 18382pic_flag=$lt_lt_prog_compiler_pic 18383 18384# How to pass a linker flag through the compiler. 18385wl=$lt_lt_prog_compiler_wl 18386 18387# Compiler flag to prevent dynamic linking. 18388link_static_flag=$lt_lt_prog_compiler_static 18389 18390# Does compiler simultaneously support -c and -o options? 18391compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18392 18393# Whether or not to add -lc for building shared libraries. 18394build_libtool_need_lc=$archive_cmds_need_lc 18395 18396# Whether or not to disallow shared libs when runtime libs are static. 18397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18398 18399# Compiler flag to allow reflexive dlopens. 18400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18401 18402# Compiler flag to generate shared objects directly from archives. 18403whole_archive_flag_spec=$lt_whole_archive_flag_spec 18404 18405# Whether the compiler copes with passing no objects directly. 18406compiler_needs_object=$lt_compiler_needs_object 18407 18408# Create an old-style archive from a shared archive. 18409old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18410 18411# Create a temporary old-style archive to link instead of a shared archive. 18412old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18413 18414# Commands used to build a shared archive. 18415archive_cmds=$lt_archive_cmds 18416archive_expsym_cmds=$lt_archive_expsym_cmds 18417 18418# Commands used to build a loadable module if different from building 18419# a shared archive. 18420module_cmds=$lt_module_cmds 18421module_expsym_cmds=$lt_module_expsym_cmds 18422 18423# Whether we are building with GNU ld or not. 18424with_gnu_ld=$lt_with_gnu_ld 18425 18426# Flag that allows shared libraries with undefined symbols to be built. 18427allow_undefined_flag=$lt_allow_undefined_flag 18428 18429# Flag that enforces no undefined symbols. 18430no_undefined_flag=$lt_no_undefined_flag 18431 18432# Flag to hardcode \$libdir into a binary during linking. 18433# This must work even if \$libdir does not exist 18434hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18435 18436# Whether we need a single "-rpath" flag with a separated argument. 18437hardcode_libdir_separator=$lt_hardcode_libdir_separator 18438 18439# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18440# DIR into the resulting binary. 18441hardcode_direct=$hardcode_direct 18442 18443# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18444# DIR into the resulting binary and the resulting library dependency is 18445# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18446# library is relocated. 18447hardcode_direct_absolute=$hardcode_direct_absolute 18448 18449# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18450# into the resulting binary. 18451hardcode_minus_L=$hardcode_minus_L 18452 18453# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18454# into the resulting binary. 18455hardcode_shlibpath_var=$hardcode_shlibpath_var 18456 18457# Set to "yes" if building a shared library automatically hardcodes DIR 18458# into the library and all subsequent libraries and executables linked 18459# against it. 18460hardcode_automatic=$hardcode_automatic 18461 18462# Set to yes if linker adds runtime paths of dependent libraries 18463# to runtime path list. 18464inherit_rpath=$inherit_rpath 18465 18466# Whether libtool must link a program against all its dependency libraries. 18467link_all_deplibs=$link_all_deplibs 18468 18469# Set to "yes" if exported symbols are required. 18470always_export_symbols=$always_export_symbols 18471 18472# The commands to list exported symbols. 18473export_symbols_cmds=$lt_export_symbols_cmds 18474 18475# Symbols that should not be listed in the preloaded symbols. 18476exclude_expsyms=$lt_exclude_expsyms 18477 18478# Symbols that must always be exported. 18479include_expsyms=$lt_include_expsyms 18480 18481# Commands necessary for linking programs (against libraries) with templates. 18482prelink_cmds=$lt_prelink_cmds 18483 18484# Commands necessary for finishing linking programs. 18485postlink_cmds=$lt_postlink_cmds 18486 18487# Specify filename containing input files. 18488file_list_spec=$lt_file_list_spec 18489 18490# How to hardcode a shared library path into an executable. 18491hardcode_action=$hardcode_action 18492 18493# ### END LIBTOOL CONFIG 18494 18495_LT_EOF 18496 18497 cat <<'_LT_EOF' >> "$cfgfile" 18498 18499# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18500 18501# func_munge_path_list VARIABLE PATH 18502# ----------------------------------- 18503# VARIABLE is name of variable containing _space_ separated list of 18504# directories to be munged by the contents of PATH, which is string 18505# having a format: 18506# "DIR[:DIR]:" 18507# string "DIR[ DIR]" will be prepended to VARIABLE 18508# ":DIR[:DIR]" 18509# string "DIR[ DIR]" will be appended to VARIABLE 18510# "DIRP[:DIRP]::[DIRA:]DIRA" 18511# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18512# "DIRA[ DIRA]" will be appended to VARIABLE 18513# "DIR[:DIR]" 18514# VARIABLE will be replaced by "DIR[ DIR]" 18515func_munge_path_list () 18516{ 18517 case x$2 in 18518 x) 18519 ;; 18520 *:) 18521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18522 ;; 18523 x:*) 18524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18525 ;; 18526 *::*) 18527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18529 ;; 18530 *) 18531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18532 ;; 18533 esac 18534} 18535 18536 18537# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18538func_cc_basename () 18539{ 18540 for cc_temp in $*""; do 18541 case $cc_temp in 18542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18544 \-*) ;; 18545 *) break;; 18546 esac 18547 done 18548 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18549} 18550 18551 18552# ### END FUNCTIONS SHARED WITH CONFIGURE 18553 18554_LT_EOF 18555 18556 case $host_os in 18557 aix3*) 18558 cat <<\_LT_EOF >> "$cfgfile" 18559# AIX sometimes has problems with the GCC collect2 program. For some 18560# reason, if we set the COLLECT_NAMES environment variable, the problems 18561# vanish in a puff of smoke. 18562if test set != "${COLLECT_NAMES+set}"; then 18563 COLLECT_NAMES= 18564 export COLLECT_NAMES 18565fi 18566_LT_EOF 18567 ;; 18568 esac 18569 18570 18571ltmain=$ac_aux_dir/ltmain.sh 18572 18573 18574 # We use sed instead of cat because bash on DJGPP gets confused if 18575 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18576 # text mode, it properly converts lines to CR/LF. This bash problem 18577 # is reportedly fixed, but why not run on old versions too? 18578 sed '$q' "$ltmain" >> "$cfgfile" \ 18579 || (rm -f "$cfgfile"; exit 1) 18580 18581 mv -f "$cfgfile" "$ofile" || 18582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18583 chmod +x "$ofile" 18584 18585 ;; 18586 "mkdirs":C) $MKDIR_P sysd; $MKDIR_P docs ;; 18587 18588 esac 18589done # for ac_tag 18590 18591 18592as_fn_exit 0 18593_ACEOF 18594ac_clean_files=$ac_clean_files_save 18595 18596test $ac_write_fail = 0 || 18597 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18598 18599 18600# configure is writing to config.log, and then calls config.status. 18601# config.status does its own redirection, appending to config.log. 18602# Unfortunately, on DOS this fails, as config.log is still kept open 18603# by configure, so config.status won't be able to write to it; its 18604# output is simply discarded. So we exec the FD to /dev/null, 18605# effectively closing config.log, so it can be properly (re)opened and 18606# appended to by config.status. When coming back to configure, we 18607# need to make the FD available again. 18608if test "$no_create" != yes; then 18609 ac_cs_success=: 18610 ac_config_status_args= 18611 test "$silent" = yes && 18612 ac_config_status_args="$ac_config_status_args --quiet" 18613 exec 5>/dev/null 18614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18615 exec 5>>config.log 18616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18617 # would make configure fail if this is the last instruction. 18618 $ac_cs_success || as_fn_exit 1 18619fi 18620if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18622$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18623fi 18624 18625 18626echo "========================================================================" 18627echo "| Build Info: $B_INFO" 18628echo "| Build Features: $B_FEAT" 18629echo "| CC: $CC" 18630echo "| CPPFLAGS: $CPPFLAGS" 18631echo "| CFLAGS: $CFLAGS $CFLAGS_PIE" 18632echo "| LDFLAGS: $LDFLAGS $LDFLAGS_PIE" 18633echo "========================================================================" 18634