1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ircd-ratbox stable. 4# 5# $Id: configure 29307 2016-01-13 18:59:05Z androsyn $ 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 about your system, 278$0: including any error possibly output before this 279$0: message. Then install a modern shell, or manually run 280$0: the script under such a shell if you do have one." 281 fi 282 exit 1 283fi 284fi 285fi 286SHELL=${CONFIG_SHELL-/bin/sh} 287export SHELL 288# Unset more variables known to interfere with behavior of common tools. 289CLICOLOR_FORCE= GREP_OPTIONS= 290unset CLICOLOR_FORCE GREP_OPTIONS 291 292## --------------------- ## 293## M4sh Shell Functions. ## 294## --------------------- ## 295# as_fn_unset VAR 296# --------------- 297# Portably unset VAR. 298as_fn_unset () 299{ 300 { eval $1=; unset $1;} 301} 302as_unset=as_fn_unset 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344$as_echo X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 384 eval 'as_fn_append () 385 { 386 eval $1+=\$2 387 }' 388else 389 as_fn_append () 390 { 391 eval $1=\$$1\$2 392 } 393fi # as_fn_append 394 395# as_fn_arith ARG... 396# ------------------ 397# Perform arithmetic evaluation on the ARGs, and store the result in the 398# global $as_val. Take advantage of shells that can avoid forks. The arguments 399# must be portable across $(()) and expr. 400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 401 eval 'as_fn_arith () 402 { 403 as_val=$(( $* )) 404 }' 405else 406 as_fn_arith () 407 { 408 as_val=`expr "$@" || test $? -eq 1` 409 } 410fi # as_fn_arith 411 412 413# as_fn_error STATUS ERROR [LINENO LOG_FD] 414# ---------------------------------------- 415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 417# script with STATUS, using 1 if that was 0. 418as_fn_error () 419{ 420 as_status=$1; test $as_status -eq 0 && as_status=1 421 if test "$4"; then 422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 424 fi 425 $as_echo "$as_me: error: $2" >&2 426 as_fn_exit $as_status 427} # as_fn_error 428 429if expr a : '\(a\)' >/dev/null 2>&1 && 430 test "X`expr 00001 : '.*\(...\)'`" = X001; then 431 as_expr=expr 432else 433 as_expr=false 434fi 435 436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 437 as_basename=basename 438else 439 as_basename=false 440fi 441 442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 443 as_dirname=dirname 444else 445 as_dirname=false 446fi 447 448as_me=`$as_basename -- "$0" || 449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 450 X"$0" : 'X\(//\)$' \| \ 451 X"$0" : 'X\(/\)' \| . 2>/dev/null || 452$as_echo X/"$0" | 453 sed '/^.*\/\([^/][^/]*\)\/*$/{ 454 s//\1/ 455 q 456 } 457 /^X\/\(\/\/\)$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\).*/{ 462 s//\1/ 463 q 464 } 465 s/.*/./; q'` 466 467# Avoid depending upon Character Ranges. 468as_cr_letters='abcdefghijklmnopqrstuvwxyz' 469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 470as_cr_Letters=$as_cr_letters$as_cr_LETTERS 471as_cr_digits='0123456789' 472as_cr_alnum=$as_cr_Letters$as_cr_digits 473 474 475 as_lineno_1=$LINENO as_lineno_1a=$LINENO 476 as_lineno_2=$LINENO as_lineno_2a=$LINENO 477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 480 sed -n ' 481 p 482 /[$]LINENO/= 483 ' <$as_myself | 484 sed ' 485 s/[$]LINENO.*/&-/ 486 t lineno 487 b 488 :lineno 489 N 490 :loop 491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 492 t loop 493 s/-\n.*// 494 ' >$as_me.lineno && 495 chmod +x "$as_me.lineno" || 496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 497 498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 499 # already done that, so ensure we don't try to do so again and fall 500 # in an infinite loop. This has already happened in practice. 501 _as_can_reexec=no; export _as_can_reexec 502 # Don't try to exec as it changes $[0], causing all sort of problems 503 # (the dirname of $[0] is not the place where we might find the 504 # original and so on. Autoconf is especially sensitive to this). 505 . "./$as_me.lineno" 506 # Exit status is that of the last command. 507 exit 508} 509 510ECHO_C= ECHO_N= ECHO_T= 511case `echo -n x` in #((((( 512-n*) 513 case `echo 'xy\c'` in 514 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 515 xy) ECHO_C='\c';; 516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 517 ECHO_T=' ';; 518 esac;; 519*) 520 ECHO_N='-n';; 521esac 522 523rm -f conf$$ conf$$.exe conf$$.file 524if test -d conf$$.dir; then 525 rm -f conf$$.dir/conf$$.file 526else 527 rm -f conf$$.dir 528 mkdir conf$$.dir 2>/dev/null 529fi 530if (echo >conf$$.file) 2>/dev/null; then 531 if ln -s conf$$.file conf$$ 2>/dev/null; then 532 as_ln_s='ln -s' 533 # ... but there are two gotchas: 534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 536 # In both cases, we have to default to `cp -pR'. 537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 538 as_ln_s='cp -pR' 539 elif ln conf$$.file conf$$ 2>/dev/null; then 540 as_ln_s=ln 541 else 542 as_ln_s='cp -pR' 543 fi 544else 545 as_ln_s='cp -pR' 546fi 547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 548rmdir conf$$.dir 2>/dev/null 549 550if mkdir -p . 2>/dev/null; then 551 as_mkdir_p='mkdir -p "$as_dir"' 552else 553 test -d ./-p && rmdir ./-p 554 as_mkdir_p=false 555fi 556 557as_test_x='test -x' 558as_executable_p=as_fn_executable_p 559 560# Sed expression to map a string onto a valid CPP name. 561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 562 563# Sed expression to map a string onto a valid variable name. 564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 565 566SHELL=${CONFIG_SHELL-/bin/sh} 567 568lt_ltdl_dir='libltdl' 569 570lt_dlopen_dir="$lt_ltdl_dir" 571 572 573test -n "$DJDIR" || exec 7<&0 </dev/null 574exec 6>&1 575 576# Name of the host. 577# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 578# so uname gets run too. 579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 580 581# 582# Initializations. 583# 584ac_default_prefix=/usr/local 585ac_clean_files= 586ac_config_libobj_dir=. 587LIBOBJS= 588cross_compiling=no 589subdirs= 590MFLAGS= 591MAKEFLAGS= 592 593# Identity of this package. 594PACKAGE_NAME='ircd-ratbox' 595PACKAGE_TARNAME='ircd-ratbox' 596PACKAGE_VERSION='stable' 597PACKAGE_STRING='ircd-ratbox stable' 598PACKAGE_BUGREPORT='' 599PACKAGE_URL='' 600 601ac_default_prefix=/usr/local/ircd 602# Factoring default headers for most tests. 603ac_includes_default="\ 604#include <stdio.h> 605#ifdef HAVE_SYS_TYPES_H 606# include <sys/types.h> 607#endif 608#ifdef HAVE_SYS_STAT_H 609# include <sys/stat.h> 610#endif 611#ifdef STDC_HEADERS 612# include <stdlib.h> 613# include <stddef.h> 614#else 615# ifdef HAVE_STDLIB_H 616# include <stdlib.h> 617# endif 618#endif 619#ifdef HAVE_STRING_H 620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 621# include <memory.h> 622# endif 623# include <string.h> 624#endif 625#ifdef HAVE_STRINGS_H 626# include <strings.h> 627#endif 628#ifdef HAVE_INTTYPES_H 629# include <inttypes.h> 630#endif 631#ifdef HAVE_STDINT_H 632# include <stdint.h> 633#endif 634#ifdef HAVE_UNISTD_H 635# include <unistd.h> 636#endif" 637 638enable_option_checking=no 639ac_subst_vars='ltdl_LTLIBOBJS 640ltdl_LIBOBJS 641am__EXEEXT_FALSE 642am__EXEEXT_TRUE 643LTLIBOBJS 644LIBOBJS 645DISABLE_BACKUPS_FALSE 646DISABLE_BACKUPS_TRUE 647IRCD_PREFIX 648LT_OBJDIR 649SHLIBEXT 650LIBEXEC_DIR 651WARNFLAGS 652SEDOBJ 653PICFLAGS 654SSL_LIBS 655SSL_INCLUDES 656ENABLE_SERVICES_FALSE 657ENABLE_SERVICES_TRUE 658moduledir 659MODULE_DIR 660helpdir 661HELP_DIR 662logdir 663LOG_DIR 664confdir 665ETC_DIR 666ZLIB_LD 667BUILD_SQLITE_FALSE 668BUILD_SQLITE_TRUE 669SQLITE_SUBDIR 670SQLITE3_CFLAGS 671SQLITE3_LIBS 672ALLOCA 673MINGW_FALSE 674MINGW_TRUE 675LTDL_SUBDIR 676LTDLOPEN 677LT_CONFIG_H 678subdirs 679CONVENIENCE_LTDL_FALSE 680CONVENIENCE_LTDL_TRUE 681INSTALL_LTDL_FALSE 682INSTALL_LTDL_TRUE 683ARGZ_H 684sys_symbol_underscore 685LIBADD_DL 686LT_DLPREOPEN 687LIBADD_DLD_LINK 688LIBADD_SHL_LOAD 689LIBADD_DLOPEN 690LT_DLLOADERS 691INCLTDL 692LTDLINCL 693LTDLDEPS 694LIBLTDL 695OTOOL64 696OTOOL 697LIPO 698NMEDIT 699DSYMUTIL 700MANIFEST_TOOL 701RANLIB 702ac_ct_AR 703AR 704DLLTOOL 705OBJDUMP 706LN_S 707NM 708ac_ct_DUMPBIN 709DUMPBIN 710LD 711FGREP 712SED 713host_os 714host_vendor 715host_cpu 716host 717build_os 718build_vendor 719build_cpu 720build 721LIBTOOL 722STATIC_MODULES_FALSE 723STATIC_MODULES_TRUE 724YFLAGS 725YACC 726MAINT 727MAINTAINER_MODE_FALSE 728MAINTAINER_MODE_TRUE 729LEXLIB 730LEX_OUTPUT_ROOT 731LEX 732RB_RM 733MV 734CP 735EGREP 736GREP 737CPP 738am__fastdepCC_FALSE 739am__fastdepCC_TRUE 740CCDEPMODE 741am__nodep 742AMDEPBACKSLASH 743AMDEP_FALSE 744AMDEP_TRUE 745am__quote 746am__include 747DEPDIR 748OBJEXT 749EXEEXT 750ac_ct_CC 751CPPFLAGS 752LDFLAGS 753CFLAGS 754CC 755am__untar 756am__tar 757AMTAR 758am__leading_dot 759SET_MAKE 760AWK 761mkdir_p 762MKDIR_P 763INSTALL_STRIP_PROGRAM 764STRIP 765install_sh 766MAKEINFO 767AUTOHEADER 768AUTOMAKE 769AUTOCONF 770ACLOCAL 771VERSION 772PACKAGE 773CYGPATH_W 774am__isrc 775INSTALL_DATA 776INSTALL_SCRIPT 777INSTALL_PROGRAM 778target_alias 779host_alias 780build_alias 781LIBS 782ECHO_T 783ECHO_N 784ECHO_C 785DEFS 786mandir 787localedir 788libdir 789psdir 790pdfdir 791dvidir 792htmldir 793infodir 794docdir 795oldincludedir 796includedir 797runstatedir 798localstatedir 799sharedstatedir 800sysconfdir 801datadir 802datarootdir 803libexecdir 804sbindir 805bindir 806program_transform_name 807prefix 808exec_prefix 809PACKAGE_URL 810PACKAGE_BUGREPORT 811PACKAGE_STRING 812PACKAGE_VERSION 813PACKAGE_TARNAME 814PACKAGE_NAME 815PATH_SEPARATOR 816SHELL' 817ac_subst_files='' 818ac_user_opts=' 819enable_option_checking 820enable_dependency_tracking 821enable_shared 822enable_static 823enable_maintainer_mode 824with_pic 825enable_fast_install 826with_gnu_ld 827with_sysroot 828enable_libtool_lock 829with_included_ltdl 830with_ltdl_include 831with_ltdl_lib 832enable_ltdl_install 833enable_ipv6 834enable_openssl 835with_sqlite3 836with_sqlite3_incdir 837with_sqlite3_libdir 838with_zlib_path 839enable_zlib 840with_confdir 841with_logdir 842with_helpdir 843with_moduledir 844enable_assert 845enable_iodebug 846enable_profile 847enable_services 848enable_small_net 849with_nicklen 850enable_backups 851' 852 ac_precious_vars='build_alias 853host_alias 854target_alias 855CC 856CFLAGS 857LDFLAGS 858LIBS 859CPPFLAGS 860CPP 861YACC 862YFLAGS' 863ac_subdirs_all='libltdl 864libratbox' 865 866# Initialize some variables set by options. 867ac_init_help= 868ac_init_version=false 869ac_unrecognized_opts= 870ac_unrecognized_sep= 871# The variables have the same names as the options, with 872# dashes changed to underlines. 873cache_file=/dev/null 874exec_prefix=NONE 875no_create= 876no_recursion= 877prefix=NONE 878program_prefix=NONE 879program_suffix=NONE 880program_transform_name=s,x,x, 881silent= 882site= 883srcdir= 884verbose= 885x_includes=NONE 886x_libraries=NONE 887 888# Installation directory options. 889# These are left unexpanded so users can "make install exec_prefix=/foo" 890# and all the variables that are supposed to be based on exec_prefix 891# by default will actually change. 892# Use braces instead of parens because sh, perl, etc. also accept them. 893# (The list follows the same order as the GNU Coding Standards.) 894bindir='${exec_prefix}/bin' 895sbindir='${exec_prefix}/sbin' 896libexecdir='${exec_prefix}/libexec' 897datarootdir='${prefix}/share' 898datadir='${datarootdir}' 899sysconfdir='${prefix}/etc' 900sharedstatedir='${prefix}/com' 901localstatedir='${prefix}/var' 902runstatedir='${localstatedir}/run' 903includedir='${prefix}/include' 904oldincludedir='/usr/include' 905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 906infodir='${datarootdir}/info' 907htmldir='${docdir}' 908dvidir='${docdir}' 909pdfdir='${docdir}' 910psdir='${docdir}' 911libdir='${exec_prefix}/lib' 912localedir='${datarootdir}/locale' 913mandir='${datarootdir}/man' 914 915ac_prev= 916ac_dashdash= 917for ac_option 918do 919 # If the previous option needs an argument, assign it. 920 if test -n "$ac_prev"; then 921 eval $ac_prev=\$ac_option 922 ac_prev= 923 continue 924 fi 925 926 case $ac_option in 927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 928 *=) ac_optarg= ;; 929 *) ac_optarg=yes ;; 930 esac 931 932 # Accept the important Cygnus configure options, so we can diagnose typos. 933 934 case $ac_dashdash$ac_option in 935 --) 936 ac_dashdash=yes ;; 937 938 -bindir | --bindir | --bindi | --bind | --bin | --bi) 939 ac_prev=bindir ;; 940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 941 bindir=$ac_optarg ;; 942 943 -build | --build | --buil | --bui | --bu) 944 ac_prev=build_alias ;; 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 946 build_alias=$ac_optarg ;; 947 948 -cache-file | --cache-file | --cache-fil | --cache-fi \ 949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 950 ac_prev=cache_file ;; 951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 953 cache_file=$ac_optarg ;; 954 955 --config-cache | -C) 956 cache_file=config.cache ;; 957 958 -datadir | --datadir | --datadi | --datad) 959 ac_prev=datadir ;; 960 -datadir=* | --datadir=* | --datadi=* | --datad=*) 961 datadir=$ac_optarg ;; 962 963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 964 | --dataroo | --dataro | --datar) 965 ac_prev=datarootdir ;; 966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 968 datarootdir=$ac_optarg ;; 969 970 -disable-* | --disable-*) 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 972 # Reject names that are not valid shell variable names. 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 974 as_fn_error $? "invalid feature name: $ac_useropt" 975 ac_useropt_orig=$ac_useropt 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 case $ac_user_opts in 978 *" 979"enable_$ac_useropt" 980"*) ;; 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 982 ac_unrecognized_sep=', ';; 983 esac 984 eval enable_$ac_useropt=no ;; 985 986 -docdir | --docdir | --docdi | --doc | --do) 987 ac_prev=docdir ;; 988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 989 docdir=$ac_optarg ;; 990 991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 992 ac_prev=dvidir ;; 993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 994 dvidir=$ac_optarg ;; 995 996 -enable-* | --enable-*) 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1000 as_fn_error $? "invalid feature name: $ac_useropt" 1001 ac_useropt_orig=$ac_useropt 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1003 case $ac_user_opts in 1004 *" 1005"enable_$ac_useropt" 1006"*) ;; 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1008 ac_unrecognized_sep=', ';; 1009 esac 1010 eval enable_$ac_useropt=\$ac_optarg ;; 1011 1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1014 | --exec | --exe | --ex) 1015 ac_prev=exec_prefix ;; 1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1018 | --exec=* | --exe=* | --ex=*) 1019 exec_prefix=$ac_optarg ;; 1020 1021 -gas | --gas | --ga | --g) 1022 # Obsolete; use --with-gas. 1023 with_gas=yes ;; 1024 1025 -help | --help | --hel | --he | -h) 1026 ac_init_help=long ;; 1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1028 ac_init_help=recursive ;; 1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1030 ac_init_help=short ;; 1031 1032 -host | --host | --hos | --ho) 1033 ac_prev=host_alias ;; 1034 -host=* | --host=* | --hos=* | --ho=*) 1035 host_alias=$ac_optarg ;; 1036 1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1038 ac_prev=htmldir ;; 1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1040 | --ht=*) 1041 htmldir=$ac_optarg ;; 1042 1043 -includedir | --includedir | --includedi | --included | --include \ 1044 | --includ | --inclu | --incl | --inc) 1045 ac_prev=includedir ;; 1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1047 | --includ=* | --inclu=* | --incl=* | --inc=*) 1048 includedir=$ac_optarg ;; 1049 1050 -infodir | --infodir | --infodi | --infod | --info | --inf) 1051 ac_prev=infodir ;; 1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1053 infodir=$ac_optarg ;; 1054 1055 -libdir | --libdir | --libdi | --libd) 1056 ac_prev=libdir ;; 1057 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1058 libdir=$ac_optarg ;; 1059 1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1061 | --libexe | --libex | --libe) 1062 ac_prev=libexecdir ;; 1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1064 | --libexe=* | --libex=* | --libe=*) 1065 libexecdir=$ac_optarg ;; 1066 1067 -localedir | --localedir | --localedi | --localed | --locale) 1068 ac_prev=localedir ;; 1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1070 localedir=$ac_optarg ;; 1071 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1073 | --localstate | --localstat | --localsta | --localst | --locals) 1074 ac_prev=localstatedir ;; 1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1077 localstatedir=$ac_optarg ;; 1078 1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1080 ac_prev=mandir ;; 1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1082 mandir=$ac_optarg ;; 1083 1084 -nfp | --nfp | --nf) 1085 # Obsolete; use --without-fp. 1086 with_fp=no ;; 1087 1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1089 | --no-cr | --no-c | -n) 1090 no_create=yes ;; 1091 1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1094 no_recursion=yes ;; 1095 1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1098 | --oldin | --oldi | --old | --ol | --o) 1099 ac_prev=oldincludedir ;; 1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1103 oldincludedir=$ac_optarg ;; 1104 1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1106 ac_prev=prefix ;; 1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1108 prefix=$ac_optarg ;; 1109 1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1111 | --program-pre | --program-pr | --program-p) 1112 ac_prev=program_prefix ;; 1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1115 program_prefix=$ac_optarg ;; 1116 1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1118 | --program-suf | --program-su | --program-s) 1119 ac_prev=program_suffix ;; 1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1122 program_suffix=$ac_optarg ;; 1123 1124 -program-transform-name | --program-transform-name \ 1125 | --program-transform-nam | --program-transform-na \ 1126 | --program-transform-n | --program-transform- \ 1127 | --program-transform | --program-transfor \ 1128 | --program-transfo | --program-transf \ 1129 | --program-trans | --program-tran \ 1130 | --progr-tra | --program-tr | --program-t) 1131 ac_prev=program_transform_name ;; 1132 -program-transform-name=* | --program-transform-name=* \ 1133 | --program-transform-nam=* | --program-transform-na=* \ 1134 | --program-transform-n=* | --program-transform-=* \ 1135 | --program-transform=* | --program-transfor=* \ 1136 | --program-transfo=* | --program-transf=* \ 1137 | --program-trans=* | --program-tran=* \ 1138 | --progr-tra=* | --program-tr=* | --program-t=*) 1139 program_transform_name=$ac_optarg ;; 1140 1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1142 ac_prev=pdfdir ;; 1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1144 pdfdir=$ac_optarg ;; 1145 1146 -psdir | --psdir | --psdi | --psd | --ps) 1147 ac_prev=psdir ;; 1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1149 psdir=$ac_optarg ;; 1150 1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1152 | -silent | --silent | --silen | --sile | --sil) 1153 silent=yes ;; 1154 1155 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1156 | --runstate | --runstat | --runsta | --runst | --runs \ 1157 | --run | --ru | --r) 1158 ac_prev=runstatedir ;; 1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1161 | --run=* | --ru=* | --r=*) 1162 runstatedir=$ac_optarg ;; 1163 1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1165 ac_prev=sbindir ;; 1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1167 | --sbi=* | --sb=*) 1168 sbindir=$ac_optarg ;; 1169 1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1172 | --sharedst | --shareds | --shared | --share | --shar \ 1173 | --sha | --sh) 1174 ac_prev=sharedstatedir ;; 1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1178 | --sha=* | --sh=*) 1179 sharedstatedir=$ac_optarg ;; 1180 1181 -site | --site | --sit) 1182 ac_prev=site ;; 1183 -site=* | --site=* | --sit=*) 1184 site=$ac_optarg ;; 1185 1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1187 ac_prev=srcdir ;; 1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1189 srcdir=$ac_optarg ;; 1190 1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1192 | --syscon | --sysco | --sysc | --sys | --sy) 1193 ac_prev=sysconfdir ;; 1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1196 sysconfdir=$ac_optarg ;; 1197 1198 -target | --target | --targe | --targ | --tar | --ta | --t) 1199 ac_prev=target_alias ;; 1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1201 target_alias=$ac_optarg ;; 1202 1203 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1204 verbose=yes ;; 1205 1206 -version | --version | --versio | --versi | --vers | -V) 1207 ac_init_version=: ;; 1208 1209 -with-* | --with-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid package name: $ac_useropt" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"with_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval with_$ac_useropt=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 as_fn_error $? "invalid package name: $ac_useropt" 1230 ac_useropt_orig=$ac_useropt 1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1232 case $ac_user_opts in 1233 *" 1234"with_$ac_useropt" 1235"*) ;; 1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1237 ac_unrecognized_sep=', ';; 1238 esac 1239 eval with_$ac_useropt=no ;; 1240 1241 --x) 1242 # Obsolete; use --with-x. 1243 with_x=yes ;; 1244 1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1246 | --x-incl | --x-inc | --x-in | --x-i) 1247 ac_prev=x_includes ;; 1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1250 x_includes=$ac_optarg ;; 1251 1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1254 ac_prev=x_libraries ;; 1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1257 x_libraries=$ac_optarg ;; 1258 1259 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1260Try \`$0 --help' for more information" 1261 ;; 1262 1263 *=*) 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 # Reject names that are not valid shell variable names. 1266 case $ac_envvar in #( 1267 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1269 esac 1270 eval $ac_envvar=\$ac_optarg 1271 export $ac_envvar ;; 1272 1273 *) 1274 # FIXME: should be removed in autoconf 3.0. 1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1279 ;; 1280 1281 esac 1282done 1283 1284if test -n "$ac_prev"; then 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1286 as_fn_error $? "missing argument to $ac_option" 1287fi 1288 1289if test -n "$ac_unrecognized_opts"; then 1290 case $enable_option_checking in 1291 no) ;; 1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1294 esac 1295fi 1296 1297# Check all directory arguments for consistency. 1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1301 libdir localedir mandir runstatedir 1302do 1303 eval ac_val=\$$ac_var 1304 # Remove trailing slashes. 1305 case $ac_val in 1306 */ ) 1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1308 eval $ac_var=\$ac_val;; 1309 esac 1310 # Be sure to have absolute directory names. 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1316done 1317 1318# There might be people who depend on the old broken behavior: `$host' 1319# used to hold the argument of --host etc. 1320# FIXME: To remove some day. 1321build=$build_alias 1322host=$host_alias 1323target=$target_alias 1324 1325# FIXME: To remove some day. 1326if test "x$host_alias" != x; then 1327 if test "x$build_alias" = x; then 1328 cross_compiling=maybe 1329 elif test "x$build_alias" != "x$host_alias"; then 1330 cross_compiling=yes 1331 fi 1332fi 1333 1334ac_tool_prefix= 1335test -n "$host_alias" && ac_tool_prefix=$host_alias- 1336 1337test "$silent" = yes && exec 6>/dev/null 1338 1339 1340ac_pwd=`pwd` && test -n "$ac_pwd" && 1341ac_ls_di=`ls -di .` && 1342ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1343 as_fn_error $? "working directory cannot be determined" 1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1345 as_fn_error $? "pwd does not report name of working directory" 1346 1347 1348# Find the source files, if location was not specified. 1349if test -z "$srcdir"; then 1350 ac_srcdir_defaulted=yes 1351 # Try the directory containing this script, then the parent directory. 1352 ac_confdir=`$as_dirname -- "$as_myself" || 1353$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1354 X"$as_myself" : 'X\(//\)[^/]' \| \ 1355 X"$as_myself" : 'X\(//\)$' \| \ 1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1357$as_echo X"$as_myself" | 1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)[^/].*/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\/\)$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\).*/{ 1371 s//\1/ 1372 q 1373 } 1374 s/.*/./; q'` 1375 srcdir=$ac_confdir 1376 if test ! -r "$srcdir/$ac_unique_file"; then 1377 srcdir=.. 1378 fi 1379else 1380 ac_srcdir_defaulted=no 1381fi 1382if test ! -r "$srcdir/$ac_unique_file"; then 1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1385fi 1386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1387ac_abs_confdir=`( 1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1389 pwd)` 1390# When building in place, set srcdir=. 1391if test "$ac_abs_confdir" = "$ac_pwd"; then 1392 srcdir=. 1393fi 1394# Remove unnecessary trailing slashes from srcdir. 1395# Double slashes in file names in object file debugging info 1396# mess up M-x gdb in Emacs. 1397case $srcdir in 1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1399esac 1400for ac_var in $ac_precious_vars; do 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_env_${ac_var}_value=\$${ac_var} 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1405done 1406 1407# 1408# Report the --help message. 1409# 1410if test "$ac_init_help" = "long"; then 1411 # Omit some internal or obsolete options to make the list less imposing. 1412 # This message is too long to be a string in the A/UX 3.1 sh. 1413 cat <<_ACEOF 1414\`configure' configures ircd-ratbox stable to adapt to many kinds of systems. 1415 1416Usage: $0 [OPTION]... [VAR=VALUE]... 1417 1418To assign environment variables (e.g., CC, CFLAGS...), specify them as 1419VAR=VALUE. See below for descriptions of some of the useful variables. 1420 1421Defaults for the options are specified in brackets. 1422 1423Configuration: 1424 -h, --help display this help and exit 1425 --help=short display options specific to this package 1426 --help=recursive display the short help of all the included packages 1427 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print \`checking ...' messages 1429 --cache-file=FILE cache test results in FILE [disabled] 1430 -C, --config-cache alias for \`--cache-file=config.cache' 1431 -n, --no-create do not create output files 1432 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1433 1434Installation directories: 1435 --prefix=PREFIX install architecture-independent files in PREFIX 1436 [$ac_default_prefix] 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1438 [PREFIX] 1439 1440By default, \`make install' will install all the files in 1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1442an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1443for instance \`--prefix=\$HOME'. 1444 1445For better control, use the options below. 1446 1447Fine tuning of the installation directories: 1448 --bindir=DIR user executables [EPREFIX/bin] 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] 1450 --libexecdir=DIR program executables [EPREFIX/libexec] 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1455 --libdir=DIR object code libraries [EPREFIX/lib] 1456 --includedir=DIR C header files [PREFIX/include] 1457 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1460 --infodir=DIR info documentation [DATAROOTDIR/info] 1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1462 --mandir=DIR man documentation [DATAROOTDIR/man] 1463 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-ratbox] 1464 --htmldir=DIR html documentation [DOCDIR] 1465 --dvidir=DIR dvi documentation [DOCDIR] 1466 --pdfdir=DIR pdf documentation [DOCDIR] 1467 --psdir=DIR ps documentation [DOCDIR] 1468_ACEOF 1469 1470 cat <<\_ACEOF 1471 1472Program names: 1473 --program-prefix=PREFIX prepend PREFIX to installed program names 1474 --program-suffix=SUFFIX append SUFFIX to installed program names 1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1476 1477System types: 1478 --build=BUILD configure for building on BUILD [guessed] 1479 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1480_ACEOF 1481fi 1482 1483if test -n "$ac_init_help"; then 1484 case $ac_init_help in 1485 short | recursive ) echo "Configuration of ircd-ratbox stable:";; 1486 esac 1487 cat <<\_ACEOF 1488 1489Optional Features: 1490 --disable-option-checking ignore unrecognized --enable/--with options 1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1493 --disable-dependency-tracking speeds up one-time build 1494 --enable-dependency-tracking do not reject slow dependency extractors 1495 --enable-shared[=PKGS] build shared libraries [default=no] 1496 --enable-static[=PKGS] build static libraries [default=yes] 1497 --enable-maintainer-mode enable make rules and dependencies not useful 1498 (and sometimes confusing) to the casual installer 1499 --enable-fast-install[=PKGS] 1500 optimize for fast installation [default=yes] 1501 --disable-libtool-lock avoid locking (might break parallel builds) 1502 --enable-ltdl-install install libltdl 1503 --disable-ipv6 Disable IPv6 support (not recommended) 1504 --enable-openssl=DIR Enable OpenSSL support (DIR optional). 1505 --disable-openssl Disable OpenSSL support. 1506 --disable-zlib Disable ziplinks support 1507 --enable-assert Enable assert(). Choose between soft(warnings) and 1508 hard(aborts the daemon) 1509 --enable-iodebug Enable IO Debugging hooks 1510 --enable-profile Enable profiling 1511 --enable-services Enable ratbox-services compatibility code. 1512 --enable-small-net Enable small network support. 1513 1514 1515Optional Packages: 1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1519 both] 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521 --with-sysroot=DIR Search for dependent libraries within DIR 1522 (or the compiler's sysroot if not specified). 1523 --with-included-ltdl use the GNU ltdl sources included here 1524 --with-ltdl-include=DIR use the ltdl headers installed in DIR 1525 --with-ltdl-lib=DIR use the libltdl.la installed in DIR 1526 --with-sqlite3=dir Compile with libsqlite3 at given dir 1527 --with-sqlite3-incdir Specifies where the SQLite3 include files are. 1528 --with-sqlite3-libdir Specifies where the SQLite3 libraries are. 1529 --with-zlib-path=DIR Path to libz.so for ziplinks support. 1530 --with-confdir=DIR Directory to install config files. 1531 --with-logdir=DIR Directory where to write logfiles. 1532 --with-helpdir=DIR Directory to install help files. 1533 --with-moduledir=DIR Directory to install modules. 1534 --with-nicklen=LENGTH Set the nick length to LENGTH (default 9, max 50) 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 YACC The `Yet Another Compiler Compiler' implementation to use. 1546 Defaults to the first program found out of: `bison -y', `byacc', 1547 `yacc'. 1548 YFLAGS The list of arguments that will be passed by default to $YACC. 1549 This script will default YFLAGS to the empty string to avoid a 1550 default value of `-d' given by some make applications. 1551 1552Use these variables to override the choices made by `configure' or to help 1553it to find libraries and programs with nonstandard names/locations. 1554 1555Report bugs to the package provider. 1556_ACEOF 1557ac_status=$? 1558fi 1559 1560if test "$ac_init_help" = "recursive"; then 1561 # If there are subdirs, report their specific --help. 1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1563 test -d "$ac_dir" || 1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1565 continue 1566 ac_builddir=. 1567 1568case "$ac_dir" in 1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570*) 1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1572 # A ".." for each directory in $ac_dir_suffix. 1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1574 case $ac_top_builddir_sub in 1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1577 esac ;; 1578esac 1579ac_abs_top_builddir=$ac_pwd 1580ac_abs_builddir=$ac_pwd$ac_dir_suffix 1581# for backward compatibility: 1582ac_top_builddir=$ac_top_build_prefix 1583 1584case $srcdir in 1585 .) # We are building in place. 1586 ac_srcdir=. 1587 ac_top_srcdir=$ac_top_builddir_sub 1588 ac_abs_top_srcdir=$ac_pwd ;; 1589 [\\/]* | ?:[\\/]* ) # Absolute name. 1590 ac_srcdir=$srcdir$ac_dir_suffix; 1591 ac_top_srcdir=$srcdir 1592 ac_abs_top_srcdir=$srcdir ;; 1593 *) # Relative name. 1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1595 ac_top_srcdir=$ac_top_build_prefix$srcdir 1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1597esac 1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1599 1600 cd "$ac_dir" || { ac_status=$?; continue; } 1601 # Check for guested configure. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618ircd-ratbox configure stable 1619generated by GNU Autoconf 2.69 1620 1621Copyright (C) 2012 Free Software Foundation, Inc. 1622This configure script is free software; the Free Software Foundation 1623gives unlimited permission to copy, distribute and modify it. 1624 1625$Id: configure 29307 2016-01-13 18:59:05Z androsyn $ 1626_ACEOF 1627 exit 1628fi 1629 1630## ------------------------ ## 1631## Autoconf initialization. ## 1632## ------------------------ ## 1633 1634# ac_fn_c_try_compile LINENO 1635# -------------------------- 1636# Try to compile conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext 1641 if { { ac_try="$ac_compile" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_compile") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest.$ac_objext; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1710# ------------------------------------------------------- 1711# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1712# the include files in INCLUDES and setting the cache variable VAR 1713# accordingly. 1714ac_fn_c_check_header_mongrel () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 if eval \${$3+:} false; then : 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1719$as_echo_n "checking for $2... " >&6; } 1720if eval \${$3+:} false; then : 1721 $as_echo_n "(cached) " >&6 1722fi 1723eval ac_res=\$$3 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725$as_echo "$ac_res" >&6; } 1726else 1727 # Is the header compilable? 1728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1729$as_echo_n "checking $2 usability... " >&6; } 1730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733#include <$2> 1734_ACEOF 1735if ac_fn_c_try_compile "$LINENO"; then : 1736 ac_header_compiler=yes 1737else 1738 ac_header_compiler=no 1739fi 1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1742$as_echo "$ac_header_compiler" >&6; } 1743 1744# Is the header present? 1745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1746$as_echo_n "checking $2 presence... " >&6; } 1747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748/* end confdefs.h. */ 1749#include <$2> 1750_ACEOF 1751if ac_fn_c_try_cpp "$LINENO"; then : 1752 ac_header_preproc=yes 1753else 1754 ac_header_preproc=no 1755fi 1756rm -f conftest.err conftest.i conftest.$ac_ext 1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1758$as_echo "$ac_header_preproc" >&6; } 1759 1760# So? What about this header? 1761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1762 yes:no: ) 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1764$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1766$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1767 ;; 1768 no:yes:* ) 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1770$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1772$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1774$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1776$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1778$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1779 ;; 1780esac 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1782$as_echo_n "checking for $2... " >&6; } 1783if eval \${$3+:} false; then : 1784 $as_echo_n "(cached) " >&6 1785else 1786 eval "$3=\$ac_header_compiler" 1787fi 1788eval ac_res=\$$3 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790$as_echo "$ac_res" >&6; } 1791fi 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_header_mongrel 1795 1796# ac_fn_c_try_run LINENO 1797# ---------------------- 1798# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1799# that executables *can* be run. 1800ac_fn_c_try_run () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 if { { ac_try="$ac_link" 1804case "(($ac_try" in 1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1806 *) ac_try_echo=$ac_try;; 1807esac 1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1809$as_echo "$ac_try_echo"; } >&5 1810 (eval "$ac_link") 2>&5 1811 ac_status=$? 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1814 { { case "(($ac_try" in 1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1816 *) ac_try_echo=$ac_try;; 1817esac 1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1819$as_echo "$ac_try_echo"; } >&5 1820 (eval "$ac_try") 2>&5 1821 ac_status=$? 1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1823 test $ac_status = 0; }; }; then : 1824 ac_retval=0 1825else 1826 $as_echo "$as_me: program exited with status $ac_status" >&5 1827 $as_echo "$as_me: failed program was:" >&5 1828sed 's/^/| /' conftest.$ac_ext >&5 1829 1830 ac_retval=$ac_status 1831fi 1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_run 1837 1838# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1839# ------------------------------------------------------- 1840# Tests whether HEADER exists and can be compiled using the include files in 1841# INCLUDES, setting the cache variable VAR accordingly. 1842ac_fn_c_check_header_compile () 1843{ 1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1846$as_echo_n "checking for $2... " >&6; } 1847if eval \${$3+:} false; then : 1848 $as_echo_n "(cached) " >&6 1849else 1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1851/* end confdefs.h. */ 1852$4 1853#include <$2> 1854_ACEOF 1855if ac_fn_c_try_compile "$LINENO"; then : 1856 eval "$3=yes" 1857else 1858 eval "$3=no" 1859fi 1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 1867} # ac_fn_c_check_header_compile 1868 1869# ac_fn_c_try_link LINENO 1870# ----------------------- 1871# Try to link conftest.$ac_ext, and return whether this succeeded. 1872ac_fn_c_try_link () 1873{ 1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875 rm -f conftest.$ac_objext conftest$ac_exeext 1876 if { { ac_try="$ac_link" 1877case "(($ac_try" in 1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1879 *) ac_try_echo=$ac_try;; 1880esac 1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1882$as_echo "$ac_try_echo"; } >&5 1883 (eval "$ac_link") 2>conftest.err 1884 ac_status=$? 1885 if test -s conftest.err; then 1886 grep -v '^ *+' conftest.err >conftest.er1 1887 cat conftest.er1 >&5 1888 mv -f conftest.er1 conftest.err 1889 fi 1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1891 test $ac_status = 0; } && { 1892 test -z "$ac_c_werror_flag" || 1893 test ! -s conftest.err 1894 } && test -s conftest$ac_exeext && { 1895 test "$cross_compiling" = yes || 1896 test -x conftest$ac_exeext 1897 }; then : 1898 ac_retval=0 1899else 1900 $as_echo "$as_me: failed program was:" >&5 1901sed 's/^/| /' conftest.$ac_ext >&5 1902 1903 ac_retval=1 1904fi 1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1907 # interfere with the next link command; also delete a directory that is 1908 # left behind by Apple's compiler. We do this before executing the actions. 1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911 as_fn_set_status $ac_retval 1912 1913} # ac_fn_c_try_link 1914 1915# ac_fn_c_check_func LINENO FUNC VAR 1916# ---------------------------------- 1917# Tests whether FUNC exists, setting the cache variable VAR accordingly 1918ac_fn_c_check_func () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1922$as_echo_n "checking for $2... " >&6; } 1923if eval \${$3+:} false; then : 1924 $as_echo_n "(cached) " >&6 1925else 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1930#define $2 innocuous_$2 1931 1932/* System header to define __stub macros and hopefully few prototypes, 1933 which can conflict with char $2 (); below. 1934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1935 <limits.h> exists even on freestanding compilers. */ 1936 1937#ifdef __STDC__ 1938# include <limits.h> 1939#else 1940# include <assert.h> 1941#endif 1942 1943#undef $2 1944 1945/* Override any GCC internal prototype to avoid an error. 1946 Use char because int might match the return type of a GCC 1947 builtin and then its argument prototype would still apply. */ 1948#ifdef __cplusplus 1949extern "C" 1950#endif 1951char $2 (); 1952/* The GNU C library defines this for functions which it implements 1953 to always fail with ENOSYS. Some functions are actually named 1954 something starting with __ and the normal name is an alias. */ 1955#if defined __stub_$2 || defined __stub___$2 1956choke me 1957#endif 1958 1959int 1960main () 1961{ 1962return $2 (); 1963 ; 1964 return 0; 1965} 1966_ACEOF 1967if ac_fn_c_try_link "$LINENO"; then : 1968 eval "$3=yes" 1969else 1970 eval "$3=no" 1971fi 1972rm -f core conftest.err conftest.$ac_objext \ 1973 conftest$ac_exeext conftest.$ac_ext 1974fi 1975eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 1980} # ac_fn_c_check_func 1981 1982# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1983# --------------------------------------------- 1984# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1985# accordingly. 1986ac_fn_c_check_decl () 1987{ 1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1989 as_decl_name=`echo $2|sed 's/ *(.*//'` 1990 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1992$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995else 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002#ifndef $as_decl_name 2003#ifdef __cplusplus 2004 (void) $as_decl_use; 2005#else 2006 (void) $as_decl_name; 2007#endif 2008#endif 2009 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 eval "$3=yes" 2016else 2017 eval "$3=no" 2018fi 2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2020fi 2021eval ac_res=\$$3 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2023$as_echo "$ac_res" >&6; } 2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2025 2026} # ac_fn_c_check_decl 2027 2028# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2029# ------------------------------------------- 2030# Tests whether TYPE exists after having included INCLUDES, setting cache 2031# variable VAR accordingly. 2032ac_fn_c_check_type () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2036$as_echo_n "checking for $2... " >&6; } 2037if eval \${$3+:} false; then : 2038 $as_echo_n "(cached) " >&6 2039else 2040 eval "$3=no" 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047if (sizeof ($2)) 2048 return 0; 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_compile "$LINENO"; then : 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057int 2058main () 2059{ 2060if (sizeof (($2))) 2061 return 0; 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 2068else 2069 eval "$3=yes" 2070fi 2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2072fi 2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2074fi 2075eval ac_res=\$$3 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2077$as_echo "$ac_res" >&6; } 2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2079 2080} # ac_fn_c_check_type 2081 2082# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2083# -------------------------------------------- 2084# Tries to find the compile-time value of EXPR in a program that includes 2085# INCLUDES, setting VAR accordingly. Returns whether the value could be 2086# computed 2087ac_fn_c_compute_int () 2088{ 2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2090 if test "$cross_compiling" = yes; then 2091 # Depending upon the size, compute the lo and hi bounds. 2092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093/* end confdefs.h. */ 2094$4 2095int 2096main () 2097{ 2098static int test_array [1 - 2 * !(($2) >= 0)]; 2099test_array [0] = 0; 2100return test_array [0]; 2101 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO"; then : 2107 ac_lo=0 ac_mid=0 2108 while :; do 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2116test_array [0] = 0; 2117return test_array [0]; 2118 2119 ; 2120 return 0; 2121} 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_hi=$ac_mid; break 2125else 2126 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2127 if test $ac_lo -le $ac_mid; then 2128 ac_lo= ac_hi= 2129 break 2130 fi 2131 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2132fi 2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2134 done 2135else 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138$4 2139int 2140main () 2141{ 2142static int test_array [1 - 2 * !(($2) < 0)]; 2143test_array [0] = 0; 2144return test_array [0]; 2145 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150if ac_fn_c_try_compile "$LINENO"; then : 2151 ac_hi=-1 ac_mid=-1 2152 while :; do 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2160test_array [0] = 0; 2161return test_array [0]; 2162 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_compile "$LINENO"; then : 2168 ac_lo=$ac_mid; break 2169else 2170 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2171 if test $ac_mid -le $ac_hi; then 2172 ac_lo= ac_hi= 2173 break 2174 fi 2175 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2176fi 2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178 done 2179else 2180 ac_lo= ac_hi= 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183fi 2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2185# Binary search between lo and hi bounds. 2186while test "x$ac_lo" != "x$ac_hi"; do 2187 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2189/* end confdefs.h. */ 2190$4 2191int 2192main () 2193{ 2194static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2195test_array [0] = 0; 2196return test_array [0]; 2197 2198 ; 2199 return 0; 2200} 2201_ACEOF 2202if ac_fn_c_try_compile "$LINENO"; then : 2203 ac_hi=$ac_mid 2204else 2205 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2208done 2209case $ac_lo in #(( 2210?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2211'') ac_retval=1 ;; 2212esac 2213 else 2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2215/* end confdefs.h. */ 2216$4 2217static long int longval () { return $2; } 2218static unsigned long int ulongval () { return $2; } 2219#include <stdio.h> 2220#include <stdlib.h> 2221int 2222main () 2223{ 2224 2225 FILE *f = fopen ("conftest.val", "w"); 2226 if (! f) 2227 return 1; 2228 if (($2) < 0) 2229 { 2230 long int i = longval (); 2231 if (i != ($2)) 2232 return 1; 2233 fprintf (f, "%ld", i); 2234 } 2235 else 2236 { 2237 unsigned long int i = ulongval (); 2238 if (i != ($2)) 2239 return 1; 2240 fprintf (f, "%lu", i); 2241 } 2242 /* Do not output a trailing newline, as this causes \r\n confusion 2243 on some platforms. */ 2244 return ferror (f) || fclose (f) != 0; 2245 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250if ac_fn_c_try_run "$LINENO"; then : 2251 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2252else 2253 ac_retval=1 2254fi 2255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2256 conftest.$ac_objext conftest.beam conftest.$ac_ext 2257rm -f conftest.val 2258 2259 fi 2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2261 as_fn_set_status $ac_retval 2262 2263} # ac_fn_c_compute_int 2264cat >config.log <<_ACEOF 2265This file contains any messages produced by compilers while 2266running configure, to aid debugging if configure makes a mistake. 2267 2268It was created by ircd-ratbox $as_me stable, which was 2269generated by GNU Autoconf 2.69. Invocation command line was 2270 2271 $ $0 $@ 2272 2273_ACEOF 2274exec 5>>config.log 2275{ 2276cat <<_ASUNAME 2277## --------- ## 2278## Platform. ## 2279## --------- ## 2280 2281hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2282uname -m = `(uname -m) 2>/dev/null || echo unknown` 2283uname -r = `(uname -r) 2>/dev/null || echo unknown` 2284uname -s = `(uname -s) 2>/dev/null || echo unknown` 2285uname -v = `(uname -v) 2>/dev/null || echo unknown` 2286 2287/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2288/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2289 2290/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2291/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2292/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2293/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2294/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2295/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2296/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2297 2298_ASUNAME 2299 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 $as_echo "PATH: $as_dir" 2306 done 2307IFS=$as_save_IFS 2308 2309} >&5 2310 2311cat >&5 <<_ACEOF 2312 2313 2314## ----------- ## 2315## Core tests. ## 2316## ----------- ## 2317 2318_ACEOF 2319 2320 2321# Keep a trace of the command line. 2322# Strip out --no-create and --no-recursion so they do not pile up. 2323# Strip out --silent because we don't want to record it for future runs. 2324# Also quote any args containing shell meta-characters. 2325# Make two passes to allow for proper duplicate-argument suppression. 2326ac_configure_args= 2327ac_configure_args0= 2328ac_configure_args1= 2329ac_must_keep_next=false 2330for ac_pass in 1 2 2331do 2332 for ac_arg 2333 do 2334 case $ac_arg in 2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2337 | -silent | --silent | --silen | --sile | --sil) 2338 continue ;; 2339 *\'*) 2340 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 esac 2342 case $ac_pass in 2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2344 2) 2345 as_fn_append ac_configure_args1 " '$ac_arg'" 2346 if test $ac_must_keep_next = true; then 2347 ac_must_keep_next=false # Got value, back to normal. 2348 else 2349 case $ac_arg in 2350 *=* | --config-cache | -C | -disable-* | --disable-* \ 2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2353 | -with-* | --with-* | -without-* | --without-* | --x) 2354 case "$ac_configure_args0 " in 2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2356 esac 2357 ;; 2358 -* ) ac_must_keep_next=true ;; 2359 esac 2360 fi 2361 as_fn_append ac_configure_args " '$ac_arg'" 2362 ;; 2363 esac 2364 done 2365done 2366{ ac_configure_args0=; unset ac_configure_args0;} 2367{ ac_configure_args1=; unset ac_configure_args1;} 2368 2369# When interrupted or exit'd, cleanup temporary files, and complete 2370# config.log. We remove comments because anyway the quotes in there 2371# would cause problems or look ugly. 2372# WARNING: Use '\'' to represent an apostrophe within the trap. 2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2374trap 'exit_status=$? 2375 # Save into config.log some information that might help in debugging. 2376 { 2377 echo 2378 2379 $as_echo "## ---------------- ## 2380## Cache variables. ## 2381## ---------------- ##" 2382 echo 2383 # The following way of writing the cache mishandles newlines in values, 2384( 2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2386 eval ac_val=\$$ac_var 2387 case $ac_val in #( 2388 *${as_nl}*) 2389 case $ac_var in #( 2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2392 esac 2393 case $ac_var in #( 2394 _ | IFS | as_nl) ;; #( 2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2396 *) { eval $ac_var=; unset $ac_var;} ;; 2397 esac ;; 2398 esac 2399 done 2400 (set) 2>&1 | 2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2402 *${as_nl}ac_space=\ *) 2403 sed -n \ 2404 "s/'\''/'\''\\\\'\'''\''/g; 2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2406 ;; #( 2407 *) 2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2409 ;; 2410 esac | 2411 sort 2412) 2413 echo 2414 2415 $as_echo "## ----------------- ## 2416## Output variables. ## 2417## ----------------- ##" 2418 echo 2419 for ac_var in $ac_subst_vars 2420 do 2421 eval ac_val=\$$ac_var 2422 case $ac_val in 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2424 esac 2425 $as_echo "$ac_var='\''$ac_val'\''" 2426 done | sort 2427 echo 2428 2429 if test -n "$ac_subst_files"; then 2430 $as_echo "## ------------------- ## 2431## File substitutions. ## 2432## ------------------- ##" 2433 echo 2434 for ac_var in $ac_subst_files 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 fi 2444 2445 if test -s confdefs.h; then 2446 $as_echo "## ----------- ## 2447## confdefs.h. ## 2448## ----------- ##" 2449 echo 2450 cat confdefs.h 2451 echo 2452 fi 2453 test "$ac_signal" != 0 && 2454 $as_echo "$as_me: caught signal $ac_signal" 2455 $as_echo "$as_me: exit $exit_status" 2456 } >&5 2457 rm -f core *.core core.conftest.* && 2458 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2459 exit $exit_status 2460' 0 2461for ac_signal in 1 2 13 15; do 2462 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2463done 2464ac_signal=0 2465 2466# confdefs.h avoids OS command line length limits that DEFS can exceed. 2467rm -f -r conftest* confdefs.h 2468 2469$as_echo "/* confdefs.h */" > confdefs.h 2470 2471# Predefined preprocessor variables. 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_NAME "$PACKAGE_NAME" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_VERSION "$PACKAGE_VERSION" 2483_ACEOF 2484 2485cat >>confdefs.h <<_ACEOF 2486#define PACKAGE_STRING "$PACKAGE_STRING" 2487_ACEOF 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_URL "$PACKAGE_URL" 2495_ACEOF 2496 2497 2498# Let the site file select an alternate cache file if it wants to. 2499# Prefer an explicitly selected file to automatically selected ones. 2500ac_site_file1=NONE 2501ac_site_file2=NONE 2502if test -n "$CONFIG_SITE"; then 2503 # We do not want a PATH search for config.site. 2504 case $CONFIG_SITE in #(( 2505 -*) ac_site_file1=./$CONFIG_SITE;; 2506 */*) ac_site_file1=$CONFIG_SITE;; 2507 *) ac_site_file1=./$CONFIG_SITE;; 2508 esac 2509elif test "x$prefix" != xNONE; then 2510 ac_site_file1=$prefix/share/config.site 2511 ac_site_file2=$prefix/etc/config.site 2512else 2513 ac_site_file1=$ac_default_prefix/share/config.site 2514 ac_site_file2=$ac_default_prefix/etc/config.site 2515fi 2516for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2517do 2518 test "x$ac_site_file" = xNONE && continue 2519 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2521$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2522 sed 's/^/| /' "$ac_site_file" >&5 2523 . "$ac_site_file" \ 2524 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2526as_fn_error $? "failed to load site script $ac_site_file 2527See \`config.log' for more details" "$LINENO" 5; } 2528 fi 2529done 2530 2531if test -r "$cache_file"; then 2532 # Some versions of bash will fail to source /dev/null (special files 2533 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2534 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2536$as_echo "$as_me: loading cache $cache_file" >&6;} 2537 case $cache_file in 2538 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2539 *) . "./$cache_file";; 2540 esac 2541 fi 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2544$as_echo "$as_me: creating cache $cache_file" >&6;} 2545 >$cache_file 2546fi 2547 2548# Check that the precious variables saved in the cache have kept the same 2549# value. 2550ac_cache_corrupted=false 2551for ac_var in $ac_precious_vars; do 2552 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2553 eval ac_new_set=\$ac_env_${ac_var}_set 2554 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2555 eval ac_new_val=\$ac_env_${ac_var}_value 2556 case $ac_old_set,$ac_new_set in 2557 set,) 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2559$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2560 ac_cache_corrupted=: ;; 2561 ,set) 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2564 ac_cache_corrupted=: ;; 2565 ,);; 2566 *) 2567 if test "x$ac_old_val" != "x$ac_new_val"; then 2568 # differences in whitespace do not lead to failure. 2569 ac_old_val_w=`echo x $ac_old_val` 2570 ac_new_val_w=`echo x $ac_new_val` 2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2574 ac_cache_corrupted=: 2575 else 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2578 eval $ac_var=\$ac_old_val 2579 fi 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2581$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2583$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2584 fi;; 2585 esac 2586 # Pass precious variables to config.status. 2587 if test "$ac_new_set" = set; then 2588 case $ac_new_val in 2589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2590 *) ac_arg=$ac_var=$ac_new_val ;; 2591 esac 2592 case " $ac_configure_args " in 2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2594 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2595 esac 2596 fi 2597done 2598if $ac_cache_corrupted; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2603 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2604fi 2605## -------------------- ## 2606## Main body of script. ## 2607## -------------------- ## 2608 2609ac_ext=c 2610ac_cpp='$CPP $CPPFLAGS' 2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2613ac_compiler_gnu=$ac_cv_c_compiler_gnu 2614 2615 2616ac_aux_dir= 2617for ac_dir in libltdl/config "$srcdir"/libltdl/config; do 2618 if test -f "$ac_dir/install-sh"; then 2619 ac_aux_dir=$ac_dir 2620 ac_install_sh="$ac_aux_dir/install-sh -c" 2621 break 2622 elif test -f "$ac_dir/install.sh"; then 2623 ac_aux_dir=$ac_dir 2624 ac_install_sh="$ac_aux_dir/install.sh -c" 2625 break 2626 elif test -f "$ac_dir/shtool"; then 2627 ac_aux_dir=$ac_dir 2628 ac_install_sh="$ac_aux_dir/shtool install -c" 2629 break 2630 fi 2631done 2632if test -z "$ac_aux_dir"; then 2633 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 2634fi 2635 2636# These three variables are undocumented and unsupported, 2637# and are intended to be withdrawn in a future Autoconf release. 2638# They can cause serious problems if a builder's source tree is in a directory 2639# whose full name contains unusual characters. 2640ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2641ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2642ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2643 2644 2645 2646 2647am__api_version='1.11' 2648 2649# Find a good install program. We prefer a C program (faster), 2650# so one script is as good as another. But avoid the broken or 2651# incompatible versions: 2652# SysV /etc/install, /usr/sbin/install 2653# SunOS /usr/etc/install 2654# IRIX /sbin/install 2655# AIX /bin/install 2656# AmigaOS /C/install, which installs bootblocks on floppy discs 2657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2658# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2660# OS/2's system install, which has a completely different semantic 2661# ./install, which can be erroneously created by make from ./install.sh. 2662# Reject install programs that cannot install multiple files. 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2664$as_echo_n "checking for a BSD-compatible install... " >&6; } 2665if test -z "$INSTALL"; then 2666if ${ac_cv_path_install+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 # Account for people who put trailing slashes in PATH elements. 2675case $as_dir/ in #(( 2676 ./ | .// | /[cC]/* | \ 2677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2678 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2679 /usr/ucb/* ) ;; 2680 *) 2681 # OSF1 and SCO ODT 3.0 have their own names for install. 2682 # Don't use installbsd from OSF since it installs stuff as root 2683 # by default. 2684 for ac_prog in ginstall scoinst install; do 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2687 if test $ac_prog = install && 2688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2689 # AIX install. It has an incompatible calling convention. 2690 : 2691 elif test $ac_prog = install && 2692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2693 # program-specific install script used by HP pwplus--don't use. 2694 : 2695 else 2696 rm -rf conftest.one conftest.two conftest.dir 2697 echo one > conftest.one 2698 echo two > conftest.two 2699 mkdir conftest.dir 2700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2701 test -s conftest.one && test -s conftest.two && 2702 test -s conftest.dir/conftest.one && 2703 test -s conftest.dir/conftest.two 2704 then 2705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2706 break 3 2707 fi 2708 fi 2709 fi 2710 done 2711 done 2712 ;; 2713esac 2714 2715 done 2716IFS=$as_save_IFS 2717 2718rm -rf conftest.one conftest.two conftest.dir 2719 2720fi 2721 if test "${ac_cv_path_install+set}" = set; then 2722 INSTALL=$ac_cv_path_install 2723 else 2724 # As a last resort, use the slow shell script. Don't cache a 2725 # value for INSTALL within a source directory, because that will 2726 # break other packages using the cache if that directory is 2727 # removed, or if the value is a relative name. 2728 INSTALL=$ac_install_sh 2729 fi 2730fi 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2732$as_echo "$INSTALL" >&6; } 2733 2734# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2735# It thinks the first close brace ends the variable substitution. 2736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2737 2738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2739 2740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2741 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2743$as_echo_n "checking whether build environment is sane... " >&6; } 2744# Just in case 2745sleep 1 2746echo timestamp > conftest.file 2747# Reject unsafe characters in $srcdir or the absolute working directory 2748# name. Accept space and tab only in the latter. 2749am_lf=' 2750' 2751case `pwd` in 2752 *[\\\"\#\$\&\'\`$am_lf]*) 2753 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2754esac 2755case $srcdir in 2756 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2757 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2758esac 2759 2760# Do `set' in a subshell so we don't clobber the current shell's 2761# arguments. Must try -L first in case configure is actually a 2762# symlink; some systems play weird games with the mod time of symlinks 2763# (eg FreeBSD returns the mod time of the symlink's containing 2764# directory). 2765if ( 2766 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2767 if test "$*" = "X"; then 2768 # -L didn't work. 2769 set X `ls -t "$srcdir/configure" conftest.file` 2770 fi 2771 rm -f conftest.file 2772 if test "$*" != "X $srcdir/configure conftest.file" \ 2773 && test "$*" != "X conftest.file $srcdir/configure"; then 2774 2775 # If neither matched, then we have a broken ls. This can happen 2776 # if, for instance, CONFIG_SHELL is bash and it inherits a 2777 # broken ls alias from the environment. This has actually 2778 # happened. Such a system could not be considered "sane". 2779 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2780alias in your environment" "$LINENO" 5 2781 fi 2782 2783 test "$2" = conftest.file 2784 ) 2785then 2786 # Ok. 2787 : 2788else 2789 as_fn_error $? "newly created file is older than distributed files! 2790Check your system clock" "$LINENO" 5 2791fi 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2793$as_echo "yes" >&6; } 2794test "$program_prefix" != NONE && 2795 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2796# Use a double $ so make ignores it. 2797test "$program_suffix" != NONE && 2798 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2799# Double any \ or $. 2800# By default was `s,x,x', remove it if useless. 2801ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2802program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2803 2804# expand $ac_aux_dir to an absolute path 2805am_aux_dir=`cd $ac_aux_dir && pwd` 2806 2807if test x"${MISSING+set}" != xset; then 2808 case $am_aux_dir in 2809 *\ * | *\ *) 2810 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2811 *) 2812 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2813 esac 2814fi 2815# Use eval to expand $SHELL 2816if eval "$MISSING --run true"; then 2817 am_missing_run="$MISSING --run " 2818else 2819 am_missing_run= 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2821$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2822fi 2823 2824if test x"${install_sh}" != xset; then 2825 case $am_aux_dir in 2826 *\ * | *\ *) 2827 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2828 *) 2829 install_sh="\${SHELL} $am_aux_dir/install-sh" 2830 esac 2831fi 2832 2833# Installed binaries are usually stripped using `strip' when the user 2834# run `make install-strip'. However `strip' might not be the right 2835# tool to use in cross-compilation environments, therefore Automake 2836# will honor the `STRIP' environment variable to overrule this program. 2837if test "$cross_compiling" != no; then 2838 if test -n "$ac_tool_prefix"; then 2839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2840set dummy ${ac_tool_prefix}strip; ac_word=$2 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842$as_echo_n "checking for $ac_word... " >&6; } 2843if ${ac_cv_prog_STRIP+:} false; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 if test -n "$STRIP"; then 2847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2848else 2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850for as_dir in $PATH 2851do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2856 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860done 2861 done 2862IFS=$as_save_IFS 2863 2864fi 2865fi 2866STRIP=$ac_cv_prog_STRIP 2867if test -n "$STRIP"; then 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2869$as_echo "$STRIP" >&6; } 2870else 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2872$as_echo "no" >&6; } 2873fi 2874 2875 2876fi 2877if test -z "$ac_cv_prog_STRIP"; then 2878 ac_ct_STRIP=$STRIP 2879 # Extract the first word of "strip", so it can be a program name with args. 2880set dummy strip; ac_word=$2 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$ac_ct_STRIP"; then 2887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2896 ac_cv_prog_ac_ct_STRIP="strip" 2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901 done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2907if test -n "$ac_ct_STRIP"; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2909$as_echo "$ac_ct_STRIP" >&6; } 2910else 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 if test "x$ac_ct_STRIP" = x; then 2916 STRIP=":" 2917 else 2918 case $cross_compiling:$ac_tool_warned in 2919yes:) 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2922ac_tool_warned=yes ;; 2923esac 2924 STRIP=$ac_ct_STRIP 2925 fi 2926else 2927 STRIP="$ac_cv_prog_STRIP" 2928fi 2929 2930fi 2931INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2932 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2934$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2935if test -z "$MKDIR_P"; then 2936 if ${ac_cv_path_mkdir+:} false; then : 2937 $as_echo_n "(cached) " >&6 2938else 2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2940for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2941do 2942 IFS=$as_save_IFS 2943 test -z "$as_dir" && as_dir=. 2944 for ac_prog in mkdir gmkdir; do 2945 for ac_exec_ext in '' $ac_executable_extensions; do 2946 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2947 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2948 'mkdir (GNU coreutils) '* | \ 2949 'mkdir (coreutils) '* | \ 2950 'mkdir (fileutils) '4.1*) 2951 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2952 break 3;; 2953 esac 2954 done 2955 done 2956 done 2957IFS=$as_save_IFS 2958 2959fi 2960 2961 test -d ./--version && rmdir ./--version 2962 if test "${ac_cv_path_mkdir+set}" = set; then 2963 MKDIR_P="$ac_cv_path_mkdir -p" 2964 else 2965 # As a last resort, use the slow shell script. Don't cache a 2966 # value for MKDIR_P within a source directory, because that will 2967 # break other packages using the cache if that directory is 2968 # removed, or if the value is a relative name. 2969 MKDIR_P="$ac_install_sh -d" 2970 fi 2971fi 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2973$as_echo "$MKDIR_P" >&6; } 2974 2975mkdir_p="$MKDIR_P" 2976case $mkdir_p in 2977 [\\/$]* | ?:[\\/]*) ;; 2978 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2979esac 2980 2981for ac_prog in gawk mawk nawk awk 2982do 2983 # Extract the first word of "$ac_prog", so it can be a program name with args. 2984set dummy $ac_prog; ac_word=$2 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2986$as_echo_n "checking for $ac_word... " >&6; } 2987if ${ac_cv_prog_AWK+:} false; then : 2988 $as_echo_n "(cached) " >&6 2989else 2990 if test -n "$AWK"; then 2991 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2992else 2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2994for as_dir in $PATH 2995do 2996 IFS=$as_save_IFS 2997 test -z "$as_dir" && as_dir=. 2998 for ac_exec_ext in '' $ac_executable_extensions; do 2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3000 ac_cv_prog_AWK="$ac_prog" 3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3002 break 2 3003 fi 3004done 3005 done 3006IFS=$as_save_IFS 3007 3008fi 3009fi 3010AWK=$ac_cv_prog_AWK 3011if test -n "$AWK"; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3013$as_echo "$AWK" >&6; } 3014else 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3016$as_echo "no" >&6; } 3017fi 3018 3019 3020 test -n "$AWK" && break 3021done 3022 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3024$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3025set x ${MAKE-make} 3026ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3027if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3028 $as_echo_n "(cached) " >&6 3029else 3030 cat >conftest.make <<\_ACEOF 3031SHELL = /bin/sh 3032all: 3033 @echo '@@@%%%=$(MAKE)=@@@%%%' 3034_ACEOF 3035# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3036case `${MAKE-make} -f conftest.make 2>/dev/null` in 3037 *@@@%%%=?*=@@@%%%*) 3038 eval ac_cv_prog_make_${ac_make}_set=yes;; 3039 *) 3040 eval ac_cv_prog_make_${ac_make}_set=no;; 3041esac 3042rm -f conftest.make 3043fi 3044if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3046$as_echo "yes" >&6; } 3047 SET_MAKE= 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051 SET_MAKE="MAKE=${MAKE-make}" 3052fi 3053 3054rm -rf .tst 2>/dev/null 3055mkdir .tst 2>/dev/null 3056if test -d .tst; then 3057 am__leading_dot=. 3058else 3059 am__leading_dot=_ 3060fi 3061rmdir .tst 2>/dev/null 3062 3063if test "`cd $srcdir && pwd`" != "`pwd`"; then 3064 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3065 # is not polluted with repeated "-I." 3066 am__isrc=' -I$(srcdir)' 3067 # test to see if srcdir already configured 3068 if test -f $srcdir/config.status; then 3069 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3070 fi 3071fi 3072 3073# test whether we have cygpath 3074if test -z "$CYGPATH_W"; then 3075 if (cygpath --version) >/dev/null 2>/dev/null; then 3076 CYGPATH_W='cygpath -w' 3077 else 3078 CYGPATH_W=echo 3079 fi 3080fi 3081 3082 3083# Define the identity of the package. 3084 PACKAGE='ircd-ratbox' 3085 VERSION='stable' 3086 3087 3088cat >>confdefs.h <<_ACEOF 3089#define PACKAGE "$PACKAGE" 3090_ACEOF 3091 3092 3093cat >>confdefs.h <<_ACEOF 3094#define VERSION "$VERSION" 3095_ACEOF 3096 3097# Some tools Automake needs. 3098 3099ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3100 3101 3102AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3103 3104 3105AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3106 3107 3108AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3109 3110 3111MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3112 3113# We need awk for the "check" target. The system "awk" is bad on 3114# some platforms. 3115# Always define AMTAR for backward compatibility. Yes, it's still used 3116# in the wild :-( We should find a proper way to deprecate it ... 3117AMTAR='$${TAR-tar}' 3118 3119am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3120 3121 3122 3123 3124 3125 3126ac_config_headers="$ac_config_headers include/setup.h" 3127 3128 3129 3130DEPDIR="${am__leading_dot}deps" 3131 3132ac_config_commands="$ac_config_commands depfiles" 3133 3134 3135am_make=${MAKE-make} 3136cat > confinc << 'END' 3137am__doit: 3138 @echo this is the am__doit target 3139.PHONY: am__doit 3140END 3141# If we don't find an include directive, just comment out the code. 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3143$as_echo_n "checking for style of include used by $am_make... " >&6; } 3144am__include="#" 3145am__quote= 3146_am_result=none 3147# First try GNU make style include. 3148echo "include confinc" > confmf 3149# Ignore all kinds of additional output from `make'. 3150case `$am_make -s -f confmf 2> /dev/null` in #( 3151*the\ am__doit\ target*) 3152 am__include=include 3153 am__quote= 3154 _am_result=GNU 3155 ;; 3156esac 3157# Now try BSD make style include. 3158if test "$am__include" = "#"; then 3159 echo '.include "confinc"' > confmf 3160 case `$am_make -s -f confmf 2> /dev/null` in #( 3161 *the\ am__doit\ target*) 3162 am__include=.include 3163 am__quote="\"" 3164 _am_result=BSD 3165 ;; 3166 esac 3167fi 3168 3169 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3171$as_echo "$_am_result" >&6; } 3172rm -f confinc confmf 3173 3174# Check whether --enable-dependency-tracking was given. 3175if test "${enable_dependency_tracking+set}" = set; then : 3176 enableval=$enable_dependency_tracking; 3177fi 3178 3179if test "x$enable_dependency_tracking" != xno; then 3180 am_depcomp="$ac_aux_dir/depcomp" 3181 AMDEPBACKSLASH='\' 3182 am__nodep='_no' 3183fi 3184 if test "x$enable_dependency_tracking" != xno; then 3185 AMDEP_TRUE= 3186 AMDEP_FALSE='#' 3187else 3188 AMDEP_TRUE='#' 3189 AMDEP_FALSE= 3190fi 3191 3192 3193ac_ext=c 3194ac_cpp='$CPP $CPPFLAGS' 3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3197ac_compiler_gnu=$ac_cv_c_compiler_gnu 3198if test -n "$ac_tool_prefix"; then 3199 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3200set dummy ${ac_tool_prefix}gcc; ac_word=$2 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3202$as_echo_n "checking for $ac_word... " >&6; } 3203if ${ac_cv_prog_CC+:} false; then : 3204 $as_echo_n "(cached) " >&6 3205else 3206 if test -n "$CC"; then 3207 ac_cv_prog_CC="$CC" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236fi 3237if test -z "$ac_cv_prog_CC"; then 3238 ac_ct_CC=$CC 3239 # Extract the first word of "gcc", so it can be a program name with args. 3240set dummy gcc; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_ac_ct_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$ac_ct_CC"; then 3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3256 ac_cv_prog_ac_ct_CC="gcc" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264fi 3265fi 3266ac_ct_CC=$ac_cv_prog_ac_ct_CC 3267if test -n "$ac_ct_CC"; then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3269$as_echo "$ac_ct_CC" >&6; } 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273fi 3274 3275 if test "x$ac_ct_CC" = x; then 3276 CC="" 3277 else 3278 case $cross_compiling:$ac_tool_warned in 3279yes:) 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3282ac_tool_warned=yes ;; 3283esac 3284 CC=$ac_ct_CC 3285 fi 3286else 3287 CC="$ac_cv_prog_CC" 3288fi 3289 3290if test -z "$CC"; then 3291 if test -n "$ac_tool_prefix"; then 3292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3293set dummy ${ac_tool_prefix}cc; ac_word=$2 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3295$as_echo_n "checking for $ac_word... " >&6; } 3296if ${ac_cv_prog_CC+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298else 3299 if test -n "$CC"; then 3300 ac_cv_prog_CC="$CC" # Let the user override the test. 3301else 3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3303for as_dir in $PATH 3304do 3305 IFS=$as_save_IFS 3306 test -z "$as_dir" && as_dir=. 3307 for ac_exec_ext in '' $ac_executable_extensions; do 3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3309 ac_cv_prog_CC="${ac_tool_prefix}cc" 3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3311 break 2 3312 fi 3313done 3314 done 3315IFS=$as_save_IFS 3316 3317fi 3318fi 3319CC=$ac_cv_prog_CC 3320if test -n "$CC"; then 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3322$as_echo "$CC" >&6; } 3323else 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3325$as_echo "no" >&6; } 3326fi 3327 3328 3329 fi 3330fi 3331if test -z "$CC"; then 3332 # Extract the first word of "cc", so it can be a program name with args. 3333set dummy cc; ac_word=$2 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3335$as_echo_n "checking for $ac_word... " >&6; } 3336if ${ac_cv_prog_CC+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 if test -n "$CC"; then 3340 ac_cv_prog_CC="$CC" # Let the user override the test. 3341else 3342 ac_prog_rejected=no 3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3344for as_dir in $PATH 3345do 3346 IFS=$as_save_IFS 3347 test -z "$as_dir" && as_dir=. 3348 for ac_exec_ext in '' $ac_executable_extensions; do 3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3350 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3351 ac_prog_rejected=yes 3352 continue 3353 fi 3354 ac_cv_prog_CC="cc" 3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3356 break 2 3357 fi 3358done 3359 done 3360IFS=$as_save_IFS 3361 3362if test $ac_prog_rejected = yes; then 3363 # We found a bogon in the path, so make sure we never use it. 3364 set dummy $ac_cv_prog_CC 3365 shift 3366 if test $# != 0; then 3367 # We chose a different compiler from the bogus one. 3368 # However, it has the same basename, so the bogon will be chosen 3369 # first if we set CC to just the basename; use the full file name. 3370 shift 3371 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3372 fi 3373fi 3374fi 3375fi 3376CC=$ac_cv_prog_CC 3377if test -n "$CC"; then 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3379$as_echo "$CC" >&6; } 3380else 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3382$as_echo "no" >&6; } 3383fi 3384 3385 3386fi 3387if test -z "$CC"; then 3388 if test -n "$ac_tool_prefix"; then 3389 for ac_prog in cl.exe 3390 do 3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3392set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3394$as_echo_n "checking for $ac_word... " >&6; } 3395if ${ac_cv_prog_CC+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 if test -n "$CC"; then 3399 ac_cv_prog_CC="$CC" # Let the user override the test. 3400else 3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3402for as_dir in $PATH 3403do 3404 IFS=$as_save_IFS 3405 test -z "$as_dir" && as_dir=. 3406 for ac_exec_ext in '' $ac_executable_extensions; do 3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3408 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3410 break 2 3411 fi 3412done 3413 done 3414IFS=$as_save_IFS 3415 3416fi 3417fi 3418CC=$ac_cv_prog_CC 3419if test -n "$CC"; then 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3421$as_echo "$CC" >&6; } 3422else 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424$as_echo "no" >&6; } 3425fi 3426 3427 3428 test -n "$CC" && break 3429 done 3430fi 3431if test -z "$CC"; then 3432 ac_ct_CC=$CC 3433 for ac_prog in cl.exe 3434do 3435 # Extract the first word of "$ac_prog", so it can be a program name with args. 3436set dummy $ac_prog; ac_word=$2 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3438$as_echo_n "checking for $ac_word... " >&6; } 3439if ${ac_cv_prog_ac_ct_CC+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441else 3442 if test -n "$ac_ct_CC"; then 3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3444else 3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3452 ac_cv_prog_ac_ct_CC="$ac_prog" 3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460fi 3461fi 3462ac_ct_CC=$ac_cv_prog_ac_ct_CC 3463if test -n "$ac_ct_CC"; then 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3465$as_echo "$ac_ct_CC" >&6; } 3466else 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468$as_echo "no" >&6; } 3469fi 3470 3471 3472 test -n "$ac_ct_CC" && break 3473done 3474 3475 if test "x$ac_ct_CC" = x; then 3476 CC="" 3477 else 3478 case $cross_compiling:$ac_tool_warned in 3479yes:) 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3482ac_tool_warned=yes ;; 3483esac 3484 CC=$ac_ct_CC 3485 fi 3486fi 3487 3488fi 3489 3490 3491test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3493as_fn_error $? "no acceptable C compiler found in \$PATH 3494See \`config.log' for more details" "$LINENO" 5; } 3495 3496# Provide some information about the compiler. 3497$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3498set X $ac_compile 3499ac_compiler=$2 3500for ac_option in --version -v -V -qversion; do 3501 { { ac_try="$ac_compiler $ac_option >&5" 3502case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505esac 3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3507$as_echo "$ac_try_echo"; } >&5 3508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3509 ac_status=$? 3510 if test -s conftest.err; then 3511 sed '10a\ 3512... rest of stderr output deleted ... 3513 10q' conftest.err >conftest.er1 3514 cat conftest.er1 >&5 3515 fi 3516 rm -f conftest.er1 conftest.err 3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3518 test $ac_status = 0; } 3519done 3520 3521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3522/* end confdefs.h. */ 3523 3524int 3525main () 3526{ 3527 3528 ; 3529 return 0; 3530} 3531_ACEOF 3532ac_clean_files_save=$ac_clean_files 3533ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3534# Try to create an executable without -o first, disregard a.out. 3535# It will help us diagnose broken compilers, and finding out an intuition 3536# of exeext. 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3538$as_echo_n "checking whether the C compiler works... " >&6; } 3539ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3540 3541# The possible output files: 3542ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3543 3544ac_rmfiles= 3545for ac_file in $ac_files 3546do 3547 case $ac_file in 3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3549 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3550 esac 3551done 3552rm -f $ac_rmfiles 3553 3554if { { ac_try="$ac_link_default" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3560$as_echo "$ac_try_echo"; } >&5 3561 (eval "$ac_link_default") 2>&5 3562 ac_status=$? 3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3564 test $ac_status = 0; }; then : 3565 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3566# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3567# in a Makefile. We should not override ac_cv_exeext if it was cached, 3568# so that the user can short-circuit this test for compilers unknown to 3569# Autoconf. 3570for ac_file in $ac_files '' 3571do 3572 test -f "$ac_file" || continue 3573 case $ac_file in 3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3575 ;; 3576 [ab].out ) 3577 # We found the default executable, but exeext='' is most 3578 # certainly right. 3579 break;; 3580 *.* ) 3581 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3582 then :; else 3583 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3584 fi 3585 # We set ac_cv_exeext here because the later test for it is not 3586 # safe: cross compilers may not add the suffix if given an `-o' 3587 # argument, so we may need to know it at that point already. 3588 # Even if this section looks crufty: it has the advantage of 3589 # actually working. 3590 break;; 3591 * ) 3592 break;; 3593 esac 3594done 3595test "$ac_cv_exeext" = no && ac_cv_exeext= 3596 3597else 3598 ac_file='' 3599fi 3600if test -z "$ac_file"; then : 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602$as_echo "no" >&6; } 3603$as_echo "$as_me: failed program was:" >&5 3604sed 's/^/| /' conftest.$ac_ext >&5 3605 3606{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error 77 "C compiler cannot create executables 3609See \`config.log' for more details" "$LINENO" 5; } 3610else 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3612$as_echo "yes" >&6; } 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3615$as_echo_n "checking for C compiler default output file name... " >&6; } 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3617$as_echo "$ac_file" >&6; } 3618ac_exeext=$ac_cv_exeext 3619 3620rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3621ac_clean_files=$ac_clean_files_save 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3623$as_echo_n "checking for suffix of executables... " >&6; } 3624if { { ac_try="$ac_link" 3625case "(($ac_try" in 3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *) ac_try_echo=$ac_try;; 3628esac 3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3630$as_echo "$ac_try_echo"; } >&5 3631 (eval "$ac_link") 2>&5 3632 ac_status=$? 3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3634 test $ac_status = 0; }; then : 3635 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3636# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3637# work properly (i.e., refer to `conftest.exe'), while it won't with 3638# `rm'. 3639for ac_file in conftest.exe conftest conftest.*; do 3640 test -f "$ac_file" || continue 3641 case $ac_file in 3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3644 break;; 3645 * ) break;; 3646 esac 3647done 3648else 3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3651as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3652See \`config.log' for more details" "$LINENO" 5; } 3653fi 3654rm -f conftest conftest$ac_cv_exeext 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3656$as_echo "$ac_cv_exeext" >&6; } 3657 3658rm -f conftest.$ac_ext 3659EXEEXT=$ac_cv_exeext 3660ac_exeext=$EXEEXT 3661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663#include <stdio.h> 3664int 3665main () 3666{ 3667FILE *f = fopen ("conftest.out", "w"); 3668 return ferror (f) || fclose (f) != 0; 3669 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674ac_clean_files="$ac_clean_files conftest.out" 3675# Check that the compiler produces executables we can run. If not, either 3676# the compiler is broken, or we cross compile. 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3678$as_echo_n "checking whether we are cross compiling... " >&6; } 3679if test "$cross_compiling" != yes; then 3680 { { ac_try="$ac_link" 3681case "(($ac_try" in 3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3683 *) ac_try_echo=$ac_try;; 3684esac 3685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3686$as_echo "$ac_try_echo"; } >&5 3687 (eval "$ac_link") 2>&5 3688 ac_status=$? 3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3690 test $ac_status = 0; } 3691 if { ac_try='./conftest$ac_cv_exeext' 3692 { { case "(($ac_try" in 3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3694 *) ac_try_echo=$ac_try;; 3695esac 3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3697$as_echo "$ac_try_echo"; } >&5 3698 (eval "$ac_try") 2>&5 3699 ac_status=$? 3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3701 test $ac_status = 0; }; }; then 3702 cross_compiling=no 3703 else 3704 if test "$cross_compiling" = maybe; then 3705 cross_compiling=yes 3706 else 3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3709as_fn_error $? "cannot run C compiled programs. 3710If you meant to cross compile, use \`--host'. 3711See \`config.log' for more details" "$LINENO" 5; } 3712 fi 3713 fi 3714fi 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3716$as_echo "$cross_compiling" >&6; } 3717 3718rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3719ac_clean_files=$ac_clean_files_save 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3721$as_echo_n "checking for suffix of object files... " >&6; } 3722if ${ac_cv_objext+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726/* end confdefs.h. */ 3727 3728int 3729main () 3730{ 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736rm -f conftest.o conftest.obj 3737if { { ac_try="$ac_compile" 3738case "(($ac_try" in 3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3740 *) ac_try_echo=$ac_try;; 3741esac 3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3743$as_echo "$ac_try_echo"; } >&5 3744 (eval "$ac_compile") 2>&5 3745 ac_status=$? 3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3747 test $ac_status = 0; }; then : 3748 for ac_file in conftest.o conftest.obj conftest.*; do 3749 test -f "$ac_file" || continue; 3750 case $ac_file in 3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3752 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3753 break;; 3754 esac 3755done 3756else 3757 $as_echo "$as_me: failed program was:" >&5 3758sed 's/^/| /' conftest.$ac_ext >&5 3759 3760{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3762as_fn_error $? "cannot compute suffix of object files: cannot compile 3763See \`config.log' for more details" "$LINENO" 5; } 3764fi 3765rm -f conftest.$ac_cv_objext conftest.$ac_ext 3766fi 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3768$as_echo "$ac_cv_objext" >&6; } 3769OBJEXT=$ac_cv_objext 3770ac_objext=$OBJEXT 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3772$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3773if ${ac_cv_c_compiler_gnu+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778 3779int 3780main () 3781{ 3782#ifndef __GNUC__ 3783 choke me 3784#endif 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790if ac_fn_c_try_compile "$LINENO"; then : 3791 ac_compiler_gnu=yes 3792else 3793 ac_compiler_gnu=no 3794fi 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3796ac_cv_c_compiler_gnu=$ac_compiler_gnu 3797 3798fi 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3800$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3801if test $ac_compiler_gnu = yes; then 3802 GCC=yes 3803else 3804 GCC= 3805fi 3806ac_test_CFLAGS=${CFLAGS+set} 3807ac_save_CFLAGS=$CFLAGS 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3809$as_echo_n "checking whether $CC accepts -g... " >&6; } 3810if ${ac_cv_prog_cc_g+:} false; then : 3811 $as_echo_n "(cached) " >&6 3812else 3813 ac_save_c_werror_flag=$ac_c_werror_flag 3814 ac_c_werror_flag=yes 3815 ac_cv_prog_cc_g=no 3816 CFLAGS="-g" 3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3818/* end confdefs.h. */ 3819 3820int 3821main () 3822{ 3823 3824 ; 3825 return 0; 3826} 3827_ACEOF 3828if ac_fn_c_try_compile "$LINENO"; then : 3829 ac_cv_prog_cc_g=yes 3830else 3831 CFLAGS="" 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834 3835int 3836main () 3837{ 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843if ac_fn_c_try_compile "$LINENO"; then : 3844 3845else 3846 ac_c_werror_flag=$ac_save_c_werror_flag 3847 CFLAGS="-g" 3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850 3851int 3852main () 3853{ 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859if ac_fn_c_try_compile "$LINENO"; then : 3860 ac_cv_prog_cc_g=yes 3861fi 3862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3863fi 3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3865fi 3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867 ac_c_werror_flag=$ac_save_c_werror_flag 3868fi 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3870$as_echo "$ac_cv_prog_cc_g" >&6; } 3871if test "$ac_test_CFLAGS" = set; then 3872 CFLAGS=$ac_save_CFLAGS 3873elif test $ac_cv_prog_cc_g = yes; then 3874 if test "$GCC" = yes; then 3875 CFLAGS="-g -O2" 3876 else 3877 CFLAGS="-g" 3878 fi 3879else 3880 if test "$GCC" = yes; then 3881 CFLAGS="-O2" 3882 else 3883 CFLAGS= 3884 fi 3885fi 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3887$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3888if ${ac_cv_prog_cc_c89+:} false; then : 3889 $as_echo_n "(cached) " >&6 3890else 3891 ac_cv_prog_cc_c89=no 3892ac_save_CC=$CC 3893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3894/* end confdefs.h. */ 3895#include <stdarg.h> 3896#include <stdio.h> 3897struct stat; 3898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3899struct buf { int x; }; 3900FILE * (*rcsopen) (struct buf *, struct stat *, int); 3901static char *e (p, i) 3902 char **p; 3903 int i; 3904{ 3905 return p[i]; 3906} 3907static char *f (char * (*g) (char **, int), char **p, ...) 3908{ 3909 char *s; 3910 va_list v; 3911 va_start (v,p); 3912 s = g (p, va_arg (v,int)); 3913 va_end (v); 3914 return s; 3915} 3916 3917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3918 function prototypes and stuff, but not '\xHH' hex character constants. 3919 These don't provoke an error unfortunately, instead are silently treated 3920 as 'x'. The following induces an error, until -std is added to get 3921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3922 array size at least. It's necessary to write '\x00'==0 to get something 3923 that's true only with -std. */ 3924int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3925 3926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3927 inside strings and character constants. */ 3928#define FOO(x) 'x' 3929int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3930 3931int test (int i, double x); 3932struct s1 {int (*f) (int a);}; 3933struct s2 {int (*f) (double a);}; 3934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3935int argc; 3936char **argv; 3937int 3938main () 3939{ 3940return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3947do 3948 CC="$ac_save_CC $ac_arg" 3949 if ac_fn_c_try_compile "$LINENO"; then : 3950 ac_cv_prog_cc_c89=$ac_arg 3951fi 3952rm -f core conftest.err conftest.$ac_objext 3953 test "x$ac_cv_prog_cc_c89" != "xno" && break 3954done 3955rm -f conftest.$ac_ext 3956CC=$ac_save_CC 3957 3958fi 3959# AC_CACHE_VAL 3960case "x$ac_cv_prog_cc_c89" in 3961 x) 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3963$as_echo "none needed" >&6; } ;; 3964 xno) 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3966$as_echo "unsupported" >&6; } ;; 3967 *) 3968 CC="$CC $ac_cv_prog_cc_c89" 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3970$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3971esac 3972if test "x$ac_cv_prog_cc_c89" != xno; then : 3973 3974fi 3975 3976ac_ext=c 3977ac_cpp='$CPP $CPPFLAGS' 3978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3980ac_compiler_gnu=$ac_cv_c_compiler_gnu 3981 3982depcc="$CC" am_compiler_list= 3983 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3985$as_echo_n "checking dependency style of $depcc... " >&6; } 3986if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3987 $as_echo_n "(cached) " >&6 3988else 3989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3990 # We make a subdir and do the tests there. Otherwise we can end up 3991 # making bogus files that we don't know about and never remove. For 3992 # instance it was reported that on HP-UX the gcc test will end up 3993 # making a dummy file named `D' -- because `-MD' means `put the output 3994 # in D'. 3995 rm -rf conftest.dir 3996 mkdir conftest.dir 3997 # Copy depcomp to subdir because otherwise we won't find it if we're 3998 # using a relative directory. 3999 cp "$am_depcomp" conftest.dir 4000 cd conftest.dir 4001 # We will build objects and dependencies in a subdirectory because 4002 # it helps to detect inapplicable dependency modes. For instance 4003 # both Tru64's cc and ICC support -MD to output dependencies as a 4004 # side effect of compilation, but ICC will put the dependencies in 4005 # the current directory while Tru64 will put them in the object 4006 # directory. 4007 mkdir sub 4008 4009 am_cv_CC_dependencies_compiler_type=none 4010 if test "$am_compiler_list" = ""; then 4011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4012 fi 4013 am__universal=false 4014 case " $depcc " in #( 4015 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4016 esac 4017 4018 for depmode in $am_compiler_list; do 4019 # Setup a source with many dependencies, because some compilers 4020 # like to wrap large dependency lists on column 80 (with \), and 4021 # we should not choose a depcomp mode which is confused by this. 4022 # 4023 # We need to recreate these files for each test, as the compiler may 4024 # overwrite some of them when testing with obscure command lines. 4025 # This happens at least with the AIX C compiler. 4026 : > sub/conftest.c 4027 for i in 1 2 3 4 5 6; do 4028 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4029 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4030 # Solaris 8's {/usr,}/bin/sh. 4031 touch sub/conftst$i.h 4032 done 4033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4034 4035 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4036 # mode. It turns out that the SunPro C++ compiler does not properly 4037 # handle `-M -o', and we need to detect this. Also, some Intel 4038 # versions had trouble with output in subdirs 4039 am__obj=sub/conftest.${OBJEXT-o} 4040 am__minus_obj="-o $am__obj" 4041 case $depmode in 4042 gcc) 4043 # This depmode causes a compiler race in universal mode. 4044 test "$am__universal" = false || continue 4045 ;; 4046 nosideeffect) 4047 # after this tag, mechanisms are not by side-effect, so they'll 4048 # only be used when explicitly requested 4049 if test "x$enable_dependency_tracking" = xyes; then 4050 continue 4051 else 4052 break 4053 fi 4054 ;; 4055 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4056 # This compiler won't grok `-c -o', but also, the minuso test has 4057 # not run yet. These depmodes are late enough in the game, and 4058 # so weak that their functioning should not be impacted. 4059 am__obj=conftest.${OBJEXT-o} 4060 am__minus_obj= 4061 ;; 4062 none) break ;; 4063 esac 4064 if depmode=$depmode \ 4065 source=sub/conftest.c object=$am__obj \ 4066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4067 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4068 >/dev/null 2>conftest.err && 4069 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4070 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4071 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4072 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4073 # icc doesn't choke on unknown options, it will just issue warnings 4074 # or remarks (even with -Werror). So we grep stderr for any message 4075 # that says an option was ignored or not supported. 4076 # When given -MP, icc 7.0 and 7.1 complain thusly: 4077 # icc: Command line warning: ignoring option '-M'; no argument required 4078 # The diagnosis changed in icc 8.0: 4079 # icc: Command line remark: option '-MP' not supported 4080 if (grep 'ignoring option' conftest.err || 4081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4082 am_cv_CC_dependencies_compiler_type=$depmode 4083 break 4084 fi 4085 fi 4086 done 4087 4088 cd .. 4089 rm -rf conftest.dir 4090else 4091 am_cv_CC_dependencies_compiler_type=none 4092fi 4093 4094fi 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4096$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4097CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4098 4099 if 4100 test "x$enable_dependency_tracking" != xno \ 4101 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4102 am__fastdepCC_TRUE= 4103 am__fastdepCC_FALSE='#' 4104else 4105 am__fastdepCC_TRUE='#' 4106 am__fastdepCC_FALSE= 4107fi 4108 4109 4110 4111ac_ext=c 4112ac_cpp='$CPP $CPPFLAGS' 4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4115ac_compiler_gnu=$ac_cv_c_compiler_gnu 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4117$as_echo_n "checking how to run the C preprocessor... " >&6; } 4118# On Suns, sometimes $CPP names a directory. 4119if test -n "$CPP" && test -d "$CPP"; then 4120 CPP= 4121fi 4122if test -z "$CPP"; then 4123 if ${ac_cv_prog_CPP+:} false; then : 4124 $as_echo_n "(cached) " >&6 4125else 4126 # Double quotes because CPP needs to be expanded 4127 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4128 do 4129 ac_preproc_ok=false 4130for ac_c_preproc_warn_flag in '' yes 4131do 4132 # Use a header file that comes with gcc, so configuring glibc 4133 # with a fresh cross-compiler works. 4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4135 # <limits.h> exists even on freestanding compilers. 4136 # On the NeXT, cc -E runs the code through the compiler's parser, 4137 # not just through cpp. "Syntax error" is here to catch this case. 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140#ifdef __STDC__ 4141# include <limits.h> 4142#else 4143# include <assert.h> 4144#endif 4145 Syntax error 4146_ACEOF 4147if ac_fn_c_try_cpp "$LINENO"; then : 4148 4149else 4150 # Broken: fails on valid input. 4151continue 4152fi 4153rm -f conftest.err conftest.i conftest.$ac_ext 4154 4155 # OK, works on sane cases. Now check whether nonexistent headers 4156 # can be detected and how. 4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4158/* end confdefs.h. */ 4159#include <ac_nonexistent.h> 4160_ACEOF 4161if ac_fn_c_try_cpp "$LINENO"; then : 4162 # Broken: success on invalid input. 4163continue 4164else 4165 # Passes both tests. 4166ac_preproc_ok=: 4167break 4168fi 4169rm -f conftest.err conftest.i conftest.$ac_ext 4170 4171done 4172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4173rm -f conftest.i conftest.err conftest.$ac_ext 4174if $ac_preproc_ok; then : 4175 break 4176fi 4177 4178 done 4179 ac_cv_prog_CPP=$CPP 4180 4181fi 4182 CPP=$ac_cv_prog_CPP 4183else 4184 ac_cv_prog_CPP=$CPP 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4187$as_echo "$CPP" >&6; } 4188ac_preproc_ok=false 4189for ac_c_preproc_warn_flag in '' yes 4190do 4191 # Use a header file that comes with gcc, so configuring glibc 4192 # with a fresh cross-compiler works. 4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4194 # <limits.h> exists even on freestanding compilers. 4195 # On the NeXT, cc -E runs the code through the compiler's parser, 4196 # not just through cpp. "Syntax error" is here to catch this case. 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199#ifdef __STDC__ 4200# include <limits.h> 4201#else 4202# include <assert.h> 4203#endif 4204 Syntax error 4205_ACEOF 4206if ac_fn_c_try_cpp "$LINENO"; then : 4207 4208else 4209 # Broken: fails on valid input. 4210continue 4211fi 4212rm -f conftest.err conftest.i conftest.$ac_ext 4213 4214 # OK, works on sane cases. Now check whether nonexistent headers 4215 # can be detected and how. 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218#include <ac_nonexistent.h> 4219_ACEOF 4220if ac_fn_c_try_cpp "$LINENO"; then : 4221 # Broken: success on invalid input. 4222continue 4223else 4224 # Passes both tests. 4225ac_preproc_ok=: 4226break 4227fi 4228rm -f conftest.err conftest.i conftest.$ac_ext 4229 4230done 4231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4232rm -f conftest.i conftest.err conftest.$ac_ext 4233if $ac_preproc_ok; then : 4234 4235else 4236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4238as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4239See \`config.log' for more details" "$LINENO" 5; } 4240fi 4241 4242ac_ext=c 4243ac_cpp='$CPP $CPPFLAGS' 4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4246ac_compiler_gnu=$ac_cv_c_compiler_gnu 4247 4248 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4250$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4251if ${ac_cv_path_GREP+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 if test -z "$GREP"; then 4255 ac_path_GREP_found=false 4256 # Loop through the user's path and test for each of PROGNAME-LIST 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_prog in grep ggrep; do 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4265 as_fn_executable_p "$ac_path_GREP" || continue 4266# Check for GNU ac_path_GREP and select it if it is found. 4267 # Check for GNU $ac_path_GREP 4268case `"$ac_path_GREP" --version 2>&1` in 4269*GNU*) 4270 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4271*) 4272 ac_count=0 4273 $as_echo_n 0123456789 >"conftest.in" 4274 while : 4275 do 4276 cat "conftest.in" "conftest.in" >"conftest.tmp" 4277 mv "conftest.tmp" "conftest.in" 4278 cp "conftest.in" "conftest.nl" 4279 $as_echo 'GREP' >> "conftest.nl" 4280 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4282 as_fn_arith $ac_count + 1 && ac_count=$as_val 4283 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4284 # Best one so far, save it but keep looking for a better one 4285 ac_cv_path_GREP="$ac_path_GREP" 4286 ac_path_GREP_max=$ac_count 4287 fi 4288 # 10*(2^10) chars as input seems more than enough 4289 test $ac_count -gt 10 && break 4290 done 4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4292esac 4293 4294 $ac_path_GREP_found && break 3 4295 done 4296 done 4297 done 4298IFS=$as_save_IFS 4299 if test -z "$ac_cv_path_GREP"; then 4300 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4301 fi 4302else 4303 ac_cv_path_GREP=$GREP 4304fi 4305 4306fi 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4308$as_echo "$ac_cv_path_GREP" >&6; } 4309 GREP="$ac_cv_path_GREP" 4310 4311 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4313$as_echo_n "checking for egrep... " >&6; } 4314if ${ac_cv_path_EGREP+:} false; then : 4315 $as_echo_n "(cached) " >&6 4316else 4317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4318 then ac_cv_path_EGREP="$GREP -E" 4319 else 4320 if test -z "$EGREP"; then 4321 ac_path_EGREP_found=false 4322 # Loop through the user's path and test for each of PROGNAME-LIST 4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4325do 4326 IFS=$as_save_IFS 4327 test -z "$as_dir" && as_dir=. 4328 for ac_prog in egrep; do 4329 for ac_exec_ext in '' $ac_executable_extensions; do 4330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4331 as_fn_executable_p "$ac_path_EGREP" || continue 4332# Check for GNU ac_path_EGREP and select it if it is found. 4333 # Check for GNU $ac_path_EGREP 4334case `"$ac_path_EGREP" --version 2>&1` in 4335*GNU*) 4336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4337*) 4338 ac_count=0 4339 $as_echo_n 0123456789 >"conftest.in" 4340 while : 4341 do 4342 cat "conftest.in" "conftest.in" >"conftest.tmp" 4343 mv "conftest.tmp" "conftest.in" 4344 cp "conftest.in" "conftest.nl" 4345 $as_echo 'EGREP' >> "conftest.nl" 4346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4348 as_fn_arith $ac_count + 1 && ac_count=$as_val 4349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4350 # Best one so far, save it but keep looking for a better one 4351 ac_cv_path_EGREP="$ac_path_EGREP" 4352 ac_path_EGREP_max=$ac_count 4353 fi 4354 # 10*(2^10) chars as input seems more than enough 4355 test $ac_count -gt 10 && break 4356 done 4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4358esac 4359 4360 $ac_path_EGREP_found && break 3 4361 done 4362 done 4363 done 4364IFS=$as_save_IFS 4365 if test -z "$ac_cv_path_EGREP"; then 4366 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4367 fi 4368else 4369 ac_cv_path_EGREP=$EGREP 4370fi 4371 4372 fi 4373fi 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4375$as_echo "$ac_cv_path_EGREP" >&6; } 4376 EGREP="$ac_cv_path_EGREP" 4377 4378 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4380$as_echo_n "checking for ANSI C header files... " >&6; } 4381if ${ac_cv_header_stdc+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386#include <stdlib.h> 4387#include <stdarg.h> 4388#include <string.h> 4389#include <float.h> 4390 4391int 4392main () 4393{ 4394 4395 ; 4396 return 0; 4397} 4398_ACEOF 4399if ac_fn_c_try_compile "$LINENO"; then : 4400 ac_cv_header_stdc=yes 4401else 4402 ac_cv_header_stdc=no 4403fi 4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4405 4406if test $ac_cv_header_stdc = yes; then 4407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409/* end confdefs.h. */ 4410#include <string.h> 4411 4412_ACEOF 4413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4414 $EGREP "memchr" >/dev/null 2>&1; then : 4415 4416else 4417 ac_cv_header_stdc=no 4418fi 4419rm -f conftest* 4420 4421fi 4422 4423if test $ac_cv_header_stdc = yes; then 4424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426/* end confdefs.h. */ 4427#include <stdlib.h> 4428 4429_ACEOF 4430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4431 $EGREP "free" >/dev/null 2>&1; then : 4432 4433else 4434 ac_cv_header_stdc=no 4435fi 4436rm -f conftest* 4437 4438fi 4439 4440if test $ac_cv_header_stdc = yes; then 4441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4442 if test "$cross_compiling" = yes; then : 4443 : 4444else 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447#include <ctype.h> 4448#include <stdlib.h> 4449#if ((' ' & 0x0FF) == 0x020) 4450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4452#else 4453# define ISLOWER(c) \ 4454 (('a' <= (c) && (c) <= 'i') \ 4455 || ('j' <= (c) && (c) <= 'r') \ 4456 || ('s' <= (c) && (c) <= 'z')) 4457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4458#endif 4459 4460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4461int 4462main () 4463{ 4464 int i; 4465 for (i = 0; i < 256; i++) 4466 if (XOR (islower (i), ISLOWER (i)) 4467 || toupper (i) != TOUPPER (i)) 4468 return 2; 4469 return 0; 4470} 4471_ACEOF 4472if ac_fn_c_try_run "$LINENO"; then : 4473 4474else 4475 ac_cv_header_stdc=no 4476fi 4477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4478 conftest.$ac_objext conftest.beam conftest.$ac_ext 4479fi 4480 4481fi 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4484$as_echo "$ac_cv_header_stdc" >&6; } 4485if test $ac_cv_header_stdc = yes; then 4486 4487$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4488 4489fi 4490 4491# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4492for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4493 inttypes.h stdint.h unistd.h 4494do : 4495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4496ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4497" 4498if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4499 cat >>confdefs.h <<_ACEOF 4500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4501_ACEOF 4502 4503fi 4504 4505done 4506 4507 4508 4509 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4510if test "x$ac_cv_header_minix_config_h" = xyes; then : 4511 MINIX=yes 4512else 4513 MINIX= 4514fi 4515 4516 4517 if test "$MINIX" = yes; then 4518 4519$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4520 4521 4522$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4523 4524 4525$as_echo "#define _MINIX 1" >>confdefs.h 4526 4527 fi 4528 4529 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4531$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4532if ${ac_cv_safe_to_define___extensions__+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4536/* end confdefs.h. */ 4537 4538# define __EXTENSIONS__ 1 4539 $ac_includes_default 4540int 4541main () 4542{ 4543 4544 ; 4545 return 0; 4546} 4547_ACEOF 4548if ac_fn_c_try_compile "$LINENO"; then : 4549 ac_cv_safe_to_define___extensions__=yes 4550else 4551 ac_cv_safe_to_define___extensions__=no 4552fi 4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4554fi 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4556$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4557 test $ac_cv_safe_to_define___extensions__ = yes && 4558 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4559 4560 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4561 4562 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4563 4564 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4565 4566 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4567 4568 4569 4570 4571# Extract the first word of "cp", so it can be a program name with args. 4572set dummy cp; ac_word=$2 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4574$as_echo_n "checking for $ac_word... " >&6; } 4575if ${ac_cv_path_CP+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 case $CP in 4579 [\\/]* | ?:[\\/]*) 4580 ac_cv_path_CP="$CP" # Let the user override the test with a path. 4581 ;; 4582 *) 4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4590 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4592 break 2 4593 fi 4594done 4595 done 4596IFS=$as_save_IFS 4597 4598 ;; 4599esac 4600fi 4601CP=$ac_cv_path_CP 4602if test -n "$CP"; then 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 4604$as_echo "$CP" >&6; } 4605else 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4607$as_echo "no" >&6; } 4608fi 4609 4610 4611# Extract the first word of "mv", so it can be a program name with args. 4612set dummy mv; ac_word=$2 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4614$as_echo_n "checking for $ac_word... " >&6; } 4615if ${ac_cv_path_MV+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 case $MV in 4619 [\\/]* | ?:[\\/]*) 4620 ac_cv_path_MV="$MV" # Let the user override the test with a path. 4621 ;; 4622 *) 4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4630 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4632 break 2 4633 fi 4634done 4635 done 4636IFS=$as_save_IFS 4637 4638 ;; 4639esac 4640fi 4641MV=$ac_cv_path_MV 4642if test -n "$MV"; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 4644$as_echo "$MV" >&6; } 4645else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648fi 4649 4650 4651# Extract the first word of "rm", so it can be a program name with args. 4652set dummy rm; ac_word=$2 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4654$as_echo_n "checking for $ac_word... " >&6; } 4655if ${ac_cv_path_RB_RM+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 case $RB_RM in 4659 [\\/]* | ?:[\\/]*) 4660 ac_cv_path_RB_RM="$RB_RM" # Let the user override the test with a path. 4661 ;; 4662 *) 4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4664for as_dir in $PATH 4665do 4666 IFS=$as_save_IFS 4667 test -z "$as_dir" && as_dir=. 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4670 ac_cv_path_RB_RM="$as_dir/$ac_word$ac_exec_ext" 4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4672 break 2 4673 fi 4674done 4675 done 4676IFS=$as_save_IFS 4677 4678 ;; 4679esac 4680fi 4681RB_RM=$ac_cv_path_RB_RM 4682if test -n "$RB_RM"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RB_RM" >&5 4684$as_echo "$RB_RM" >&6; } 4685else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688fi 4689 4690 4691 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4693$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4694if ${ac_cv_prog_cc_c99+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 ac_cv_prog_cc_c99=no 4698ac_save_CC=$CC 4699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4700/* end confdefs.h. */ 4701#include <stdarg.h> 4702#include <stdbool.h> 4703#include <stdlib.h> 4704#include <wchar.h> 4705#include <stdio.h> 4706 4707// Check varargs macros. These examples are taken from C99 6.10.3.5. 4708#define debug(...) fprintf (stderr, __VA_ARGS__) 4709#define showlist(...) puts (#__VA_ARGS__) 4710#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4711static void 4712test_varargs_macros (void) 4713{ 4714 int x = 1234; 4715 int y = 5678; 4716 debug ("Flag"); 4717 debug ("X = %d\n", x); 4718 showlist (The first, second, and third items.); 4719 report (x>y, "x is %d but y is %d", x, y); 4720} 4721 4722// Check long long types. 4723#define BIG64 18446744073709551615ull 4724#define BIG32 4294967295ul 4725#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4726#if !BIG_OK 4727 your preprocessor is broken; 4728#endif 4729#if BIG_OK 4730#else 4731 your preprocessor is broken; 4732#endif 4733static long long int bignum = -9223372036854775807LL; 4734static unsigned long long int ubignum = BIG64; 4735 4736struct incomplete_array 4737{ 4738 int datasize; 4739 double data[]; 4740}; 4741 4742struct named_init { 4743 int number; 4744 const wchar_t *name; 4745 double average; 4746}; 4747 4748typedef const char *ccp; 4749 4750static inline int 4751test_restrict (ccp restrict text) 4752{ 4753 // See if C++-style comments work. 4754 // Iterate through items via the restricted pointer. 4755 // Also check for declarations in for loops. 4756 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4757 continue; 4758 return 0; 4759} 4760 4761// Check varargs and va_copy. 4762static void 4763test_varargs (const char *format, ...) 4764{ 4765 va_list args; 4766 va_start (args, format); 4767 va_list args_copy; 4768 va_copy (args_copy, args); 4769 4770 const char *str; 4771 int number; 4772 float fnumber; 4773 4774 while (*format) 4775 { 4776 switch (*format++) 4777 { 4778 case 's': // string 4779 str = va_arg (args_copy, const char *); 4780 break; 4781 case 'd': // int 4782 number = va_arg (args_copy, int); 4783 break; 4784 case 'f': // float 4785 fnumber = va_arg (args_copy, double); 4786 break; 4787 default: 4788 break; 4789 } 4790 } 4791 va_end (args_copy); 4792 va_end (args); 4793} 4794 4795int 4796main () 4797{ 4798 4799 // Check bool. 4800 _Bool success = false; 4801 4802 // Check restrict. 4803 if (test_restrict ("String literal") == 0) 4804 success = true; 4805 char *restrict newvar = "Another string"; 4806 4807 // Check varargs. 4808 test_varargs ("s, d' f .", "string", 65, 34.234); 4809 test_varargs_macros (); 4810 4811 // Check flexible array members. 4812 struct incomplete_array *ia = 4813 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4814 ia->datasize = 10; 4815 for (int i = 0; i < ia->datasize; ++i) 4816 ia->data[i] = i * 1.234; 4817 4818 // Check named initializers. 4819 struct named_init ni = { 4820 .number = 34, 4821 .name = L"Test wide string", 4822 .average = 543.34343, 4823 }; 4824 4825 ni.number = 58; 4826 4827 int dynamic_array[ni.number]; 4828 dynamic_array[ni.number - 1] = 543; 4829 4830 // work around unused variable warnings 4831 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4832 || dynamic_array[ni.number - 1] != 543); 4833 4834 ; 4835 return 0; 4836} 4837_ACEOF 4838for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4839do 4840 CC="$ac_save_CC $ac_arg" 4841 if ac_fn_c_try_compile "$LINENO"; then : 4842 ac_cv_prog_cc_c99=$ac_arg 4843fi 4844rm -f core conftest.err conftest.$ac_objext 4845 test "x$ac_cv_prog_cc_c99" != "xno" && break 4846done 4847rm -f conftest.$ac_ext 4848CC=$ac_save_CC 4849 4850fi 4851# AC_CACHE_VAL 4852case "x$ac_cv_prog_cc_c99" in 4853 x) 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4855$as_echo "none needed" >&6; } ;; 4856 xno) 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4858$as_echo "unsupported" >&6; } ;; 4859 *) 4860 CC="$CC $ac_cv_prog_cc_c99" 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4862$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4863esac 4864if test "x$ac_cv_prog_cc_c99" != xno; then : 4865 4866fi 4867 4868 4869 4870if test x"$ac_cv_prog_cc_c99" = "xno"; then 4871 as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5 4872fi 4873 4874 4875for ac_prog in flex lex 4876do 4877 # Extract the first word of "$ac_prog", so it can be a program name with args. 4878set dummy $ac_prog; ac_word=$2 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4880$as_echo_n "checking for $ac_word... " >&6; } 4881if ${ac_cv_prog_LEX+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 if test -n "$LEX"; then 4885 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4886else 4887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888for as_dir in $PATH 4889do 4890 IFS=$as_save_IFS 4891 test -z "$as_dir" && as_dir=. 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4894 ac_cv_prog_LEX="$ac_prog" 4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4896 break 2 4897 fi 4898done 4899 done 4900IFS=$as_save_IFS 4901 4902fi 4903fi 4904LEX=$ac_cv_prog_LEX 4905if test -n "$LEX"; then 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4907$as_echo "$LEX" >&6; } 4908else 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4910$as_echo "no" >&6; } 4911fi 4912 4913 4914 test -n "$LEX" && break 4915done 4916test -n "$LEX" || LEX=":" 4917 4918if test "x$LEX" != "x:"; then 4919 cat >conftest.l <<_ACEOF 4920%% 4921a { ECHO; } 4922b { REJECT; } 4923c { yymore (); } 4924d { yyless (1); } 4925e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4926 yyless ((input () != 0)); } 4927f { unput (yytext[0]); } 4928. { BEGIN INITIAL; } 4929%% 4930#ifdef YYTEXT_POINTER 4931extern char *yytext; 4932#endif 4933int 4934main (void) 4935{ 4936 return ! yylex () + ! yywrap (); 4937} 4938_ACEOF 4939{ { ac_try="$LEX conftest.l" 4940case "(($ac_try" in 4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4942 *) ac_try_echo=$ac_try;; 4943esac 4944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4945$as_echo "$ac_try_echo"; } >&5 4946 (eval "$LEX conftest.l") 2>&5 4947 ac_status=$? 4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4949 test $ac_status = 0; } 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4951$as_echo_n "checking lex output file root... " >&6; } 4952if ${ac_cv_prog_lex_root+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 4956if test -f lex.yy.c; then 4957 ac_cv_prog_lex_root=lex.yy 4958elif test -f lexyy.c; then 4959 ac_cv_prog_lex_root=lexyy 4960else 4961 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4962fi 4963fi 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4965$as_echo "$ac_cv_prog_lex_root" >&6; } 4966LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4967 4968if test -z "${LEXLIB+set}"; then 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4970$as_echo_n "checking lex library... " >&6; } 4971if ${ac_cv_lib_lex+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 4975 ac_save_LIBS=$LIBS 4976 ac_cv_lib_lex='none needed' 4977 for ac_lib in '' -lfl -ll; do 4978 LIBS="$ac_lib $ac_save_LIBS" 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4980/* end confdefs.h. */ 4981`cat $LEX_OUTPUT_ROOT.c` 4982_ACEOF 4983if ac_fn_c_try_link "$LINENO"; then : 4984 ac_cv_lib_lex=$ac_lib 4985fi 4986rm -f core conftest.err conftest.$ac_objext \ 4987 conftest$ac_exeext conftest.$ac_ext 4988 test "$ac_cv_lib_lex" != 'none needed' && break 4989 done 4990 LIBS=$ac_save_LIBS 4991 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4994$as_echo "$ac_cv_lib_lex" >&6; } 4995 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4996fi 4997 4998 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5000$as_echo_n "checking whether yytext is a pointer... " >&6; } 5001if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 # POSIX says lex can declare yytext either as a pointer or an array; the 5005# default is implementation-dependent. Figure out which it is, since 5006# not all implementations provide the %pointer and %array declarations. 5007ac_cv_prog_lex_yytext_pointer=no 5008ac_save_LIBS=$LIBS 5009LIBS="$LEXLIB $ac_save_LIBS" 5010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012 5013 #define YYTEXT_POINTER 1 5014`cat $LEX_OUTPUT_ROOT.c` 5015_ACEOF 5016if ac_fn_c_try_link "$LINENO"; then : 5017 ac_cv_prog_lex_yytext_pointer=yes 5018fi 5019rm -f core conftest.err conftest.$ac_objext \ 5020 conftest$ac_exeext conftest.$ac_ext 5021LIBS=$ac_save_LIBS 5022 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5025$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5026if test $ac_cv_prog_lex_yytext_pointer = yes; then 5027 5028$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5029 5030fi 5031rm -f conftest.l $LEX_OUTPUT_ROOT.c 5032 5033fi 5034if test "$LEX" = :; then 5035 LEX=${am_missing_run}flex 5036fi 5037 5038 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5040$as_echo_n "checking for egrep... " >&6; } 5041if ${ac_cv_path_EGREP+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5045 then ac_cv_path_EGREP="$GREP -E" 5046 else 5047 if test -z "$EGREP"; then 5048 ac_path_EGREP_found=false 5049 # Loop through the user's path and test for each of PROGNAME-LIST 5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5052do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_prog in egrep; do 5056 for ac_exec_ext in '' $ac_executable_extensions; do 5057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5058 as_fn_executable_p "$ac_path_EGREP" || continue 5059# Check for GNU ac_path_EGREP and select it if it is found. 5060 # Check for GNU $ac_path_EGREP 5061case `"$ac_path_EGREP" --version 2>&1` in 5062*GNU*) 5063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5064*) 5065 ac_count=0 5066 $as_echo_n 0123456789 >"conftest.in" 5067 while : 5068 do 5069 cat "conftest.in" "conftest.in" >"conftest.tmp" 5070 mv "conftest.tmp" "conftest.in" 5071 cp "conftest.in" "conftest.nl" 5072 $as_echo 'EGREP' >> "conftest.nl" 5073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5075 as_fn_arith $ac_count + 1 && ac_count=$as_val 5076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5077 # Best one so far, save it but keep looking for a better one 5078 ac_cv_path_EGREP="$ac_path_EGREP" 5079 ac_path_EGREP_max=$ac_count 5080 fi 5081 # 10*(2^10) chars as input seems more than enough 5082 test $ac_count -gt 10 && break 5083 done 5084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5085esac 5086 5087 $ac_path_EGREP_found && break 3 5088 done 5089 done 5090 done 5091IFS=$as_save_IFS 5092 if test -z "$ac_cv_path_EGREP"; then 5093 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5094 fi 5095else 5096 ac_cv_path_EGREP=$EGREP 5097fi 5098 5099 fi 5100fi 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5102$as_echo "$ac_cv_path_EGREP" >&6; } 5103 EGREP="$ac_cv_path_EGREP" 5104 5105 5106if test "$enable_static" = "yes"; then 5107 # Check whether --enable-shared was given. 5108if test "${enable_shared+set}" = set; then : 5109 enableval=$enable_shared; p=${PACKAGE-default} 5110 case $enableval in 5111 yes) enable_shared=yes ;; 5112 no) enable_shared=no ;; 5113 *) 5114 enable_shared=no 5115 # Look at the argument we got. We use all the common list separators. 5116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5117 for pkg in $enableval; do 5118 IFS="$lt_save_ifs" 5119 if test "X$pkg" = "X$p"; then 5120 enable_shared=yes 5121 fi 5122 done 5123 IFS="$lt_save_ifs" 5124 ;; 5125 esac 5126else 5127 enable_shared=no 5128fi 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 # Check whether --enable-static was given. 5139if test "${enable_static+set}" = set; then : 5140 enableval=$enable_static; p=${PACKAGE-default} 5141 case $enableval in 5142 yes) enable_static=yes ;; 5143 no) enable_static=no ;; 5144 *) 5145 enable_static=no 5146 # Look at the argument we got. We use all the common list separators. 5147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5148 for pkg in $enableval; do 5149 IFS="$lt_save_ifs" 5150 if test "X$pkg" = "X$p"; then 5151 enable_static=yes 5152 fi 5153 done 5154 IFS="$lt_save_ifs" 5155 ;; 5156 esac 5157else 5158 enable_static=yes 5159fi 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170$as_echo "#define STATIC_MODULES 1" >>confdefs.h 5171 5172else 5173 enable_static="no" 5174fi 5175 5176F77=no 5177GCJ=no 5178 5179if test "x$CC" != xcc; then 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5181$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5182else 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5184$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5185fi 5186set dummy $CC; ac_cc=`$as_echo "$2" | 5187 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5188if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193 5194int 5195main () 5196{ 5197 5198 ; 5199 return 0; 5200} 5201_ACEOF 5202# Make sure it works both with $CC and with simple cc. 5203# We do the test twice because some compilers refuse to overwrite an 5204# existing .o file with -o, though they will create one. 5205ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5206rm -f conftest2.* 5207if { { case "(($ac_try" in 5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5209 *) ac_try_echo=$ac_try;; 5210esac 5211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5212$as_echo "$ac_try_echo"; } >&5 5213 (eval "$ac_try") 2>&5 5214 ac_status=$? 5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5216 test $ac_status = 0; } && 5217 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5219 *) ac_try_echo=$ac_try;; 5220esac 5221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5222$as_echo "$ac_try_echo"; } >&5 5223 (eval "$ac_try") 2>&5 5224 ac_status=$? 5225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5226 test $ac_status = 0; }; 5227then 5228 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5229 if test "x$CC" != xcc; then 5230 # Test first that cc exists at all. 5231 if { ac_try='cc -c conftest.$ac_ext >&5' 5232 { { case "(($ac_try" in 5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5234 *) ac_try_echo=$ac_try;; 5235esac 5236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5237$as_echo "$ac_try_echo"; } >&5 5238 (eval "$ac_try") 2>&5 5239 ac_status=$? 5240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5241 test $ac_status = 0; }; }; then 5242 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5243 rm -f conftest2.* 5244 if { { case "(($ac_try" in 5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5246 *) ac_try_echo=$ac_try;; 5247esac 5248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5249$as_echo "$ac_try_echo"; } >&5 5250 (eval "$ac_try") 2>&5 5251 ac_status=$? 5252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5253 test $ac_status = 0; } && 5254 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5256 *) ac_try_echo=$ac_try;; 5257esac 5258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5259$as_echo "$ac_try_echo"; } >&5 5260 (eval "$ac_try") 2>&5 5261 ac_status=$? 5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5263 test $ac_status = 0; }; 5264 then 5265 # cc works too. 5266 : 5267 else 5268 # cc exists but doesn't like -o. 5269 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5270 fi 5271 fi 5272 fi 5273else 5274 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5275fi 5276rm -f core conftest* 5277 5278fi 5279if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5281$as_echo "yes" >&6; } 5282else 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5284$as_echo "no" >&6; } 5285 5286$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5287 5288fi 5289 5290# FIXME: we rely on the cache variable name because 5291# there is no other way. 5292set dummy $CC 5293am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5294eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5295if test "$am_t" != yes; then 5296 # Losing compiler, so override with the script. 5297 # FIXME: It is wrong to rewrite CC. 5298 # But if we don't then we get into trouble of one sort or another. 5299 # A longer-term fix would be to have automake use am__CC in this case, 5300 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5301 CC="$am_aux_dir/compile $CC" 5302fi 5303 5304 5305# Check whether --enable-static was given. 5306if test "${enable_static+set}" = set; then : 5307 enableval=$enable_static; p=${PACKAGE-default} 5308 case $enableval in 5309 yes) enable_static=yes ;; 5310 no) enable_static=no ;; 5311 *) 5312 enable_static=no 5313 # Look at the argument we got. We use all the common list separators. 5314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5315 for pkg in $enableval; do 5316 IFS="$lt_save_ifs" 5317 if test "X$pkg" = "X$p"; then 5318 enable_static=yes 5319 fi 5320 done 5321 IFS="$lt_save_ifs" 5322 ;; 5323 esac 5324else 5325 enable_static=no 5326fi 5327 5328 5329 5330 5331 5332 5333# Check whether --enable-shared was given. 5334if test "${enable_shared+set}" = set; then : 5335 enableval=$enable_shared; p=${PACKAGE-default} 5336 case $enableval in 5337 yes) enable_shared=yes ;; 5338 no) enable_shared=no ;; 5339 *) 5340 enable_shared=no 5341 # Look at the argument we got. We use all the common list separators. 5342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5343 for pkg in $enableval; do 5344 IFS="$lt_save_ifs" 5345 if test "X$pkg" = "X$p"; then 5346 enable_shared=yes 5347 fi 5348 done 5349 IFS="$lt_save_ifs" 5350 ;; 5351 esac 5352else 5353 enable_shared=yes 5354fi 5355 5356 5357 5358 5359 5360 5361 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 5363$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5364 # Check whether --enable-maintainer-mode was given. 5365if test "${enable_maintainer_mode+set}" = set; then : 5366 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5367else 5368 USE_MAINTAINER_MODE=no 5369fi 5370 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 5372$as_echo "$USE_MAINTAINER_MODE" >&6; } 5373 if test $USE_MAINTAINER_MODE = yes; then 5374 MAINTAINER_MODE_TRUE= 5375 MAINTAINER_MODE_FALSE='#' 5376else 5377 MAINTAINER_MODE_TRUE='#' 5378 MAINTAINER_MODE_FALSE= 5379fi 5380 5381 MAINT=$MAINTAINER_MODE_TRUE 5382 5383 5384 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 5386$as_echo_n "checking for library containing strerror... " >&6; } 5387if ${ac_cv_search_strerror+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389else 5390 ac_func_search_save_LIBS=$LIBS 5391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392/* end confdefs.h. */ 5393 5394/* Override any GCC internal prototype to avoid an error. 5395 Use char because int might match the return type of a GCC 5396 builtin and then its argument prototype would still apply. */ 5397#ifdef __cplusplus 5398extern "C" 5399#endif 5400char strerror (); 5401int 5402main () 5403{ 5404return strerror (); 5405 ; 5406 return 0; 5407} 5408_ACEOF 5409for ac_lib in '' cposix; do 5410 if test -z "$ac_lib"; then 5411 ac_res="none required" 5412 else 5413 ac_res=-l$ac_lib 5414 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5415 fi 5416 if ac_fn_c_try_link "$LINENO"; then : 5417 ac_cv_search_strerror=$ac_res 5418fi 5419rm -f core conftest.err conftest.$ac_objext \ 5420 conftest$ac_exeext 5421 if ${ac_cv_search_strerror+:} false; then : 5422 break 5423fi 5424done 5425if ${ac_cv_search_strerror+:} false; then : 5426 5427else 5428 ac_cv_search_strerror=no 5429fi 5430rm conftest.$ac_ext 5431LIBS=$ac_func_search_save_LIBS 5432fi 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5434$as_echo "$ac_cv_search_strerror" >&6; } 5435ac_res=$ac_cv_search_strerror 5436if test "$ac_res" != no; then : 5437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5438 5439fi 5440 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5442$as_echo_n "checking for inline... " >&6; } 5443if ${ac_cv_c_inline+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 ac_cv_c_inline=no 5447for ac_kw in inline __inline__ __inline; do 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450#ifndef __cplusplus 5451typedef int foo_t; 5452static $ac_kw foo_t static_foo () {return 0; } 5453$ac_kw foo_t foo () {return 0; } 5454#endif 5455 5456_ACEOF 5457if ac_fn_c_try_compile "$LINENO"; then : 5458 ac_cv_c_inline=$ac_kw 5459fi 5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5461 test "$ac_cv_c_inline" != no && break 5462done 5463 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5466$as_echo "$ac_cv_c_inline" >&6; } 5467 5468case $ac_cv_c_inline in 5469 inline | yes) ;; 5470 *) 5471 case $ac_cv_c_inline in 5472 no) ac_val=;; 5473 *) ac_val=$ac_cv_c_inline;; 5474 esac 5475 cat >>confdefs.h <<_ACEOF 5476#ifndef __cplusplus 5477#define inline $ac_val 5478#endif 5479_ACEOF 5480 ;; 5481esac 5482 5483if test $ac_cv_c_compiler_gnu = yes; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5485$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5486if ${ac_cv_prog_gcc_traditional+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488else 5489 ac_pattern="Autoconf.*'x'" 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492#include <sgtty.h> 5493Autoconf TIOCGETP 5494_ACEOF 5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5496 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5497 ac_cv_prog_gcc_traditional=yes 5498else 5499 ac_cv_prog_gcc_traditional=no 5500fi 5501rm -f conftest* 5502 5503 5504 if test $ac_cv_prog_gcc_traditional = no; then 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507#include <termio.h> 5508Autoconf TCGETA 5509_ACEOF 5510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5511 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5512 ac_cv_prog_gcc_traditional=yes 5513fi 5514rm -f conftest* 5515 5516 fi 5517fi 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5519$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5520 if test $ac_cv_prog_gcc_traditional = yes; then 5521 CC="$CC -traditional" 5522 fi 5523fi 5524 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5526$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5527set x ${MAKE-make} 5528ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5529if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 cat >conftest.make <<\_ACEOF 5533SHELL = /bin/sh 5534all: 5535 @echo '@@@%%%=$(MAKE)=@@@%%%' 5536_ACEOF 5537# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5538case `${MAKE-make} -f conftest.make 2>/dev/null` in 5539 *@@@%%%=?*=@@@%%%*) 5540 eval ac_cv_prog_make_${ac_make}_set=yes;; 5541 *) 5542 eval ac_cv_prog_make_${ac_make}_set=no;; 5543esac 5544rm -f conftest.make 5545fi 5546if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5548$as_echo "yes" >&6; } 5549 SET_MAKE= 5550else 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5552$as_echo "no" >&6; } 5553 SET_MAKE="MAKE=${MAKE-make}" 5554fi 5555 5556 5557 5558srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 5559 5560# We pase INSTALL explicitly to sub-makes. Make sure that it is not 5561# a relative path. 5562if test "$INSTALL" = "${srcdir}/install-sh -c"; then 5563 INSTALL="${srcpwd}/install-sh -c" 5564fi 5565 5566for ac_prog in 'bison -y' byacc 5567do 5568 # Extract the first word of "$ac_prog", so it can be a program name with args. 5569set dummy $ac_prog; ac_word=$2 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5571$as_echo_n "checking for $ac_word... " >&6; } 5572if ${ac_cv_prog_YACC+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 if test -n "$YACC"; then 5576 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5577else 5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579for as_dir in $PATH 5580do 5581 IFS=$as_save_IFS 5582 test -z "$as_dir" && as_dir=. 5583 for ac_exec_ext in '' $ac_executable_extensions; do 5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5585 ac_cv_prog_YACC="$ac_prog" 5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5587 break 2 5588 fi 5589done 5590 done 5591IFS=$as_save_IFS 5592 5593fi 5594fi 5595YACC=$ac_cv_prog_YACC 5596if test -n "$YACC"; then 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5598$as_echo "$YACC" >&6; } 5599else 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5601$as_echo "no" >&6; } 5602fi 5603 5604 5605 test -n "$YACC" && break 5606done 5607test -n "$YACC" || YACC="yacc" 5608 5609ac_ext=c 5610ac_cpp='$CPP $CPPFLAGS' 5611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5613ac_compiler_gnu=$ac_cv_c_compiler_gnu 5614 5615 5616 if test "$enable_static" = "yes"; then 5617 STATIC_MODULES_TRUE= 5618 STATIC_MODULES_FALSE='#' 5619else 5620 STATIC_MODULES_TRUE='#' 5621 STATIC_MODULES_FALSE= 5622fi 5623 5624 5625 5626 5627 if test "X$CC" != "X"; then 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 5629$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } 5630if ${ssp_cv_cc+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 ssp_old_cflags="$CFLAGS" 5634 CFLAGS="$CFLAGS -fstack-protector" 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637 5638int 5639main () 5640{ 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO"; then : 5647 ssp_cv_cc=yes 5648else 5649 ssp_cv_cc=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5652 CFLAGS="$ssp_old_cflags" 5653 5654fi 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 5656$as_echo "$ssp_cv_cc" >&6; } 5657 if test $ssp_cv_cc = yes; then 5658 CFLAGS="$CFLAGS -fstack-protector" 5659 5660$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h 5661 5662 fi 5663 fi 5664 5665 5666cc_accepts_flag() 5667{ 5668 cc_accepts_flag_CFLAGS="$CFLAGS" 5669 CFLAGS="$*" 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $@" >&5 5671$as_echo_n "checking whether $CC accepts $@... " >&6; } 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674int main(){return 0;} 5675_ACEOF 5676if ac_fn_c_try_compile "$LINENO"; then : 5677 RC=0; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5678$as_echo "yes" >&6; } 5679else 5680 RC=1; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5681$as_echo "no" >&6; } 5682fi 5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5684 CFLAGS="$cc_accepts_flag_CFLAGS" 5685 return $RC 5686} 5687 5688 5689if cc_accepts_flag -fno-strict-aliasing; then 5690 CFLAGS="$CFLAGS -fno-strict-aliasing" 5691fi 5692 5693WARNLIST=" 5694 all 5695 cast-qual 5696 missing-declarations 5697 missing-prototypes 5698 nested-externs 5699 shadow 5700 write-strings 5701 no-unused 5702 unused-function 5703 unused-variable" 5704 5705for x in $WARNLIST; do 5706 if cc_accepts_flag -W$x; then 5707 WARNFLAGS="$WARNFLAGS -W$x"; 5708 fi 5709done 5710 5711case `pwd` in 5712 *\ * | *\ *) 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5714$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5715esac 5716 5717 5718 5719macro_version='2.4.2' 5720macro_revision='1.3337' 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734ltmain="$ac_aux_dir/ltmain.sh" 5735 5736# Make sure we can run config.sub. 5737$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5738 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5739 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5741$as_echo_n "checking build system type... " >&6; } 5742if ${ac_cv_build+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 ac_build_alias=$build_alias 5746test "x$ac_build_alias" = x && 5747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5748test "x$ac_build_alias" = x && 5749 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5750ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5751 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5752 5753fi 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5755$as_echo "$ac_cv_build" >&6; } 5756case $ac_cv_build in 5757*-*-*) ;; 5758*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5759esac 5760build=$ac_cv_build 5761ac_save_IFS=$IFS; IFS='-' 5762set x $ac_cv_build 5763shift 5764build_cpu=$1 5765build_vendor=$2 5766shift; shift 5767# Remember, the first character of IFS is used to create $*, 5768# except with old shells: 5769build_os=$* 5770IFS=$ac_save_IFS 5771case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5772 5773 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5775$as_echo_n "checking host system type... " >&6; } 5776if ${ac_cv_host+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 if test "x$host_alias" = x; then 5780 ac_cv_host=$ac_cv_build 5781else 5782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5784fi 5785 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5788$as_echo "$ac_cv_host" >&6; } 5789case $ac_cv_host in 5790*-*-*) ;; 5791*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5792esac 5793host=$ac_cv_host 5794ac_save_IFS=$IFS; IFS='-' 5795set x $ac_cv_host 5796shift 5797host_cpu=$1 5798host_vendor=$2 5799shift; shift 5800# Remember, the first character of IFS is used to create $*, 5801# except with old shells: 5802host_os=$* 5803IFS=$ac_save_IFS 5804case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5805 5806 5807# Backslashify metacharacters that are still active within 5808# double-quoted strings. 5809sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5810 5811# Same as above, but do not quote variable references. 5812double_quote_subst='s/\(["`\\]\)/\\\1/g' 5813 5814# Sed substitution to delay expansion of an escaped shell variable in a 5815# double_quote_subst'ed string. 5816delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5817 5818# Sed substitution to delay expansion of an escaped single quote. 5819delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5820 5821# Sed substitution to avoid accidental globbing in evaled expressions 5822no_glob_subst='s/\*/\\\*/g' 5823 5824ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5825ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5826ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5827 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5829$as_echo_n "checking how to print strings... " >&6; } 5830# Test print first, because it will be a builtin if present. 5831if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5832 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5833 ECHO='print -r --' 5834elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5835 ECHO='printf %s\n' 5836else 5837 # Use this function as a fallback that always works. 5838 func_fallback_echo () 5839 { 5840 eval 'cat <<_LTECHO_EOF 5841$1 5842_LTECHO_EOF' 5843 } 5844 ECHO='func_fallback_echo' 5845fi 5846 5847# func_echo_all arg... 5848# Invoke $ECHO with all args, space-separated. 5849func_echo_all () 5850{ 5851 $ECHO "" 5852} 5853 5854case "$ECHO" in 5855 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5856$as_echo "printf" >&6; } ;; 5857 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5858$as_echo "print -r" >&6; } ;; 5859 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5860$as_echo "cat" >&6; } ;; 5861esac 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5877$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5878if ${ac_cv_path_SED+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5882 for ac_i in 1 2 3 4 5 6 7; do 5883 ac_script="$ac_script$as_nl$ac_script" 5884 done 5885 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5886 { ac_script=; unset ac_script;} 5887 if test -z "$SED"; then 5888 ac_path_SED_found=false 5889 # Loop through the user's path and test for each of PROGNAME-LIST 5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891for as_dir in $PATH 5892do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_prog in sed gsed; do 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5898 as_fn_executable_p "$ac_path_SED" || continue 5899# Check for GNU ac_path_SED and select it if it is found. 5900 # Check for GNU $ac_path_SED 5901case `"$ac_path_SED" --version 2>&1` in 5902*GNU*) 5903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5904*) 5905 ac_count=0 5906 $as_echo_n 0123456789 >"conftest.in" 5907 while : 5908 do 5909 cat "conftest.in" "conftest.in" >"conftest.tmp" 5910 mv "conftest.tmp" "conftest.in" 5911 cp "conftest.in" "conftest.nl" 5912 $as_echo '' >> "conftest.nl" 5913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5915 as_fn_arith $ac_count + 1 && ac_count=$as_val 5916 if test $ac_count -gt ${ac_path_SED_max-0}; then 5917 # Best one so far, save it but keep looking for a better one 5918 ac_cv_path_SED="$ac_path_SED" 5919 ac_path_SED_max=$ac_count 5920 fi 5921 # 10*(2^10) chars as input seems more than enough 5922 test $ac_count -gt 10 && break 5923 done 5924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5925esac 5926 5927 $ac_path_SED_found && break 3 5928 done 5929 done 5930 done 5931IFS=$as_save_IFS 5932 if test -z "$ac_cv_path_SED"; then 5933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5934 fi 5935else 5936 ac_cv_path_SED=$SED 5937fi 5938 5939fi 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5941$as_echo "$ac_cv_path_SED" >&6; } 5942 SED="$ac_cv_path_SED" 5943 rm -f conftest.sed 5944 5945test -z "$SED" && SED=sed 5946Xsed="$SED -e 1s/^X//" 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5959$as_echo_n "checking for fgrep... " >&6; } 5960if ${ac_cv_path_FGREP+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5964 then ac_cv_path_FGREP="$GREP -F" 5965 else 5966 if test -z "$FGREP"; then 5967 ac_path_FGREP_found=false 5968 # Loop through the user's path and test for each of PROGNAME-LIST 5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5971do 5972 IFS=$as_save_IFS 5973 test -z "$as_dir" && as_dir=. 5974 for ac_prog in fgrep; do 5975 for ac_exec_ext in '' $ac_executable_extensions; do 5976 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5977 as_fn_executable_p "$ac_path_FGREP" || continue 5978# Check for GNU ac_path_FGREP and select it if it is found. 5979 # Check for GNU $ac_path_FGREP 5980case `"$ac_path_FGREP" --version 2>&1` in 5981*GNU*) 5982 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5983*) 5984 ac_count=0 5985 $as_echo_n 0123456789 >"conftest.in" 5986 while : 5987 do 5988 cat "conftest.in" "conftest.in" >"conftest.tmp" 5989 mv "conftest.tmp" "conftest.in" 5990 cp "conftest.in" "conftest.nl" 5991 $as_echo 'FGREP' >> "conftest.nl" 5992 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5994 as_fn_arith $ac_count + 1 && ac_count=$as_val 5995 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5996 # Best one so far, save it but keep looking for a better one 5997 ac_cv_path_FGREP="$ac_path_FGREP" 5998 ac_path_FGREP_max=$ac_count 5999 fi 6000 # 10*(2^10) chars as input seems more than enough 6001 test $ac_count -gt 10 && break 6002 done 6003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6004esac 6005 6006 $ac_path_FGREP_found && break 3 6007 done 6008 done 6009 done 6010IFS=$as_save_IFS 6011 if test -z "$ac_cv_path_FGREP"; then 6012 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6013 fi 6014else 6015 ac_cv_path_FGREP=$FGREP 6016fi 6017 6018 fi 6019fi 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6021$as_echo "$ac_cv_path_FGREP" >&6; } 6022 FGREP="$ac_cv_path_FGREP" 6023 6024 6025test -z "$GREP" && GREP=grep 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045# Check whether --with-gnu-ld was given. 6046if test "${with_gnu_ld+set}" = set; then : 6047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6048else 6049 with_gnu_ld=no 6050fi 6051 6052ac_prog=ld 6053if test "$GCC" = yes; then 6054 # Check if gcc -print-prog-name=ld gives a path. 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6056$as_echo_n "checking for ld used by $CC... " >&6; } 6057 case $host in 6058 *-*-mingw*) 6059 # gcc leaves a trailing carriage return which upsets mingw 6060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6061 *) 6062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6063 esac 6064 case $ac_prog in 6065 # Accept absolute paths. 6066 [\\/]* | ?:[\\/]*) 6067 re_direlt='/[^/][^/]*/\.\./' 6068 # Canonicalize the pathname of ld 6069 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6070 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6071 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6072 done 6073 test -z "$LD" && LD="$ac_prog" 6074 ;; 6075 "") 6076 # If it fails, then pretend we aren't using GCC. 6077 ac_prog=ld 6078 ;; 6079 *) 6080 # If it is relative, then search for the first ld in PATH. 6081 with_gnu_ld=unknown 6082 ;; 6083 esac 6084elif test "$with_gnu_ld" = yes; then 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6086$as_echo_n "checking for GNU ld... " >&6; } 6087else 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6089$as_echo_n "checking for non-GNU ld... " >&6; } 6090fi 6091if ${lt_cv_path_LD+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 if test -z "$LD"; then 6095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6096 for ac_dir in $PATH; do 6097 IFS="$lt_save_ifs" 6098 test -z "$ac_dir" && ac_dir=. 6099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6100 lt_cv_path_LD="$ac_dir/$ac_prog" 6101 # Check to see if the program is GNU ld. I'd rather use --version, 6102 # but apparently some variants of GNU ld only accept -v. 6103 # Break only if it was the GNU/non-GNU ld that we prefer. 6104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6105 *GNU* | *'with BFD'*) 6106 test "$with_gnu_ld" != no && break 6107 ;; 6108 *) 6109 test "$with_gnu_ld" != yes && break 6110 ;; 6111 esac 6112 fi 6113 done 6114 IFS="$lt_save_ifs" 6115else 6116 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6117fi 6118fi 6119 6120LD="$lt_cv_path_LD" 6121if test -n "$LD"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6123$as_echo "$LD" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6130$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6131if ${lt_cv_prog_gnu_ld+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6135case `$LD -v 2>&1 </dev/null` in 6136*GNU* | *'with BFD'*) 6137 lt_cv_prog_gnu_ld=yes 6138 ;; 6139*) 6140 lt_cv_prog_gnu_ld=no 6141 ;; 6142esac 6143fi 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6145$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6146with_gnu_ld=$lt_cv_prog_gnu_ld 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6157$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6158if ${lt_cv_path_NM+:} false; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 if test -n "$NM"; then 6162 # Let the user override the test. 6163 lt_cv_path_NM="$NM" 6164else 6165 lt_nm_to_check="${ac_tool_prefix}nm" 6166 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6167 lt_nm_to_check="$lt_nm_to_check nm" 6168 fi 6169 for lt_tmp_nm in $lt_nm_to_check; do 6170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6171 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6172 IFS="$lt_save_ifs" 6173 test -z "$ac_dir" && ac_dir=. 6174 tmp_nm="$ac_dir/$lt_tmp_nm" 6175 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6176 # Check to see if the nm accepts a BSD-compat flag. 6177 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6178 # nm: unknown option "B" ignored 6179 # Tru64's nm complains that /dev/null is an invalid object file 6180 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6181 */dev/null* | *'Invalid file or object type'*) 6182 lt_cv_path_NM="$tmp_nm -B" 6183 break 6184 ;; 6185 *) 6186 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6187 */dev/null*) 6188 lt_cv_path_NM="$tmp_nm -p" 6189 break 6190 ;; 6191 *) 6192 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6193 continue # so that we can try to find one that supports BSD flags 6194 ;; 6195 esac 6196 ;; 6197 esac 6198 fi 6199 done 6200 IFS="$lt_save_ifs" 6201 done 6202 : ${lt_cv_path_NM=no} 6203fi 6204fi 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6206$as_echo "$lt_cv_path_NM" >&6; } 6207if test "$lt_cv_path_NM" != "no"; then 6208 NM="$lt_cv_path_NM" 6209else 6210 # Didn't find any BSD compatible name lister, look for dumpbin. 6211 if test -n "$DUMPBIN"; then : 6212 # Let the user override the test. 6213 else 6214 if test -n "$ac_tool_prefix"; then 6215 for ac_prog in dumpbin "link -dump" 6216 do 6217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6218set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6220$as_echo_n "checking for $ac_word... " >&6; } 6221if ${ac_cv_prog_DUMPBIN+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 if test -n "$DUMPBIN"; then 6225 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6226else 6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6228for as_dir in $PATH 6229do 6230 IFS=$as_save_IFS 6231 test -z "$as_dir" && as_dir=. 6232 for ac_exec_ext in '' $ac_executable_extensions; do 6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6234 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6236 break 2 6237 fi 6238done 6239 done 6240IFS=$as_save_IFS 6241 6242fi 6243fi 6244DUMPBIN=$ac_cv_prog_DUMPBIN 6245if test -n "$DUMPBIN"; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6247$as_echo "$DUMPBIN" >&6; } 6248else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6250$as_echo "no" >&6; } 6251fi 6252 6253 6254 test -n "$DUMPBIN" && break 6255 done 6256fi 6257if test -z "$DUMPBIN"; then 6258 ac_ct_DUMPBIN=$DUMPBIN 6259 for ac_prog in dumpbin "link -dump" 6260do 6261 # Extract the first word of "$ac_prog", so it can be a program name with args. 6262set dummy $ac_prog; ac_word=$2 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6264$as_echo_n "checking for $ac_word... " >&6; } 6265if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 if test -n "$ac_ct_DUMPBIN"; then 6269 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6270else 6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6272for as_dir in $PATH 6273do 6274 IFS=$as_save_IFS 6275 test -z "$as_dir" && as_dir=. 6276 for ac_exec_ext in '' $ac_executable_extensions; do 6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6278 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6280 break 2 6281 fi 6282done 6283 done 6284IFS=$as_save_IFS 6285 6286fi 6287fi 6288ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6289if test -n "$ac_ct_DUMPBIN"; then 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6291$as_echo "$ac_ct_DUMPBIN" >&6; } 6292else 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6294$as_echo "no" >&6; } 6295fi 6296 6297 6298 test -n "$ac_ct_DUMPBIN" && break 6299done 6300 6301 if test "x$ac_ct_DUMPBIN" = x; then 6302 DUMPBIN=":" 6303 else 6304 case $cross_compiling:$ac_tool_warned in 6305yes:) 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6308ac_tool_warned=yes ;; 6309esac 6310 DUMPBIN=$ac_ct_DUMPBIN 6311 fi 6312fi 6313 6314 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6315 *COFF*) 6316 DUMPBIN="$DUMPBIN -symbols" 6317 ;; 6318 *) 6319 DUMPBIN=: 6320 ;; 6321 esac 6322 fi 6323 6324 if test "$DUMPBIN" != ":"; then 6325 NM="$DUMPBIN" 6326 fi 6327fi 6328test -z "$NM" && NM=nm 6329 6330 6331 6332 6333 6334 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6336$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6337if ${lt_cv_nm_interface+:} false; then : 6338 $as_echo_n "(cached) " >&6 6339else 6340 lt_cv_nm_interface="BSD nm" 6341 echo "int some_variable = 0;" > conftest.$ac_ext 6342 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6343 (eval "$ac_compile" 2>conftest.err) 6344 cat conftest.err >&5 6345 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6346 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6347 cat conftest.err >&5 6348 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6349 cat conftest.out >&5 6350 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6351 lt_cv_nm_interface="MS dumpbin" 6352 fi 6353 rm -f conftest* 6354fi 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6356$as_echo "$lt_cv_nm_interface" >&6; } 6357 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6359$as_echo_n "checking whether ln -s works... " >&6; } 6360LN_S=$as_ln_s 6361if test "$LN_S" = "ln -s"; then 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6363$as_echo "yes" >&6; } 6364else 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6366$as_echo "no, using $LN_S" >&6; } 6367fi 6368 6369# find the maximum length of command line arguments 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6371$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6372if ${lt_cv_sys_max_cmd_len+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 i=0 6376 teststring="ABCD" 6377 6378 case $build_os in 6379 msdosdjgpp*) 6380 # On DJGPP, this test can blow up pretty badly due to problems in libc 6381 # (any single argument exceeding 2000 bytes causes a buffer overrun 6382 # during glob expansion). Even if it were fixed, the result of this 6383 # check would be larger than it should be. 6384 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6385 ;; 6386 6387 gnu*) 6388 # Under GNU Hurd, this test is not required because there is 6389 # no limit to the length of command line arguments. 6390 # Libtool will interpret -1 as no limit whatsoever 6391 lt_cv_sys_max_cmd_len=-1; 6392 ;; 6393 6394 cygwin* | mingw* | cegcc*) 6395 # On Win9x/ME, this test blows up -- it succeeds, but takes 6396 # about 5 minutes as the teststring grows exponentially. 6397 # Worse, since 9x/ME are not pre-emptively multitasking, 6398 # you end up with a "frozen" computer, even though with patience 6399 # the test eventually succeeds (with a max line length of 256k). 6400 # Instead, let's just punt: use the minimum linelength reported by 6401 # all of the supported platforms: 8192 (on NT/2K/XP). 6402 lt_cv_sys_max_cmd_len=8192; 6403 ;; 6404 6405 mint*) 6406 # On MiNT this can take a long time and run out of memory. 6407 lt_cv_sys_max_cmd_len=8192; 6408 ;; 6409 6410 amigaos*) 6411 # On AmigaOS with pdksh, this test takes hours, literally. 6412 # So we just punt and use a minimum line length of 8192. 6413 lt_cv_sys_max_cmd_len=8192; 6414 ;; 6415 6416 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6417 # This has been around since 386BSD, at least. Likely further. 6418 if test -x /sbin/sysctl; then 6419 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6420 elif test -x /usr/sbin/sysctl; then 6421 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6422 else 6423 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6424 fi 6425 # And add a safety zone 6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6428 ;; 6429 6430 interix*) 6431 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6432 lt_cv_sys_max_cmd_len=196608 6433 ;; 6434 6435 os2*) 6436 # The test takes a long time on OS/2. 6437 lt_cv_sys_max_cmd_len=8192 6438 ;; 6439 6440 osf*) 6441 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6442 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6443 # nice to cause kernel panics so lets avoid the loop below. 6444 # First set a reasonable default. 6445 lt_cv_sys_max_cmd_len=16384 6446 # 6447 if test -x /sbin/sysconfig; then 6448 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6449 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6450 esac 6451 fi 6452 ;; 6453 sco3.2v5*) 6454 lt_cv_sys_max_cmd_len=102400 6455 ;; 6456 sysv5* | sco5v6* | sysv4.2uw2*) 6457 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6458 if test -n "$kargmax"; then 6459 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6460 else 6461 lt_cv_sys_max_cmd_len=32768 6462 fi 6463 ;; 6464 *) 6465 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6466 if test -n "$lt_cv_sys_max_cmd_len" && \ 6467 test undefined != "$lt_cv_sys_max_cmd_len"; then 6468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6470 else 6471 # Make teststring a little bigger before we do anything with it. 6472 # a 1K string should be a reasonable start. 6473 for i in 1 2 3 4 5 6 7 8 ; do 6474 teststring=$teststring$teststring 6475 done 6476 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6477 # If test is not a shell built-in, we'll probably end up computing a 6478 # maximum length that is only half of the actual maximum length, but 6479 # we can't tell. 6480 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6481 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6482 test $i != 17 # 1/2 MB should be enough 6483 do 6484 i=`expr $i + 1` 6485 teststring=$teststring$teststring 6486 done 6487 # Only check the string length outside the loop. 6488 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6489 teststring= 6490 # Add a significant safety factor because C++ compilers can tack on 6491 # massive amounts of additional arguments before passing them to the 6492 # linker. It appears as though 1/2 is a usable value. 6493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6494 fi 6495 ;; 6496 esac 6497 6498fi 6499 6500if test -n $lt_cv_sys_max_cmd_len ; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6502$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6503else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6505$as_echo "none" >&6; } 6506fi 6507max_cmd_len=$lt_cv_sys_max_cmd_len 6508 6509 6510 6511 6512 6513 6514: ${CP="cp -f"} 6515: ${MV="mv -f"} 6516: ${RM="rm -f"} 6517 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6519$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6520# Try some XSI features 6521xsi_shell=no 6522( _lt_dummy="a/b/c" 6523 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6524 = c,a/b,b/c, \ 6525 && eval 'test $(( 1 + 1 )) -eq 2 \ 6526 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6527 && xsi_shell=yes 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6529$as_echo "$xsi_shell" >&6; } 6530 6531 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6533$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6534lt_shell_append=no 6535( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6536 >/dev/null 2>&1 \ 6537 && lt_shell_append=yes 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6539$as_echo "$lt_shell_append" >&6; } 6540 6541 6542if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6543 lt_unset=unset 6544else 6545 lt_unset=false 6546fi 6547 6548 6549 6550 6551 6552# test EBCDIC or ASCII 6553case `echo X|tr X '\101'` in 6554 A) # ASCII based system 6555 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6556 lt_SP2NL='tr \040 \012' 6557 lt_NL2SP='tr \015\012 \040\040' 6558 ;; 6559 *) # EBCDIC based system 6560 lt_SP2NL='tr \100 \n' 6561 lt_NL2SP='tr \r\n \100\100' 6562 ;; 6563esac 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6574$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6575if ${lt_cv_to_host_file_cmd+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 case $host in 6579 *-*-mingw* ) 6580 case $build in 6581 *-*-mingw* ) # actually msys 6582 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6583 ;; 6584 *-*-cygwin* ) 6585 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6586 ;; 6587 * ) # otherwise, assume *nix 6588 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6589 ;; 6590 esac 6591 ;; 6592 *-*-cygwin* ) 6593 case $build in 6594 *-*-mingw* ) # actually msys 6595 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6596 ;; 6597 *-*-cygwin* ) 6598 lt_cv_to_host_file_cmd=func_convert_file_noop 6599 ;; 6600 * ) # otherwise, assume *nix 6601 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6602 ;; 6603 esac 6604 ;; 6605 * ) # unhandled hosts (and "normal" native builds) 6606 lt_cv_to_host_file_cmd=func_convert_file_noop 6607 ;; 6608esac 6609 6610fi 6611 6612to_host_file_cmd=$lt_cv_to_host_file_cmd 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6614$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6615 6616 6617 6618 6619 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6621$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6622if ${lt_cv_to_tool_file_cmd+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 #assume ordinary cross tools, or native build. 6626lt_cv_to_tool_file_cmd=func_convert_file_noop 6627case $host in 6628 *-*-mingw* ) 6629 case $build in 6630 *-*-mingw* ) # actually msys 6631 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6632 ;; 6633 esac 6634 ;; 6635esac 6636 6637fi 6638 6639to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6641$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6642 6643 6644 6645 6646 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6648$as_echo_n "checking for $LD option to reload object files... " >&6; } 6649if ${lt_cv_ld_reload_flag+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 lt_cv_ld_reload_flag='-r' 6653fi 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6655$as_echo "$lt_cv_ld_reload_flag" >&6; } 6656reload_flag=$lt_cv_ld_reload_flag 6657case $reload_flag in 6658"" | " "*) ;; 6659*) reload_flag=" $reload_flag" ;; 6660esac 6661reload_cmds='$LD$reload_flag -o $output$reload_objs' 6662case $host_os in 6663 cygwin* | mingw* | pw32* | cegcc*) 6664 if test "$GCC" != yes; then 6665 reload_cmds=false 6666 fi 6667 ;; 6668 darwin*) 6669 if test "$GCC" = yes; then 6670 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6671 else 6672 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6673 fi 6674 ;; 6675esac 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685if test -n "$ac_tool_prefix"; then 6686 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6687set dummy ${ac_tool_prefix}objdump; ac_word=$2 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6689$as_echo_n "checking for $ac_word... " >&6; } 6690if ${ac_cv_prog_OBJDUMP+:} false; then : 6691 $as_echo_n "(cached) " >&6 6692else 6693 if test -n "$OBJDUMP"; then 6694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6695else 6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6697for as_dir in $PATH 6698do 6699 IFS=$as_save_IFS 6700 test -z "$as_dir" && as_dir=. 6701 for ac_exec_ext in '' $ac_executable_extensions; do 6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6703 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6705 break 2 6706 fi 6707done 6708 done 6709IFS=$as_save_IFS 6710 6711fi 6712fi 6713OBJDUMP=$ac_cv_prog_OBJDUMP 6714if test -n "$OBJDUMP"; then 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6716$as_echo "$OBJDUMP" >&6; } 6717else 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6719$as_echo "no" >&6; } 6720fi 6721 6722 6723fi 6724if test -z "$ac_cv_prog_OBJDUMP"; then 6725 ac_ct_OBJDUMP=$OBJDUMP 6726 # Extract the first word of "objdump", so it can be a program name with args. 6727set dummy objdump; ac_word=$2 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6729$as_echo_n "checking for $ac_word... " >&6; } 6730if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6731 $as_echo_n "(cached) " >&6 6732else 6733 if test -n "$ac_ct_OBJDUMP"; then 6734 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6735else 6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6737for as_dir in $PATH 6738do 6739 IFS=$as_save_IFS 6740 test -z "$as_dir" && as_dir=. 6741 for ac_exec_ext in '' $ac_executable_extensions; do 6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6743 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6745 break 2 6746 fi 6747done 6748 done 6749IFS=$as_save_IFS 6750 6751fi 6752fi 6753ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6754if test -n "$ac_ct_OBJDUMP"; then 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6756$as_echo "$ac_ct_OBJDUMP" >&6; } 6757else 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6759$as_echo "no" >&6; } 6760fi 6761 6762 if test "x$ac_ct_OBJDUMP" = x; then 6763 OBJDUMP="false" 6764 else 6765 case $cross_compiling:$ac_tool_warned in 6766yes:) 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6769ac_tool_warned=yes ;; 6770esac 6771 OBJDUMP=$ac_ct_OBJDUMP 6772 fi 6773else 6774 OBJDUMP="$ac_cv_prog_OBJDUMP" 6775fi 6776 6777test -z "$OBJDUMP" && OBJDUMP=objdump 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6788$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6789if ${lt_cv_deplibs_check_method+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 lt_cv_file_magic_cmd='$MAGIC_CMD' 6793lt_cv_file_magic_test_file= 6794lt_cv_deplibs_check_method='unknown' 6795# Need to set the preceding variable on all platforms that support 6796# interlibrary dependencies. 6797# 'none' -- dependencies not supported. 6798# `unknown' -- same as none, but documents that we really don't know. 6799# 'pass_all' -- all dependencies passed with no checks. 6800# 'test_compile' -- check by making test program. 6801# 'file_magic [[regex]]' -- check by looking for files in library path 6802# which responds to the $file_magic_cmd with a given extended regex. 6803# If you have `file' or equivalent on your system and you're not sure 6804# whether `pass_all' will *always* work, you probably want this one. 6805 6806case $host_os in 6807aix[4-9]*) 6808 lt_cv_deplibs_check_method=pass_all 6809 ;; 6810 6811beos*) 6812 lt_cv_deplibs_check_method=pass_all 6813 ;; 6814 6815bsdi[45]*) 6816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6817 lt_cv_file_magic_cmd='/usr/bin/file -L' 6818 lt_cv_file_magic_test_file=/shlib/libc.so 6819 ;; 6820 6821cygwin*) 6822 # func_win32_libid is a shell function defined in ltmain.sh 6823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6824 lt_cv_file_magic_cmd='func_win32_libid' 6825 ;; 6826 6827mingw* | pw32*) 6828 # Base MSYS/MinGW do not provide the 'file' command needed by 6829 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6830 # unless we find 'file', for example because we are cross-compiling. 6831 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6832 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6834 lt_cv_file_magic_cmd='func_win32_libid' 6835 else 6836 # Keep this pattern in sync with the one in func_win32_libid. 6837 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6838 lt_cv_file_magic_cmd='$OBJDUMP -f' 6839 fi 6840 ;; 6841 6842cegcc*) 6843 # use the weaker test based on 'objdump'. See mingw*. 6844 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6845 lt_cv_file_magic_cmd='$OBJDUMP -f' 6846 ;; 6847 6848darwin* | rhapsody*) 6849 lt_cv_deplibs_check_method=pass_all 6850 ;; 6851 6852freebsd* | dragonfly*) 6853 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6854 case $host_cpu in 6855 i*86 ) 6856 # Not sure whether the presence of OpenBSD here was a mistake. 6857 # Let's accept both of them until this is cleared up. 6858 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6859 lt_cv_file_magic_cmd=/usr/bin/file 6860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6861 ;; 6862 esac 6863 else 6864 lt_cv_deplibs_check_method=pass_all 6865 fi 6866 ;; 6867 6868haiku*) 6869 lt_cv_deplibs_check_method=pass_all 6870 ;; 6871 6872hpux10.20* | hpux11*) 6873 lt_cv_file_magic_cmd=/usr/bin/file 6874 case $host_cpu in 6875 ia64*) 6876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6878 ;; 6879 hppa*64*) 6880 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]' 6881 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6882 ;; 6883 *) 6884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6885 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6886 ;; 6887 esac 6888 ;; 6889 6890interix[3-9]*) 6891 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6893 ;; 6894 6895irix5* | irix6* | nonstopux*) 6896 case $LD in 6897 *-32|*"-32 ") libmagic=32-bit;; 6898 *-n32|*"-n32 ") libmagic=N32;; 6899 *-64|*"-64 ") libmagic=64-bit;; 6900 *) libmagic=never-match;; 6901 esac 6902 lt_cv_deplibs_check_method=pass_all 6903 ;; 6904 6905# This must be glibc/ELF. 6906linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6907 lt_cv_deplibs_check_method=pass_all 6908 ;; 6909 6910netbsd* | netbsdelf*-gnu) 6911 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6913 else 6914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6915 fi 6916 ;; 6917 6918newos6*) 6919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6920 lt_cv_file_magic_cmd=/usr/bin/file 6921 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6922 ;; 6923 6924*nto* | *qnx*) 6925 lt_cv_deplibs_check_method=pass_all 6926 ;; 6927 6928openbsd*) 6929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6931 else 6932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6933 fi 6934 ;; 6935 6936osf3* | osf4* | osf5*) 6937 lt_cv_deplibs_check_method=pass_all 6938 ;; 6939 6940rdos*) 6941 lt_cv_deplibs_check_method=pass_all 6942 ;; 6943 6944solaris*) 6945 lt_cv_deplibs_check_method=pass_all 6946 ;; 6947 6948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6949 lt_cv_deplibs_check_method=pass_all 6950 ;; 6951 6952sysv4 | sysv4.3*) 6953 case $host_vendor in 6954 motorola) 6955 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]' 6956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6957 ;; 6958 ncr) 6959 lt_cv_deplibs_check_method=pass_all 6960 ;; 6961 sequent) 6962 lt_cv_file_magic_cmd='/bin/file' 6963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6964 ;; 6965 sni) 6966 lt_cv_file_magic_cmd='/bin/file' 6967 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6968 lt_cv_file_magic_test_file=/lib/libc.so 6969 ;; 6970 siemens) 6971 lt_cv_deplibs_check_method=pass_all 6972 ;; 6973 pc) 6974 lt_cv_deplibs_check_method=pass_all 6975 ;; 6976 esac 6977 ;; 6978 6979tpf*) 6980 lt_cv_deplibs_check_method=pass_all 6981 ;; 6982esac 6983 6984fi 6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6986$as_echo "$lt_cv_deplibs_check_method" >&6; } 6987 6988file_magic_glob= 6989want_nocaseglob=no 6990if test "$build" = "$host"; then 6991 case $host_os in 6992 mingw* | pw32*) 6993 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6994 want_nocaseglob=yes 6995 else 6996 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6997 fi 6998 ;; 6999 esac 7000fi 7001 7002file_magic_cmd=$lt_cv_file_magic_cmd 7003deplibs_check_method=$lt_cv_deplibs_check_method 7004test -z "$deplibs_check_method" && deplibs_check_method=unknown 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027if test -n "$ac_tool_prefix"; then 7028 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7029set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031$as_echo_n "checking for $ac_word... " >&6; } 7032if ${ac_cv_prog_DLLTOOL+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 if test -n "$DLLTOOL"; then 7036 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7037else 7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH 7040do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7045 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049done 7050 done 7051IFS=$as_save_IFS 7052 7053fi 7054fi 7055DLLTOOL=$ac_cv_prog_DLLTOOL 7056if test -n "$DLLTOOL"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7058$as_echo "$DLLTOOL" >&6; } 7059else 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7061$as_echo "no" >&6; } 7062fi 7063 7064 7065fi 7066if test -z "$ac_cv_prog_DLLTOOL"; then 7067 ac_ct_DLLTOOL=$DLLTOOL 7068 # Extract the first word of "dlltool", so it can be a program name with args. 7069set dummy dlltool; ac_word=$2 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7071$as_echo_n "checking for $ac_word... " >&6; } 7072if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 if test -n "$ac_ct_DLLTOOL"; then 7076 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7077else 7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 test -z "$as_dir" && as_dir=. 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7085 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089done 7090 done 7091IFS=$as_save_IFS 7092 7093fi 7094fi 7095ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7096if test -n "$ac_ct_DLLTOOL"; then 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7098$as_echo "$ac_ct_DLLTOOL" >&6; } 7099else 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7101$as_echo "no" >&6; } 7102fi 7103 7104 if test "x$ac_ct_DLLTOOL" = x; then 7105 DLLTOOL="false" 7106 else 7107 case $cross_compiling:$ac_tool_warned in 7108yes:) 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7111ac_tool_warned=yes ;; 7112esac 7113 DLLTOOL=$ac_ct_DLLTOOL 7114 fi 7115else 7116 DLLTOOL="$ac_cv_prog_DLLTOOL" 7117fi 7118 7119test -z "$DLLTOOL" && DLLTOOL=dlltool 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7131$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7132if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 lt_cv_sharedlib_from_linklib_cmd='unknown' 7136 7137case $host_os in 7138cygwin* | mingw* | pw32* | cegcc*) 7139 # two different shell functions defined in ltmain.sh 7140 # decide which to use based on capabilities of $DLLTOOL 7141 case `$DLLTOOL --help 2>&1` in 7142 *--identify-strict*) 7143 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7144 ;; 7145 *) 7146 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7147 ;; 7148 esac 7149 ;; 7150*) 7151 # fallback: assume linklib IS sharedlib 7152 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7153 ;; 7154esac 7155 7156fi 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7158$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7159sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7160test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7161 7162 7163 7164 7165 7166 7167 7168if test -n "$ac_tool_prefix"; then 7169 for ac_prog in ar 7170 do 7171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7172set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7174$as_echo_n "checking for $ac_word... " >&6; } 7175if ${ac_cv_prog_AR+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 if test -n "$AR"; then 7179 ac_cv_prog_AR="$AR" # Let the user override the test. 7180else 7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7182for as_dir in $PATH 7183do 7184 IFS=$as_save_IFS 7185 test -z "$as_dir" && as_dir=. 7186 for ac_exec_ext in '' $ac_executable_extensions; do 7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7188 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7190 break 2 7191 fi 7192done 7193 done 7194IFS=$as_save_IFS 7195 7196fi 7197fi 7198AR=$ac_cv_prog_AR 7199if test -n "$AR"; then 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7201$as_echo "$AR" >&6; } 7202else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7204$as_echo "no" >&6; } 7205fi 7206 7207 7208 test -n "$AR" && break 7209 done 7210fi 7211if test -z "$AR"; then 7212 ac_ct_AR=$AR 7213 for ac_prog in ar 7214do 7215 # Extract the first word of "$ac_prog", so it can be a program name with args. 7216set dummy $ac_prog; ac_word=$2 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7218$as_echo_n "checking for $ac_word... " >&6; } 7219if ${ac_cv_prog_ac_ct_AR+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 if test -n "$ac_ct_AR"; then 7223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7224else 7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7226for as_dir in $PATH 7227do 7228 IFS=$as_save_IFS 7229 test -z "$as_dir" && as_dir=. 7230 for ac_exec_ext in '' $ac_executable_extensions; do 7231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7232 ac_cv_prog_ac_ct_AR="$ac_prog" 7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7234 break 2 7235 fi 7236done 7237 done 7238IFS=$as_save_IFS 7239 7240fi 7241fi 7242ac_ct_AR=$ac_cv_prog_ac_ct_AR 7243if test -n "$ac_ct_AR"; then 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7245$as_echo "$ac_ct_AR" >&6; } 7246else 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7248$as_echo "no" >&6; } 7249fi 7250 7251 7252 test -n "$ac_ct_AR" && break 7253done 7254 7255 if test "x$ac_ct_AR" = x; then 7256 AR="false" 7257 else 7258 case $cross_compiling:$ac_tool_warned in 7259yes:) 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7262ac_tool_warned=yes ;; 7263esac 7264 AR=$ac_ct_AR 7265 fi 7266fi 7267 7268: ${AR=ar} 7269: ${AR_FLAGS=cru} 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7282$as_echo_n "checking for archiver @FILE support... " >&6; } 7283if ${lt_cv_ar_at_file+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 lt_cv_ar_at_file=no 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289 7290int 7291main () 7292{ 7293 7294 ; 7295 return 0; 7296} 7297_ACEOF 7298if ac_fn_c_try_compile "$LINENO"; then : 7299 echo conftest.$ac_objext > conftest.lst 7300 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7302 (eval $lt_ar_try) 2>&5 7303 ac_status=$? 7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7305 test $ac_status = 0; } 7306 if test "$ac_status" -eq 0; then 7307 # Ensure the archiver fails upon bogus file names. 7308 rm -f conftest.$ac_objext libconftest.a 7309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7310 (eval $lt_ar_try) 2>&5 7311 ac_status=$? 7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7313 test $ac_status = 0; } 7314 if test "$ac_status" -ne 0; then 7315 lt_cv_ar_at_file=@ 7316 fi 7317 fi 7318 rm -f conftest.* libconftest.a 7319 7320fi 7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7325$as_echo "$lt_cv_ar_at_file" >&6; } 7326 7327if test "x$lt_cv_ar_at_file" = xno; then 7328 archiver_list_spec= 7329else 7330 archiver_list_spec=$lt_cv_ar_at_file 7331fi 7332 7333 7334 7335 7336 7337 7338 7339if test -n "$ac_tool_prefix"; then 7340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7341set dummy ${ac_tool_prefix}strip; ac_word=$2 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7343$as_echo_n "checking for $ac_word... " >&6; } 7344if ${ac_cv_prog_STRIP+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 if test -n "$STRIP"; then 7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7349else 7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7351for as_dir in $PATH 7352do 7353 IFS=$as_save_IFS 7354 test -z "$as_dir" && as_dir=. 7355 for ac_exec_ext in '' $ac_executable_extensions; do 7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7357 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7359 break 2 7360 fi 7361done 7362 done 7363IFS=$as_save_IFS 7364 7365fi 7366fi 7367STRIP=$ac_cv_prog_STRIP 7368if test -n "$STRIP"; then 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7370$as_echo "$STRIP" >&6; } 7371else 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7373$as_echo "no" >&6; } 7374fi 7375 7376 7377fi 7378if test -z "$ac_cv_prog_STRIP"; then 7379 ac_ct_STRIP=$STRIP 7380 # Extract the first word of "strip", so it can be a program name with args. 7381set dummy strip; ac_word=$2 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7383$as_echo_n "checking for $ac_word... " >&6; } 7384if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 if test -n "$ac_ct_STRIP"; then 7388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7389else 7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7391for as_dir in $PATH 7392do 7393 IFS=$as_save_IFS 7394 test -z "$as_dir" && as_dir=. 7395 for ac_exec_ext in '' $ac_executable_extensions; do 7396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7397 ac_cv_prog_ac_ct_STRIP="strip" 7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7399 break 2 7400 fi 7401done 7402 done 7403IFS=$as_save_IFS 7404 7405fi 7406fi 7407ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7408if test -n "$ac_ct_STRIP"; then 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7410$as_echo "$ac_ct_STRIP" >&6; } 7411else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7413$as_echo "no" >&6; } 7414fi 7415 7416 if test "x$ac_ct_STRIP" = x; then 7417 STRIP=":" 7418 else 7419 case $cross_compiling:$ac_tool_warned in 7420yes:) 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7423ac_tool_warned=yes ;; 7424esac 7425 STRIP=$ac_ct_STRIP 7426 fi 7427else 7428 STRIP="$ac_cv_prog_STRIP" 7429fi 7430 7431test -z "$STRIP" && STRIP=: 7432 7433 7434 7435 7436 7437 7438if test -n "$ac_tool_prefix"; then 7439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7440set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7442$as_echo_n "checking for $ac_word... " >&6; } 7443if ${ac_cv_prog_RANLIB+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 if test -n "$RANLIB"; then 7447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7448else 7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7450for as_dir in $PATH 7451do 7452 IFS=$as_save_IFS 7453 test -z "$as_dir" && as_dir=. 7454 for ac_exec_ext in '' $ac_executable_extensions; do 7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7458 break 2 7459 fi 7460done 7461 done 7462IFS=$as_save_IFS 7463 7464fi 7465fi 7466RANLIB=$ac_cv_prog_RANLIB 7467if test -n "$RANLIB"; then 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7469$as_echo "$RANLIB" >&6; } 7470else 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7472$as_echo "no" >&6; } 7473fi 7474 7475 7476fi 7477if test -z "$ac_cv_prog_RANLIB"; then 7478 ac_ct_RANLIB=$RANLIB 7479 # Extract the first word of "ranlib", so it can be a program name with args. 7480set dummy ranlib; ac_word=$2 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7482$as_echo_n "checking for $ac_word... " >&6; } 7483if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 if test -n "$ac_ct_RANLIB"; then 7487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 test -z "$as_dir" && as_dir=. 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7496 ac_cv_prog_ac_ct_RANLIB="ranlib" 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500done 7501 done 7502IFS=$as_save_IFS 7503 7504fi 7505fi 7506ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7507if test -n "$ac_ct_RANLIB"; then 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7509$as_echo "$ac_ct_RANLIB" >&6; } 7510else 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7512$as_echo "no" >&6; } 7513fi 7514 7515 if test "x$ac_ct_RANLIB" = x; then 7516 RANLIB=":" 7517 else 7518 case $cross_compiling:$ac_tool_warned in 7519yes:) 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7522ac_tool_warned=yes ;; 7523esac 7524 RANLIB=$ac_ct_RANLIB 7525 fi 7526else 7527 RANLIB="$ac_cv_prog_RANLIB" 7528fi 7529 7530test -z "$RANLIB" && RANLIB=: 7531 7532 7533 7534 7535 7536 7537# Determine commands to create old-style static archives. 7538old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7539old_postinstall_cmds='chmod 644 $oldlib' 7540old_postuninstall_cmds= 7541 7542if test -n "$RANLIB"; then 7543 case $host_os in 7544 openbsd*) 7545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7546 ;; 7547 *) 7548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7549 ;; 7550 esac 7551 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7552fi 7553 7554case $host_os in 7555 darwin*) 7556 lock_old_archive_extraction=yes ;; 7557 *) 7558 lock_old_archive_extraction=no ;; 7559esac 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599# If no C compiler was specified, use CC. 7600LTCC=${LTCC-"$CC"} 7601 7602# If no C compiler flags were specified, use CFLAGS. 7603LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7604 7605# Allow CC to be a program name with arguments. 7606compiler=$CC 7607 7608 7609# Check for command to grab the raw symbol name followed by C symbol from nm. 7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7611$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7612if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614else 7615 7616# These are sane defaults that work on at least a few old systems. 7617# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7618 7619# Character class describing NM global symbol codes. 7620symcode='[BCDEGRST]' 7621 7622# Regexp to match symbols that can be accessed directly from C. 7623sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7624 7625# Define system-specific variables. 7626case $host_os in 7627aix*) 7628 symcode='[BCDT]' 7629 ;; 7630cygwin* | mingw* | pw32* | cegcc*) 7631 symcode='[ABCDGISTW]' 7632 ;; 7633hpux*) 7634 if test "$host_cpu" = ia64; then 7635 symcode='[ABCDEGRST]' 7636 fi 7637 ;; 7638irix* | nonstopux*) 7639 symcode='[BCDEGRST]' 7640 ;; 7641osf*) 7642 symcode='[BCDEGQRST]' 7643 ;; 7644solaris*) 7645 symcode='[BDRT]' 7646 ;; 7647sco3.2v5*) 7648 symcode='[DT]' 7649 ;; 7650sysv4.2uw2*) 7651 symcode='[DT]' 7652 ;; 7653sysv5* | sco5v6* | unixware* | OpenUNIX*) 7654 symcode='[ABDT]' 7655 ;; 7656sysv4) 7657 symcode='[DFNSTU]' 7658 ;; 7659esac 7660 7661# If we're using GNU nm, then use its standard symbol codes. 7662case `$NM -V 2>&1` in 7663*GNU* | *'with BFD'*) 7664 symcode='[ABCDGIRSTW]' ;; 7665esac 7666 7667# Transform an extracted symbol line into a proper C declaration. 7668# Some systems (esp. on ia64) link data and code symbols differently, 7669# so use this general approach. 7670lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7671 7672# Transform an extracted symbol line into symbol name and symbol address 7673lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7674lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7675 7676# Handle CRLF in mingw tool chain 7677opt_cr= 7678case $build_os in 7679mingw*) 7680 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7681 ;; 7682esac 7683 7684# Try without a prefix underscore, then with it. 7685for ac_symprfx in "" "_"; do 7686 7687 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7688 symxfrm="\\1 $ac_symprfx\\2 \\2" 7689 7690 # Write the raw and C identifiers. 7691 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7692 # Fake it for dumpbin and say T for any non-static function 7693 # and D for any global variable. 7694 # Also find C++ and __fastcall symbols from MSVC++, 7695 # which start with @ or ?. 7696 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7697" {last_section=section; section=\$ 3};"\ 7698" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7699" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7700" \$ 0!~/External *\|/{next};"\ 7701" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7702" {if(hide[section]) next};"\ 7703" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7704" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7705" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7706" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7707" ' prfx=^$ac_symprfx" 7708 else 7709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7710 fi 7711 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7712 7713 # Check to see that the pipe works correctly. 7714 pipe_works=no 7715 7716 rm -f conftest* 7717 cat > conftest.$ac_ext <<_LT_EOF 7718#ifdef __cplusplus 7719extern "C" { 7720#endif 7721char nm_test_var; 7722void nm_test_func(void); 7723void nm_test_func(void){} 7724#ifdef __cplusplus 7725} 7726#endif 7727int main(){nm_test_var='a';nm_test_func();return(0);} 7728_LT_EOF 7729 7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7731 (eval $ac_compile) 2>&5 7732 ac_status=$? 7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7734 test $ac_status = 0; }; then 7735 # Now try to grab the symbols. 7736 nlist=conftest.nm 7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7738 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7739 ac_status=$? 7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7741 test $ac_status = 0; } && test -s "$nlist"; then 7742 # Try sorting and uniquifying the output. 7743 if sort "$nlist" | uniq > "$nlist"T; then 7744 mv -f "$nlist"T "$nlist" 7745 else 7746 rm -f "$nlist"T 7747 fi 7748 7749 # Make sure that we snagged all the symbols we need. 7750 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7751 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7752 cat <<_LT_EOF > conftest.$ac_ext 7753/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7754#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7755/* DATA imports from DLLs on WIN32 con't be const, because runtime 7756 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7757# define LT_DLSYM_CONST 7758#elif defined(__osf__) 7759/* This system does not cope well with relocations in const data. */ 7760# define LT_DLSYM_CONST 7761#else 7762# define LT_DLSYM_CONST const 7763#endif 7764 7765#ifdef __cplusplus 7766extern "C" { 7767#endif 7768 7769_LT_EOF 7770 # Now generate the symbol file. 7771 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7772 7773 cat <<_LT_EOF >> conftest.$ac_ext 7774 7775/* The mapping between symbol names and symbols. */ 7776LT_DLSYM_CONST struct { 7777 const char *name; 7778 void *address; 7779} 7780lt__PROGRAM__LTX_preloaded_symbols[] = 7781{ 7782 { "@PROGRAM@", (void *) 0 }, 7783_LT_EOF 7784 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7785 cat <<\_LT_EOF >> conftest.$ac_ext 7786 {0, (void *) 0} 7787}; 7788 7789/* This works around a problem in FreeBSD linker */ 7790#ifdef FREEBSD_WORKAROUND 7791static const void *lt_preloaded_setup() { 7792 return lt__PROGRAM__LTX_preloaded_symbols; 7793} 7794#endif 7795 7796#ifdef __cplusplus 7797} 7798#endif 7799_LT_EOF 7800 # Now try linking the two files. 7801 mv conftest.$ac_objext conftstm.$ac_objext 7802 lt_globsym_save_LIBS=$LIBS 7803 lt_globsym_save_CFLAGS=$CFLAGS 7804 LIBS="conftstm.$ac_objext" 7805 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7807 (eval $ac_link) 2>&5 7808 ac_status=$? 7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7810 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7811 pipe_works=yes 7812 fi 7813 LIBS=$lt_globsym_save_LIBS 7814 CFLAGS=$lt_globsym_save_CFLAGS 7815 else 7816 echo "cannot find nm_test_func in $nlist" >&5 7817 fi 7818 else 7819 echo "cannot find nm_test_var in $nlist" >&5 7820 fi 7821 else 7822 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7823 fi 7824 else 7825 echo "$progname: failed program was:" >&5 7826 cat conftest.$ac_ext >&5 7827 fi 7828 rm -rf conftest* conftst* 7829 7830 # Do not use the global_symbol_pipe unless it works. 7831 if test "$pipe_works" = yes; then 7832 break 7833 else 7834 lt_cv_sys_global_symbol_pipe= 7835 fi 7836done 7837 7838fi 7839 7840if test -z "$lt_cv_sys_global_symbol_pipe"; then 7841 lt_cv_sys_global_symbol_to_cdecl= 7842fi 7843if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7845$as_echo "failed" >&6; } 7846else 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7848$as_echo "ok" >&6; } 7849fi 7850 7851# Response file support. 7852if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7853 nm_file_list_spec='@' 7854elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7855 nm_file_list_spec='@' 7856fi 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7885$as_echo_n "checking for sysroot... " >&6; } 7886 7887# Check whether --with-sysroot was given. 7888if test "${with_sysroot+set}" = set; then : 7889 withval=$with_sysroot; 7890else 7891 with_sysroot=no 7892fi 7893 7894 7895lt_sysroot= 7896case ${with_sysroot} in #( 7897 yes) 7898 if test "$GCC" = yes; then 7899 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7900 fi 7901 ;; #( 7902 /*) 7903 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7904 ;; #( 7905 no|'') 7906 ;; #( 7907 *) 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7909$as_echo "${with_sysroot}" >&6; } 7910 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7911 ;; 7912esac 7913 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7915$as_echo "${lt_sysroot:-no}" >&6; } 7916 7917 7918 7919 7920 7921# Check whether --enable-libtool-lock was given. 7922if test "${enable_libtool_lock+set}" = set; then : 7923 enableval=$enable_libtool_lock; 7924fi 7925 7926test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7927 7928# Some flags need to be propagated to the compiler or linker for good 7929# libtool support. 7930case $host in 7931ia64-*-hpux*) 7932 # Find out which ABI we are using. 7933 echo 'int i;' > conftest.$ac_ext 7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7935 (eval $ac_compile) 2>&5 7936 ac_status=$? 7937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7938 test $ac_status = 0; }; then 7939 case `/usr/bin/file conftest.$ac_objext` in 7940 *ELF-32*) 7941 HPUX_IA64_MODE="32" 7942 ;; 7943 *ELF-64*) 7944 HPUX_IA64_MODE="64" 7945 ;; 7946 esac 7947 fi 7948 rm -rf conftest* 7949 ;; 7950*-*-irix6*) 7951 # Find out which ABI we are using. 7952 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7954 (eval $ac_compile) 2>&5 7955 ac_status=$? 7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7957 test $ac_status = 0; }; then 7958 if test "$lt_cv_prog_gnu_ld" = yes; then 7959 case `/usr/bin/file conftest.$ac_objext` in 7960 *32-bit*) 7961 LD="${LD-ld} -melf32bsmip" 7962 ;; 7963 *N32*) 7964 LD="${LD-ld} -melf32bmipn32" 7965 ;; 7966 *64-bit*) 7967 LD="${LD-ld} -melf64bmip" 7968 ;; 7969 esac 7970 else 7971 case `/usr/bin/file conftest.$ac_objext` in 7972 *32-bit*) 7973 LD="${LD-ld} -32" 7974 ;; 7975 *N32*) 7976 LD="${LD-ld} -n32" 7977 ;; 7978 *64-bit*) 7979 LD="${LD-ld} -64" 7980 ;; 7981 esac 7982 fi 7983 fi 7984 rm -rf conftest* 7985 ;; 7986 7987x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7988s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7989 # Find out which ABI we are using. 7990 echo 'int i;' > conftest.$ac_ext 7991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7992 (eval $ac_compile) 2>&5 7993 ac_status=$? 7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7995 test $ac_status = 0; }; then 7996 case `/usr/bin/file conftest.o` in 7997 *32-bit*) 7998 case $host in 7999 x86_64-*kfreebsd*-gnu) 8000 LD="${LD-ld} -m elf_i386_fbsd" 8001 ;; 8002 x86_64-*linux*) 8003 case `/usr/bin/file conftest.o` in 8004 *x86-64*) 8005 LD="${LD-ld} -m elf32_x86_64" 8006 ;; 8007 *) 8008 LD="${LD-ld} -m elf_i386" 8009 ;; 8010 esac 8011 ;; 8012 powerpc64le-*) 8013 LD="${LD-ld} -m elf32lppclinux" 8014 ;; 8015 powerpc64-*) 8016 LD="${LD-ld} -m elf32ppclinux" 8017 ;; 8018 s390x-*linux*) 8019 LD="${LD-ld} -m elf_s390" 8020 ;; 8021 sparc64-*linux*) 8022 LD="${LD-ld} -m elf32_sparc" 8023 ;; 8024 esac 8025 ;; 8026 *64-bit*) 8027 case $host in 8028 x86_64-*kfreebsd*-gnu) 8029 LD="${LD-ld} -m elf_x86_64_fbsd" 8030 ;; 8031 x86_64-*linux*) 8032 LD="${LD-ld} -m elf_x86_64" 8033 ;; 8034 powerpcle-*) 8035 LD="${LD-ld} -m elf64lppc" 8036 ;; 8037 powerpc-*) 8038 LD="${LD-ld} -m elf64ppc" 8039 ;; 8040 s390*-*linux*|s390*-*tpf*) 8041 LD="${LD-ld} -m elf64_s390" 8042 ;; 8043 sparc*-*linux*) 8044 LD="${LD-ld} -m elf64_sparc" 8045 ;; 8046 esac 8047 ;; 8048 esac 8049 fi 8050 rm -rf conftest* 8051 ;; 8052 8053*-*-sco3.2v5*) 8054 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8055 SAVE_CFLAGS="$CFLAGS" 8056 CFLAGS="$CFLAGS -belf" 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8058$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8059if ${lt_cv_cc_needs_belf+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 ac_ext=c 8063ac_cpp='$CPP $CPPFLAGS' 8064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8066ac_compiler_gnu=$ac_cv_c_compiler_gnu 8067 8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070 8071int 8072main () 8073{ 8074 8075 ; 8076 return 0; 8077} 8078_ACEOF 8079if ac_fn_c_try_link "$LINENO"; then : 8080 lt_cv_cc_needs_belf=yes 8081else 8082 lt_cv_cc_needs_belf=no 8083fi 8084rm -f core conftest.err conftest.$ac_objext \ 8085 conftest$ac_exeext conftest.$ac_ext 8086 ac_ext=c 8087ac_cpp='$CPP $CPPFLAGS' 8088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8090ac_compiler_gnu=$ac_cv_c_compiler_gnu 8091 8092fi 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8094$as_echo "$lt_cv_cc_needs_belf" >&6; } 8095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8097 CFLAGS="$SAVE_CFLAGS" 8098 fi 8099 ;; 8100*-*solaris*) 8101 # Find out which ABI we are using. 8102 echo 'int i;' > conftest.$ac_ext 8103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8104 (eval $ac_compile) 2>&5 8105 ac_status=$? 8106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8107 test $ac_status = 0; }; then 8108 case `/usr/bin/file conftest.o` in 8109 *64-bit*) 8110 case $lt_cv_prog_gnu_ld in 8111 yes*) 8112 case $host in 8113 i?86-*-solaris*) 8114 LD="${LD-ld} -m elf_x86_64" 8115 ;; 8116 sparc*-*-solaris*) 8117 LD="${LD-ld} -m elf64_sparc" 8118 ;; 8119 esac 8120 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8121 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8122 LD="${LD-ld}_sol2" 8123 fi 8124 ;; 8125 *) 8126 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8127 LD="${LD-ld} -64" 8128 fi 8129 ;; 8130 esac 8131 ;; 8132 esac 8133 fi 8134 rm -rf conftest* 8135 ;; 8136esac 8137 8138need_locks="$enable_libtool_lock" 8139 8140if test -n "$ac_tool_prefix"; then 8141 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8142set dummy ${ac_tool_prefix}mt; ac_word=$2 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8144$as_echo_n "checking for $ac_word... " >&6; } 8145if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8146 $as_echo_n "(cached) " >&6 8147else 8148 if test -n "$MANIFEST_TOOL"; then 8149 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8150else 8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8152for as_dir in $PATH 8153do 8154 IFS=$as_save_IFS 8155 test -z "$as_dir" && as_dir=. 8156 for ac_exec_ext in '' $ac_executable_extensions; do 8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8158 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8160 break 2 8161 fi 8162done 8163 done 8164IFS=$as_save_IFS 8165 8166fi 8167fi 8168MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8169if test -n "$MANIFEST_TOOL"; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8171$as_echo "$MANIFEST_TOOL" >&6; } 8172else 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174$as_echo "no" >&6; } 8175fi 8176 8177 8178fi 8179if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8180 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8181 # Extract the first word of "mt", so it can be a program name with args. 8182set dummy mt; ac_word=$2 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8184$as_echo_n "checking for $ac_word... " >&6; } 8185if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 if test -n "$ac_ct_MANIFEST_TOOL"; then 8189 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8190else 8191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8192for as_dir in $PATH 8193do 8194 IFS=$as_save_IFS 8195 test -z "$as_dir" && as_dir=. 8196 for ac_exec_ext in '' $ac_executable_extensions; do 8197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8198 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8200 break 2 8201 fi 8202done 8203 done 8204IFS=$as_save_IFS 8205 8206fi 8207fi 8208ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8209if test -n "$ac_ct_MANIFEST_TOOL"; then 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8211$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8212else 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8214$as_echo "no" >&6; } 8215fi 8216 8217 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8218 MANIFEST_TOOL=":" 8219 else 8220 case $cross_compiling:$ac_tool_warned in 8221yes:) 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8224ac_tool_warned=yes ;; 8225esac 8226 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8227 fi 8228else 8229 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8230fi 8231 8232test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8234$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8235if ${lt_cv_path_mainfest_tool+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237else 8238 lt_cv_path_mainfest_tool=no 8239 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8240 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8241 cat conftest.err >&5 8242 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8243 lt_cv_path_mainfest_tool=yes 8244 fi 8245 rm -f conftest* 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8248$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8249if test "x$lt_cv_path_mainfest_tool" != xyes; then 8250 MANIFEST_TOOL=: 8251fi 8252 8253 8254 8255 8256 8257 8258 case $host_os in 8259 rhapsody* | darwin*) 8260 if test -n "$ac_tool_prefix"; then 8261 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8262set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8264$as_echo_n "checking for $ac_word... " >&6; } 8265if ${ac_cv_prog_DSYMUTIL+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 if test -n "$DSYMUTIL"; then 8269 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8270else 8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8272for as_dir in $PATH 8273do 8274 IFS=$as_save_IFS 8275 test -z "$as_dir" && as_dir=. 8276 for ac_exec_ext in '' $ac_executable_extensions; do 8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8278 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8280 break 2 8281 fi 8282done 8283 done 8284IFS=$as_save_IFS 8285 8286fi 8287fi 8288DSYMUTIL=$ac_cv_prog_DSYMUTIL 8289if test -n "$DSYMUTIL"; then 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8291$as_echo "$DSYMUTIL" >&6; } 8292else 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8294$as_echo "no" >&6; } 8295fi 8296 8297 8298fi 8299if test -z "$ac_cv_prog_DSYMUTIL"; then 8300 ac_ct_DSYMUTIL=$DSYMUTIL 8301 # Extract the first word of "dsymutil", so it can be a program name with args. 8302set dummy dsymutil; ac_word=$2 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8304$as_echo_n "checking for $ac_word... " >&6; } 8305if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 if test -n "$ac_ct_DSYMUTIL"; then 8309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8310else 8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8312for as_dir in $PATH 8313do 8314 IFS=$as_save_IFS 8315 test -z "$as_dir" && as_dir=. 8316 for ac_exec_ext in '' $ac_executable_extensions; do 8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8320 break 2 8321 fi 8322done 8323 done 8324IFS=$as_save_IFS 8325 8326fi 8327fi 8328ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8329if test -n "$ac_ct_DSYMUTIL"; then 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8331$as_echo "$ac_ct_DSYMUTIL" >&6; } 8332else 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8334$as_echo "no" >&6; } 8335fi 8336 8337 if test "x$ac_ct_DSYMUTIL" = x; then 8338 DSYMUTIL=":" 8339 else 8340 case $cross_compiling:$ac_tool_warned in 8341yes:) 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8344ac_tool_warned=yes ;; 8345esac 8346 DSYMUTIL=$ac_ct_DSYMUTIL 8347 fi 8348else 8349 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8350fi 8351 8352 if test -n "$ac_tool_prefix"; then 8353 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8354set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8356$as_echo_n "checking for $ac_word... " >&6; } 8357if ${ac_cv_prog_NMEDIT+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 if test -n "$NMEDIT"; then 8361 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8362else 8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8364for as_dir in $PATH 8365do 8366 IFS=$as_save_IFS 8367 test -z "$as_dir" && as_dir=. 8368 for ac_exec_ext in '' $ac_executable_extensions; do 8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8370 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8372 break 2 8373 fi 8374done 8375 done 8376IFS=$as_save_IFS 8377 8378fi 8379fi 8380NMEDIT=$ac_cv_prog_NMEDIT 8381if test -n "$NMEDIT"; then 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8383$as_echo "$NMEDIT" >&6; } 8384else 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8386$as_echo "no" >&6; } 8387fi 8388 8389 8390fi 8391if test -z "$ac_cv_prog_NMEDIT"; then 8392 ac_ct_NMEDIT=$NMEDIT 8393 # Extract the first word of "nmedit", so it can be a program name with args. 8394set dummy nmedit; ac_word=$2 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8396$as_echo_n "checking for $ac_word... " >&6; } 8397if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 if test -n "$ac_ct_NMEDIT"; then 8401 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8402else 8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8404for as_dir in $PATH 8405do 8406 IFS=$as_save_IFS 8407 test -z "$as_dir" && as_dir=. 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414done 8415 done 8416IFS=$as_save_IFS 8417 8418fi 8419fi 8420ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8421if test -n "$ac_ct_NMEDIT"; then 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8423$as_echo "$ac_ct_NMEDIT" >&6; } 8424else 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8426$as_echo "no" >&6; } 8427fi 8428 8429 if test "x$ac_ct_NMEDIT" = x; then 8430 NMEDIT=":" 8431 else 8432 case $cross_compiling:$ac_tool_warned in 8433yes:) 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8436ac_tool_warned=yes ;; 8437esac 8438 NMEDIT=$ac_ct_NMEDIT 8439 fi 8440else 8441 NMEDIT="$ac_cv_prog_NMEDIT" 8442fi 8443 8444 if test -n "$ac_tool_prefix"; then 8445 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8446set dummy ${ac_tool_prefix}lipo; ac_word=$2 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8448$as_echo_n "checking for $ac_word... " >&6; } 8449if ${ac_cv_prog_LIPO+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 if test -n "$LIPO"; then 8453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8454else 8455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8456for as_dir in $PATH 8457do 8458 IFS=$as_save_IFS 8459 test -z "$as_dir" && as_dir=. 8460 for ac_exec_ext in '' $ac_executable_extensions; do 8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8462 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8464 break 2 8465 fi 8466done 8467 done 8468IFS=$as_save_IFS 8469 8470fi 8471fi 8472LIPO=$ac_cv_prog_LIPO 8473if test -n "$LIPO"; then 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8475$as_echo "$LIPO" >&6; } 8476else 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8478$as_echo "no" >&6; } 8479fi 8480 8481 8482fi 8483if test -z "$ac_cv_prog_LIPO"; then 8484 ac_ct_LIPO=$LIPO 8485 # Extract the first word of "lipo", so it can be a program name with args. 8486set dummy lipo; ac_word=$2 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8488$as_echo_n "checking for $ac_word... " >&6; } 8489if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 if test -n "$ac_ct_LIPO"; then 8493 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8494else 8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8496for as_dir in $PATH 8497do 8498 IFS=$as_save_IFS 8499 test -z "$as_dir" && as_dir=. 8500 for ac_exec_ext in '' $ac_executable_extensions; do 8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8502 ac_cv_prog_ac_ct_LIPO="lipo" 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8504 break 2 8505 fi 8506done 8507 done 8508IFS=$as_save_IFS 8509 8510fi 8511fi 8512ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8513if test -n "$ac_ct_LIPO"; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8515$as_echo "$ac_ct_LIPO" >&6; } 8516else 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518$as_echo "no" >&6; } 8519fi 8520 8521 if test "x$ac_ct_LIPO" = x; then 8522 LIPO=":" 8523 else 8524 case $cross_compiling:$ac_tool_warned in 8525yes:) 8526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8528ac_tool_warned=yes ;; 8529esac 8530 LIPO=$ac_ct_LIPO 8531 fi 8532else 8533 LIPO="$ac_cv_prog_LIPO" 8534fi 8535 8536 if test -n "$ac_tool_prefix"; then 8537 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8538set dummy ${ac_tool_prefix}otool; ac_word=$2 8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8540$as_echo_n "checking for $ac_word... " >&6; } 8541if ${ac_cv_prog_OTOOL+:} false; then : 8542 $as_echo_n "(cached) " >&6 8543else 8544 if test -n "$OTOOL"; then 8545 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8546else 8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8548for as_dir in $PATH 8549do 8550 IFS=$as_save_IFS 8551 test -z "$as_dir" && as_dir=. 8552 for ac_exec_ext in '' $ac_executable_extensions; do 8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8554 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8556 break 2 8557 fi 8558done 8559 done 8560IFS=$as_save_IFS 8561 8562fi 8563fi 8564OTOOL=$ac_cv_prog_OTOOL 8565if test -n "$OTOOL"; then 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8567$as_echo "$OTOOL" >&6; } 8568else 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8570$as_echo "no" >&6; } 8571fi 8572 8573 8574fi 8575if test -z "$ac_cv_prog_OTOOL"; then 8576 ac_ct_OTOOL=$OTOOL 8577 # Extract the first word of "otool", so it can be a program name with args. 8578set dummy otool; ac_word=$2 8579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8580$as_echo_n "checking for $ac_word... " >&6; } 8581if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8582 $as_echo_n "(cached) " >&6 8583else 8584 if test -n "$ac_ct_OTOOL"; then 8585 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8586else 8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8588for as_dir in $PATH 8589do 8590 IFS=$as_save_IFS 8591 test -z "$as_dir" && as_dir=. 8592 for ac_exec_ext in '' $ac_executable_extensions; do 8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8594 ac_cv_prog_ac_ct_OTOOL="otool" 8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8596 break 2 8597 fi 8598done 8599 done 8600IFS=$as_save_IFS 8601 8602fi 8603fi 8604ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8605if test -n "$ac_ct_OTOOL"; then 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8607$as_echo "$ac_ct_OTOOL" >&6; } 8608else 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8610$as_echo "no" >&6; } 8611fi 8612 8613 if test "x$ac_ct_OTOOL" = x; then 8614 OTOOL=":" 8615 else 8616 case $cross_compiling:$ac_tool_warned in 8617yes:) 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8620ac_tool_warned=yes ;; 8621esac 8622 OTOOL=$ac_ct_OTOOL 8623 fi 8624else 8625 OTOOL="$ac_cv_prog_OTOOL" 8626fi 8627 8628 if test -n "$ac_tool_prefix"; then 8629 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8630set dummy ${ac_tool_prefix}otool64; ac_word=$2 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8632$as_echo_n "checking for $ac_word... " >&6; } 8633if ${ac_cv_prog_OTOOL64+:} false; then : 8634 $as_echo_n "(cached) " >&6 8635else 8636 if test -n "$OTOOL64"; then 8637 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8638else 8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8640for as_dir in $PATH 8641do 8642 IFS=$as_save_IFS 8643 test -z "$as_dir" && as_dir=. 8644 for ac_exec_ext in '' $ac_executable_extensions; do 8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8648 break 2 8649 fi 8650done 8651 done 8652IFS=$as_save_IFS 8653 8654fi 8655fi 8656OTOOL64=$ac_cv_prog_OTOOL64 8657if test -n "$OTOOL64"; then 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8659$as_echo "$OTOOL64" >&6; } 8660else 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8662$as_echo "no" >&6; } 8663fi 8664 8665 8666fi 8667if test -z "$ac_cv_prog_OTOOL64"; then 8668 ac_ct_OTOOL64=$OTOOL64 8669 # Extract the first word of "otool64", so it can be a program name with args. 8670set dummy otool64; ac_word=$2 8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8672$as_echo_n "checking for $ac_word... " >&6; } 8673if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8674 $as_echo_n "(cached) " >&6 8675else 8676 if test -n "$ac_ct_OTOOL64"; then 8677 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8678else 8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8680for as_dir in $PATH 8681do 8682 IFS=$as_save_IFS 8683 test -z "$as_dir" && as_dir=. 8684 for ac_exec_ext in '' $ac_executable_extensions; do 8685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8686 ac_cv_prog_ac_ct_OTOOL64="otool64" 8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8688 break 2 8689 fi 8690done 8691 done 8692IFS=$as_save_IFS 8693 8694fi 8695fi 8696ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8697if test -n "$ac_ct_OTOOL64"; then 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8699$as_echo "$ac_ct_OTOOL64" >&6; } 8700else 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8702$as_echo "no" >&6; } 8703fi 8704 8705 if test "x$ac_ct_OTOOL64" = x; then 8706 OTOOL64=":" 8707 else 8708 case $cross_compiling:$ac_tool_warned in 8709yes:) 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8712ac_tool_warned=yes ;; 8713esac 8714 OTOOL64=$ac_ct_OTOOL64 8715 fi 8716else 8717 OTOOL64="$ac_cv_prog_OTOOL64" 8718fi 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8747$as_echo_n "checking for -single_module linker flag... " >&6; } 8748if ${lt_cv_apple_cc_single_mod+:} false; then : 8749 $as_echo_n "(cached) " >&6 8750else 8751 lt_cv_apple_cc_single_mod=no 8752 if test -z "${LT_MULTI_MODULE}"; then 8753 # By default we will add the -single_module flag. You can override 8754 # by either setting the environment variable LT_MULTI_MODULE 8755 # non-empty at configure time, or by adding -multi_module to the 8756 # link flags. 8757 rm -rf libconftest.dylib* 8758 echo "int foo(void){return 1;}" > conftest.c 8759 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8760-dynamiclib -Wl,-single_module conftest.c" >&5 8761 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8762 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8763 _lt_result=$? 8764 # If there is a non-empty error log, and "single_module" 8765 # appears in it, assume the flag caused a linker warning 8766 if test -s conftest.err && $GREP single_module conftest.err; then 8767 cat conftest.err >&5 8768 # Otherwise, if the output was created with a 0 exit code from 8769 # the compiler, it worked. 8770 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8771 lt_cv_apple_cc_single_mod=yes 8772 else 8773 cat conftest.err >&5 8774 fi 8775 rm -rf libconftest.dylib* 8776 rm -f conftest.* 8777 fi 8778fi 8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8780$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8783$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8784if ${lt_cv_ld_exported_symbols_list+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 lt_cv_ld_exported_symbols_list=no 8788 save_LDFLAGS=$LDFLAGS 8789 echo "_main" > conftest.sym 8790 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793 8794int 8795main () 8796{ 8797 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802if ac_fn_c_try_link "$LINENO"; then : 8803 lt_cv_ld_exported_symbols_list=yes 8804else 8805 lt_cv_ld_exported_symbols_list=no 8806fi 8807rm -f core conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809 LDFLAGS="$save_LDFLAGS" 8810 8811fi 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8813$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8814 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8816$as_echo_n "checking for -force_load linker flag... " >&6; } 8817if ${lt_cv_ld_force_load+:} false; then : 8818 $as_echo_n "(cached) " >&6 8819else 8820 lt_cv_ld_force_load=no 8821 cat > conftest.c << _LT_EOF 8822int forced_loaded() { return 2;} 8823_LT_EOF 8824 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8825 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8826 echo "$AR cru libconftest.a conftest.o" >&5 8827 $AR cru libconftest.a conftest.o 2>&5 8828 echo "$RANLIB libconftest.a" >&5 8829 $RANLIB libconftest.a 2>&5 8830 cat > conftest.c << _LT_EOF 8831int main() { return 0;} 8832_LT_EOF 8833 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8834 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8835 _lt_result=$? 8836 if test -s conftest.err && $GREP force_load conftest.err; then 8837 cat conftest.err >&5 8838 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8839 lt_cv_ld_force_load=yes 8840 else 8841 cat conftest.err >&5 8842 fi 8843 rm -f conftest.err libconftest.a conftest conftest.c 8844 rm -rf conftest.dSYM 8845 8846fi 8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8848$as_echo "$lt_cv_ld_force_load" >&6; } 8849 case $host_os in 8850 rhapsody* | darwin1.[012]) 8851 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8852 darwin1.*) 8853 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8854 darwin*) # darwin 5.x on 8855 # if running on 10.5 or later, the deployment target defaults 8856 # to the OS version, if on x86, and 10.4, the deployment 8857 # target defaults to 10.4. Don't you love it? 8858 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8859 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8860 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8861 10.[012]*) 8862 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8863 10.*) 8864 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8865 esac 8866 ;; 8867 esac 8868 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8869 _lt_dar_single_mod='$single_module' 8870 fi 8871 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8872 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8873 else 8874 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8875 fi 8876 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8877 _lt_dsymutil='~$DSYMUTIL $lib || :' 8878 else 8879 _lt_dsymutil= 8880 fi 8881 ;; 8882 esac 8883 8884for ac_header in dlfcn.h 8885do : 8886 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8887" 8888if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8889 cat >>confdefs.h <<_ACEOF 8890#define HAVE_DLFCN_H 1 8891_ACEOF 8892 8893fi 8894 8895done 8896 8897 8898 8899 8900 8901# Set options 8902enable_dlopen=yes 8903 8904 8905 8906 8907 enable_win32_dll=no 8908 8909 8910 8911 8912 8913# Check whether --with-pic was given. 8914if test "${with_pic+set}" = set; then : 8915 withval=$with_pic; lt_p=${PACKAGE-default} 8916 case $withval in 8917 yes|no) pic_mode=$withval ;; 8918 *) 8919 pic_mode=default 8920 # Look at the argument we got. We use all the common list separators. 8921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8922 for lt_pkg in $withval; do 8923 IFS="$lt_save_ifs" 8924 if test "X$lt_pkg" = "X$lt_p"; then 8925 pic_mode=yes 8926 fi 8927 done 8928 IFS="$lt_save_ifs" 8929 ;; 8930 esac 8931else 8932 pic_mode=default 8933fi 8934 8935 8936test -z "$pic_mode" && pic_mode=default 8937 8938 8939 8940 8941 8942 8943 8944 # Check whether --enable-fast-install was given. 8945if test "${enable_fast_install+set}" = set; then : 8946 enableval=$enable_fast_install; p=${PACKAGE-default} 8947 case $enableval in 8948 yes) enable_fast_install=yes ;; 8949 no) enable_fast_install=no ;; 8950 *) 8951 enable_fast_install=no 8952 # Look at the argument we got. We use all the common list separators. 8953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8954 for pkg in $enableval; do 8955 IFS="$lt_save_ifs" 8956 if test "X$pkg" = "X$p"; then 8957 enable_fast_install=yes 8958 fi 8959 done 8960 IFS="$lt_save_ifs" 8961 ;; 8962 esac 8963else 8964 enable_fast_install=yes 8965fi 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977# This can be used to rebuild libtool when needed 8978LIBTOOL_DEPS="$ltmain" 8979 8980# Always use our own libtool. 8981LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012test -z "$LN_S" && LN_S="ln -s" 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027if test -n "${ZSH_VERSION+set}" ; then 9028 setopt NO_GLOB_SUBST 9029fi 9030 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9032$as_echo_n "checking for objdir... " >&6; } 9033if ${lt_cv_objdir+:} false; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 rm -f .libs 2>/dev/null 9037mkdir .libs 2>/dev/null 9038if test -d .libs; then 9039 lt_cv_objdir=.libs 9040else 9041 # MS-DOS does not allow filenames that begin with a dot. 9042 lt_cv_objdir=_libs 9043fi 9044rmdir .libs 2>/dev/null 9045fi 9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9047$as_echo "$lt_cv_objdir" >&6; } 9048objdir=$lt_cv_objdir 9049 9050 9051 9052 9053 9054cat >>confdefs.h <<_ACEOF 9055#define LT_OBJDIR "$lt_cv_objdir/" 9056_ACEOF 9057 9058 9059 9060 9061case $host_os in 9062aix3*) 9063 # AIX sometimes has problems with the GCC collect2 program. For some 9064 # reason, if we set the COLLECT_NAMES environment variable, the problems 9065 # vanish in a puff of smoke. 9066 if test "X${COLLECT_NAMES+set}" != Xset; then 9067 COLLECT_NAMES= 9068 export COLLECT_NAMES 9069 fi 9070 ;; 9071esac 9072 9073# Global variables: 9074ofile=libtool 9075can_build_shared=yes 9076 9077# All known linkers require a `.a' archive for static linking (except MSVC, 9078# which needs '.lib'). 9079libext=a 9080 9081with_gnu_ld="$lt_cv_prog_gnu_ld" 9082 9083old_CC="$CC" 9084old_CFLAGS="$CFLAGS" 9085 9086# Set sane defaults for various variables 9087test -z "$CC" && CC=cc 9088test -z "$LTCC" && LTCC=$CC 9089test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9090test -z "$LD" && LD=ld 9091test -z "$ac_objext" && ac_objext=o 9092 9093for cc_temp in $compiler""; do 9094 case $cc_temp in 9095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9097 \-*) ;; 9098 *) break;; 9099 esac 9100done 9101cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9102 9103 9104# Only perform the check for file, if the check method requires it 9105test -z "$MAGIC_CMD" && MAGIC_CMD=file 9106case $deplibs_check_method in 9107file_magic*) 9108 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9110$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9111if ${lt_cv_path_MAGIC_CMD+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 case $MAGIC_CMD in 9115[\\/*] | ?:[\\/]*) 9116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9117 ;; 9118*) 9119 lt_save_MAGIC_CMD="$MAGIC_CMD" 9120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9122 for ac_dir in $ac_dummy; do 9123 IFS="$lt_save_ifs" 9124 test -z "$ac_dir" && ac_dir=. 9125 if test -f $ac_dir/${ac_tool_prefix}file; then 9126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9127 if test -n "$file_magic_test_file"; then 9128 case $deplibs_check_method in 9129 "file_magic "*) 9130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9133 $EGREP "$file_magic_regex" > /dev/null; then 9134 : 9135 else 9136 cat <<_LT_EOF 1>&2 9137 9138*** Warning: the command libtool uses to detect shared libraries, 9139*** $file_magic_cmd, produces output that libtool cannot recognize. 9140*** The result is that libtool may fail to recognize shared libraries 9141*** as such. This will affect the creation of libtool libraries that 9142*** depend on shared libraries, but programs linked with such libtool 9143*** libraries will work regardless of this problem. Nevertheless, you 9144*** may want to report the problem to your system manager and/or to 9145*** bug-libtool@gnu.org 9146 9147_LT_EOF 9148 fi ;; 9149 esac 9150 fi 9151 break 9152 fi 9153 done 9154 IFS="$lt_save_ifs" 9155 MAGIC_CMD="$lt_save_MAGIC_CMD" 9156 ;; 9157esac 9158fi 9159 9160MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9161if test -n "$MAGIC_CMD"; then 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9163$as_echo "$MAGIC_CMD" >&6; } 9164else 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9166$as_echo "no" >&6; } 9167fi 9168 9169 9170 9171 9172 9173if test -z "$lt_cv_path_MAGIC_CMD"; then 9174 if test -n "$ac_tool_prefix"; then 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9176$as_echo_n "checking for file... " >&6; } 9177if ${lt_cv_path_MAGIC_CMD+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179else 9180 case $MAGIC_CMD in 9181[\\/*] | ?:[\\/]*) 9182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9183 ;; 9184*) 9185 lt_save_MAGIC_CMD="$MAGIC_CMD" 9186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9188 for ac_dir in $ac_dummy; do 9189 IFS="$lt_save_ifs" 9190 test -z "$ac_dir" && ac_dir=. 9191 if test -f $ac_dir/file; then 9192 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9193 if test -n "$file_magic_test_file"; then 9194 case $deplibs_check_method in 9195 "file_magic "*) 9196 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9199 $EGREP "$file_magic_regex" > /dev/null; then 9200 : 9201 else 9202 cat <<_LT_EOF 1>&2 9203 9204*** Warning: the command libtool uses to detect shared libraries, 9205*** $file_magic_cmd, produces output that libtool cannot recognize. 9206*** The result is that libtool may fail to recognize shared libraries 9207*** as such. This will affect the creation of libtool libraries that 9208*** depend on shared libraries, but programs linked with such libtool 9209*** libraries will work regardless of this problem. Nevertheless, you 9210*** may want to report the problem to your system manager and/or to 9211*** bug-libtool@gnu.org 9212 9213_LT_EOF 9214 fi ;; 9215 esac 9216 fi 9217 break 9218 fi 9219 done 9220 IFS="$lt_save_ifs" 9221 MAGIC_CMD="$lt_save_MAGIC_CMD" 9222 ;; 9223esac 9224fi 9225 9226MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9227if test -n "$MAGIC_CMD"; then 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9229$as_echo "$MAGIC_CMD" >&6; } 9230else 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9232$as_echo "no" >&6; } 9233fi 9234 9235 9236 else 9237 MAGIC_CMD=: 9238 fi 9239fi 9240 9241 fi 9242 ;; 9243esac 9244 9245# Use C for the default configuration in the libtool script 9246 9247lt_save_CC="$CC" 9248ac_ext=c 9249ac_cpp='$CPP $CPPFLAGS' 9250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9252ac_compiler_gnu=$ac_cv_c_compiler_gnu 9253 9254 9255# Source file extension for C test sources. 9256ac_ext=c 9257 9258# Object file extension for compiled C test sources. 9259objext=o 9260objext=$objext 9261 9262# Code to be used in simple compile tests 9263lt_simple_compile_test_code="int some_variable = 0;" 9264 9265# Code to be used in simple link tests 9266lt_simple_link_test_code='int main(){return(0);}' 9267 9268 9269 9270 9271 9272 9273 9274# If no C compiler was specified, use CC. 9275LTCC=${LTCC-"$CC"} 9276 9277# If no C compiler flags were specified, use CFLAGS. 9278LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9279 9280# Allow CC to be a program name with arguments. 9281compiler=$CC 9282 9283# Save the default compiler, since it gets overwritten when the other 9284# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9285compiler_DEFAULT=$CC 9286 9287# save warnings/boilerplate of simple test code 9288ac_outfile=conftest.$ac_objext 9289echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9291_lt_compiler_boilerplate=`cat conftest.err` 9292$RM conftest* 9293 9294ac_outfile=conftest.$ac_objext 9295echo "$lt_simple_link_test_code" >conftest.$ac_ext 9296eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9297_lt_linker_boilerplate=`cat conftest.err` 9298$RM -r conftest* 9299 9300 9301if test -n "$compiler"; then 9302 9303lt_prog_compiler_no_builtin_flag= 9304 9305if test "$GCC" = yes; then 9306 case $cc_basename in 9307 nvcc*) 9308 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9309 *) 9310 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9311 esac 9312 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9314$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9315if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317else 9318 lt_cv_prog_compiler_rtti_exceptions=no 9319 ac_outfile=conftest.$ac_objext 9320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9321 lt_compiler_flag="-fno-rtti -fno-exceptions" 9322 # Insert the option either (1) after the last *FLAGS variable, or 9323 # (2) before a word containing "conftest.", or (3) at the end. 9324 # Note that $ac_compile itself does not contain backslashes and begins 9325 # with a dollar sign (not a hyphen), so the echo should work correctly. 9326 # The option is referenced via a variable to avoid confusing sed. 9327 lt_compile=`echo "$ac_compile" | $SED \ 9328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9330 -e 's:$: $lt_compiler_flag:'` 9331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9332 (eval "$lt_compile" 2>conftest.err) 9333 ac_status=$? 9334 cat conftest.err >&5 9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 if (exit $ac_status) && test -s "$ac_outfile"; then 9337 # The compiler can only warn and ignore the option if not recognized 9338 # So say no if there are warnings other than the usual output. 9339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9342 lt_cv_prog_compiler_rtti_exceptions=yes 9343 fi 9344 fi 9345 $RM conftest* 9346 9347fi 9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9349$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9350 9351if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9352 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9353else 9354 : 9355fi 9356 9357fi 9358 9359 9360 9361 9362 9363 9364 lt_prog_compiler_wl= 9365lt_prog_compiler_pic= 9366lt_prog_compiler_static= 9367 9368 9369 if test "$GCC" = yes; then 9370 lt_prog_compiler_wl='-Wl,' 9371 lt_prog_compiler_static='-static' 9372 9373 case $host_os in 9374 aix*) 9375 # All AIX code is PIC. 9376 if test "$host_cpu" = ia64; then 9377 # AIX 5 now supports IA64 processor 9378 lt_prog_compiler_static='-Bstatic' 9379 fi 9380 ;; 9381 9382 amigaos*) 9383 case $host_cpu in 9384 powerpc) 9385 # see comment about AmigaOS4 .so support 9386 lt_prog_compiler_pic='-fPIC' 9387 ;; 9388 m68k) 9389 # FIXME: we need at least 68020 code to build shared libraries, but 9390 # adding the `-m68020' flag to GCC prevents building anything better, 9391 # like `-m68040'. 9392 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9393 ;; 9394 esac 9395 ;; 9396 9397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9398 # PIC is the default for these OSes. 9399 ;; 9400 9401 mingw* | cygwin* | pw32* | os2* | cegcc*) 9402 # This hack is so that the source file can tell whether it is being 9403 # built for inclusion in a dll (and should export symbols for example). 9404 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9405 # (--disable-auto-import) libraries 9406 lt_prog_compiler_pic='-DDLL_EXPORT' 9407 ;; 9408 9409 darwin* | rhapsody*) 9410 # PIC is the default on this platform 9411 # Common symbols not allowed in MH_DYLIB files 9412 lt_prog_compiler_pic='-fno-common' 9413 ;; 9414 9415 haiku*) 9416 # PIC is the default for Haiku. 9417 # The "-static" flag exists, but is broken. 9418 lt_prog_compiler_static= 9419 ;; 9420 9421 hpux*) 9422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9424 # sets the default TLS model and affects inlining. 9425 case $host_cpu in 9426 hppa*64*) 9427 # +Z the default 9428 ;; 9429 *) 9430 lt_prog_compiler_pic='-fPIC' 9431 ;; 9432 esac 9433 ;; 9434 9435 interix[3-9]*) 9436 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9437 # Instead, we relocate shared libraries at runtime. 9438 ;; 9439 9440 msdosdjgpp*) 9441 # Just because we use GCC doesn't mean we suddenly get shared libraries 9442 # on systems that don't support them. 9443 lt_prog_compiler_can_build_shared=no 9444 enable_shared=no 9445 ;; 9446 9447 *nto* | *qnx*) 9448 # QNX uses GNU C++, but need to define -shared option too, otherwise 9449 # it will coredump. 9450 lt_prog_compiler_pic='-fPIC -shared' 9451 ;; 9452 9453 sysv4*MP*) 9454 if test -d /usr/nec; then 9455 lt_prog_compiler_pic=-Kconform_pic 9456 fi 9457 ;; 9458 9459 *) 9460 lt_prog_compiler_pic='-fPIC' 9461 ;; 9462 esac 9463 9464 case $cc_basename in 9465 nvcc*) # Cuda Compiler Driver 2.2 9466 lt_prog_compiler_wl='-Xlinker ' 9467 if test -n "$lt_prog_compiler_pic"; then 9468 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9469 fi 9470 ;; 9471 esac 9472 else 9473 # PORTME Check for flag to pass linker flags through the system compiler. 9474 case $host_os in 9475 aix*) 9476 lt_prog_compiler_wl='-Wl,' 9477 if test "$host_cpu" = ia64; then 9478 # AIX 5 now supports IA64 processor 9479 lt_prog_compiler_static='-Bstatic' 9480 else 9481 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9482 fi 9483 ;; 9484 9485 mingw* | cygwin* | pw32* | os2* | cegcc*) 9486 # This hack is so that the source file can tell whether it is being 9487 # built for inclusion in a dll (and should export symbols for example). 9488 lt_prog_compiler_pic='-DDLL_EXPORT' 9489 ;; 9490 9491 hpux9* | hpux10* | hpux11*) 9492 lt_prog_compiler_wl='-Wl,' 9493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9494 # not for PA HP-UX. 9495 case $host_cpu in 9496 hppa*64*|ia64*) 9497 # +Z the default 9498 ;; 9499 *) 9500 lt_prog_compiler_pic='+Z' 9501 ;; 9502 esac 9503 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9504 lt_prog_compiler_static='${wl}-a ${wl}archive' 9505 ;; 9506 9507 irix5* | irix6* | nonstopux*) 9508 lt_prog_compiler_wl='-Wl,' 9509 # PIC (with -KPIC) is the default. 9510 lt_prog_compiler_static='-non_shared' 9511 ;; 9512 9513 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9514 case $cc_basename in 9515 # old Intel for x86_64 which still supported -KPIC. 9516 ecc*) 9517 lt_prog_compiler_wl='-Wl,' 9518 lt_prog_compiler_pic='-KPIC' 9519 lt_prog_compiler_static='-static' 9520 ;; 9521 # icc used to be incompatible with GCC. 9522 # ICC 10 doesn't accept -KPIC any more. 9523 icc* | ifort*) 9524 lt_prog_compiler_wl='-Wl,' 9525 lt_prog_compiler_pic='-fPIC' 9526 lt_prog_compiler_static='-static' 9527 ;; 9528 # Lahey Fortran 8.1. 9529 lf95*) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='--shared' 9532 lt_prog_compiler_static='--static' 9533 ;; 9534 nagfor*) 9535 # NAG Fortran compiler 9536 lt_prog_compiler_wl='-Wl,-Wl,,' 9537 lt_prog_compiler_pic='-PIC' 9538 lt_prog_compiler_static='-Bstatic' 9539 ;; 9540 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9541 # Portland Group compilers (*not* the Pentium gcc compiler, 9542 # which looks to be a dead project) 9543 lt_prog_compiler_wl='-Wl,' 9544 lt_prog_compiler_pic='-fpic' 9545 lt_prog_compiler_static='-Bstatic' 9546 ;; 9547 ccc*) 9548 lt_prog_compiler_wl='-Wl,' 9549 # All Alpha code is PIC. 9550 lt_prog_compiler_static='-non_shared' 9551 ;; 9552 xl* | bgxl* | bgf* | mpixl*) 9553 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9554 lt_prog_compiler_wl='-Wl,' 9555 lt_prog_compiler_pic='-qpic' 9556 lt_prog_compiler_static='-qstaticlink' 9557 ;; 9558 *) 9559 case `$CC -V 2>&1 | sed 5q` in 9560 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9561 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9562 lt_prog_compiler_pic='-KPIC' 9563 lt_prog_compiler_static='-Bstatic' 9564 lt_prog_compiler_wl='' 9565 ;; 9566 *Sun\ F* | *Sun*Fortran*) 9567 lt_prog_compiler_pic='-KPIC' 9568 lt_prog_compiler_static='-Bstatic' 9569 lt_prog_compiler_wl='-Qoption ld ' 9570 ;; 9571 *Sun\ C*) 9572 # Sun C 5.9 9573 lt_prog_compiler_pic='-KPIC' 9574 lt_prog_compiler_static='-Bstatic' 9575 lt_prog_compiler_wl='-Wl,' 9576 ;; 9577 *Intel*\ [CF]*Compiler*) 9578 lt_prog_compiler_wl='-Wl,' 9579 lt_prog_compiler_pic='-fPIC' 9580 lt_prog_compiler_static='-static' 9581 ;; 9582 *Portland\ Group*) 9583 lt_prog_compiler_wl='-Wl,' 9584 lt_prog_compiler_pic='-fpic' 9585 lt_prog_compiler_static='-Bstatic' 9586 ;; 9587 esac 9588 ;; 9589 esac 9590 ;; 9591 9592 newsos6) 9593 lt_prog_compiler_pic='-KPIC' 9594 lt_prog_compiler_static='-Bstatic' 9595 ;; 9596 9597 *nto* | *qnx*) 9598 # QNX uses GNU C++, but need to define -shared option too, otherwise 9599 # it will coredump. 9600 lt_prog_compiler_pic='-fPIC -shared' 9601 ;; 9602 9603 osf3* | osf4* | osf5*) 9604 lt_prog_compiler_wl='-Wl,' 9605 # All OSF/1 code is PIC. 9606 lt_prog_compiler_static='-non_shared' 9607 ;; 9608 9609 rdos*) 9610 lt_prog_compiler_static='-non_shared' 9611 ;; 9612 9613 solaris*) 9614 lt_prog_compiler_pic='-KPIC' 9615 lt_prog_compiler_static='-Bstatic' 9616 case $cc_basename in 9617 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9618 lt_prog_compiler_wl='-Qoption ld ';; 9619 *) 9620 lt_prog_compiler_wl='-Wl,';; 9621 esac 9622 ;; 9623 9624 sunos4*) 9625 lt_prog_compiler_wl='-Qoption ld ' 9626 lt_prog_compiler_pic='-PIC' 9627 lt_prog_compiler_static='-Bstatic' 9628 ;; 9629 9630 sysv4 | sysv4.2uw2* | sysv4.3*) 9631 lt_prog_compiler_wl='-Wl,' 9632 lt_prog_compiler_pic='-KPIC' 9633 lt_prog_compiler_static='-Bstatic' 9634 ;; 9635 9636 sysv4*MP*) 9637 if test -d /usr/nec ;then 9638 lt_prog_compiler_pic='-Kconform_pic' 9639 lt_prog_compiler_static='-Bstatic' 9640 fi 9641 ;; 9642 9643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9644 lt_prog_compiler_wl='-Wl,' 9645 lt_prog_compiler_pic='-KPIC' 9646 lt_prog_compiler_static='-Bstatic' 9647 ;; 9648 9649 unicos*) 9650 lt_prog_compiler_wl='-Wl,' 9651 lt_prog_compiler_can_build_shared=no 9652 ;; 9653 9654 uts4*) 9655 lt_prog_compiler_pic='-pic' 9656 lt_prog_compiler_static='-Bstatic' 9657 ;; 9658 9659 *) 9660 lt_prog_compiler_can_build_shared=no 9661 ;; 9662 esac 9663 fi 9664 9665case $host_os in 9666 # For platforms which do not support PIC, -DPIC is meaningless: 9667 *djgpp*) 9668 lt_prog_compiler_pic= 9669 ;; 9670 *) 9671 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9672 ;; 9673esac 9674 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9676$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9677if ${lt_cv_prog_compiler_pic+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9681fi 9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9683$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9684lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9685 9686# 9687# Check to make sure the PIC flag actually works. 9688# 9689if test -n "$lt_prog_compiler_pic"; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9691$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9692if ${lt_cv_prog_compiler_pic_works+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 lt_cv_prog_compiler_pic_works=no 9696 ac_outfile=conftest.$ac_objext 9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9698 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9699 # Insert the option either (1) after the last *FLAGS variable, or 9700 # (2) before a word containing "conftest.", or (3) at the end. 9701 # Note that $ac_compile itself does not contain backslashes and begins 9702 # with a dollar sign (not a hyphen), so the echo should work correctly. 9703 # The option is referenced via a variable to avoid confusing sed. 9704 lt_compile=`echo "$ac_compile" | $SED \ 9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9707 -e 's:$: $lt_compiler_flag:'` 9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9709 (eval "$lt_compile" 2>conftest.err) 9710 ac_status=$? 9711 cat conftest.err >&5 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 if (exit $ac_status) && test -s "$ac_outfile"; then 9714 # The compiler can only warn and ignore the option if not recognized 9715 # So say no if there are warnings other than the usual output. 9716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9719 lt_cv_prog_compiler_pic_works=yes 9720 fi 9721 fi 9722 $RM conftest* 9723 9724fi 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9726$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9727 9728if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9729 case $lt_prog_compiler_pic in 9730 "" | " "*) ;; 9731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9732 esac 9733else 9734 lt_prog_compiler_pic= 9735 lt_prog_compiler_can_build_shared=no 9736fi 9737 9738fi 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750# 9751# Check to make sure the static flag actually works. 9752# 9753wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9755$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9756if ${lt_cv_prog_compiler_static_works+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 lt_cv_prog_compiler_static_works=no 9760 save_LDFLAGS="$LDFLAGS" 9761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9762 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9764 # The linker can only warn and ignore the option if not recognized 9765 # So say no if there are warnings 9766 if test -s conftest.err; then 9767 # Append any errors to the config.log. 9768 cat conftest.err 1>&5 9769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9771 if diff conftest.exp conftest.er2 >/dev/null; then 9772 lt_cv_prog_compiler_static_works=yes 9773 fi 9774 else 9775 lt_cv_prog_compiler_static_works=yes 9776 fi 9777 fi 9778 $RM -r conftest* 9779 LDFLAGS="$save_LDFLAGS" 9780 9781fi 9782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9783$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9784 9785if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9786 : 9787else 9788 lt_prog_compiler_static= 9789fi 9790 9791 9792 9793 9794 9795 9796 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9799if ${lt_cv_prog_compiler_c_o+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 lt_cv_prog_compiler_c_o=no 9803 $RM -r conftest 2>/dev/null 9804 mkdir conftest 9805 cd conftest 9806 mkdir out 9807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9808 9809 lt_compiler_flag="-o out/conftest2.$ac_objext" 9810 # Insert the option either (1) after the last *FLAGS variable, or 9811 # (2) before a word containing "conftest.", or (3) at the end. 9812 # Note that $ac_compile itself does not contain backslashes and begins 9813 # with a dollar sign (not a hyphen), so the echo should work correctly. 9814 lt_compile=`echo "$ac_compile" | $SED \ 9815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9817 -e 's:$: $lt_compiler_flag:'` 9818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9819 (eval "$lt_compile" 2>out/conftest.err) 9820 ac_status=$? 9821 cat out/conftest.err >&5 9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9823 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9824 then 9825 # The compiler can only warn and ignore the option if not recognized 9826 # So say no if there are warnings 9827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9830 lt_cv_prog_compiler_c_o=yes 9831 fi 9832 fi 9833 chmod u+w . 2>&5 9834 $RM conftest* 9835 # SGI C++ compiler will create directory out/ii_files/ for 9836 # template instantiation 9837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9838 $RM out/* && rmdir out 9839 cd .. 9840 $RM -r conftest 9841 $RM conftest* 9842 9843fi 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9845$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9846 9847 9848 9849 9850 9851 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9854if ${lt_cv_prog_compiler_c_o+:} false; then : 9855 $as_echo_n "(cached) " >&6 9856else 9857 lt_cv_prog_compiler_c_o=no 9858 $RM -r conftest 2>/dev/null 9859 mkdir conftest 9860 cd conftest 9861 mkdir out 9862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9863 9864 lt_compiler_flag="-o out/conftest2.$ac_objext" 9865 # Insert the option either (1) after the last *FLAGS variable, or 9866 # (2) before a word containing "conftest.", or (3) at the end. 9867 # Note that $ac_compile itself does not contain backslashes and begins 9868 # with a dollar sign (not a hyphen), so the echo should work correctly. 9869 lt_compile=`echo "$ac_compile" | $SED \ 9870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9872 -e 's:$: $lt_compiler_flag:'` 9873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9874 (eval "$lt_compile" 2>out/conftest.err) 9875 ac_status=$? 9876 cat out/conftest.err >&5 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9878 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9879 then 9880 # The compiler can only warn and ignore the option if not recognized 9881 # So say no if there are warnings 9882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9885 lt_cv_prog_compiler_c_o=yes 9886 fi 9887 fi 9888 chmod u+w . 2>&5 9889 $RM conftest* 9890 # SGI C++ compiler will create directory out/ii_files/ for 9891 # template instantiation 9892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9893 $RM out/* && rmdir out 9894 cd .. 9895 $RM -r conftest 9896 $RM conftest* 9897 9898fi 9899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9900$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9901 9902 9903 9904 9905hard_links="nottested" 9906if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9907 # do not overwrite the value of need_locks provided by the user 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9909$as_echo_n "checking if we can lock with hard links... " >&6; } 9910 hard_links=yes 9911 $RM conftest* 9912 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9913 touch conftest.a 9914 ln conftest.a conftest.b 2>&5 || hard_links=no 9915 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9917$as_echo "$hard_links" >&6; } 9918 if test "$hard_links" = no; then 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9920$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9921 need_locks=warn 9922 fi 9923else 9924 need_locks=no 9925fi 9926 9927 9928 9929 9930 9931 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9933$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9934 9935 runpath_var= 9936 allow_undefined_flag= 9937 always_export_symbols=no 9938 archive_cmds= 9939 archive_expsym_cmds= 9940 compiler_needs_object=no 9941 enable_shared_with_static_runtimes=no 9942 export_dynamic_flag_spec= 9943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9944 hardcode_automatic=no 9945 hardcode_direct=no 9946 hardcode_direct_absolute=no 9947 hardcode_libdir_flag_spec= 9948 hardcode_libdir_separator= 9949 hardcode_minus_L=no 9950 hardcode_shlibpath_var=unsupported 9951 inherit_rpath=no 9952 link_all_deplibs=unknown 9953 module_cmds= 9954 module_expsym_cmds= 9955 old_archive_from_new_cmds= 9956 old_archive_from_expsyms_cmds= 9957 thread_safe_flag_spec= 9958 whole_archive_flag_spec= 9959 # include_expsyms should be a list of space-separated symbols to be *always* 9960 # included in the symbol list 9961 include_expsyms= 9962 # exclude_expsyms can be an extended regexp of symbols to exclude 9963 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9965 # as well as any symbol that contains `d'. 9966 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9968 # platforms (ab)use it in PIC code, but their linkers get confused if 9969 # the symbol is explicitly referenced. Since portable code cannot 9970 # rely on this symbol name, it's probably fine to never include it in 9971 # preloaded symbol tables. 9972 # Exclude shared library initialization/finalization symbols. 9973 extract_expsyms_cmds= 9974 9975 case $host_os in 9976 cygwin* | mingw* | pw32* | cegcc*) 9977 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9978 # When not using gcc, we currently assume that we are using 9979 # Microsoft Visual C++. 9980 if test "$GCC" != yes; then 9981 with_gnu_ld=no 9982 fi 9983 ;; 9984 interix*) 9985 # we just hope/assume this is gcc and not c89 (= MSVC++) 9986 with_gnu_ld=yes 9987 ;; 9988 openbsd*) 9989 with_gnu_ld=no 9990 ;; 9991 linux* | k*bsd*-gnu | gnu*) 9992 link_all_deplibs=no 9993 ;; 9994 esac 9995 9996 ld_shlibs=yes 9997 9998 # On some targets, GNU ld is compatible enough with the native linker 9999 # that we're better off using the native interface for both. 10000 lt_use_gnu_ld_interface=no 10001 if test "$with_gnu_ld" = yes; then 10002 case $host_os in 10003 aix*) 10004 # The AIX port of GNU ld has always aspired to compatibility 10005 # with the native linker. However, as the warning in the GNU ld 10006 # block says, versions before 2.19.5* couldn't really create working 10007 # shared libraries, regardless of the interface used. 10008 case `$LD -v 2>&1` in 10009 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10010 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10011 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10012 *) 10013 lt_use_gnu_ld_interface=yes 10014 ;; 10015 esac 10016 ;; 10017 *) 10018 lt_use_gnu_ld_interface=yes 10019 ;; 10020 esac 10021 fi 10022 10023 if test "$lt_use_gnu_ld_interface" = yes; then 10024 # If archive_cmds runs LD, not CC, wlarc should be empty 10025 wlarc='${wl}' 10026 10027 # Set some defaults for GNU ld with shared library support. These 10028 # are reset later if shared libraries are not supported. Putting them 10029 # here allows them to be overridden if necessary. 10030 runpath_var=LD_RUN_PATH 10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10032 export_dynamic_flag_spec='${wl}--export-dynamic' 10033 # ancient GNU ld didn't support --whole-archive et. al. 10034 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10035 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10036 else 10037 whole_archive_flag_spec= 10038 fi 10039 supports_anon_versioning=no 10040 case `$LD -v 2>&1` in 10041 *GNU\ gold*) supports_anon_versioning=yes ;; 10042 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10043 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10044 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10045 *\ 2.11.*) ;; # other 2.11 versions 10046 *) supports_anon_versioning=yes ;; 10047 esac 10048 10049 # See if GNU ld supports shared libraries. 10050 case $host_os in 10051 aix[3-9]*) 10052 # On AIX/PPC, the GNU linker is very broken 10053 if test "$host_cpu" != ia64; then 10054 ld_shlibs=no 10055 cat <<_LT_EOF 1>&2 10056 10057*** Warning: the GNU linker, at least up to release 2.19, is reported 10058*** to be unable to reliably create shared libraries on AIX. 10059*** Therefore, libtool is disabling shared libraries support. If you 10060*** really care for shared libraries, you may want to install binutils 10061*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10062*** You will then need to restart the configuration process. 10063 10064_LT_EOF 10065 fi 10066 ;; 10067 10068 amigaos*) 10069 case $host_cpu in 10070 powerpc) 10071 # see comment about AmigaOS4 .so support 10072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10073 archive_expsym_cmds='' 10074 ;; 10075 m68k) 10076 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)' 10077 hardcode_libdir_flag_spec='-L$libdir' 10078 hardcode_minus_L=yes 10079 ;; 10080 esac 10081 ;; 10082 10083 beos*) 10084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10085 allow_undefined_flag=unsupported 10086 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10087 # support --undefined. This deserves some investigation. FIXME 10088 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10089 else 10090 ld_shlibs=no 10091 fi 10092 ;; 10093 10094 cygwin* | mingw* | pw32* | cegcc*) 10095 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10096 # as there is no search path for DLLs. 10097 hardcode_libdir_flag_spec='-L$libdir' 10098 export_dynamic_flag_spec='${wl}--export-all-symbols' 10099 allow_undefined_flag=unsupported 10100 always_export_symbols=no 10101 enable_shared_with_static_runtimes=yes 10102 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' 10103 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10104 10105 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10107 # If the export-symbols file already is a .def file (1st line 10108 # is EXPORTS), use it as is; otherwise, prepend... 10109 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10110 cp $export_symbols $output_objdir/$soname.def; 10111 else 10112 echo EXPORTS > $output_objdir/$soname.def; 10113 cat $export_symbols >> $output_objdir/$soname.def; 10114 fi~ 10115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10116 else 10117 ld_shlibs=no 10118 fi 10119 ;; 10120 10121 haiku*) 10122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10123 link_all_deplibs=yes 10124 ;; 10125 10126 interix[3-9]*) 10127 hardcode_direct=no 10128 hardcode_shlibpath_var=no 10129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10130 export_dynamic_flag_spec='${wl}-E' 10131 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10132 # Instead, shared libraries are loaded at an image base (0x10000000 by 10133 # default) and relocated if they conflict, which is a slow very memory 10134 # consuming and fragmenting process. To avoid this, we pick a random, 10135 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10136 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10137 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10138 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' 10139 ;; 10140 10141 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10142 tmp_diet=no 10143 if test "$host_os" = linux-dietlibc; then 10144 case $cc_basename in 10145 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10146 esac 10147 fi 10148 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10149 && test "$tmp_diet" = no 10150 then 10151 tmp_addflag=' $pic_flag' 10152 tmp_sharedflag='-shared' 10153 case $cc_basename,$host_cpu in 10154 pgcc*) # Portland Group C compiler 10155 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' 10156 tmp_addflag=' $pic_flag' 10157 ;; 10158 pgf77* | pgf90* | pgf95* | pgfortran*) 10159 # Portland Group f77 and f90 compilers 10160 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' 10161 tmp_addflag=' $pic_flag -Mnomain' ;; 10162 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10163 tmp_addflag=' -i_dynamic' ;; 10164 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10165 tmp_addflag=' -i_dynamic -nofor_main' ;; 10166 ifc* | ifort*) # Intel Fortran compiler 10167 tmp_addflag=' -nofor_main' ;; 10168 lf95*) # Lahey Fortran 8.1 10169 whole_archive_flag_spec= 10170 tmp_sharedflag='--shared' ;; 10171 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10172 tmp_sharedflag='-qmkshrobj' 10173 tmp_addflag= ;; 10174 nvcc*) # Cuda Compiler Driver 2.2 10175 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' 10176 compiler_needs_object=yes 10177 ;; 10178 esac 10179 case `$CC -V 2>&1 | sed 5q` in 10180 *Sun\ C*) # Sun C 5.9 10181 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' 10182 compiler_needs_object=yes 10183 tmp_sharedflag='-G' ;; 10184 *Sun\ F*) # Sun Fortran 8.3 10185 tmp_sharedflag='-G' ;; 10186 esac 10187 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10188 10189 if test "x$supports_anon_versioning" = xyes; then 10190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10192 echo "local: *; };" >> $output_objdir/$libname.ver~ 10193 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10194 fi 10195 10196 case $cc_basename in 10197 xlf* | bgf* | bgxlf* | mpixlf*) 10198 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10199 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10201 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10202 if test "x$supports_anon_versioning" = xyes; then 10203 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10205 echo "local: *; };" >> $output_objdir/$libname.ver~ 10206 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10207 fi 10208 ;; 10209 esac 10210 else 10211 ld_shlibs=no 10212 fi 10213 ;; 10214 10215 netbsd* | netbsdelf*-gnu) 10216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10217 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10218 wlarc= 10219 else 10220 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10221 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10222 fi 10223 ;; 10224 10225 solaris*) 10226 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10227 ld_shlibs=no 10228 cat <<_LT_EOF 1>&2 10229 10230*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10231*** create shared libraries on Solaris systems. Therefore, libtool 10232*** is disabling shared libraries support. We urge you to upgrade GNU 10233*** binutils to release 2.9.1 or newer. Another option is to modify 10234*** your PATH or compiler configuration so that the native linker is 10235*** used, and then restart. 10236 10237_LT_EOF 10238 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10241 else 10242 ld_shlibs=no 10243 fi 10244 ;; 10245 10246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10247 case `$LD -v 2>&1` in 10248 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10249 ld_shlibs=no 10250 cat <<_LT_EOF 1>&2 10251 10252*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10253*** reliably create shared libraries on SCO systems. Therefore, libtool 10254*** is disabling shared libraries support. We urge you to upgrade GNU 10255*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10256*** your PATH or compiler configuration so that the native linker is 10257*** used, and then restart. 10258 10259_LT_EOF 10260 ;; 10261 *) 10262 # For security reasons, it is highly recommended that you always 10263 # use absolute paths for naming shared libraries, and exclude the 10264 # DT_RUNPATH tag from executables and libraries. But doing so 10265 # requires that you compile everything twice, which is a pain. 10266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10270 else 10271 ld_shlibs=no 10272 fi 10273 ;; 10274 esac 10275 ;; 10276 10277 sunos4*) 10278 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10279 wlarc= 10280 hardcode_direct=yes 10281 hardcode_shlibpath_var=no 10282 ;; 10283 10284 *) 10285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10286 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10287 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10288 else 10289 ld_shlibs=no 10290 fi 10291 ;; 10292 esac 10293 10294 if test "$ld_shlibs" = no; then 10295 runpath_var= 10296 hardcode_libdir_flag_spec= 10297 export_dynamic_flag_spec= 10298 whole_archive_flag_spec= 10299 fi 10300 else 10301 # PORTME fill in a description of your system's linker (not GNU ld) 10302 case $host_os in 10303 aix3*) 10304 allow_undefined_flag=unsupported 10305 always_export_symbols=yes 10306 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' 10307 # Note: this linker hardcodes the directories in LIBPATH if there 10308 # are no directories specified by -L. 10309 hardcode_minus_L=yes 10310 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10311 # Neither direct hardcoding nor static linking is supported with a 10312 # broken collect2. 10313 hardcode_direct=unsupported 10314 fi 10315 ;; 10316 10317 aix[4-9]*) 10318 if test "$host_cpu" = ia64; then 10319 # On IA64, the linker does run time linking by default, so we don't 10320 # have to do anything special. 10321 aix_use_runtimelinking=no 10322 exp_sym_flag='-Bexport' 10323 no_entry_flag="" 10324 else 10325 # If we're using GNU nm, then we don't want the "-C" option. 10326 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10327 # Also, AIX nm treats weak defined symbols like other global 10328 # defined symbols, whereas GNU nm marks them as "W". 10329 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10330 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10331 else 10332 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10333 fi 10334 aix_use_runtimelinking=no 10335 10336 # Test if we are trying to use run time linking or normal 10337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10338 # need to do runtime linking. 10339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10340 for ld_flag in $LDFLAGS; do 10341 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10342 aix_use_runtimelinking=yes 10343 break 10344 fi 10345 done 10346 ;; 10347 esac 10348 10349 exp_sym_flag='-bexport' 10350 no_entry_flag='-bnoentry' 10351 fi 10352 10353 # When large executables or shared objects are built, AIX ld can 10354 # have problems creating the table of contents. If linking a library 10355 # or program results in "error TOC overflow" add -mminimal-toc to 10356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10358 10359 archive_cmds='' 10360 hardcode_direct=yes 10361 hardcode_direct_absolute=yes 10362 hardcode_libdir_separator=':' 10363 link_all_deplibs=yes 10364 file_list_spec='${wl}-f,' 10365 10366 if test "$GCC" = yes; then 10367 case $host_os in aix4.[012]|aix4.[012].*) 10368 # We only want to do this on AIX 4.2 and lower, the check 10369 # below for broken collect2 doesn't work under 4.3+ 10370 collect2name=`${CC} -print-prog-name=collect2` 10371 if test -f "$collect2name" && 10372 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10373 then 10374 # We have reworked collect2 10375 : 10376 else 10377 # We have old collect2 10378 hardcode_direct=unsupported 10379 # It fails to find uninstalled libraries when the uninstalled 10380 # path is not listed in the libpath. Setting hardcode_minus_L 10381 # to unsupported forces relinking 10382 hardcode_minus_L=yes 10383 hardcode_libdir_flag_spec='-L$libdir' 10384 hardcode_libdir_separator= 10385 fi 10386 ;; 10387 esac 10388 shared_flag='-shared' 10389 if test "$aix_use_runtimelinking" = yes; then 10390 shared_flag="$shared_flag "'${wl}-G' 10391 fi 10392 link_all_deplibs=no 10393 else 10394 # not using gcc 10395 if test "$host_cpu" = ia64; then 10396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10397 # chokes on -Wl,-G. The following line is correct: 10398 shared_flag='-G' 10399 else 10400 if test "$aix_use_runtimelinking" = yes; then 10401 shared_flag='${wl}-G' 10402 else 10403 shared_flag='${wl}-bM:SRE' 10404 fi 10405 fi 10406 fi 10407 10408 export_dynamic_flag_spec='${wl}-bexpall' 10409 # It seems that -bexpall does not export symbols beginning with 10410 # underscore (_), so it is better to generate a list of symbols to export. 10411 always_export_symbols=yes 10412 if test "$aix_use_runtimelinking" = yes; then 10413 # Warning - without using the other runtime loading flags (-brtl), 10414 # -berok will link without error, but may produce a broken library. 10415 allow_undefined_flag='-berok' 10416 # Determine the default libpath from the value encoded in an 10417 # empty executable. 10418 if test "${lt_cv_aix_libpath+set}" = set; then 10419 aix_libpath=$lt_cv_aix_libpath 10420else 10421 if ${lt_cv_aix_libpath_+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423else 10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10425/* end confdefs.h. */ 10426 10427int 10428main () 10429{ 10430 10431 ; 10432 return 0; 10433} 10434_ACEOF 10435if ac_fn_c_try_link "$LINENO"; then : 10436 10437 lt_aix_libpath_sed=' 10438 /Import File Strings/,/^$/ { 10439 /^0/ { 10440 s/^0 *\([^ ]*\) *$/\1/ 10441 p 10442 } 10443 }' 10444 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10445 # Check for a 64-bit object if we didn't find anything. 10446 if test -z "$lt_cv_aix_libpath_"; then 10447 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10448 fi 10449fi 10450rm -f core conftest.err conftest.$ac_objext \ 10451 conftest$ac_exeext conftest.$ac_ext 10452 if test -z "$lt_cv_aix_libpath_"; then 10453 lt_cv_aix_libpath_="/usr/lib:/lib" 10454 fi 10455 10456fi 10457 10458 aix_libpath=$lt_cv_aix_libpath_ 10459fi 10460 10461 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10462 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10463 else 10464 if test "$host_cpu" = ia64; then 10465 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10466 allow_undefined_flag="-z nodefs" 10467 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" 10468 else 10469 # Determine the default libpath from the value encoded in an 10470 # empty executable. 10471 if test "${lt_cv_aix_libpath+set}" = set; then 10472 aix_libpath=$lt_cv_aix_libpath 10473else 10474 if ${lt_cv_aix_libpath_+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479 10480int 10481main () 10482{ 10483 10484 ; 10485 return 0; 10486} 10487_ACEOF 10488if ac_fn_c_try_link "$LINENO"; then : 10489 10490 lt_aix_libpath_sed=' 10491 /Import File Strings/,/^$/ { 10492 /^0/ { 10493 s/^0 *\([^ ]*\) *$/\1/ 10494 p 10495 } 10496 }' 10497 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10498 # Check for a 64-bit object if we didn't find anything. 10499 if test -z "$lt_cv_aix_libpath_"; then 10500 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10501 fi 10502fi 10503rm -f core conftest.err conftest.$ac_objext \ 10504 conftest$ac_exeext conftest.$ac_ext 10505 if test -z "$lt_cv_aix_libpath_"; then 10506 lt_cv_aix_libpath_="/usr/lib:/lib" 10507 fi 10508 10509fi 10510 10511 aix_libpath=$lt_cv_aix_libpath_ 10512fi 10513 10514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10515 # Warning - without using the other run time loading flags, 10516 # -berok will link without error, but may produce a broken library. 10517 no_undefined_flag=' ${wl}-bernotok' 10518 allow_undefined_flag=' ${wl}-berok' 10519 if test "$with_gnu_ld" = yes; then 10520 # We only use this code for GNU lds that support --whole-archive. 10521 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10522 else 10523 # Exported symbols can be pulled into shared objects from archives 10524 whole_archive_flag_spec='$convenience' 10525 fi 10526 archive_cmds_need_lc=yes 10527 # This is similar to how AIX traditionally builds its shared libraries. 10528 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10529 fi 10530 fi 10531 ;; 10532 10533 amigaos*) 10534 case $host_cpu in 10535 powerpc) 10536 # see comment about AmigaOS4 .so support 10537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10538 archive_expsym_cmds='' 10539 ;; 10540 m68k) 10541 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)' 10542 hardcode_libdir_flag_spec='-L$libdir' 10543 hardcode_minus_L=yes 10544 ;; 10545 esac 10546 ;; 10547 10548 bsdi[45]*) 10549 export_dynamic_flag_spec=-rdynamic 10550 ;; 10551 10552 cygwin* | mingw* | pw32* | cegcc*) 10553 # When not using gcc, we currently assume that we are using 10554 # Microsoft Visual C++. 10555 # hardcode_libdir_flag_spec is actually meaningless, as there is 10556 # no search path for DLLs. 10557 case $cc_basename in 10558 cl*) 10559 # Native MSVC 10560 hardcode_libdir_flag_spec=' ' 10561 allow_undefined_flag=unsupported 10562 always_export_symbols=yes 10563 file_list_spec='@' 10564 # Tell ltmain to make .lib files, not .a files. 10565 libext=lib 10566 # Tell ltmain to make .dll files, not .so files. 10567 shrext_cmds=".dll" 10568 # FIXME: Setting linknames here is a bad hack. 10569 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10570 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10571 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10572 else 10573 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10574 fi~ 10575 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10576 linknames=' 10577 # The linker will not automatically build a static lib if we build a DLL. 10578 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10579 enable_shared_with_static_runtimes=yes 10580 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10582 # Don't use ranlib 10583 old_postinstall_cmds='chmod 644 $oldlib' 10584 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10585 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10586 case $lt_outputfile in 10587 *.exe|*.EXE) ;; 10588 *) 10589 lt_outputfile="$lt_outputfile.exe" 10590 lt_tool_outputfile="$lt_tool_outputfile.exe" 10591 ;; 10592 esac~ 10593 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10594 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10595 $RM "$lt_outputfile.manifest"; 10596 fi' 10597 ;; 10598 *) 10599 # Assume MSVC wrapper 10600 hardcode_libdir_flag_spec=' ' 10601 allow_undefined_flag=unsupported 10602 # Tell ltmain to make .lib files, not .a files. 10603 libext=lib 10604 # Tell ltmain to make .dll files, not .so files. 10605 shrext_cmds=".dll" 10606 # FIXME: Setting linknames here is a bad hack. 10607 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10608 # The linker will automatically build a .lib file if we build a DLL. 10609 old_archive_from_new_cmds='true' 10610 # FIXME: Should let the user specify the lib program. 10611 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10612 enable_shared_with_static_runtimes=yes 10613 ;; 10614 esac 10615 ;; 10616 10617 darwin* | rhapsody*) 10618 10619 10620 archive_cmds_need_lc=no 10621 hardcode_direct=no 10622 hardcode_automatic=yes 10623 hardcode_shlibpath_var=unsupported 10624 if test "$lt_cv_ld_force_load" = "yes"; then 10625 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\"`' 10626 10627 else 10628 whole_archive_flag_spec='' 10629 fi 10630 link_all_deplibs=yes 10631 allow_undefined_flag="$_lt_dar_allow_undefined" 10632 case $cc_basename in 10633 ifort*) _lt_dar_can_shared=yes ;; 10634 *) _lt_dar_can_shared=$GCC ;; 10635 esac 10636 if test "$_lt_dar_can_shared" = "yes"; then 10637 output_verbose_link_cmd=func_echo_all 10638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10640 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}" 10641 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}" 10642 10643 else 10644 ld_shlibs=no 10645 fi 10646 10647 ;; 10648 10649 dgux*) 10650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10651 hardcode_libdir_flag_spec='-L$libdir' 10652 hardcode_shlibpath_var=no 10653 ;; 10654 10655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10656 # support. Future versions do this automatically, but an explicit c++rt0.o 10657 # does not break anything, and helps significantly (at the cost of a little 10658 # extra space). 10659 freebsd2.2*) 10660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10661 hardcode_libdir_flag_spec='-R$libdir' 10662 hardcode_direct=yes 10663 hardcode_shlibpath_var=no 10664 ;; 10665 10666 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10667 freebsd2.*) 10668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10669 hardcode_direct=yes 10670 hardcode_minus_L=yes 10671 hardcode_shlibpath_var=no 10672 ;; 10673 10674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10675 freebsd* | dragonfly*) 10676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10677 hardcode_libdir_flag_spec='-R$libdir' 10678 hardcode_direct=yes 10679 hardcode_shlibpath_var=no 10680 ;; 10681 10682 hpux9*) 10683 if test "$GCC" = yes; then 10684 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10685 else 10686 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10687 fi 10688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10689 hardcode_libdir_separator=: 10690 hardcode_direct=yes 10691 10692 # hardcode_minus_L: Not really in the search PATH, 10693 # but as the default location of the library. 10694 hardcode_minus_L=yes 10695 export_dynamic_flag_spec='${wl}-E' 10696 ;; 10697 10698 hpux10*) 10699 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10700 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10701 else 10702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10703 fi 10704 if test "$with_gnu_ld" = no; then 10705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10706 hardcode_libdir_separator=: 10707 hardcode_direct=yes 10708 hardcode_direct_absolute=yes 10709 export_dynamic_flag_spec='${wl}-E' 10710 # hardcode_minus_L: Not really in the search PATH, 10711 # but as the default location of the library. 10712 hardcode_minus_L=yes 10713 fi 10714 ;; 10715 10716 hpux11*) 10717 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10718 case $host_cpu in 10719 hppa*64*) 10720 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10721 ;; 10722 ia64*) 10723 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10724 ;; 10725 *) 10726 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 esac 10729 else 10730 case $host_cpu in 10731 hppa*64*) 10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10733 ;; 10734 ia64*) 10735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10736 ;; 10737 *) 10738 10739 # Older versions of the 11.00 compiler do not understand -b yet 10740 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10742$as_echo_n "checking if $CC understands -b... " >&6; } 10743if ${lt_cv_prog_compiler__b+:} false; then : 10744 $as_echo_n "(cached) " >&6 10745else 10746 lt_cv_prog_compiler__b=no 10747 save_LDFLAGS="$LDFLAGS" 10748 LDFLAGS="$LDFLAGS -b" 10749 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10751 # The linker can only warn and ignore the option if not recognized 10752 # So say no if there are warnings 10753 if test -s conftest.err; then 10754 # Append any errors to the config.log. 10755 cat conftest.err 1>&5 10756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10758 if diff conftest.exp conftest.er2 >/dev/null; then 10759 lt_cv_prog_compiler__b=yes 10760 fi 10761 else 10762 lt_cv_prog_compiler__b=yes 10763 fi 10764 fi 10765 $RM -r conftest* 10766 LDFLAGS="$save_LDFLAGS" 10767 10768fi 10769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10770$as_echo "$lt_cv_prog_compiler__b" >&6; } 10771 10772if test x"$lt_cv_prog_compiler__b" = xyes; then 10773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10774else 10775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10776fi 10777 10778 ;; 10779 esac 10780 fi 10781 if test "$with_gnu_ld" = no; then 10782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10783 hardcode_libdir_separator=: 10784 10785 case $host_cpu in 10786 hppa*64*|ia64*) 10787 hardcode_direct=no 10788 hardcode_shlibpath_var=no 10789 ;; 10790 *) 10791 hardcode_direct=yes 10792 hardcode_direct_absolute=yes 10793 export_dynamic_flag_spec='${wl}-E' 10794 10795 # hardcode_minus_L: Not really in the search PATH, 10796 # but as the default location of the library. 10797 hardcode_minus_L=yes 10798 ;; 10799 esac 10800 fi 10801 ;; 10802 10803 irix5* | irix6* | nonstopux*) 10804 if test "$GCC" = yes; then 10805 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' 10806 # Try to use the -exported_symbol ld option, if it does not 10807 # work, assume that -exports_file does not work either and 10808 # implicitly export all symbols. 10809 # This should be the same for all languages, so no per-tag cache variable. 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10811$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10812if ${lt_cv_irix_exported_symbol+:} false; then : 10813 $as_echo_n "(cached) " >&6 10814else 10815 save_LDFLAGS="$LDFLAGS" 10816 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819int foo (void) { return 0; } 10820_ACEOF 10821if ac_fn_c_try_link "$LINENO"; then : 10822 lt_cv_irix_exported_symbol=yes 10823else 10824 lt_cv_irix_exported_symbol=no 10825fi 10826rm -f core conftest.err conftest.$ac_objext \ 10827 conftest$ac_exeext conftest.$ac_ext 10828 LDFLAGS="$save_LDFLAGS" 10829fi 10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10831$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10832 if test "$lt_cv_irix_exported_symbol" = yes; then 10833 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' 10834 fi 10835 else 10836 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' 10837 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' 10838 fi 10839 archive_cmds_need_lc='no' 10840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10841 hardcode_libdir_separator=: 10842 inherit_rpath=yes 10843 link_all_deplibs=yes 10844 ;; 10845 10846 netbsd* | netbsdelf*-gnu) 10847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10849 else 10850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10851 fi 10852 hardcode_libdir_flag_spec='-R$libdir' 10853 hardcode_direct=yes 10854 hardcode_shlibpath_var=no 10855 ;; 10856 10857 newsos6) 10858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10859 hardcode_direct=yes 10860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10861 hardcode_libdir_separator=: 10862 hardcode_shlibpath_var=no 10863 ;; 10864 10865 *nto* | *qnx*) 10866 ;; 10867 10868 openbsd*) 10869 if test -f /usr/libexec/ld.so; then 10870 hardcode_direct=yes 10871 hardcode_shlibpath_var=no 10872 hardcode_direct_absolute=yes 10873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10875 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10877 export_dynamic_flag_spec='${wl}-E' 10878 else 10879 case $host_os in 10880 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10882 hardcode_libdir_flag_spec='-R$libdir' 10883 ;; 10884 *) 10885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10886 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10887 ;; 10888 esac 10889 fi 10890 else 10891 ld_shlibs=no 10892 fi 10893 ;; 10894 10895 os2*) 10896 hardcode_libdir_flag_spec='-L$libdir' 10897 hardcode_minus_L=yes 10898 allow_undefined_flag=unsupported 10899 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10900 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10901 ;; 10902 10903 osf3*) 10904 if test "$GCC" = yes; then 10905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10906 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' 10907 else 10908 allow_undefined_flag=' -expect_unresolved \*' 10909 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' 10910 fi 10911 archive_cmds_need_lc='no' 10912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10913 hardcode_libdir_separator=: 10914 ;; 10915 10916 osf4* | osf5*) # as osf3* with the addition of -msym flag 10917 if test "$GCC" = yes; then 10918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10919 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' 10920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10921 else 10922 allow_undefined_flag=' -expect_unresolved \*' 10923 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' 10924 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~ 10925 $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' 10926 10927 # Both c and cxx compiler support -rpath directly 10928 hardcode_libdir_flag_spec='-rpath $libdir' 10929 fi 10930 archive_cmds_need_lc='no' 10931 hardcode_libdir_separator=: 10932 ;; 10933 10934 solaris*) 10935 no_undefined_flag=' -z defs' 10936 if test "$GCC" = yes; then 10937 wlarc='${wl}' 10938 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10940 $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' 10941 else 10942 case `$CC -V 2>&1` in 10943 *"Compilers 5.0"*) 10944 wlarc='' 10945 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10948 ;; 10949 *) 10950 wlarc='${wl}' 10951 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10953 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10954 ;; 10955 esac 10956 fi 10957 hardcode_libdir_flag_spec='-R$libdir' 10958 hardcode_shlibpath_var=no 10959 case $host_os in 10960 solaris2.[0-5] | solaris2.[0-5].*) ;; 10961 *) 10962 # The compiler driver will combine and reorder linker options, 10963 # but understands `-z linker_flag'. GCC discards it without `$wl', 10964 # but is careful enough not to reorder. 10965 # Supported since Solaris 2.6 (maybe 2.5.1?) 10966 if test "$GCC" = yes; then 10967 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10968 else 10969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10970 fi 10971 ;; 10972 esac 10973 link_all_deplibs=yes 10974 ;; 10975 10976 sunos4*) 10977 if test "x$host_vendor" = xsequent; then 10978 # Use $CC to link under sequent, because it throws in some extra .o 10979 # files that make .init and .fini sections work. 10980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10981 else 10982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10983 fi 10984 hardcode_libdir_flag_spec='-L$libdir' 10985 hardcode_direct=yes 10986 hardcode_minus_L=yes 10987 hardcode_shlibpath_var=no 10988 ;; 10989 10990 sysv4) 10991 case $host_vendor in 10992 sni) 10993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10994 hardcode_direct=yes # is this really true??? 10995 ;; 10996 siemens) 10997 ## LD is ld it makes a PLAMLIB 10998 ## CC just makes a GrossModule. 10999 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11000 reload_cmds='$CC -r -o $output$reload_objs' 11001 hardcode_direct=no 11002 ;; 11003 motorola) 11004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11005 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11006 ;; 11007 esac 11008 runpath_var='LD_RUN_PATH' 11009 hardcode_shlibpath_var=no 11010 ;; 11011 11012 sysv4.3*) 11013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11014 hardcode_shlibpath_var=no 11015 export_dynamic_flag_spec='-Bexport' 11016 ;; 11017 11018 sysv4*MP*) 11019 if test -d /usr/nec; then 11020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11021 hardcode_shlibpath_var=no 11022 runpath_var=LD_RUN_PATH 11023 hardcode_runpath_var=yes 11024 ld_shlibs=yes 11025 fi 11026 ;; 11027 11028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11029 no_undefined_flag='${wl}-z,text' 11030 archive_cmds_need_lc=no 11031 hardcode_shlibpath_var=no 11032 runpath_var='LD_RUN_PATH' 11033 11034 if test "$GCC" = yes; then 11035 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11036 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11037 else 11038 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11039 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11040 fi 11041 ;; 11042 11043 sysv5* | sco3.2v5* | sco5v6*) 11044 # Note: We can NOT use -z defs as we might desire, because we do not 11045 # link with -lc, and that would cause any symbols used from libc to 11046 # always be unresolved, which means just about no library would 11047 # ever link correctly. If we're not using GNU ld we use -z text 11048 # though, which does catch some bad symbols but isn't as heavy-handed 11049 # as -z defs. 11050 no_undefined_flag='${wl}-z,text' 11051 allow_undefined_flag='${wl}-z,nodefs' 11052 archive_cmds_need_lc=no 11053 hardcode_shlibpath_var=no 11054 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11055 hardcode_libdir_separator=':' 11056 link_all_deplibs=yes 11057 export_dynamic_flag_spec='${wl}-Bexport' 11058 runpath_var='LD_RUN_PATH' 11059 11060 if test "$GCC" = yes; then 11061 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11063 else 11064 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11065 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11066 fi 11067 ;; 11068 11069 uts4*) 11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11071 hardcode_libdir_flag_spec='-L$libdir' 11072 hardcode_shlibpath_var=no 11073 ;; 11074 11075 *) 11076 ld_shlibs=no 11077 ;; 11078 esac 11079 11080 if test x$host_vendor = xsni; then 11081 case $host in 11082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11083 export_dynamic_flag_spec='${wl}-Blargedynsym' 11084 ;; 11085 esac 11086 fi 11087 fi 11088 11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11090$as_echo "$ld_shlibs" >&6; } 11091test "$ld_shlibs" = no && can_build_shared=no 11092 11093with_gnu_ld=$with_gnu_ld 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109# 11110# Do we need to explicitly link libc? 11111# 11112case "x$archive_cmds_need_lc" in 11113x|xyes) 11114 # Assume -lc should be added 11115 archive_cmds_need_lc=yes 11116 11117 if test "$enable_shared" = yes && test "$GCC" = yes; then 11118 case $archive_cmds in 11119 *'~'*) 11120 # FIXME: we may have to deal with multi-command sequences. 11121 ;; 11122 '$CC '*) 11123 # Test whether the compiler implicitly links with -lc since on some 11124 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11125 # to ld, don't add -lc before -lgcc. 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11128if ${lt_cv_archive_cmds_need_lc+:} false; then : 11129 $as_echo_n "(cached) " >&6 11130else 11131 $RM conftest* 11132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11133 11134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11135 (eval $ac_compile) 2>&5 11136 ac_status=$? 11137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11138 test $ac_status = 0; } 2>conftest.err; then 11139 soname=conftest 11140 lib=conftest 11141 libobjs=conftest.$ac_objext 11142 deplibs= 11143 wl=$lt_prog_compiler_wl 11144 pic_flag=$lt_prog_compiler_pic 11145 compiler_flags=-v 11146 linker_flags=-v 11147 verstring= 11148 output_objdir=. 11149 libname=conftest 11150 lt_save_allow_undefined_flag=$allow_undefined_flag 11151 allow_undefined_flag= 11152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11153 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11154 ac_status=$? 11155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11156 test $ac_status = 0; } 11157 then 11158 lt_cv_archive_cmds_need_lc=no 11159 else 11160 lt_cv_archive_cmds_need_lc=yes 11161 fi 11162 allow_undefined_flag=$lt_save_allow_undefined_flag 11163 else 11164 cat conftest.err 1>&5 11165 fi 11166 $RM conftest* 11167 11168fi 11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11170$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11171 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11172 ;; 11173 esac 11174 fi 11175 ;; 11176esac 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11330$as_echo_n "checking dynamic linker characteristics... " >&6; } 11331 11332if test "$GCC" = yes; then 11333 case $host_os in 11334 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11335 *) lt_awk_arg="/^libraries:/" ;; 11336 esac 11337 case $host_os in 11338 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11339 *) lt_sed_strip_eq="s,=/,/,g" ;; 11340 esac 11341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11342 case $lt_search_path_spec in 11343 *\;*) 11344 # if the path contains ";" then we assume it to be the separator 11345 # otherwise default to the standard path separator (i.e. ":") - it is 11346 # assumed that no part of a normal pathname contains ";" but that should 11347 # okay in the real world where ";" in dirpaths is itself problematic. 11348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11349 ;; 11350 *) 11351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11352 ;; 11353 esac 11354 # Ok, now we have the path, separated by spaces, we can step through it 11355 # and add multilib dir if necessary. 11356 lt_tmp_lt_search_path_spec= 11357 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11358 for lt_sys_path in $lt_search_path_spec; do 11359 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11361 else 11362 test -d "$lt_sys_path" && \ 11363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11364 fi 11365 done 11366 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11367BEGIN {RS=" "; FS="/|\n";} { 11368 lt_foo=""; 11369 lt_count=0; 11370 for (lt_i = NF; lt_i > 0; lt_i--) { 11371 if ($lt_i != "" && $lt_i != ".") { 11372 if ($lt_i == "..") { 11373 lt_count++; 11374 } else { 11375 if (lt_count == 0) { 11376 lt_foo="/" $lt_i lt_foo; 11377 } else { 11378 lt_count--; 11379 } 11380 } 11381 } 11382 } 11383 if (lt_foo != "") { lt_freq[lt_foo]++; } 11384 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11385}'` 11386 # AWK program above erroneously prepends '/' to C:/dos/paths 11387 # for these hosts. 11388 case $host_os in 11389 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11390 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11391 esac 11392 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11393else 11394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11395fi 11396library_names_spec= 11397libname_spec='lib$name' 11398soname_spec= 11399shrext_cmds=".so" 11400postinstall_cmds= 11401postuninstall_cmds= 11402finish_cmds= 11403finish_eval= 11404shlibpath_var= 11405shlibpath_overrides_runpath=unknown 11406version_type=none 11407dynamic_linker="$host_os ld.so" 11408sys_lib_dlsearch_path_spec="/lib /usr/lib" 11409need_lib_prefix=unknown 11410hardcode_into_libs=no 11411 11412# when you set need_version to no, make sure it does not cause -set_version 11413# flags to be left without arguments 11414need_version=unknown 11415 11416case $host_os in 11417aix3*) 11418 version_type=linux # correct to gnu/linux during the next big refactor 11419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11420 shlibpath_var=LIBPATH 11421 11422 # AIX 3 has no versioning support, so we append a major version to the name. 11423 soname_spec='${libname}${release}${shared_ext}$major' 11424 ;; 11425 11426aix[4-9]*) 11427 version_type=linux # correct to gnu/linux during the next big refactor 11428 need_lib_prefix=no 11429 need_version=no 11430 hardcode_into_libs=yes 11431 if test "$host_cpu" = ia64; then 11432 # AIX 5 supports IA64 11433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11434 shlibpath_var=LD_LIBRARY_PATH 11435 else 11436 # With GCC up to 2.95.x, collect2 would create an import file 11437 # for dependence libraries. The import file would start with 11438 # the line `#! .'. This would cause the generated library to 11439 # depend on `.', always an invalid library. This was fixed in 11440 # development snapshots of GCC prior to 3.0. 11441 case $host_os in 11442 aix4 | aix4.[01] | aix4.[01].*) 11443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11444 echo ' yes ' 11445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11446 : 11447 else 11448 can_build_shared=no 11449 fi 11450 ;; 11451 esac 11452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11453 # soname into executable. Probably we can add versioning support to 11454 # collect2, so additional links can be useful in future. 11455 if test "$aix_use_runtimelinking" = yes; then 11456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11457 # instead of lib<name>.a to let people know that these are not 11458 # typical AIX shared libraries. 11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11460 else 11461 # We preserve .a as extension for shared libraries through AIX4.2 11462 # and later when we are not doing run time linking. 11463 library_names_spec='${libname}${release}.a $libname.a' 11464 soname_spec='${libname}${release}${shared_ext}$major' 11465 fi 11466 shlibpath_var=LIBPATH 11467 fi 11468 ;; 11469 11470amigaos*) 11471 case $host_cpu in 11472 powerpc) 11473 # Since July 2007 AmigaOS4 officially supports .so libraries. 11474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11476 ;; 11477 m68k) 11478 library_names_spec='$libname.ixlibrary $libname.a' 11479 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11480 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11481 ;; 11482 esac 11483 ;; 11484 11485beos*) 11486 library_names_spec='${libname}${shared_ext}' 11487 dynamic_linker="$host_os ld.so" 11488 shlibpath_var=LIBRARY_PATH 11489 ;; 11490 11491bsdi[45]*) 11492 version_type=linux # correct to gnu/linux during the next big refactor 11493 need_version=no 11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11495 soname_spec='${libname}${release}${shared_ext}$major' 11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11497 shlibpath_var=LD_LIBRARY_PATH 11498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11500 # the default ld.so.conf also contains /usr/contrib/lib and 11501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11502 # libtool to hard-code these into programs 11503 ;; 11504 11505cygwin* | mingw* | pw32* | cegcc*) 11506 version_type=windows 11507 shrext_cmds=".dll" 11508 need_version=no 11509 need_lib_prefix=no 11510 11511 case $GCC,$cc_basename in 11512 yes,*) 11513 # gcc 11514 library_names_spec='$libname.dll.a' 11515 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11516 postinstall_cmds='base_file=`basename \${file}`~ 11517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11518 dldir=$destdir/`dirname \$dlpath`~ 11519 test -d \$dldir || mkdir -p \$dldir~ 11520 $install_prog $dir/$dlname \$dldir/$dlname~ 11521 chmod a+x \$dldir/$dlname~ 11522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11524 fi' 11525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11526 dlpath=$dir/\$dldll~ 11527 $RM \$dlpath' 11528 shlibpath_overrides_runpath=yes 11529 11530 case $host_os in 11531 cygwin*) 11532 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11534 11535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11536 ;; 11537 mingw* | cegcc*) 11538 # MinGW DLLs use traditional 'lib' prefix 11539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11540 ;; 11541 pw32*) 11542 # pw32 DLLs use 'pw' prefix rather than 'lib' 11543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11544 ;; 11545 esac 11546 dynamic_linker='Win32 ld.exe' 11547 ;; 11548 11549 *,cl*) 11550 # Native MSVC 11551 libname_spec='$name' 11552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11553 library_names_spec='${libname}.dll.lib' 11554 11555 case $build_os in 11556 mingw*) 11557 sys_lib_search_path_spec= 11558 lt_save_ifs=$IFS 11559 IFS=';' 11560 for lt_path in $LIB 11561 do 11562 IFS=$lt_save_ifs 11563 # Let DOS variable expansion print the short 8.3 style file name. 11564 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11565 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11566 done 11567 IFS=$lt_save_ifs 11568 # Convert to MSYS style. 11569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11570 ;; 11571 cygwin*) 11572 # Convert to unix form, then to dos form, then back to unix form 11573 # but this time dos style (no spaces!) so that the unix form looks 11574 # like /cygdrive/c/PROGRA~1:/cygdr... 11575 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11576 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11577 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11578 ;; 11579 *) 11580 sys_lib_search_path_spec="$LIB" 11581 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11582 # It is most probably a Windows format PATH. 11583 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11584 else 11585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11586 fi 11587 # FIXME: find the short name or the path components, as spaces are 11588 # common. (e.g. "Program Files" -> "PROGRA~1") 11589 ;; 11590 esac 11591 11592 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11593 postinstall_cmds='base_file=`basename \${file}`~ 11594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11595 dldir=$destdir/`dirname \$dlpath`~ 11596 test -d \$dldir || mkdir -p \$dldir~ 11597 $install_prog $dir/$dlname \$dldir/$dlname' 11598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11599 dlpath=$dir/\$dldll~ 11600 $RM \$dlpath' 11601 shlibpath_overrides_runpath=yes 11602 dynamic_linker='Win32 link.exe' 11603 ;; 11604 11605 *) 11606 # Assume MSVC wrapper 11607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11608 dynamic_linker='Win32 ld.exe' 11609 ;; 11610 esac 11611 # FIXME: first we should search . and the directory the executable is in 11612 shlibpath_var=PATH 11613 ;; 11614 11615darwin* | rhapsody*) 11616 dynamic_linker="$host_os dyld" 11617 version_type=darwin 11618 need_lib_prefix=no 11619 need_version=no 11620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11621 soname_spec='${libname}${release}${major}$shared_ext' 11622 shlibpath_overrides_runpath=yes 11623 shlibpath_var=DYLD_LIBRARY_PATH 11624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11625 11626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11628 ;; 11629 11630dgux*) 11631 version_type=linux # correct to gnu/linux during the next big refactor 11632 need_lib_prefix=no 11633 need_version=no 11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11635 soname_spec='${libname}${release}${shared_ext}$major' 11636 shlibpath_var=LD_LIBRARY_PATH 11637 ;; 11638 11639freebsd* | dragonfly*) 11640 # DragonFly does not have aout. When/if they implement a new 11641 # versioning mechanism, adjust this. 11642 if test -x /usr/bin/objformat; then 11643 objformat=`/usr/bin/objformat` 11644 else 11645 case $host_os in 11646 freebsd[23].*) objformat=aout ;; 11647 *) objformat=elf ;; 11648 esac 11649 fi 11650 version_type=freebsd-$objformat 11651 case $version_type in 11652 freebsd-elf*) 11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11654 need_version=no 11655 need_lib_prefix=no 11656 ;; 11657 freebsd-*) 11658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11659 need_version=yes 11660 ;; 11661 esac 11662 shlibpath_var=LD_LIBRARY_PATH 11663 case $host_os in 11664 freebsd2.*) 11665 shlibpath_overrides_runpath=yes 11666 ;; 11667 freebsd3.[01]* | freebsdelf3.[01]*) 11668 shlibpath_overrides_runpath=yes 11669 hardcode_into_libs=yes 11670 ;; 11671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11673 shlibpath_overrides_runpath=no 11674 hardcode_into_libs=yes 11675 ;; 11676 *) # from 4.6 on, and DragonFly 11677 shlibpath_overrides_runpath=yes 11678 hardcode_into_libs=yes 11679 ;; 11680 esac 11681 ;; 11682 11683haiku*) 11684 version_type=linux # correct to gnu/linux during the next big refactor 11685 need_lib_prefix=no 11686 need_version=no 11687 dynamic_linker="$host_os runtime_loader" 11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11689 soname_spec='${libname}${release}${shared_ext}$major' 11690 shlibpath_var=LIBRARY_PATH 11691 shlibpath_overrides_runpath=yes 11692 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11693 hardcode_into_libs=yes 11694 ;; 11695 11696hpux9* | hpux10* | hpux11*) 11697 # Give a soname corresponding to the major version so that dld.sl refuses to 11698 # link against other versions. 11699 version_type=sunos 11700 need_lib_prefix=no 11701 need_version=no 11702 case $host_cpu in 11703 ia64*) 11704 shrext_cmds='.so' 11705 hardcode_into_libs=yes 11706 dynamic_linker="$host_os dld.so" 11707 shlibpath_var=LD_LIBRARY_PATH 11708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11710 soname_spec='${libname}${release}${shared_ext}$major' 11711 if test "X$HPUX_IA64_MODE" = X32; then 11712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11713 else 11714 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11715 fi 11716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11717 ;; 11718 hppa*64*) 11719 shrext_cmds='.sl' 11720 hardcode_into_libs=yes 11721 dynamic_linker="$host_os dld.sl" 11722 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11725 soname_spec='${libname}${release}${shared_ext}$major' 11726 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11728 ;; 11729 *) 11730 shrext_cmds='.sl' 11731 dynamic_linker="$host_os dld.sl" 11732 shlibpath_var=SHLIB_PATH 11733 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11735 soname_spec='${libname}${release}${shared_ext}$major' 11736 ;; 11737 esac 11738 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11739 postinstall_cmds='chmod 555 $lib' 11740 # or fails outright, so override atomically: 11741 install_override_mode=555 11742 ;; 11743 11744interix[3-9]*) 11745 version_type=linux # correct to gnu/linux during the next big refactor 11746 need_lib_prefix=no 11747 need_version=no 11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11749 soname_spec='${libname}${release}${shared_ext}$major' 11750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11751 shlibpath_var=LD_LIBRARY_PATH 11752 shlibpath_overrides_runpath=no 11753 hardcode_into_libs=yes 11754 ;; 11755 11756irix5* | irix6* | nonstopux*) 11757 case $host_os in 11758 nonstopux*) version_type=nonstopux ;; 11759 *) 11760 if test "$lt_cv_prog_gnu_ld" = yes; then 11761 version_type=linux # correct to gnu/linux during the next big refactor 11762 else 11763 version_type=irix 11764 fi ;; 11765 esac 11766 need_lib_prefix=no 11767 need_version=no 11768 soname_spec='${libname}${release}${shared_ext}$major' 11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11770 case $host_os in 11771 irix5* | nonstopux*) 11772 libsuff= shlibsuff= 11773 ;; 11774 *) 11775 case $LD in # libtool.m4 will add one of these switches to LD 11776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11777 libsuff= shlibsuff= libmagic=32-bit;; 11778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11779 libsuff=32 shlibsuff=N32 libmagic=N32;; 11780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11781 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11782 *) libsuff= shlibsuff= libmagic=never-match;; 11783 esac 11784 ;; 11785 esac 11786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11787 shlibpath_overrides_runpath=no 11788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11790 hardcode_into_libs=yes 11791 ;; 11792 11793# No shared lib support for Linux oldld, aout, or coff. 11794linux*oldld* | linux*aout* | linux*coff*) 11795 dynamic_linker=no 11796 ;; 11797 11798# This must be glibc/ELF. 11799linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11800 version_type=linux # correct to gnu/linux during the next big refactor 11801 need_lib_prefix=no 11802 need_version=no 11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11804 soname_spec='${libname}${release}${shared_ext}$major' 11805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11806 shlibpath_var=LD_LIBRARY_PATH 11807 shlibpath_overrides_runpath=no 11808 11809 # Some binutils ld are patched to set DT_RUNPATH 11810 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 lt_cv_shlibpath_overrides_runpath=no 11814 save_LDFLAGS=$LDFLAGS 11815 save_libdir=$libdir 11816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820 11821int 11822main () 11823{ 11824 11825 ; 11826 return 0; 11827} 11828_ACEOF 11829if ac_fn_c_try_link "$LINENO"; then : 11830 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11831 lt_cv_shlibpath_overrides_runpath=yes 11832fi 11833fi 11834rm -f core conftest.err conftest.$ac_objext \ 11835 conftest$ac_exeext conftest.$ac_ext 11836 LDFLAGS=$save_LDFLAGS 11837 libdir=$save_libdir 11838 11839fi 11840 11841 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11842 11843 # This implies no fast_install, which is unacceptable. 11844 # Some rework will be needed to allow for fast_install 11845 # before this can be enabled. 11846 hardcode_into_libs=yes 11847 11848 # Append ld.so.conf contents to the search path 11849 if test -f /etc/ld.so.conf; then 11850 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' ' '` 11851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11852 fi 11853 11854 # We used to test for /lib/ld.so.1 and disable shared libraries on 11855 # powerpc, because MkLinux only supported shared libraries with the 11856 # GNU dynamic linker. Since this was broken with cross compilers, 11857 # most powerpc-linux boxes support dynamic linking these days and 11858 # people can always --disable-shared, the test was removed, and we 11859 # assume the GNU/Linux dynamic linker is in use. 11860 dynamic_linker='GNU/Linux ld.so' 11861 ;; 11862 11863netbsdelf*-gnu) 11864 version_type=linux 11865 need_lib_prefix=no 11866 need_version=no 11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11868 soname_spec='${libname}${release}${shared_ext}$major' 11869 shlibpath_var=LD_LIBRARY_PATH 11870 shlibpath_overrides_runpath=no 11871 hardcode_into_libs=yes 11872 dynamic_linker='NetBSD ld.elf_so' 11873 ;; 11874 11875netbsd*) 11876 version_type=sunos 11877 need_lib_prefix=no 11878 need_version=no 11879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11882 dynamic_linker='NetBSD (a.out) ld.so' 11883 else 11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11885 soname_spec='${libname}${release}${shared_ext}$major' 11886 dynamic_linker='NetBSD ld.elf_so' 11887 fi 11888 shlibpath_var=LD_LIBRARY_PATH 11889 shlibpath_overrides_runpath=yes 11890 hardcode_into_libs=yes 11891 ;; 11892 11893newsos6) 11894 version_type=linux # correct to gnu/linux during the next big refactor 11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11896 shlibpath_var=LD_LIBRARY_PATH 11897 shlibpath_overrides_runpath=yes 11898 ;; 11899 11900*nto* | *qnx*) 11901 version_type=qnx 11902 need_lib_prefix=no 11903 need_version=no 11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11905 soname_spec='${libname}${release}${shared_ext}$major' 11906 shlibpath_var=LD_LIBRARY_PATH 11907 shlibpath_overrides_runpath=no 11908 hardcode_into_libs=yes 11909 dynamic_linker='ldqnx.so' 11910 ;; 11911 11912openbsd*) 11913 version_type=sunos 11914 sys_lib_dlsearch_path_spec="/usr/lib" 11915 need_lib_prefix=no 11916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11917 case $host_os in 11918 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11919 *) need_version=no ;; 11920 esac 11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11923 shlibpath_var=LD_LIBRARY_PATH 11924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11925 case $host_os in 11926 openbsd2.[89] | openbsd2.[89].*) 11927 shlibpath_overrides_runpath=no 11928 ;; 11929 *) 11930 shlibpath_overrides_runpath=yes 11931 ;; 11932 esac 11933 else 11934 shlibpath_overrides_runpath=yes 11935 fi 11936 ;; 11937 11938os2*) 11939 libname_spec='$name' 11940 shrext_cmds=".dll" 11941 need_lib_prefix=no 11942 library_names_spec='$libname${shared_ext} $libname.a' 11943 dynamic_linker='OS/2 ld.exe' 11944 shlibpath_var=LIBPATH 11945 ;; 11946 11947osf3* | osf4* | osf5*) 11948 version_type=osf 11949 need_lib_prefix=no 11950 need_version=no 11951 soname_spec='${libname}${release}${shared_ext}$major' 11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11953 shlibpath_var=LD_LIBRARY_PATH 11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11956 ;; 11957 11958rdos*) 11959 dynamic_linker=no 11960 ;; 11961 11962solaris*) 11963 version_type=linux # correct to gnu/linux during the next big refactor 11964 need_lib_prefix=no 11965 need_version=no 11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11967 soname_spec='${libname}${release}${shared_ext}$major' 11968 shlibpath_var=LD_LIBRARY_PATH 11969 shlibpath_overrides_runpath=yes 11970 hardcode_into_libs=yes 11971 # ldd complains unless libraries are executable 11972 postinstall_cmds='chmod +x $lib' 11973 ;; 11974 11975sunos4*) 11976 version_type=sunos 11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 shlibpath_overrides_runpath=yes 11981 if test "$with_gnu_ld" = yes; then 11982 need_lib_prefix=no 11983 fi 11984 need_version=yes 11985 ;; 11986 11987sysv4 | sysv4.3*) 11988 version_type=linux # correct to gnu/linux during the next big refactor 11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11990 soname_spec='${libname}${release}${shared_ext}$major' 11991 shlibpath_var=LD_LIBRARY_PATH 11992 case $host_vendor in 11993 sni) 11994 shlibpath_overrides_runpath=no 11995 need_lib_prefix=no 11996 runpath_var=LD_RUN_PATH 11997 ;; 11998 siemens) 11999 need_lib_prefix=no 12000 ;; 12001 motorola) 12002 need_lib_prefix=no 12003 need_version=no 12004 shlibpath_overrides_runpath=no 12005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12006 ;; 12007 esac 12008 ;; 12009 12010sysv4*MP*) 12011 if test -d /usr/nec ;then 12012 version_type=linux # correct to gnu/linux during the next big refactor 12013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12014 soname_spec='$libname${shared_ext}.$major' 12015 shlibpath_var=LD_LIBRARY_PATH 12016 fi 12017 ;; 12018 12019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12020 version_type=freebsd-elf 12021 need_lib_prefix=no 12022 need_version=no 12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12024 soname_spec='${libname}${release}${shared_ext}$major' 12025 shlibpath_var=LD_LIBRARY_PATH 12026 shlibpath_overrides_runpath=yes 12027 hardcode_into_libs=yes 12028 if test "$with_gnu_ld" = yes; then 12029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12030 else 12031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12032 case $host_os in 12033 sco3.2v5*) 12034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12035 ;; 12036 esac 12037 fi 12038 sys_lib_dlsearch_path_spec='/usr/lib' 12039 ;; 12040 12041tpf*) 12042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12043 version_type=linux # correct to gnu/linux during the next big refactor 12044 need_lib_prefix=no 12045 need_version=no 12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12047 shlibpath_var=LD_LIBRARY_PATH 12048 shlibpath_overrides_runpath=no 12049 hardcode_into_libs=yes 12050 ;; 12051 12052uts4*) 12053 version_type=linux # correct to gnu/linux during the next big refactor 12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12055 soname_spec='${libname}${release}${shared_ext}$major' 12056 shlibpath_var=LD_LIBRARY_PATH 12057 ;; 12058 12059*) 12060 dynamic_linker=no 12061 ;; 12062esac 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12064$as_echo "$dynamic_linker" >&6; } 12065test "$dynamic_linker" = no && can_build_shared=no 12066 12067variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12068if test "$GCC" = yes; then 12069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12070fi 12071 12072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12074fi 12075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12077fi 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12171$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12172hardcode_action= 12173if test -n "$hardcode_libdir_flag_spec" || 12174 test -n "$runpath_var" || 12175 test "X$hardcode_automatic" = "Xyes" ; then 12176 12177 # We can hardcode non-existent directories. 12178 if test "$hardcode_direct" != no && 12179 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12180 # have to relink, otherwise we might link with an installed library 12181 # when we should be linking with a yet-to-be-installed one 12182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12183 test "$hardcode_minus_L" != no; then 12184 # Linking always hardcodes the temporary library directory. 12185 hardcode_action=relink 12186 else 12187 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12188 hardcode_action=immediate 12189 fi 12190else 12191 # We cannot hardcode anything, or else we can only hardcode existing 12192 # directories. 12193 hardcode_action=unsupported 12194fi 12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12196$as_echo "$hardcode_action" >&6; } 12197 12198if test "$hardcode_action" = relink || 12199 test "$inherit_rpath" = yes; then 12200 # Fast installation is not supported 12201 enable_fast_install=no 12202elif test "$shlibpath_overrides_runpath" = yes || 12203 test "$enable_shared" = no; then 12204 # Fast installation is not necessary 12205 enable_fast_install=needless 12206fi 12207 12208 12209 12210 12211 12212 12213 if test "x$enable_dlopen" != xyes; then 12214 enable_dlopen=unknown 12215 enable_dlopen_self=unknown 12216 enable_dlopen_self_static=unknown 12217else 12218 lt_cv_dlopen=no 12219 lt_cv_dlopen_libs= 12220 12221 case $host_os in 12222 beos*) 12223 lt_cv_dlopen="load_add_on" 12224 lt_cv_dlopen_libs= 12225 lt_cv_dlopen_self=yes 12226 ;; 12227 12228 mingw* | pw32* | cegcc*) 12229 lt_cv_dlopen="LoadLibrary" 12230 lt_cv_dlopen_libs= 12231 ;; 12232 12233 cygwin*) 12234 lt_cv_dlopen="dlopen" 12235 lt_cv_dlopen_libs= 12236 ;; 12237 12238 darwin*) 12239 # if libdl is installed we need to link against it 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12241$as_echo_n "checking for dlopen in -ldl... " >&6; } 12242if ${ac_cv_lib_dl_dlopen+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 ac_check_lib_save_LIBS=$LIBS 12246LIBS="-ldl $LIBS" 12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12248/* end confdefs.h. */ 12249 12250/* Override any GCC internal prototype to avoid an error. 12251 Use char because int might match the return type of a GCC 12252 builtin and then its argument prototype would still apply. */ 12253#ifdef __cplusplus 12254extern "C" 12255#endif 12256char dlopen (); 12257int 12258main () 12259{ 12260return dlopen (); 12261 ; 12262 return 0; 12263} 12264_ACEOF 12265if ac_fn_c_try_link "$LINENO"; then : 12266 ac_cv_lib_dl_dlopen=yes 12267else 12268 ac_cv_lib_dl_dlopen=no 12269fi 12270rm -f core conftest.err conftest.$ac_objext \ 12271 conftest$ac_exeext conftest.$ac_ext 12272LIBS=$ac_check_lib_save_LIBS 12273fi 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12275$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12276if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12278else 12279 12280 lt_cv_dlopen="dyld" 12281 lt_cv_dlopen_libs= 12282 lt_cv_dlopen_self=yes 12283 12284fi 12285 12286 ;; 12287 12288 *) 12289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12290if test "x$ac_cv_func_shl_load" = xyes; then : 12291 lt_cv_dlopen="shl_load" 12292else 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12294$as_echo_n "checking for shl_load in -ldld... " >&6; } 12295if ${ac_cv_lib_dld_shl_load+:} false; then : 12296 $as_echo_n "(cached) " >&6 12297else 12298 ac_check_lib_save_LIBS=$LIBS 12299LIBS="-ldld $LIBS" 12300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302 12303/* Override any GCC internal prototype to avoid an error. 12304 Use char because int might match the return type of a GCC 12305 builtin and then its argument prototype would still apply. */ 12306#ifdef __cplusplus 12307extern "C" 12308#endif 12309char shl_load (); 12310int 12311main () 12312{ 12313return shl_load (); 12314 ; 12315 return 0; 12316} 12317_ACEOF 12318if ac_fn_c_try_link "$LINENO"; then : 12319 ac_cv_lib_dld_shl_load=yes 12320else 12321 ac_cv_lib_dld_shl_load=no 12322fi 12323rm -f core conftest.err conftest.$ac_objext \ 12324 conftest$ac_exeext conftest.$ac_ext 12325LIBS=$ac_check_lib_save_LIBS 12326fi 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12328$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12329if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12331else 12332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12333if test "x$ac_cv_func_dlopen" = xyes; then : 12334 lt_cv_dlopen="dlopen" 12335else 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12337$as_echo_n "checking for dlopen in -ldl... " >&6; } 12338if ${ac_cv_lib_dl_dlopen+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 ac_check_lib_save_LIBS=$LIBS 12342LIBS="-ldl $LIBS" 12343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12344/* end confdefs.h. */ 12345 12346/* Override any GCC internal prototype to avoid an error. 12347 Use char because int might match the return type of a GCC 12348 builtin and then its argument prototype would still apply. */ 12349#ifdef __cplusplus 12350extern "C" 12351#endif 12352char dlopen (); 12353int 12354main () 12355{ 12356return dlopen (); 12357 ; 12358 return 0; 12359} 12360_ACEOF 12361if ac_fn_c_try_link "$LINENO"; then : 12362 ac_cv_lib_dl_dlopen=yes 12363else 12364 ac_cv_lib_dl_dlopen=no 12365fi 12366rm -f core conftest.err conftest.$ac_objext \ 12367 conftest$ac_exeext conftest.$ac_ext 12368LIBS=$ac_check_lib_save_LIBS 12369fi 12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12371$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12372if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12374else 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12376$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12377if ${ac_cv_lib_svld_dlopen+:} false; then : 12378 $as_echo_n "(cached) " >&6 12379else 12380 ac_check_lib_save_LIBS=$LIBS 12381LIBS="-lsvld $LIBS" 12382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12383/* end confdefs.h. */ 12384 12385/* Override any GCC internal prototype to avoid an error. 12386 Use char because int might match the return type of a GCC 12387 builtin and then its argument prototype would still apply. */ 12388#ifdef __cplusplus 12389extern "C" 12390#endif 12391char dlopen (); 12392int 12393main () 12394{ 12395return dlopen (); 12396 ; 12397 return 0; 12398} 12399_ACEOF 12400if ac_fn_c_try_link "$LINENO"; then : 12401 ac_cv_lib_svld_dlopen=yes 12402else 12403 ac_cv_lib_svld_dlopen=no 12404fi 12405rm -f core conftest.err conftest.$ac_objext \ 12406 conftest$ac_exeext conftest.$ac_ext 12407LIBS=$ac_check_lib_save_LIBS 12408fi 12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12410$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12411if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12413else 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12415$as_echo_n "checking for dld_link in -ldld... " >&6; } 12416if ${ac_cv_lib_dld_dld_link+:} false; then : 12417 $as_echo_n "(cached) " >&6 12418else 12419 ac_check_lib_save_LIBS=$LIBS 12420LIBS="-ldld $LIBS" 12421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12422/* end confdefs.h. */ 12423 12424/* Override any GCC internal prototype to avoid an error. 12425 Use char because int might match the return type of a GCC 12426 builtin and then its argument prototype would still apply. */ 12427#ifdef __cplusplus 12428extern "C" 12429#endif 12430char dld_link (); 12431int 12432main () 12433{ 12434return dld_link (); 12435 ; 12436 return 0; 12437} 12438_ACEOF 12439if ac_fn_c_try_link "$LINENO"; then : 12440 ac_cv_lib_dld_dld_link=yes 12441else 12442 ac_cv_lib_dld_dld_link=no 12443fi 12444rm -f core conftest.err conftest.$ac_objext \ 12445 conftest$ac_exeext conftest.$ac_ext 12446LIBS=$ac_check_lib_save_LIBS 12447fi 12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12449$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12450if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12452fi 12453 12454 12455fi 12456 12457 12458fi 12459 12460 12461fi 12462 12463 12464fi 12465 12466 12467fi 12468 12469 ;; 12470 esac 12471 12472 if test "x$lt_cv_dlopen" != xno; then 12473 enable_dlopen=yes 12474 else 12475 enable_dlopen=no 12476 fi 12477 12478 case $lt_cv_dlopen in 12479 dlopen) 12480 save_CPPFLAGS="$CPPFLAGS" 12481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12482 12483 save_LDFLAGS="$LDFLAGS" 12484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12485 12486 save_LIBS="$LIBS" 12487 LIBS="$lt_cv_dlopen_libs $LIBS" 12488 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12490$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12491if ${lt_cv_dlopen_self+:} false; then : 12492 $as_echo_n "(cached) " >&6 12493else 12494 if test "$cross_compiling" = yes; then : 12495 lt_cv_dlopen_self=cross 12496else 12497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12498 lt_status=$lt_dlunknown 12499 cat > conftest.$ac_ext <<_LT_EOF 12500#line $LINENO "configure" 12501#include "confdefs.h" 12502 12503#if HAVE_DLFCN_H 12504#include <dlfcn.h> 12505#endif 12506 12507#include <stdio.h> 12508 12509#ifdef RTLD_GLOBAL 12510# define LT_DLGLOBAL RTLD_GLOBAL 12511#else 12512# ifdef DL_GLOBAL 12513# define LT_DLGLOBAL DL_GLOBAL 12514# else 12515# define LT_DLGLOBAL 0 12516# endif 12517#endif 12518 12519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12520 find out it does not work in some platform. */ 12521#ifndef LT_DLLAZY_OR_NOW 12522# ifdef RTLD_LAZY 12523# define LT_DLLAZY_OR_NOW RTLD_LAZY 12524# else 12525# ifdef DL_LAZY 12526# define LT_DLLAZY_OR_NOW DL_LAZY 12527# else 12528# ifdef RTLD_NOW 12529# define LT_DLLAZY_OR_NOW RTLD_NOW 12530# else 12531# ifdef DL_NOW 12532# define LT_DLLAZY_OR_NOW DL_NOW 12533# else 12534# define LT_DLLAZY_OR_NOW 0 12535# endif 12536# endif 12537# endif 12538# endif 12539#endif 12540 12541/* When -fvisbility=hidden is used, assume the code has been annotated 12542 correspondingly for the symbols needed. */ 12543#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12544int fnord () __attribute__((visibility("default"))); 12545#endif 12546 12547int fnord () { return 42; } 12548int main () 12549{ 12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12551 int status = $lt_dlunknown; 12552 12553 if (self) 12554 { 12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12556 else 12557 { 12558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12559 else puts (dlerror ()); 12560 } 12561 /* dlclose (self); */ 12562 } 12563 else 12564 puts (dlerror ()); 12565 12566 return status; 12567} 12568_LT_EOF 12569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12570 (eval $ac_link) 2>&5 12571 ac_status=$? 12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12574 (./conftest; exit; ) >&5 2>/dev/null 12575 lt_status=$? 12576 case x$lt_status in 12577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12580 esac 12581 else : 12582 # compilation failed 12583 lt_cv_dlopen_self=no 12584 fi 12585fi 12586rm -fr conftest* 12587 12588 12589fi 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12591$as_echo "$lt_cv_dlopen_self" >&6; } 12592 12593 if test "x$lt_cv_dlopen_self" = xyes; then 12594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12596$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12597if ${lt_cv_dlopen_self_static+:} false; then : 12598 $as_echo_n "(cached) " >&6 12599else 12600 if test "$cross_compiling" = yes; then : 12601 lt_cv_dlopen_self_static=cross 12602else 12603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12604 lt_status=$lt_dlunknown 12605 cat > conftest.$ac_ext <<_LT_EOF 12606#line $LINENO "configure" 12607#include "confdefs.h" 12608 12609#if HAVE_DLFCN_H 12610#include <dlfcn.h> 12611#endif 12612 12613#include <stdio.h> 12614 12615#ifdef RTLD_GLOBAL 12616# define LT_DLGLOBAL RTLD_GLOBAL 12617#else 12618# ifdef DL_GLOBAL 12619# define LT_DLGLOBAL DL_GLOBAL 12620# else 12621# define LT_DLGLOBAL 0 12622# endif 12623#endif 12624 12625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12626 find out it does not work in some platform. */ 12627#ifndef LT_DLLAZY_OR_NOW 12628# ifdef RTLD_LAZY 12629# define LT_DLLAZY_OR_NOW RTLD_LAZY 12630# else 12631# ifdef DL_LAZY 12632# define LT_DLLAZY_OR_NOW DL_LAZY 12633# else 12634# ifdef RTLD_NOW 12635# define LT_DLLAZY_OR_NOW RTLD_NOW 12636# else 12637# ifdef DL_NOW 12638# define LT_DLLAZY_OR_NOW DL_NOW 12639# else 12640# define LT_DLLAZY_OR_NOW 0 12641# endif 12642# endif 12643# endif 12644# endif 12645#endif 12646 12647/* When -fvisbility=hidden is used, assume the code has been annotated 12648 correspondingly for the symbols needed. */ 12649#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12650int fnord () __attribute__((visibility("default"))); 12651#endif 12652 12653int fnord () { return 42; } 12654int main () 12655{ 12656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12657 int status = $lt_dlunknown; 12658 12659 if (self) 12660 { 12661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12662 else 12663 { 12664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12665 else puts (dlerror ()); 12666 } 12667 /* dlclose (self); */ 12668 } 12669 else 12670 puts (dlerror ()); 12671 12672 return status; 12673} 12674_LT_EOF 12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12676 (eval $ac_link) 2>&5 12677 ac_status=$? 12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12679 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12680 (./conftest; exit; ) >&5 2>/dev/null 12681 lt_status=$? 12682 case x$lt_status in 12683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12686 esac 12687 else : 12688 # compilation failed 12689 lt_cv_dlopen_self_static=no 12690 fi 12691fi 12692rm -fr conftest* 12693 12694 12695fi 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12697$as_echo "$lt_cv_dlopen_self_static" >&6; } 12698 fi 12699 12700 CPPFLAGS="$save_CPPFLAGS" 12701 LDFLAGS="$save_LDFLAGS" 12702 LIBS="$save_LIBS" 12703 ;; 12704 esac 12705 12706 case $lt_cv_dlopen_self in 12707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12708 *) enable_dlopen_self=unknown ;; 12709 esac 12710 12711 case $lt_cv_dlopen_self_static in 12712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12713 *) enable_dlopen_self_static=unknown ;; 12714 esac 12715fi 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733striplib= 12734old_striplib= 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12736$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12737if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12739 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12741$as_echo "yes" >&6; } 12742else 12743# FIXME - insert some real tests, host_os isn't really good enough 12744 case $host_os in 12745 darwin*) 12746 if test -n "$STRIP" ; then 12747 striplib="$STRIP -x" 12748 old_striplib="$STRIP -S" 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12750$as_echo "yes" >&6; } 12751 else 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12753$as_echo "no" >&6; } 12754 fi 12755 ;; 12756 *) 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12758$as_echo "no" >&6; } 12759 ;; 12760 esac 12761fi 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 # Report which library types will actually be built 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12776$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12778$as_echo "$can_build_shared" >&6; } 12779 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12781$as_echo_n "checking whether to build shared libraries... " >&6; } 12782 test "$can_build_shared" = "no" && enable_shared=no 12783 12784 # On AIX, shared libraries and static libraries use the same namespace, and 12785 # are all built from PIC. 12786 case $host_os in 12787 aix3*) 12788 test "$enable_shared" = yes && enable_static=no 12789 if test -n "$RANLIB"; then 12790 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12791 postinstall_cmds='$RANLIB $lib' 12792 fi 12793 ;; 12794 12795 aix[4-9]*) 12796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12797 test "$enable_shared" = yes && enable_static=no 12798 fi 12799 ;; 12800 esac 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12802$as_echo "$enable_shared" >&6; } 12803 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12805$as_echo_n "checking whether to build static libraries... " >&6; } 12806 # Make sure either enable_shared or enable_static is yes. 12807 test "$enable_shared" = yes || enable_static=yes 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12809$as_echo "$enable_static" >&6; } 12810 12811 12812 12813 12814fi 12815ac_ext=c 12816ac_cpp='$CPP $CPPFLAGS' 12817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12819ac_compiler_gnu=$ac_cv_c_compiler_gnu 12820 12821CC="$lt_save_CC" 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 ac_config_commands="$ac_config_commands libtool" 12838 12839 12840 12841 12842# Only expand once: 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 12853$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } 12854if ${libltdl_cv_shlibext+:} false; then : 12855 $as_echo_n "(cached) " >&6 12856else 12857 12858module=yes 12859eval libltdl_cv_shlibext=$shrext_cmds 12860module=no 12861eval libltdl_cv_shrext=$shrext_cmds 12862 12863fi 12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 12865$as_echo "$libltdl_cv_shlibext" >&6; } 12866if test -n "$libltdl_cv_shlibext"; then 12867 12868cat >>confdefs.h <<_ACEOF 12869#define LT_MODULE_EXT "$libltdl_cv_shlibext" 12870_ACEOF 12871 12872fi 12873if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then 12874 12875cat >>confdefs.h <<_ACEOF 12876#define LT_SHARED_EXT "$libltdl_cv_shrext" 12877_ACEOF 12878 12879fi 12880 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 12882$as_echo_n "checking which variable specifies run-time module search path... " >&6; } 12883if ${lt_cv_module_path_var+:} false; then : 12884 $as_echo_n "(cached) " >&6 12885else 12886 lt_cv_module_path_var="$shlibpath_var" 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 12889$as_echo "$lt_cv_module_path_var" >&6; } 12890if test -n "$lt_cv_module_path_var"; then 12891 12892cat >>confdefs.h <<_ACEOF 12893#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 12894_ACEOF 12895 12896fi 12897 12898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 12899$as_echo_n "checking for the default library search path... " >&6; } 12900if ${lt_cv_sys_dlsearch_path+:} false; then : 12901 $as_echo_n "(cached) " >&6 12902else 12903 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" 12904fi 12905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 12906$as_echo "$lt_cv_sys_dlsearch_path" >&6; } 12907if test -n "$lt_cv_sys_dlsearch_path"; then 12908 sys_dlsearch_path= 12909 for dir in $lt_cv_sys_dlsearch_path; do 12910 if test -z "$sys_dlsearch_path"; then 12911 sys_dlsearch_path="$dir" 12912 else 12913 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" 12914 fi 12915 done 12916 12917cat >>confdefs.h <<_ACEOF 12918#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 12919_ACEOF 12920 12921fi 12922 12923 12924LT_DLLOADERS= 12925 12926 12927ac_ext=c 12928ac_cpp='$CPP $CPPFLAGS' 12929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12931ac_compiler_gnu=$ac_cv_c_compiler_gnu 12932 12933 12934LIBADD_DLOPEN= 12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 12936$as_echo_n "checking for library containing dlopen... " >&6; } 12937if ${ac_cv_search_dlopen+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 ac_func_search_save_LIBS=$LIBS 12941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943 12944/* Override any GCC internal prototype to avoid an error. 12945 Use char because int might match the return type of a GCC 12946 builtin and then its argument prototype would still apply. */ 12947#ifdef __cplusplus 12948extern "C" 12949#endif 12950char dlopen (); 12951int 12952main () 12953{ 12954return dlopen (); 12955 ; 12956 return 0; 12957} 12958_ACEOF 12959for ac_lib in '' dl; do 12960 if test -z "$ac_lib"; then 12961 ac_res="none required" 12962 else 12963 ac_res=-l$ac_lib 12964 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12965 fi 12966 if ac_fn_c_try_link "$LINENO"; then : 12967 ac_cv_search_dlopen=$ac_res 12968fi 12969rm -f core conftest.err conftest.$ac_objext \ 12970 conftest$ac_exeext 12971 if ${ac_cv_search_dlopen+:} false; then : 12972 break 12973fi 12974done 12975if ${ac_cv_search_dlopen+:} false; then : 12976 12977else 12978 ac_cv_search_dlopen=no 12979fi 12980rm conftest.$ac_ext 12981LIBS=$ac_func_search_save_LIBS 12982fi 12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 12984$as_echo "$ac_cv_search_dlopen" >&6; } 12985ac_res=$ac_cv_search_dlopen 12986if test "$ac_res" != no; then : 12987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12988 12989$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 12990 12991 if test "$ac_cv_search_dlopen" != "none required" ; then 12992 LIBADD_DLOPEN="-ldl" 12993 fi 12994 libltdl_cv_lib_dl_dlopen="yes" 12995 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 12996else 12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12998/* end confdefs.h. */ 12999#if HAVE_DLFCN_H 13000# include <dlfcn.h> 13001#endif 13002 13003int 13004main () 13005{ 13006dlopen(0, 0); 13007 ; 13008 return 0; 13009} 13010_ACEOF 13011if ac_fn_c_try_link "$LINENO"; then : 13012 13013$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 13014 13015 libltdl_cv_func_dlopen="yes" 13016 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 13017else 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13019$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13020if ${ac_cv_lib_svld_dlopen+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 ac_check_lib_save_LIBS=$LIBS 13024LIBS="-lsvld $LIBS" 13025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13026/* end confdefs.h. */ 13027 13028/* Override any GCC internal prototype to avoid an error. 13029 Use char because int might match the return type of a GCC 13030 builtin and then its argument prototype would still apply. */ 13031#ifdef __cplusplus 13032extern "C" 13033#endif 13034char dlopen (); 13035int 13036main () 13037{ 13038return dlopen (); 13039 ; 13040 return 0; 13041} 13042_ACEOF 13043if ac_fn_c_try_link "$LINENO"; then : 13044 ac_cv_lib_svld_dlopen=yes 13045else 13046 ac_cv_lib_svld_dlopen=no 13047fi 13048rm -f core conftest.err conftest.$ac_objext \ 13049 conftest$ac_exeext conftest.$ac_ext 13050LIBS=$ac_check_lib_save_LIBS 13051fi 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13053$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13054if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13055 13056$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 13057 13058 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 13059 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 13060fi 13061 13062fi 13063rm -f core conftest.err conftest.$ac_objext \ 13064 conftest$ac_exeext conftest.$ac_ext 13065fi 13066 13067if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 13068then 13069 lt_save_LIBS="$LIBS" 13070 LIBS="$LIBS $LIBADD_DLOPEN" 13071 for ac_func in dlerror 13072do : 13073 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 13074if test "x$ac_cv_func_dlerror" = xyes; then : 13075 cat >>confdefs.h <<_ACEOF 13076#define HAVE_DLERROR 1 13077_ACEOF 13078 13079fi 13080done 13081 13082 LIBS="$lt_save_LIBS" 13083fi 13084 13085 13086LIBADD_SHL_LOAD= 13087ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13088if test "x$ac_cv_func_shl_load" = xyes; then : 13089 13090$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13091 13092 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 13093else 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13095$as_echo_n "checking for shl_load in -ldld... " >&6; } 13096if ${ac_cv_lib_dld_shl_load+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 ac_check_lib_save_LIBS=$LIBS 13100LIBS="-ldld $LIBS" 13101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102/* end confdefs.h. */ 13103 13104/* Override any GCC internal prototype to avoid an error. 13105 Use char because int might match the return type of a GCC 13106 builtin and then its argument prototype would still apply. */ 13107#ifdef __cplusplus 13108extern "C" 13109#endif 13110char shl_load (); 13111int 13112main () 13113{ 13114return shl_load (); 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119if ac_fn_c_try_link "$LINENO"; then : 13120 ac_cv_lib_dld_shl_load=yes 13121else 13122 ac_cv_lib_dld_shl_load=no 13123fi 13124rm -f core conftest.err conftest.$ac_objext \ 13125 conftest$ac_exeext conftest.$ac_ext 13126LIBS=$ac_check_lib_save_LIBS 13127fi 13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13129$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13130if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13131 13132$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13133 13134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 13135 LIBADD_SHL_LOAD="-ldld" 13136fi 13137 13138fi 13139 13140 13141 13142case $host_os in 13143darwin[1567].*) 13144# We only want this for pre-Mac OS X 10.4. 13145 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 13146if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 13147 13148$as_echo "#define HAVE_DYLD 1" >>confdefs.h 13149 13150 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 13151fi 13152 13153 ;; 13154beos*) 13155 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 13156 ;; 13157cygwin* | mingw* | os2* | pw32*) 13158 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 13159" 13160if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 13161 ac_have_decl=1 13162else 13163 ac_have_decl=0 13164fi 13165 13166cat >>confdefs.h <<_ACEOF 13167#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 13168_ACEOF 13169 13170 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 13171 ;; 13172esac 13173 13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13175$as_echo_n "checking for dld_link in -ldld... " >&6; } 13176if ${ac_cv_lib_dld_dld_link+:} false; then : 13177 $as_echo_n "(cached) " >&6 13178else 13179 ac_check_lib_save_LIBS=$LIBS 13180LIBS="-ldld $LIBS" 13181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13182/* end confdefs.h. */ 13183 13184/* Override any GCC internal prototype to avoid an error. 13185 Use char because int might match the return type of a GCC 13186 builtin and then its argument prototype would still apply. */ 13187#ifdef __cplusplus 13188extern "C" 13189#endif 13190char dld_link (); 13191int 13192main () 13193{ 13194return dld_link (); 13195 ; 13196 return 0; 13197} 13198_ACEOF 13199if ac_fn_c_try_link "$LINENO"; then : 13200 ac_cv_lib_dld_dld_link=yes 13201else 13202 ac_cv_lib_dld_dld_link=no 13203fi 13204rm -f core conftest.err conftest.$ac_objext \ 13205 conftest$ac_exeext conftest.$ac_ext 13206LIBS=$ac_check_lib_save_LIBS 13207fi 13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13209$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13210if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13211 13212$as_echo "#define HAVE_DLD 1" >>confdefs.h 13213 13214 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 13215fi 13216 13217 13218 13219 13220LT_DLPREOPEN= 13221if test -n "$LT_DLLOADERS" 13222then 13223 for lt_loader in $LT_DLLOADERS; do 13224 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 13225 done 13226 13227$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 13228 13229fi 13230 13231 13232LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 13233 13234 13235ac_ext=c 13236ac_cpp='$CPP $CPPFLAGS' 13237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13239ac_compiler_gnu=$ac_cv_c_compiler_gnu 13240 13241 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 13243$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 13244if ${lt_cv_sys_symbol_underscore+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 lt_cv_sys_symbol_underscore=no 13248 cat > conftest.$ac_ext <<_LT_EOF 13249void nm_test_func(){} 13250int main(){nm_test_func;return 0;} 13251_LT_EOF 13252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13253 (eval $ac_compile) 2>&5 13254 ac_status=$? 13255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13256 test $ac_status = 0; }; then 13257 # Now try to grab the symbols. 13258 ac_nlist=conftest.nm 13259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 13260 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 13261 ac_status=$? 13262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13263 test $ac_status = 0; } && test -s "$ac_nlist"; then 13264 # See whether the symbols have a leading underscore. 13265 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 13266 lt_cv_sys_symbol_underscore=yes 13267 else 13268 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 13269 : 13270 else 13271 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 13272 fi 13273 fi 13274 else 13275 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 13276 fi 13277 else 13278 echo "configure: failed program was:" >&5 13279 cat conftest.c >&5 13280 fi 13281 rm -rf conftest* 13282 13283fi 13284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 13285$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 13286 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 13287 13288 13289if test x"$lt_cv_sys_symbol_underscore" = xyes; then 13290 if test x"$libltdl_cv_func_dlopen" = xyes || 13291 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 13293$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } 13294if ${libltdl_cv_need_uscore+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 libltdl_cv_need_uscore=unknown 13298 save_LIBS="$LIBS" 13299 LIBS="$LIBS $LIBADD_DLOPEN" 13300 if test "$cross_compiling" = yes; then : 13301 libltdl_cv_need_uscore=cross 13302else 13303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13304 lt_status=$lt_dlunknown 13305 cat > conftest.$ac_ext <<_LT_EOF 13306#line $LINENO "configure" 13307#include "confdefs.h" 13308 13309#if HAVE_DLFCN_H 13310#include <dlfcn.h> 13311#endif 13312 13313#include <stdio.h> 13314 13315#ifdef RTLD_GLOBAL 13316# define LT_DLGLOBAL RTLD_GLOBAL 13317#else 13318# ifdef DL_GLOBAL 13319# define LT_DLGLOBAL DL_GLOBAL 13320# else 13321# define LT_DLGLOBAL 0 13322# endif 13323#endif 13324 13325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13326 find out it does not work in some platform. */ 13327#ifndef LT_DLLAZY_OR_NOW 13328# ifdef RTLD_LAZY 13329# define LT_DLLAZY_OR_NOW RTLD_LAZY 13330# else 13331# ifdef DL_LAZY 13332# define LT_DLLAZY_OR_NOW DL_LAZY 13333# else 13334# ifdef RTLD_NOW 13335# define LT_DLLAZY_OR_NOW RTLD_NOW 13336# else 13337# ifdef DL_NOW 13338# define LT_DLLAZY_OR_NOW DL_NOW 13339# else 13340# define LT_DLLAZY_OR_NOW 0 13341# endif 13342# endif 13343# endif 13344# endif 13345#endif 13346 13347/* When -fvisbility=hidden is used, assume the code has been annotated 13348 correspondingly for the symbols needed. */ 13349#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13350int fnord () __attribute__((visibility("default"))); 13351#endif 13352 13353int fnord () { return 42; } 13354int main () 13355{ 13356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13357 int status = $lt_dlunknown; 13358 13359 if (self) 13360 { 13361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13362 else 13363 { 13364 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13365 else puts (dlerror ()); 13366 } 13367 /* dlclose (self); */ 13368 } 13369 else 13370 puts (dlerror ()); 13371 13372 return status; 13373} 13374_LT_EOF 13375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13376 (eval $ac_link) 2>&5 13377 ac_status=$? 13378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13379 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13380 (./conftest; exit; ) >&5 2>/dev/null 13381 lt_status=$? 13382 case x$lt_status in 13383 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 13384 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 13385 x$lt_dlunknown|x*) ;; 13386 esac 13387 else : 13388 # compilation failed 13389 13390 fi 13391fi 13392rm -fr conftest* 13393 13394 LIBS="$save_LIBS" 13395 13396fi 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 13398$as_echo "$libltdl_cv_need_uscore" >&6; } 13399 fi 13400fi 13401 13402if test x"$libltdl_cv_need_uscore" = xyes; then 13403 13404$as_echo "#define NEED_USCORE 1" >>confdefs.h 13405 13406fi 13407 13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 13409$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } 13410if ${lt_cv_sys_dlopen_deplibs+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 # PORTME does your system automatically load deplibs for dlopen? 13414 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 13415 # For now, we just catch OSes we know something about -- in the 13416 # future, we'll try test this programmatically. 13417 lt_cv_sys_dlopen_deplibs=unknown 13418 case $host_os in 13419 aix3*|aix4.1.*|aix4.2.*) 13420 # Unknown whether this is true for these versions of AIX, but 13421 # we want this `case' here to explicitly catch those versions. 13422 lt_cv_sys_dlopen_deplibs=unknown 13423 ;; 13424 aix[4-9]*) 13425 lt_cv_sys_dlopen_deplibs=yes 13426 ;; 13427 amigaos*) 13428 case $host_cpu in 13429 powerpc) 13430 lt_cv_sys_dlopen_deplibs=no 13431 ;; 13432 esac 13433 ;; 13434 darwin*) 13435 # Assuming the user has installed a libdl from somewhere, this is true 13436 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 13437 lt_cv_sys_dlopen_deplibs=yes 13438 ;; 13439 freebsd* | dragonfly*) 13440 lt_cv_sys_dlopen_deplibs=yes 13441 ;; 13442 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) 13443 # GNU and its variants, using gnu ld.so (Glibc) 13444 lt_cv_sys_dlopen_deplibs=yes 13445 ;; 13446 hpux10*|hpux11*) 13447 lt_cv_sys_dlopen_deplibs=yes 13448 ;; 13449 interix*) 13450 lt_cv_sys_dlopen_deplibs=yes 13451 ;; 13452 irix[12345]*|irix6.[01]*) 13453 # Catch all versions of IRIX before 6.2, and indicate that we don't 13454 # know how it worked for any of those versions. 13455 lt_cv_sys_dlopen_deplibs=unknown 13456 ;; 13457 irix*) 13458 # The case above catches anything before 6.2, and it's known that 13459 # at 6.2 and later dlopen does load deplibs. 13460 lt_cv_sys_dlopen_deplibs=yes 13461 ;; 13462 netbsd* | netbsdelf*-gnu) 13463 lt_cv_sys_dlopen_deplibs=yes 13464 ;; 13465 openbsd*) 13466 lt_cv_sys_dlopen_deplibs=yes 13467 ;; 13468 osf[1234]*) 13469 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 13470 # it did *not* use an RPATH in a shared library to find objects the 13471 # library depends on, so we explicitly say `no'. 13472 lt_cv_sys_dlopen_deplibs=no 13473 ;; 13474 osf5.0|osf5.0a|osf5.1) 13475 # dlopen *does* load deplibs and with the right loader patch applied 13476 # it even uses RPATH in a shared library to search for shared objects 13477 # that the library depends on, but there's no easy way to know if that 13478 # patch is installed. Since this is the case, all we can really 13479 # say is unknown -- it depends on the patch being installed. If 13480 # it is, this changes to `yes'. Without it, it would be `no'. 13481 lt_cv_sys_dlopen_deplibs=unknown 13482 ;; 13483 osf*) 13484 # the two cases above should catch all versions of osf <= 5.1. Read 13485 # the comments above for what we know about them. 13486 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 13487 # is used to find them so we can finally say `yes'. 13488 lt_cv_sys_dlopen_deplibs=yes 13489 ;; 13490 qnx*) 13491 lt_cv_sys_dlopen_deplibs=yes 13492 ;; 13493 solaris*) 13494 lt_cv_sys_dlopen_deplibs=yes 13495 ;; 13496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13497 libltdl_cv_sys_dlopen_deplibs=yes 13498 ;; 13499 esac 13500 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 13503$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } 13504if test "$lt_cv_sys_dlopen_deplibs" != yes; then 13505 13506$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h 13507 13508fi 13509 13510: 13511 13512for ac_header in argz.h 13513do : 13514 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default 13515" 13516if test "x$ac_cv_header_argz_h" = xyes; then : 13517 cat >>confdefs.h <<_ACEOF 13518#define HAVE_ARGZ_H 1 13519_ACEOF 13520 13521fi 13522 13523done 13524 13525 13526ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) 13527# include <argz.h> 13528#endif 13529" 13530if test "x$ac_cv_type_error_t" = xyes; then : 13531 13532cat >>confdefs.h <<_ACEOF 13533#define HAVE_ERROR_T 1 13534_ACEOF 13535 13536 13537else 13538 13539$as_echo "#define error_t int" >>confdefs.h 13540 13541 13542$as_echo "#define __error_t_defined 1" >>confdefs.h 13543 13544fi 13545 13546 13547ARGZ_H= 13548for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 13549 argz_next argz_stringify 13550do : 13551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13552ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13553if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13554 cat >>confdefs.h <<_ACEOF 13555#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13556_ACEOF 13557 13558else 13559 ARGZ_H=argz.h; 13560 13561 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" 13562 13563fi 13564done 13565 13566 13567if test -z "$ARGZ_H"; then : 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 13569$as_echo_n "checking if argz actually works... " >&6; } 13570if ${lt_cv_sys_argz_works+:} false; then : 13571 $as_echo_n "(cached) " >&6 13572else 13573 case $host_os in #( 13574 *cygwin*) 13575 lt_cv_sys_argz_works=no 13576 if test "$cross_compiling" != no; then 13577 lt_cv_sys_argz_works="guessing no" 13578 else 13579 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 13580 save_IFS=$IFS 13581 IFS=-. 13582 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 13583 IFS=$save_IFS 13584 lt_os_major=${2-0} 13585 lt_os_minor=${3-0} 13586 lt_os_micro=${4-0} 13587 if test "$lt_os_major" -gt 1 \ 13588 || { test "$lt_os_major" -eq 1 \ 13589 && { test "$lt_os_minor" -gt 5 \ 13590 || { test "$lt_os_minor" -eq 5 \ 13591 && test "$lt_os_micro" -gt 24; }; }; }; then 13592 lt_cv_sys_argz_works=yes 13593 fi 13594 fi 13595 ;; #( 13596 *) lt_cv_sys_argz_works=yes ;; 13597 esac 13598fi 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 13600$as_echo "$lt_cv_sys_argz_works" >&6; } 13601 if test "$lt_cv_sys_argz_works" = yes; then : 13602 13603$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h 13604 13605else 13606 ARGZ_H=argz.h 13607 13608 13609 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" 13610 13611fi 13612fi 13613 13614 13615 13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 13617$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } 13618if ${libltdl_cv_preloaded_symbols+:} false; then : 13619 $as_echo_n "(cached) " >&6 13620else 13621 if test -n "$lt_cv_sys_global_symbol_pipe"; then 13622 libltdl_cv_preloaded_symbols=yes 13623 else 13624 libltdl_cv_preloaded_symbols=no 13625 fi 13626 13627fi 13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 13629$as_echo "$libltdl_cv_preloaded_symbols" >&6; } 13630if test x"$libltdl_cv_preloaded_symbols" = xyes; then 13631 13632$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h 13633 13634fi 13635 13636 13637 13638# Set options 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651# Check whether --with-included_ltdl was given. 13652if test "${with_included_ltdl+set}" = set; then : 13653 withval=$with_included_ltdl; 13654fi 13655 13656 13657if test "x$with_included_ltdl" != xyes; then 13658 # We are not being forced to use the included libltdl sources, so 13659 # decide whether there is a useful installed version we can use. 13660 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default 13661 13662" 13663if test "x$ac_cv_header_ltdl_h" = xyes; then : 13664 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default 13665 #include <ltdl.h> 13666" 13667if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 13669$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } 13670if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : 13671 $as_echo_n "(cached) " >&6 13672else 13673 ac_check_lib_save_LIBS=$LIBS 13674LIBS="-lltdl $LIBS" 13675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677 13678/* Override any GCC internal prototype to avoid an error. 13679 Use char because int might match the return type of a GCC 13680 builtin and then its argument prototype would still apply. */ 13681#ifdef __cplusplus 13682extern "C" 13683#endif 13684char lt_dladvise_preload (); 13685int 13686main () 13687{ 13688return lt_dladvise_preload (); 13689 ; 13690 return 0; 13691} 13692_ACEOF 13693if ac_fn_c_try_link "$LINENO"; then : 13694 ac_cv_lib_ltdl_lt_dladvise_preload=yes 13695else 13696 ac_cv_lib_ltdl_lt_dladvise_preload=no 13697fi 13698rm -f core conftest.err conftest.$ac_objext \ 13699 conftest$ac_exeext conftest.$ac_ext 13700LIBS=$ac_check_lib_save_LIBS 13701fi 13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 13703$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } 13704if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : 13705 with_included_ltdl=no 13706else 13707 with_included_ltdl=yes 13708fi 13709 13710else 13711 with_included_ltdl=yes 13712fi 13713 13714else 13715 with_included_ltdl=yes 13716fi 13717 13718 13719fi 13720 13721 13722 13723 13724# Check whether --with-ltdl_include was given. 13725if test "${with_ltdl_include+set}" = set; then : 13726 withval=$with_ltdl_include; 13727fi 13728 13729 13730if test -n "$with_ltdl_include"; then 13731 if test -f "$with_ltdl_include/ltdl.h"; then : 13732 else 13733 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 13734 fi 13735else 13736 with_ltdl_include=no 13737fi 13738 13739 13740# Check whether --with-ltdl_lib was given. 13741if test "${with_ltdl_lib+set}" = set; then : 13742 withval=$with_ltdl_lib; 13743fi 13744 13745 13746if test -n "$with_ltdl_lib"; then 13747 if test -f "$with_ltdl_lib/libltdl.la"; then : 13748 else 13749 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 13750 fi 13751else 13752 with_ltdl_lib=no 13753fi 13754 13755case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in 13756 ,yes,no,no,) 13757 case $enable_ltdl_convenience in 13758 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; 13759 "") enable_ltdl_convenience=yes 13760 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 13761esac 13762LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" 13763LTDLDEPS=$LIBLTDL 13764LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" 13765 13766 13767 13768 13769 13770# For backwards non-gettext consistent compatibility... 13771INCLTDL="$LTDLINCL" 13772 13773 13774 ;; 13775 ,no,no,no,) 13776 # If the included ltdl is not to be used, then use the 13777 # preinstalled libltdl we found. 13778 13779$as_echo "#define HAVE_LTDL 1" >>confdefs.h 13780 13781 LIBLTDL=-lltdl 13782 LTDLDEPS= 13783 LTDLINCL= 13784 ;; 13785 ,no*,no,*) 13786 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 13787 ;; 13788 *) with_included_ltdl=no 13789 LIBLTDL="-L$with_ltdl_lib -lltdl" 13790 LTDLDEPS= 13791 LTDLINCL="-I$with_ltdl_include" 13792 ;; 13793esac 13794INCLTDL="$LTDLINCL" 13795 13796# Report our decision... 13797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 13798$as_echo_n "checking where to find libltdl headers... " >&6; } 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 13800$as_echo "$LTDLINCL" >&6; } 13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 13802$as_echo_n "checking where to find libltdl library... " >&6; } 13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 13804$as_echo "$LIBLTDL" >&6; } 13805 13806 13807 13808# Check whether --enable-ltdl-install was given. 13809if test "${enable_ltdl_install+set}" = set; then : 13810 enableval=$enable_ltdl_install; 13811fi 13812 13813 13814case ,${enable_ltdl_install},${enable_ltdl_convenience} in 13815 *yes*) ;; 13816 *) enable_ltdl_convenience=yes ;; 13817esac 13818 13819 if test x"${enable_ltdl_install-no}" != xno; then 13820 INSTALL_LTDL_TRUE= 13821 INSTALL_LTDL_FALSE='#' 13822else 13823 INSTALL_LTDL_TRUE='#' 13824 INSTALL_LTDL_FALSE= 13825fi 13826 13827 if test x"${enable_ltdl_convenience-no}" != xno; then 13828 CONVENIENCE_LTDL_TRUE= 13829 CONVENIENCE_LTDL_FALSE='#' 13830else 13831 CONVENIENCE_LTDL_TRUE='#' 13832 CONVENIENCE_LTDL_FALSE= 13833fi 13834 13835 13836 13837 subdirs="$subdirs libltdl" 13838 13839 13840 13841 13842# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 13843# the user used. This is so that ltdl.h can pick up the parent projects 13844# config.h file, The first file in AC_CONFIG_HEADERS must contain the 13845# definitions required by ltdl.c. 13846# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 13847 13848 13849 13850for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 13851do : 13852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13853ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13854" 13855if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13856 cat >>confdefs.h <<_ACEOF 13857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13858_ACEOF 13859 13860fi 13861 13862done 13863 13864 13865for ac_func in closedir opendir readdir 13866do : 13867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13869if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13870 cat >>confdefs.h <<_ACEOF 13871#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13872_ACEOF 13873 13874else 13875 13876 13877 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" 13878 13879fi 13880done 13881 13882for ac_func in strlcat strlcpy 13883do : 13884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13886if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13887 cat >>confdefs.h <<_ACEOF 13888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13889_ACEOF 13890 13891else 13892 13893 13894 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" 13895 13896fi 13897done 13898 13899 13900 13901cat >>confdefs.h <<_ACEOF 13902#define LT_LIBEXT "$libext" 13903_ACEOF 13904 13905 13906name= 13907eval "lt_libprefix=\"$libname_spec\"" 13908 13909cat >>confdefs.h <<_ACEOF 13910#define LT_LIBPREFIX "$lt_libprefix" 13911_ACEOF 13912 13913 13914name=ltdl 13915eval "LTDLOPEN=\"$libname_spec\"" 13916 13917 13918 13919 13920 13921 13922 13923 13924# Only expand once: 13925 13926 13927 13928 13929 13930if test xyes = x"$with_included_ltdl"; then 13931 13932 LTDL_SUBDIR=libltdl 13933 13934else 13935 LTDL_SUBDIR='' 13936 13937fi 13938 13939LIBTOOL="$LIBTOOL --silent" 13940 13941subdirs="$subdirs libratbox" 13942 13943 13944case "$host_os" in 13945*cygwin*) 13946 13947cat >>confdefs.h <<_ACEOF 13948#define CYGWIN 1 13949_ACEOF 13950 13951 13952cat >>confdefs.h <<_ACEOF 13953#define WINDOWS 1 13954_ACEOF 13955 13956 ;; 13957*mingw*) 13958 13959cat >>confdefs.h <<_ACEOF 13960#define MINGW 1 13961_ACEOF 13962 13963 13964cat >>confdefs.h <<_ACEOF 13965#define WINDOWS 1 13966_ACEOF 13967 13968 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 13969if test "x$ac_cv_header_winsock2_h" = xyes; then : 13970 13971else 13972 as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5 13973fi 13974 13975 13976 LIBS="$LIBS -lws2_32 -liphlpapi" 13977 is_mingw="yes" 13978 ;; 13979*) 13980 ;; 13981esac 13982 13983 if test "$is_mingw" = "yes"; then 13984 MINGW_TRUE= 13985 MINGW_FALSE='#' 13986else 13987 MINGW_TRUE='#' 13988 MINGW_FALSE= 13989fi 13990 13991 13992if test "$LEX" != flex; then 13993 LEX="$SHELL $missing_dir/missing flex" 13994 LEX_OUTPUT_ROOT=lex.yy 13995 13996 LEXLIB='' 13997 13998fi 13999 14000# backwards support for IRC_CFLAGS 14001CFLAGS="$IRC_CFLAGS $CFLAGS" 14002 14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14004$as_echo_n "checking for ANSI C header files... " >&6; } 14005if ${ac_cv_header_stdc+:} false; then : 14006 $as_echo_n "(cached) " >&6 14007else 14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14009/* end confdefs.h. */ 14010#include <stdlib.h> 14011#include <stdarg.h> 14012#include <string.h> 14013#include <float.h> 14014 14015int 14016main () 14017{ 14018 14019 ; 14020 return 0; 14021} 14022_ACEOF 14023if ac_fn_c_try_compile "$LINENO"; then : 14024 ac_cv_header_stdc=yes 14025else 14026 ac_cv_header_stdc=no 14027fi 14028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14029 14030if test $ac_cv_header_stdc = yes; then 14031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034#include <string.h> 14035 14036_ACEOF 14037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14038 $EGREP "memchr" >/dev/null 2>&1; then : 14039 14040else 14041 ac_cv_header_stdc=no 14042fi 14043rm -f conftest* 14044 14045fi 14046 14047if test $ac_cv_header_stdc = yes; then 14048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051#include <stdlib.h> 14052 14053_ACEOF 14054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14055 $EGREP "free" >/dev/null 2>&1; then : 14056 14057else 14058 ac_cv_header_stdc=no 14059fi 14060rm -f conftest* 14061 14062fi 14063 14064if test $ac_cv_header_stdc = yes; then 14065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14066 if test "$cross_compiling" = yes; then : 14067 : 14068else 14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14070/* end confdefs.h. */ 14071#include <ctype.h> 14072#include <stdlib.h> 14073#if ((' ' & 0x0FF) == 0x020) 14074# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14075# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14076#else 14077# define ISLOWER(c) \ 14078 (('a' <= (c) && (c) <= 'i') \ 14079 || ('j' <= (c) && (c) <= 'r') \ 14080 || ('s' <= (c) && (c) <= 'z')) 14081# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14082#endif 14083 14084#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14085int 14086main () 14087{ 14088 int i; 14089 for (i = 0; i < 256; i++) 14090 if (XOR (islower (i), ISLOWER (i)) 14091 || toupper (i) != TOUPPER (i)) 14092 return 2; 14093 return 0; 14094} 14095_ACEOF 14096if ac_fn_c_try_run "$LINENO"; then : 14097 14098else 14099 ac_cv_header_stdc=no 14100fi 14101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14102 conftest.$ac_objext conftest.beam conftest.$ac_ext 14103fi 14104 14105fi 14106fi 14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14108$as_echo "$ac_cv_header_stdc" >&6; } 14109if test $ac_cv_header_stdc = yes; then 14110 14111$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14112 14113fi 14114 14115 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 14117$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 14118if ${ac_cv_header_sys_wait_h+:} false; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14122/* end confdefs.h. */ 14123#include <sys/types.h> 14124#include <sys/wait.h> 14125#ifndef WEXITSTATUS 14126# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14127#endif 14128#ifndef WIFEXITED 14129# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14130#endif 14131 14132int 14133main () 14134{ 14135 int s; 14136 wait (&s); 14137 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14138 ; 14139 return 0; 14140} 14141_ACEOF 14142if ac_fn_c_try_compile "$LINENO"; then : 14143 ac_cv_header_sys_wait_h=yes 14144else 14145 ac_cv_header_sys_wait_h=no 14146fi 14147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14148fi 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 14150$as_echo "$ac_cv_header_sys_wait_h" >&6; } 14151if test $ac_cv_header_sys_wait_h = yes; then 14152 14153$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 14154 14155fi 14156 14157ac_header_dirent=no 14158for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14159 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 14161$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 14162if eval \${$as_ac_Header+:} false; then : 14163 $as_echo_n "(cached) " >&6 14164else 14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14166/* end confdefs.h. */ 14167#include <sys/types.h> 14168#include <$ac_hdr> 14169 14170int 14171main () 14172{ 14173if ((DIR *) 0) 14174return 0; 14175 ; 14176 return 0; 14177} 14178_ACEOF 14179if ac_fn_c_try_compile "$LINENO"; then : 14180 eval "$as_ac_Header=yes" 14181else 14182 eval "$as_ac_Header=no" 14183fi 14184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14185fi 14186eval ac_res=\$$as_ac_Header 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14188$as_echo "$ac_res" >&6; } 14189if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14190 cat >>confdefs.h <<_ACEOF 14191#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14192_ACEOF 14193 14194ac_header_dirent=$ac_hdr; break 14195fi 14196 14197done 14198# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14199if test $ac_header_dirent = dirent.h; then 14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14201$as_echo_n "checking for library containing opendir... " >&6; } 14202if ${ac_cv_search_opendir+:} false; then : 14203 $as_echo_n "(cached) " >&6 14204else 14205 ac_func_search_save_LIBS=$LIBS 14206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14207/* end confdefs.h. */ 14208 14209/* Override any GCC internal prototype to avoid an error. 14210 Use char because int might match the return type of a GCC 14211 builtin and then its argument prototype would still apply. */ 14212#ifdef __cplusplus 14213extern "C" 14214#endif 14215char opendir (); 14216int 14217main () 14218{ 14219return opendir (); 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224for ac_lib in '' dir; do 14225 if test -z "$ac_lib"; then 14226 ac_res="none required" 14227 else 14228 ac_res=-l$ac_lib 14229 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14230 fi 14231 if ac_fn_c_try_link "$LINENO"; then : 14232 ac_cv_search_opendir=$ac_res 14233fi 14234rm -f core conftest.err conftest.$ac_objext \ 14235 conftest$ac_exeext 14236 if ${ac_cv_search_opendir+:} false; then : 14237 break 14238fi 14239done 14240if ${ac_cv_search_opendir+:} false; then : 14241 14242else 14243 ac_cv_search_opendir=no 14244fi 14245rm conftest.$ac_ext 14246LIBS=$ac_func_search_save_LIBS 14247fi 14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14249$as_echo "$ac_cv_search_opendir" >&6; } 14250ac_res=$ac_cv_search_opendir 14251if test "$ac_res" != no; then : 14252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14253 14254fi 14255 14256else 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14258$as_echo_n "checking for library containing opendir... " >&6; } 14259if ${ac_cv_search_opendir+:} false; then : 14260 $as_echo_n "(cached) " >&6 14261else 14262 ac_func_search_save_LIBS=$LIBS 14263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14264/* end confdefs.h. */ 14265 14266/* Override any GCC internal prototype to avoid an error. 14267 Use char because int might match the return type of a GCC 14268 builtin and then its argument prototype would still apply. */ 14269#ifdef __cplusplus 14270extern "C" 14271#endif 14272char opendir (); 14273int 14274main () 14275{ 14276return opendir (); 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281for ac_lib in '' x; do 14282 if test -z "$ac_lib"; then 14283 ac_res="none required" 14284 else 14285 ac_res=-l$ac_lib 14286 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14287 fi 14288 if ac_fn_c_try_link "$LINENO"; then : 14289 ac_cv_search_opendir=$ac_res 14290fi 14291rm -f core conftest.err conftest.$ac_objext \ 14292 conftest$ac_exeext 14293 if ${ac_cv_search_opendir+:} false; then : 14294 break 14295fi 14296done 14297if ${ac_cv_search_opendir+:} false; then : 14298 14299else 14300 ac_cv_search_opendir=no 14301fi 14302rm conftest.$ac_ext 14303LIBS=$ac_func_search_save_LIBS 14304fi 14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14306$as_echo "$ac_cv_search_opendir" >&6; } 14307ac_res=$ac_cv_search_opendir 14308if test "$ac_res" != no; then : 14309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14310 14311fi 14312 14313fi 14314 14315 14316for ac_header in sys/types.h sys/resource.h sys/param.h sys/stat.h sys/socket.h netinet/in.h arpa/inet.h errno.h stddef.h 14317do : 14318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14319ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14320if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14321 cat >>confdefs.h <<_ACEOF 14322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14323_ACEOF 14324 14325fi 14326 14327done 14328 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14330$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14331if ${ac_cv_header_time+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335/* end confdefs.h. */ 14336#include <sys/types.h> 14337#include <sys/time.h> 14338#include <time.h> 14339 14340int 14341main () 14342{ 14343if ((struct tm *) 0) 14344return 0; 14345 ; 14346 return 0; 14347} 14348_ACEOF 14349if ac_fn_c_try_compile "$LINENO"; then : 14350 ac_cv_header_time=yes 14351else 14352 ac_cv_header_time=no 14353fi 14354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14355fi 14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14357$as_echo "$ac_cv_header_time" >&6; } 14358if test $ac_cv_header_time = yes; then 14359 14360$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14361 14362fi 14363 14364 14365for ac_func in snprintf lstat stat 14366do : 14367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14368ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14369if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14370 cat >>confdefs.h <<_ACEOF 14371#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14372_ACEOF 14373 14374fi 14375done 14376 14377 14378 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14380$as_echo_n "checking for library containing socket... " >&6; } 14381if ${ac_cv_search_socket+:} false; then : 14382 $as_echo_n "(cached) " >&6 14383else 14384 ac_func_search_save_LIBS=$LIBS 14385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14386/* end confdefs.h. */ 14387 14388/* Override any GCC internal prototype to avoid an error. 14389 Use char because int might match the return type of a GCC 14390 builtin and then its argument prototype would still apply. */ 14391#ifdef __cplusplus 14392extern "C" 14393#endif 14394char socket (); 14395int 14396main () 14397{ 14398return socket (); 14399 ; 14400 return 0; 14401} 14402_ACEOF 14403for ac_lib in '' socket; do 14404 if test -z "$ac_lib"; then 14405 ac_res="none required" 14406 else 14407 ac_res=-l$ac_lib 14408 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14409 fi 14410 if ac_fn_c_try_link "$LINENO"; then : 14411 ac_cv_search_socket=$ac_res 14412fi 14413rm -f core conftest.err conftest.$ac_objext \ 14414 conftest$ac_exeext 14415 if ${ac_cv_search_socket+:} false; then : 14416 break 14417fi 14418done 14419if ${ac_cv_search_socket+:} false; then : 14420 14421else 14422 ac_cv_search_socket=no 14423fi 14424rm conftest.$ac_ext 14425LIBS=$ac_func_search_save_LIBS 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14428$as_echo "$ac_cv_search_socket" >&6; } 14429ac_res=$ac_cv_search_socket 14430if test "$ac_res" != no; then : 14431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14432 14433fi 14434 14435 14436# Check whether --enable-ipv6 was given. 14437if test "${enable_ipv6+set}" = set; then : 14438 enableval=$enable_ipv6; ipv6=$enableval 14439else 14440 ipv6=yes 14441fi 14442 14443 14444 14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 14446$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 14447if ${gcc_cv_header_string+:} false; then : 14448 $as_echo_n "(cached) " >&6 14449else 14450 14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14452/* end confdefs.h. */ 14453#include <string.h> 14454 #include <strings.h> 14455_ACEOF 14456if ac_fn_c_try_compile "$LINENO"; then : 14457 gcc_cv_header_string=yes 14458else 14459 gcc_cv_header_string=no 14460fi 14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14462 14463fi 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 14465$as_echo "$gcc_cv_header_string" >&6; } 14466 14467if test "$gcc_cv_header_string" = "yes"; then 14468 14469$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 14470 14471fi 14472 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14474$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14475if ${ac_cv_c_bigendian+:} false; then : 14476 $as_echo_n "(cached) " >&6 14477else 14478 ac_cv_c_bigendian=unknown 14479 # See if we're dealing with a universal compiler. 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482#ifndef __APPLE_CC__ 14483 not a universal capable compiler 14484 #endif 14485 typedef int dummy; 14486 14487_ACEOF 14488if ac_fn_c_try_compile "$LINENO"; then : 14489 14490 # Check for potential -arch flags. It is not universal unless 14491 # there are at least two -arch flags with different values. 14492 ac_arch= 14493 ac_prev= 14494 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14495 if test -n "$ac_prev"; then 14496 case $ac_word in 14497 i?86 | x86_64 | ppc | ppc64) 14498 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14499 ac_arch=$ac_word 14500 else 14501 ac_cv_c_bigendian=universal 14502 break 14503 fi 14504 ;; 14505 esac 14506 ac_prev= 14507 elif test "x$ac_word" = "x-arch"; then 14508 ac_prev=arch 14509 fi 14510 done 14511fi 14512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14513 if test $ac_cv_c_bigendian = unknown; then 14514 # See if sys/param.h defines the BYTE_ORDER macro. 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516/* end confdefs.h. */ 14517#include <sys/types.h> 14518 #include <sys/param.h> 14519 14520int 14521main () 14522{ 14523#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14524 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14525 && LITTLE_ENDIAN) 14526 bogus endian macros 14527 #endif 14528 14529 ; 14530 return 0; 14531} 14532_ACEOF 14533if ac_fn_c_try_compile "$LINENO"; then : 14534 # It does; now see whether it defined to BIG_ENDIAN or not. 14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14536/* end confdefs.h. */ 14537#include <sys/types.h> 14538 #include <sys/param.h> 14539 14540int 14541main () 14542{ 14543#if BYTE_ORDER != BIG_ENDIAN 14544 not big endian 14545 #endif 14546 14547 ; 14548 return 0; 14549} 14550_ACEOF 14551if ac_fn_c_try_compile "$LINENO"; then : 14552 ac_cv_c_bigendian=yes 14553else 14554 ac_cv_c_bigendian=no 14555fi 14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14557fi 14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14559 fi 14560 if test $ac_cv_c_bigendian = unknown; then 14561 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564#include <limits.h> 14565 14566int 14567main () 14568{ 14569#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14570 bogus endian macros 14571 #endif 14572 14573 ; 14574 return 0; 14575} 14576_ACEOF 14577if ac_fn_c_try_compile "$LINENO"; then : 14578 # It does; now see whether it defined to _BIG_ENDIAN or not. 14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581#include <limits.h> 14582 14583int 14584main () 14585{ 14586#ifndef _BIG_ENDIAN 14587 not big endian 14588 #endif 14589 14590 ; 14591 return 0; 14592} 14593_ACEOF 14594if ac_fn_c_try_compile "$LINENO"; then : 14595 ac_cv_c_bigendian=yes 14596else 14597 ac_cv_c_bigendian=no 14598fi 14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14600fi 14601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14602 fi 14603 if test $ac_cv_c_bigendian = unknown; then 14604 # Compile a test program. 14605 if test "$cross_compiling" = yes; then : 14606 # Try to guess by grepping values from an object file. 14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14608/* end confdefs.h. */ 14609short int ascii_mm[] = 14610 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14611 short int ascii_ii[] = 14612 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14613 int use_ascii (int i) { 14614 return ascii_mm[i] + ascii_ii[i]; 14615 } 14616 short int ebcdic_ii[] = 14617 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14618 short int ebcdic_mm[] = 14619 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14620 int use_ebcdic (int i) { 14621 return ebcdic_mm[i] + ebcdic_ii[i]; 14622 } 14623 extern int foo; 14624 14625int 14626main () 14627{ 14628return use_ascii (foo) == use_ebcdic (foo); 14629 ; 14630 return 0; 14631} 14632_ACEOF 14633if ac_fn_c_try_compile "$LINENO"; then : 14634 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14635 ac_cv_c_bigendian=yes 14636 fi 14637 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14638 if test "$ac_cv_c_bigendian" = unknown; then 14639 ac_cv_c_bigendian=no 14640 else 14641 # finding both strings is unlikely to happen, but who knows? 14642 ac_cv_c_bigendian=unknown 14643 fi 14644 fi 14645fi 14646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14647else 14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14649/* end confdefs.h. */ 14650$ac_includes_default 14651int 14652main () 14653{ 14654 14655 /* Are we little or big endian? From Harbison&Steele. */ 14656 union 14657 { 14658 long int l; 14659 char c[sizeof (long int)]; 14660 } u; 14661 u.l = 1; 14662 return u.c[sizeof (long int) - 1] == 1; 14663 14664 ; 14665 return 0; 14666} 14667_ACEOF 14668if ac_fn_c_try_run "$LINENO"; then : 14669 ac_cv_c_bigendian=no 14670else 14671 ac_cv_c_bigendian=yes 14672fi 14673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14674 conftest.$ac_objext conftest.beam conftest.$ac_ext 14675fi 14676 14677 fi 14678fi 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14680$as_echo "$ac_cv_c_bigendian" >&6; } 14681 case $ac_cv_c_bigendian in #( 14682 yes) 14683 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14684;; #( 14685 no) 14686 ;; #( 14687 universal) 14688 14689$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14690 14691 ;; #( 14692 *) 14693 as_fn_error $? "unknown endianness 14694 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14695 esac 14696 14697 14698ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 14699if test "x$ac_cv_header_stdarg_h" = xyes; then : 14700 14701else 14702 as_fn_error $? "** stdarg.h could not be found - ircd-ratbox will not compile without it **" "$LINENO" 5 14703fi 14704 14705 14706 14707ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14708if test "x$ac_cv_type_size_t" = xyes; then : 14709 14710else 14711 14712cat >>confdefs.h <<_ACEOF 14713#define size_t unsigned int 14714_ACEOF 14715 14716fi 14717 14718# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 14719# for constant arguments. Useless! 14720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 14721$as_echo_n "checking for working alloca.h... " >&6; } 14722if ${ac_cv_working_alloca_h+:} false; then : 14723 $as_echo_n "(cached) " >&6 14724else 14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14726/* end confdefs.h. */ 14727#include <alloca.h> 14728int 14729main () 14730{ 14731char *p = (char *) alloca (2 * sizeof (int)); 14732 if (p) return 0; 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737if ac_fn_c_try_link "$LINENO"; then : 14738 ac_cv_working_alloca_h=yes 14739else 14740 ac_cv_working_alloca_h=no 14741fi 14742rm -f core conftest.err conftest.$ac_objext \ 14743 conftest$ac_exeext conftest.$ac_ext 14744fi 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 14746$as_echo "$ac_cv_working_alloca_h" >&6; } 14747if test $ac_cv_working_alloca_h = yes; then 14748 14749$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 14750 14751fi 14752 14753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 14754$as_echo_n "checking for alloca... " >&6; } 14755if ${ac_cv_func_alloca_works+:} false; then : 14756 $as_echo_n "(cached) " >&6 14757else 14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14759/* end confdefs.h. */ 14760#ifdef __GNUC__ 14761# define alloca __builtin_alloca 14762#else 14763# ifdef _MSC_VER 14764# include <malloc.h> 14765# define alloca _alloca 14766# else 14767# ifdef HAVE_ALLOCA_H 14768# include <alloca.h> 14769# else 14770# ifdef _AIX 14771 #pragma alloca 14772# else 14773# ifndef alloca /* predefined by HP cc +Olibcalls */ 14774void *alloca (size_t); 14775# endif 14776# endif 14777# endif 14778# endif 14779#endif 14780 14781int 14782main () 14783{ 14784char *p = (char *) alloca (1); 14785 if (p) return 0; 14786 ; 14787 return 0; 14788} 14789_ACEOF 14790if ac_fn_c_try_link "$LINENO"; then : 14791 ac_cv_func_alloca_works=yes 14792else 14793 ac_cv_func_alloca_works=no 14794fi 14795rm -f core conftest.err conftest.$ac_objext \ 14796 conftest$ac_exeext conftest.$ac_ext 14797fi 14798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 14799$as_echo "$ac_cv_func_alloca_works" >&6; } 14800 14801if test $ac_cv_func_alloca_works = yes; then 14802 14803$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 14804 14805else 14806 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 14807# that cause trouble. Some versions do not even contain alloca or 14808# contain a buggy version. If you still want to use their alloca, 14809# use ar to extract alloca.o from them instead of compiling alloca.c. 14810 14811ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 14812 14813$as_echo "#define C_ALLOCA 1" >>confdefs.h 14814 14815 14816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 14817$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 14818if ${ac_cv_os_cray+:} false; then : 14819 $as_echo_n "(cached) " >&6 14820else 14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14822/* end confdefs.h. */ 14823#if defined CRAY && ! defined CRAY2 14824webecray 14825#else 14826wenotbecray 14827#endif 14828 14829_ACEOF 14830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14831 $EGREP "webecray" >/dev/null 2>&1; then : 14832 ac_cv_os_cray=yes 14833else 14834 ac_cv_os_cray=no 14835fi 14836rm -f conftest* 14837 14838fi 14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 14840$as_echo "$ac_cv_os_cray" >&6; } 14841if test $ac_cv_os_cray = yes; then 14842 for ac_func in _getb67 GETB67 getb67; do 14843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14844ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14845if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14846 14847cat >>confdefs.h <<_ACEOF 14848#define CRAY_STACKSEG_END $ac_func 14849_ACEOF 14850 14851 break 14852fi 14853 14854 done 14855fi 14856 14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 14858$as_echo_n "checking stack direction for C alloca... " >&6; } 14859if ${ac_cv_c_stack_direction+:} false; then : 14860 $as_echo_n "(cached) " >&6 14861else 14862 if test "$cross_compiling" = yes; then : 14863 ac_cv_c_stack_direction=0 14864else 14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14866/* end confdefs.h. */ 14867$ac_includes_default 14868int 14869find_stack_direction (int *addr, int depth) 14870{ 14871 int dir, dummy = 0; 14872 if (! addr) 14873 addr = &dummy; 14874 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 14875 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 14876 return dir + dummy; 14877} 14878 14879int 14880main (int argc, char **argv) 14881{ 14882 return find_stack_direction (0, argc + !argv + 20) < 0; 14883} 14884_ACEOF 14885if ac_fn_c_try_run "$LINENO"; then : 14886 ac_cv_c_stack_direction=1 14887else 14888 ac_cv_c_stack_direction=-1 14889fi 14890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14891 conftest.$ac_objext conftest.beam conftest.$ac_ext 14892fi 14893 14894fi 14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 14896$as_echo "$ac_cv_c_stack_direction" >&6; } 14897cat >>confdefs.h <<_ACEOF 14898#define STACK_DIRECTION $ac_cv_c_stack_direction 14899_ACEOF 14900 14901 14902fi 14903 14904 14905# The cast to long int works around a bug in the HP C Compiler 14906# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14907# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14908# This bug is HP SR number 8606223364. 14909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14910$as_echo_n "checking size of time_t... " >&6; } 14911if ${ac_cv_sizeof_time_t+:} false; then : 14912 $as_echo_n "(cached) " >&6 14913else 14914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14915$ac_includes_default 14916#ifdef TIME_WITH_SYS_TIME 14917# include <sys/time.h> 14918# include <time.h> 14919#else 14920# ifdef HAVE_SYS_TIME_H 14921# include <sys/time.h> 14922# else 14923# include <time.h> 14924# endif 14925#endif 14926 14927"; then : 14928 14929else 14930 if test "$ac_cv_type_time_t" = yes; then 14931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14933as_fn_error 77 "cannot compute sizeof (time_t) 14934See \`config.log' for more details" "$LINENO" 5; } 14935 else 14936 ac_cv_sizeof_time_t=0 14937 fi 14938fi 14939 14940fi 14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14942$as_echo "$ac_cv_sizeof_time_t" >&6; } 14943 14944 14945 14946cat >>confdefs.h <<_ACEOF 14947#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14948_ACEOF 14949 14950 14951 14952# The cast to long int works around a bug in the HP C Compiler 14953# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14954# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14955# This bug is HP SR number 8606223364. 14956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14957$as_echo_n "checking size of long... " >&6; } 14958if ${ac_cv_sizeof_long+:} false; then : 14959 $as_echo_n "(cached) " >&6 14960else 14961 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14962 14963else 14964 if test "$ac_cv_type_long" = yes; then 14965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14967as_fn_error 77 "cannot compute sizeof (long) 14968See \`config.log' for more details" "$LINENO" 5; } 14969 else 14970 ac_cv_sizeof_long=0 14971 fi 14972fi 14973 14974fi 14975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14976$as_echo "$ac_cv_sizeof_long" >&6; } 14977 14978 14979 14980cat >>confdefs.h <<_ACEOF 14981#define SIZEOF_LONG $ac_cv_sizeof_long 14982_ACEOF 14983 14984 14985 14986 14987 14988 14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 14990$as_echo_n "checking for OpenSSL... " >&6; } 14991# Check whether --enable-openssl was given. 14992if test "${enable_openssl+set}" = set; then : 14993 enableval=$enable_openssl; cf_enable_openssl=$enableval 14994else 14995 cf_enable_openssl="auto" 14996fi 14997 14998 14999if test "$cf_enable_openssl" != "no" ; then 15000 cf_openssl_basedir="" 15001 if test "$cf_enable_openssl" != "auto" && 15002 test "$cf_enable_openssl" != "yes" ; then 15003 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" 15004 else 15005 for dirs in /usr/local/ssl /usr/pkg /usr/local \ 15006 /usr/local/openssl ; do 15007 if test -f "${dirs}/include/openssl/opensslv.h" ; then 15008 cf_openssl_basedir="${dirs}" 15009 break 15010 fi 15011 done 15012 unset dirs 15013 fi 15014 if test ! -z "$cf_openssl_basedir"; then 15015 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then 15016 SSL_INCLUDES="-I${cf_openssl_basedir}/include" 15017 SSL_LIBS="-L${cf_openssl_basedir}/lib $lt_cv_dlopen_libs" 15018 else 15019 cf_openssl_basedir="" 15020 fi 15021 else 15022 if test -f "/usr/include/openssl/opensslv.h" ; then 15023 cf_openssl_basedir="/usr" 15024 fi 15025 fi 15026 15027 if test ! -z "$cf_openssl_basedir"; then 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 15029$as_echo "$cf_openssl_basedir" >&6; } 15030 cf_enable_openssl="yes" 15031 else 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 15033$as_echo "not found. Specify a correct path?" >&6; } 15034 cf_enable_openssl="no" 15035 fi 15036 unset cf_openssl_basedir 15037else 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15039$as_echo "disabled" >&6; } 15040fi 15041 15042save_CPPFLAGS="$CPPFLAGS" 15043CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" 15044save_LIBS="$LIBS" 15045LIBS="$LIBS $SSL_LIBS" 15046 15047 15048 15049 15050CPPFLAGS="$CPPFLAGS $SSL_LIBS" 15051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 15052$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } 15053if ${ac_cv_lib_crypto_RSA_free+:} false; then : 15054 $as_echo_n "(cached) " >&6 15055else 15056 ac_check_lib_save_LIBS=$LIBS 15057LIBS="-lcrypto $LIBS" 15058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15059/* end confdefs.h. */ 15060 15061/* Override any GCC internal prototype to avoid an error. 15062 Use char because int might match the return type of a GCC 15063 builtin and then its argument prototype would still apply. */ 15064#ifdef __cplusplus 15065extern "C" 15066#endif 15067char RSA_free (); 15068int 15069main () 15070{ 15071return RSA_free (); 15072 ; 15073 return 0; 15074} 15075_ACEOF 15076if ac_fn_c_try_link "$LINENO"; then : 15077 ac_cv_lib_crypto_RSA_free=yes 15078else 15079 ac_cv_lib_crypto_RSA_free=no 15080fi 15081rm -f core conftest.err conftest.$ac_objext \ 15082 conftest$ac_exeext conftest.$ac_ext 15083LIBS=$ac_check_lib_save_LIBS 15084fi 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 15086$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } 15087if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : 15088 SSL_LIBS="$SSL_LIBS -lcrypto $lt_cv_dlopen_libs" 15089else 15090 cf_enable_openssl=no 15091 15092fi 15093 15094 15095if test "$cf_enable_openssl" != no; then 15096 15097$as_echo "#define USE_CHALLENGE 1" >>confdefs.h 15098 15099fi 15100 15101CPPFLAGS="$save_CPPFLAGS" 15102LIBS="$save_LIBS" 15103 15104 15105ac_cv_build_sqlite3=no 15106 15107 15108 have_sqlite3="no" 15109 ac_sqlite3="no" 15110 ac_sqlite3_incdir="no" 15111 ac_sqlite3_libdir="no" 15112 15113 # exported variables 15114 SQLITE3_LIBS="" 15115 SQLITE3_CFLAGS="" 15116 15117 15118# Check whether --with-sqlite3 was given. 15119if test "${with_sqlite3+set}" = set; then : 15120 withval=$with_sqlite3; ac_sqlite3="$withval" 15121 if test "x$withval" != "xno" -a "x$withval" != "xyes"; then 15122 ac_sqlite3="yes" 15123 ac_sqlite3_incdir="$withval"/include 15124 ac_sqlite3_libdir="$withval"/lib 15125 fi 15126else 15127 ac_sqlite3="auto" 15128fi 15129 15130 15131# Check whether --with-sqlite3-incdir was given. 15132if test "${with_sqlite3_incdir+set}" = set; then : 15133 withval=$with_sqlite3_incdir; ac_sqlite3_incdir="$withval" 15134fi 15135 15136 15137# Check whether --with-sqlite3-libdir was given. 15138if test "${with_sqlite3_libdir+set}" = set; then : 15139 withval=$with_sqlite3_libdir; ac_sqlite3_libdir="$withval" 15140fi 15141 15142 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3" >&5 15144$as_echo_n "checking for SQLite3... " >&6; } 15145 15146 # Try to automagically find SQLite, either with pkg-config, or without. 15147 if test "x$ac_sqlite3" = "xauto"; then 15148 if test "x$PKG_CONFIG" != "xno"; then 15149 SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3 2>/dev/null` 15150 SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3 2>/dev/null` 15151 if test "x$SQLITE3_LIBS" = "x" -a "x$SQLITE3_CFLAGS" = "x"; then 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 15153$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 15154if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 15155 $as_echo_n "(cached) " >&6 15156else 15157 ac_check_lib_save_LIBS=$LIBS 15158LIBS="-lsqlite3 $LIBS" 15159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15160/* end confdefs.h. */ 15161 15162/* Override any GCC internal prototype to avoid an error. 15163 Use char because int might match the return type of a GCC 15164 builtin and then its argument prototype would still apply. */ 15165#ifdef __cplusplus 15166extern "C" 15167#endif 15168char sqlite3_open (); 15169int 15170main () 15171{ 15172return sqlite3_open (); 15173 ; 15174 return 0; 15175} 15176_ACEOF 15177if ac_fn_c_try_link "$LINENO"; then : 15178 ac_cv_lib_sqlite3_sqlite3_open=yes 15179else 15180 ac_cv_lib_sqlite3_sqlite3_open=no 15181fi 15182rm -f core conftest.err conftest.$ac_objext \ 15183 conftest$ac_exeext conftest.$ac_ext 15184LIBS=$ac_check_lib_save_LIBS 15185fi 15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 15187$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 15188if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 15189 ac_sqlite3="yes" 15190else 15191 ac_sqlite3="no" 15192fi 15193 15194 else 15195 ac_sqlite3="yes" 15196 fi 15197 else 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 15199$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 15200if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 15201 $as_echo_n "(cached) " >&6 15202else 15203 ac_check_lib_save_LIBS=$LIBS 15204LIBS="-lsqlite3 $LIBS" 15205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15206/* end confdefs.h. */ 15207 15208/* Override any GCC internal prototype to avoid an error. 15209 Use char because int might match the return type of a GCC 15210 builtin and then its argument prototype would still apply. */ 15211#ifdef __cplusplus 15212extern "C" 15213#endif 15214char sqlite3_open (); 15215int 15216main () 15217{ 15218return sqlite3_open (); 15219 ; 15220 return 0; 15221} 15222_ACEOF 15223if ac_fn_c_try_link "$LINENO"; then : 15224 ac_cv_lib_sqlite3_sqlite3_open=yes 15225else 15226 ac_cv_lib_sqlite3_sqlite3_open=no 15227fi 15228rm -f core conftest.err conftest.$ac_objext \ 15229 conftest$ac_exeext conftest.$ac_ext 15230LIBS=$ac_check_lib_save_LIBS 15231fi 15232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 15233$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 15234if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 15235 ac_sqlite3="yes" 15236else 15237 ac_sqlite3="no" 15238fi 15239 15240 fi 15241 fi 15242 15243 if test "x$ac_sqlite3" = "xyes"; then 15244 if test "$ac_sqlite3_incdir" = "no"; then 15245 sqlite3_incdirs="/usr/include /usr/local/include /usr/include/sqlite /usr/local/include/sqlite /usr/local/sqlite/include /opt/sqlite/include" 15246 15247 ac_sqlite3_incdir=no 15248 for i in $sqlite3_incdirs; do 15249 for j in sqlite3.h; do 15250 if test -r "$i/$j"; then 15251 ac_sqlite3_incdir=$i 15252 break 2 15253 fi 15254 done 15255 done 15256 if test "$ac_sqlite3_incdir" = "no"; then 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid SQLite directory - include files not found." >&5 15258$as_echo "$as_me: WARNING: Invalid SQLite directory - include files not found." >&2;} 15259 sqlite3_missing=yes 15260 ac_sqlite3=no 15261 fi 15262 fi 15263 if test "$ac_sqlite3_libdir" = "no"; then 15264 sqlite3_libdirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /usr/lib/sqlite usr/lib64/sqlite /usr/local/lib/sqlite /usr/local/sqlite/lib /opt/sqlite/lib" 15265 sqlite3_libs="libsqlite3.so libsqlite3.dylib libsqlite3.a" 15266 15267 ac_sqlite3_libdir=no 15268 for i in $sqlite3_libdirs; do 15269 for j in $sqlite3_libs; do 15270 if test -r "$i/$j"; then 15271 ac_sqlite3_libdir=$i 15272 break 2 15273 fi 15274 done 15275 done 15276 if test "$ac_sqlite3_libdir" = "no"; then 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid SQLite directory - libraries not found." >&5 15278$as_echo "$as_me: WARNING: Invalid SQLite directory - libraries not found." >&2;} 15279 sqlite3_missing=yes 15280 ac_sqlite3=no 15281 fi 15282 fi 15283 if test x"$sqlite3_missing" != "xyes"; then 15284 have_sqlite3="yes" 15285 15286 if test x"$ac_sqlite3_libdir" = xno; then 15287 test "x$SQLITE3_LIBS" = "x" && SQLITE3_LIBS="-lsqlite3" 15288 else 15289 test "x$SQLITE3_LIBS" = "x" && SQLITE3_LIBS="-L$ac_sqlite3_libdir -lsqlite3" 15290 fi 15291 test x"$ac_sqlite3_incdir" != xno && test "x$SQLITE3_CFLAGS" = "x" && SQLITE3_CFLAGS=-I$ac_sqlite3_incdir 15292 15293 15294 15295 else 15296 ac_sqlite3=no 15297 fi 15298 fi 15299 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sqlite3" >&5 15301$as_echo "$ac_sqlite3" >&6; } 15302 15303 15304 15305if test x"$ac_sqlite3" != xyes; then 15306 ac_cv_build_sqlite3=yes 15307 SQLITE_SUBDIR=sqlite3 15308 15309 SQLITE3_CFLAGS="-Isqlite3" 15310 save_LIBS=$LIBS 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 15312$as_echo_n "checking for library containing fdatasync... " >&6; } 15313if ${ac_cv_search_fdatasync+:} false; then : 15314 $as_echo_n "(cached) " >&6 15315else 15316 ac_func_search_save_LIBS=$LIBS 15317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15318/* end confdefs.h. */ 15319 15320/* Override any GCC internal prototype to avoid an error. 15321 Use char because int might match the return type of a GCC 15322 builtin and then its argument prototype would still apply. */ 15323#ifdef __cplusplus 15324extern "C" 15325#endif 15326char fdatasync (); 15327int 15328main () 15329{ 15330return fdatasync (); 15331 ; 15332 return 0; 15333} 15334_ACEOF 15335for ac_lib in '' rt; do 15336 if test -z "$ac_lib"; then 15337 ac_res="none required" 15338 else 15339 ac_res=-l$ac_lib 15340 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15341 fi 15342 if ac_fn_c_try_link "$LINENO"; then : 15343 ac_cv_search_fdatasync=$ac_res 15344fi 15345rm -f core conftest.err conftest.$ac_objext \ 15346 conftest$ac_exeext 15347 if ${ac_cv_search_fdatasync+:} false; then : 15348 break 15349fi 15350done 15351if ${ac_cv_search_fdatasync+:} false; then : 15352 15353else 15354 ac_cv_search_fdatasync=no 15355fi 15356rm conftest.$ac_ext 15357LIBS=$ac_func_search_save_LIBS 15358fi 15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 15360$as_echo "$ac_cv_search_fdatasync" >&6; } 15361ac_res=$ac_cv_search_fdatasync 15362if test "$ac_res" != no; then : 15363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15364 15365fi 15366 15367 FDATASYNCLIB=$ac_cv_search_fdatasync 15368 LIBS=$save_LIBS 15369 15370 if test "$FDATASYNCLIB" = "none required"; then 15371 unset FDATASYNCLIB 15372 fi 15373 15374 if test "$FDATASYNCLIB" = "no"; then 15375 unset FDATASYNCLIB 15376 fi 15377 15378 SQLITE3_LIBS="$FDATASYNCLIB sqlite3/libsqlite3.a" 15379 SQLITE3_LIBS=$SQLITE3_LIBS 15380 15381 15382fi 15383 15384 15385 if test "$ac_cv_build_sqlite3" = yes; then 15386 BUILD_SQLITE_TRUE= 15387 BUILD_SQLITE_FALSE='#' 15388else 15389 BUILD_SQLITE_TRUE='#' 15390 BUILD_SQLITE_FALSE= 15391fi 15392 15393 15394 15395 15396 15397 15398# Check whether --with-zlib-path was given. 15399if test "${with_zlib_path+set}" = set; then : 15400 withval=$with_zlib_path; LIBS="$LIBS -L$withval" 15401fi 15402 15403 15404# Check whether --enable-zlib was given. 15405if test "${enable_zlib+set}" = set; then : 15406 enableval=$enable_zlib; zlib=$enableval 15407else 15408 zlib=yes 15409fi 15410 15411 15412if test "$zlib" = yes; then 15413 15414ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 15415if test "x$ac_cv_header_zlib_h" = xyes; then : 15416 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 15418$as_echo_n "checking for zlibVersion in -lz... " >&6; } 15419if ${ac_cv_lib_z_zlibVersion+:} false; then : 15420 $as_echo_n "(cached) " >&6 15421else 15422 ac_check_lib_save_LIBS=$LIBS 15423LIBS="-lz $LIBS" 15424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15425/* end confdefs.h. */ 15426 15427/* Override any GCC internal prototype to avoid an error. 15428 Use char because int might match the return type of a GCC 15429 builtin and then its argument prototype would still apply. */ 15430#ifdef __cplusplus 15431extern "C" 15432#endif 15433char zlibVersion (); 15434int 15435main () 15436{ 15437return zlibVersion (); 15438 ; 15439 return 0; 15440} 15441_ACEOF 15442if ac_fn_c_try_link "$LINENO"; then : 15443 ac_cv_lib_z_zlibVersion=yes 15444else 15445 ac_cv_lib_z_zlibVersion=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext \ 15448 conftest$ac_exeext conftest.$ac_ext 15449LIBS=$ac_check_lib_save_LIBS 15450fi 15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 15452$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } 15453if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : 15454 15455 ZLIB_LD=-lz 15456 15457 15458$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 15459 15460 15461else 15462 zlib=no 15463fi 15464 15465 15466else 15467 zlib=no 15468fi 15469 15470 15471 15472fi 15473 15474 15475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5 15476$as_echo_n "checking whether to modify confdir... " >&6; } 15477 15478# Check whether --with-confdir was given. 15479if test "${with_confdir+set}" = set; then : 15480 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15482$as_echo "yes" >&6; } 15483 15484 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15486 ac_define_dir=`eval echo $confdir` 15487 ac_define_dir=`eval echo $ac_define_dir` 15488 ETC_DIR="$ac_define_dir" 15489 15490 15491cat >>confdefs.h <<_ACEOF 15492#define ETC_DIR "$ac_define_dir" 15493_ACEOF 15494 15495 15496 15497 15498 confdir=`( 15499 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15500 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15501 eval echo \""$confdir"\" 15502 )` 15503 15504 15505else 15506 confdir='${prefix}/etc' 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15508$as_echo "no" >&6; } 15509 15510 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15512 ac_define_dir=`eval echo $confdir` 15513 ac_define_dir=`eval echo $ac_define_dir` 15514 ETC_DIR="$ac_define_dir" 15515 15516 15517cat >>confdefs.h <<_ACEOF 15518#define ETC_DIR "$ac_define_dir" 15519_ACEOF 15520 15521 15522 15523 15524 confdir=`( 15525 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15526 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15527 eval echo \""$confdir"\" 15528 )` 15529 15530 15531 15532fi 15533 15534 15535 15536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 15537$as_echo_n "checking whether to modify logdir... " >&6; } 15538 15539# Check whether --with-logdir was given. 15540if test "${with_logdir+set}" = set; then : 15541 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15543$as_echo "yes" >&6; } 15544 15545 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15547 ac_define_dir=`eval echo $logdir` 15548 ac_define_dir=`eval echo $ac_define_dir` 15549 LOG_DIR="$ac_define_dir" 15550 15551 15552cat >>confdefs.h <<_ACEOF 15553#define LOG_DIR "$ac_define_dir" 15554_ACEOF 15555 15556 15557 15558 15559 logdir=`( 15560 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15561 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15562 eval echo \""$logdir"\" 15563 )` 15564 15565 15566else 15567 logdir='${prefix}/logs' 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15569$as_echo "no" >&6; } 15570 15571 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15573 ac_define_dir=`eval echo $logdir` 15574 ac_define_dir=`eval echo $ac_define_dir` 15575 LOG_DIR="$ac_define_dir" 15576 15577 15578cat >>confdefs.h <<_ACEOF 15579#define LOG_DIR "$ac_define_dir" 15580_ACEOF 15581 15582 15583 15584 15585 logdir=`( 15586 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15587 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15588 eval echo \""$logdir"\" 15589 )` 15590 15591 15592 15593fi 15594 15595 15596 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 15598$as_echo_n "checking whether to modify helpdir... " >&6; } 15599 15600# Check whether --with-helpdir was given. 15601if test "${with_helpdir+set}" = set; then : 15602 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15604$as_echo "yes" >&6; } 15605 15606 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15608 ac_define_dir=`eval echo $helpdir` 15609 ac_define_dir=`eval echo $ac_define_dir` 15610 HELP_DIR="$ac_define_dir" 15611 15612 15613cat >>confdefs.h <<_ACEOF 15614#define HELP_DIR "$ac_define_dir" 15615_ACEOF 15616 15617 15618 15619 15620 helpdir=`( 15621 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15622 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15623 eval echo \""$helpdir"\" 15624 )` 15625 15626 15627else 15628 helpdir='${prefix}/help' 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15630$as_echo "no" >&6; } 15631 15632 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15634 ac_define_dir=`eval echo $helpdir` 15635 ac_define_dir=`eval echo $ac_define_dir` 15636 HELP_DIR="$ac_define_dir" 15637 15638 15639cat >>confdefs.h <<_ACEOF 15640#define HELP_DIR "$ac_define_dir" 15641_ACEOF 15642 15643 15644 15645 15646 helpdir=`( 15647 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15648 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15649 eval echo \""$helpdir"\" 15650 )` 15651 15652 15653 15654fi 15655 15656 15657 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 15659$as_echo_n "checking whether to modify moduledir... " >&6; } 15660 15661# Check whether --with-moduledir was given. 15662if test "${with_moduledir+set}" = set; then : 15663 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15665$as_echo "yes" >&6; } 15666 15667 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15669 ac_define_dir=`eval echo $moduledir` 15670 ac_define_dir=`eval echo $ac_define_dir` 15671 MODULE_DIR="$ac_define_dir" 15672 15673 15674cat >>confdefs.h <<_ACEOF 15675#define MODULE_DIR "$ac_define_dir" 15676_ACEOF 15677 15678 15679 15680 15681 moduledir=`( 15682 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15683 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15684 eval echo \""$moduledir"\" 15685 )` 15686 15687 15688else 15689 moduledir='${prefix}/modules' 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15691$as_echo "no" >&6; } 15692 15693 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15694 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15695 ac_define_dir=`eval echo $moduledir` 15696 ac_define_dir=`eval echo $ac_define_dir` 15697 MODULE_DIR="$ac_define_dir" 15698 15699 15700cat >>confdefs.h <<_ACEOF 15701#define MODULE_DIR "$ac_define_dir" 15702_ACEOF 15703 15704 15705 15706 15707 moduledir=`( 15708 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15709 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 15710 eval echo \""$moduledir"\" 15711 )` 15712 15713 15714 15715fi 15716 15717 15718 15719# Check whether --enable-assert was given. 15720if test "${enable_assert+set}" = set; then : 15721 enableval=$enable_assert; assert=$enableval 15722else 15723 assert=no 15724fi 15725 15726 15727if test "$assert" = no; then 15728 15729$as_echo "#define NDEBUG 1" >>confdefs.h 15730 15731elif test "$assert" = soft; then 15732 15733$as_echo "#define SOFT_ASSERT 1" >>confdefs.h 15734 15735 15736$as_echo "#define NDEBUG 1" >>confdefs.h 15737 15738elif test "$assert" = yes; then 15739 assert = "hard"; 15740fi 15741 15742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 15743$as_echo_n "checking if you want IO Debugging hooks... " >&6; } 15744# Check whether --enable-iodebug was given. 15745if test "${enable_iodebug+set}" = set; then : 15746 enableval=$enable_iodebug; iodebug=$enableval 15747else 15748 iodebug=no 15749fi 15750 15751 15752if test "$iodebug" = yes; then 15753 15754$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h 15755 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15757$as_echo "yes" >&6; } 15758else 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15760$as_echo "no" >&6; } 15761fi 15762 15763 15764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 15765$as_echo_n "checking if you want to do a profile build... " >&6; } 15766# Check whether --enable-profile was given. 15767if test "${enable_profile+set}" = set; then : 15768 enableval=$enable_profile; profile=$enableval 15769else 15770 profile=no 15771fi 15772 15773 15774if test "$profile" = yes; then 15775 if test "$ac_cv_c_compiler_gnu" = yes; then 15776 CFLAGS="$CFLAGS -pg -static" 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5 15778$as_echo "yes, adding -pg -static" >&6; } 15779 15780$as_echo "#define RATBOX_PROFILE 1" >>confdefs.h 15781 15782 else 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 15784$as_echo "no, profile builds only work with gcc" >&6; } 15785 fi 15786else 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15788$as_echo "no" >&6; } 15789fi 15790 15791 15792# Check whether --enable-services was given. 15793if test "${enable_services+set}" = set; then : 15794 enableval=$enable_services; ratbox_services=$enableval 15795else 15796 ratbox_services=no 15797fi 15798 15799 15800M_SERVICES="" 15801 15802if test "x$ratbox_services" = "xyes"; then 15803 15804$as_echo "#define ENABLE_SERVICES 1" >>confdefs.h 15805 15806 M_SERVICES="m_services.la" 15807fi 15808 15809 if test x"$M_SERVICES" != "x"; then 15810 ENABLE_SERVICES_TRUE= 15811 ENABLE_SERVICES_FALSE='#' 15812else 15813 ENABLE_SERVICES_TRUE='#' 15814 ENABLE_SERVICES_FALSE= 15815fi 15816 15817 15818# Check whether --enable-small-net was given. 15819if test "${enable_small_net+set}" = set; then : 15820 enableval=$enable_small_net; small_net=$enableval 15821else 15822 small_net=no 15823fi 15824 15825 15826if test "$small_net" = yes; then 15827 15828$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h 15829 15830 15831$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h 15832 15833 15834$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h 15835 15836 15837$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h 15838 15839 15840$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h 15841 15842 15843$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h 15844 15845 15846$as_echo "#define DNODE_HEAP_SIZE 512" >>confdefs.h 15847 15848 15849$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h 15850 15851 15852$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h 15853 15854 15855$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h 15856 15857 15858$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h 15859 15860 15861$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h 15862 15863 15864$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h 15865 15866 15867$as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h 15868 15869 15870$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h 15871 15872 15873$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h 15874 15875else 15876 15877$as_echo "#define NICKNAMEHISTORYLENGTH 30000" >>confdefs.h 15878 15879 15880$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h 15881 15882 15883$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h 15884 15885 15886$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h 15887 15888 15889$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h 15890 15891 15892$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h 15893 15894 15895$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h 15896 15897 15898$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h 15899 15900 15901$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h 15902 15903 15904$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h 15905 15906 15907$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h 15908 15909 15910$as_echo "#define CONFITEM_HEAP_SIZE 1024" >>confdefs.h 15911 15912 15913$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h 15914 15915 15916$as_echo "#define AUTH_HEAP_SIZE 256" >>confdefs.h 15917 15918 15919$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h 15920 15921 15922$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h 15923 15924 15925fi 15926 15927 15928# Check whether --with-nicklen was given. 15929if test "${with_nicklen+set}" = set; then : 15930 withval=$with_nicklen; 15931 if ! expr "$withval" + 0 >/dev/null 2>&1; then 15932 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 15933 fi 15934 if test $withval -ge 50; then 15935 NICKLEN=50 15936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 15937$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} 15938 else 15939 NICKLEN="$withval" 15940 fi 15941 15942else 15943 NICKLEN=9 15944fi 15945 15946 15947 15948cat >>confdefs.h <<_ACEOF 15949#define NICKLEN (${NICKLEN}+1) 15950_ACEOF 15951 15952 15953cat >>confdefs.h <<_ACEOF 15954#define RATBOX_CONFIGURE_OPTS "$ac_configure_args" 15955_ACEOF 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968if test "$prefix" = "NONE"; then 15969 15970cat >>confdefs.h <<_ACEOF 15971#define IRCD_PREFIX "$ac_default_prefix" 15972_ACEOF 15973 15974 15975else 15976 15977 15978 prefix=`echo $prefix | sed 's/\/$//'` 15979 15980cat >>confdefs.h <<_ACEOF 15981#define IRCD_PREFIX "$prefix" 15982_ACEOF 15983 15984 15985fi 15986 15987if test "x$libexecdir" = "xNONE"; then 15988 rb_cv_libexecdir=$ac_default_libexecdir 15989else 15990 rb_cv_libexecdir=$libexecdir 15991fi 15992 15993libexecdir=`eval "echo ${rb_cv_libexecdir}/ircd-ratbox"` 15994 15995 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 15996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15997 ac_define_dir=`eval echo $libexecdir` 15998 ac_define_dir=`eval echo $ac_define_dir` 15999 LIBEXEC_DIR="$ac_define_dir" 16000 16001 16002cat >>confdefs.h <<_ACEOF 16003#define LIBEXEC_DIR "$ac_define_dir" 16004_ACEOF 16005 16006 16007 16008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library suffix" >&5 16009$as_echo_n "checking for shared library suffix... " >&6; } 16010module=yes 16011eval SHLIBEXT=\"$shrext_cmds\" 16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBEXT" >&5 16013$as_echo "$SHLIBEXT" >&6; } 16014SHLIBEXT=$SHLIBEXT 16015 16016LT_OBJDIR=$lt_cv_objdir 16017 16018 16019cat >>confdefs.h <<_ACEOF 16020#define SHLIBEXT "$SHLIBEXT" 16021_ACEOF 16022 16023 16024 16025 16026disable_backups=n 16027# Check whether --enable-backups was given. 16028if test "${enable_backups+set}" = set; then : 16029 enableval=$enable_backups; disable_backups=y 16030fi 16031 16032 if test x"$disable_backups" = "xy"; then 16033 DISABLE_BACKUPS_TRUE= 16034 DISABLE_BACKUPS_FALSE='#' 16035else 16036 DISABLE_BACKUPS_TRUE='#' 16037 DISABLE_BACKUPS_FALSE= 16038fi 16039 16040 16041 16042ac_config_files="$ac_config_files Makefile bandb/Makefile bandb/sqlite3/Makefile ssld/Makefile resolver/Makefile contrib/Makefile tools/Makefile doc/Makefile help/Makefile modules/Makefile src/Makefile install-mod.sh" 16043 16044 16045cat >confcache <<\_ACEOF 16046# This file is a shell script that caches the results of configure 16047# tests run on this system so they can be shared between configure 16048# scripts and configure runs, see configure's option --config-cache. 16049# It is not useful on other systems. If it contains results you don't 16050# want to keep, you may remove or edit it. 16051# 16052# config.status only pays attention to the cache file if you give it 16053# the --recheck option to rerun configure. 16054# 16055# `ac_cv_env_foo' variables (set or unset) will be overridden when 16056# loading this file, other *unset* `ac_cv_foo' will be assigned the 16057# following values. 16058 16059_ACEOF 16060 16061# The following way of writing the cache mishandles newlines in values, 16062# but we know of no workaround that is simple, portable, and efficient. 16063# So, we kill variables containing newlines. 16064# Ultrix sh set writes to stderr and can't be redirected directly, 16065# and sets the high bit in the cache file unless we assign to the vars. 16066( 16067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16068 eval ac_val=\$$ac_var 16069 case $ac_val in #( 16070 *${as_nl}*) 16071 case $ac_var in #( 16072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16074 esac 16075 case $ac_var in #( 16076 _ | IFS | as_nl) ;; #( 16077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16078 *) { eval $ac_var=; unset $ac_var;} ;; 16079 esac ;; 16080 esac 16081 done 16082 16083 (set) 2>&1 | 16084 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16085 *${as_nl}ac_space=\ *) 16086 # `set' does not quote correctly, so add quotes: double-quote 16087 # substitution turns \\\\ into \\, and sed turns \\ into \. 16088 sed -n \ 16089 "s/'/'\\\\''/g; 16090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16091 ;; #( 16092 *) 16093 # `set' quotes correctly as required by POSIX, so do not add quotes. 16094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16095 ;; 16096 esac | 16097 sort 16098) | 16099 sed ' 16100 /^ac_cv_env_/b end 16101 t clear 16102 :clear 16103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16104 t end 16105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16106 :end' >>confcache 16107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16108 if test -w "$cache_file"; then 16109 if test "x$cache_file" != "x/dev/null"; then 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16111$as_echo "$as_me: updating cache $cache_file" >&6;} 16112 if test ! -f "$cache_file" || test -h "$cache_file"; then 16113 cat confcache >"$cache_file" 16114 else 16115 case $cache_file in #( 16116 */* | ?:*) 16117 mv -f confcache "$cache_file"$$ && 16118 mv -f "$cache_file"$$ "$cache_file" ;; #( 16119 *) 16120 mv -f confcache "$cache_file" ;; 16121 esac 16122 fi 16123 fi 16124 else 16125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16127 fi 16128fi 16129rm -f confcache 16130 16131test "x$prefix" = xNONE && prefix=$ac_default_prefix 16132# Let make expand exec_prefix. 16133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16134 16135DEFS=-DHAVE_CONFIG_H 16136 16137ac_libobjs= 16138ac_ltlibobjs= 16139U= 16140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16141 # 1. Remove the extension, and $U if already installed. 16142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16145 # will be set to the directory where LIBOBJS objects are built. 16146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16148done 16149LIBOBJS=$ac_libobjs 16150 16151LTLIBOBJS=$ac_ltlibobjs 16152 16153 16154 if test -n "$EXEEXT"; then 16155 am__EXEEXT_TRUE= 16156 am__EXEEXT_FALSE='#' 16157else 16158 am__EXEEXT_TRUE='#' 16159 am__EXEEXT_FALSE= 16160fi 16161 16162if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16163 as_fn_error $? "conditional \"AMDEP\" was never defined. 16164Usually this means the macro was only invoked conditionally." "$LINENO" 5 16165fi 16166if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16167 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16168Usually this means the macro was only invoked conditionally." "$LINENO" 5 16169fi 16170if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16171 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16172Usually this means the macro was only invoked conditionally." "$LINENO" 5 16173fi 16174if test -z "${STATIC_MODULES_TRUE}" && test -z "${STATIC_MODULES_FALSE}"; then 16175 as_fn_error $? "conditional \"STATIC_MODULES\" was never defined. 16176Usually this means the macro was only invoked conditionally." "$LINENO" 5 16177fi 16178if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 16179 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. 16180Usually this means the macro was only invoked conditionally." "$LINENO" 5 16181fi 16182if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 16183 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. 16184Usually this means the macro was only invoked conditionally." "$LINENO" 5 16185fi 16186LT_CONFIG_H=include/setup.h 16187 16188 _ltdl_libobjs= 16189 _ltdl_ltlibobjs= 16190 if test -n "$_LT_LIBOBJS"; then 16191 # Remove the extension. 16192 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' 16193 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do 16194 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" 16195 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" 16196 done 16197 fi 16198 ltdl_LIBOBJS=$_ltdl_libobjs 16199 16200 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs 16201 16202 16203if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 16204 as_fn_error $? "conditional \"MINGW\" was never defined. 16205Usually this means the macro was only invoked conditionally." "$LINENO" 5 16206fi 16207 16208if test -z "${BUILD_SQLITE_TRUE}" && test -z "${BUILD_SQLITE_FALSE}"; then 16209 as_fn_error $? "conditional \"BUILD_SQLITE\" was never defined. 16210Usually this means the macro was only invoked conditionally." "$LINENO" 5 16211fi 16212if test -z "${ENABLE_SERVICES_TRUE}" && test -z "${ENABLE_SERVICES_FALSE}"; then 16213 as_fn_error $? "conditional \"ENABLE_SERVICES\" was never defined. 16214Usually this means the macro was only invoked conditionally." "$LINENO" 5 16215fi 16216if test -z "${DISABLE_BACKUPS_TRUE}" && test -z "${DISABLE_BACKUPS_FALSE}"; then 16217 as_fn_error $? "conditional \"DISABLE_BACKUPS\" was never defined. 16218Usually this means the macro was only invoked conditionally." "$LINENO" 5 16219fi 16220 16221: "${CONFIG_STATUS=./config.status}" 16222ac_write_fail=0 16223ac_clean_files_save=$ac_clean_files 16224ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16225{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16226$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16227as_write_fail=0 16228cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16229#! $SHELL 16230# Generated by $as_me. 16231# Run this file to recreate the current configuration. 16232# Compiler output produced by configure, useful for debugging 16233# configure, is in config.log if it exists. 16234 16235debug=false 16236ac_cs_recheck=false 16237ac_cs_silent=false 16238 16239SHELL=\${CONFIG_SHELL-$SHELL} 16240export SHELL 16241_ASEOF 16242cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16243## -------------------- ## 16244## M4sh Initialization. ## 16245## -------------------- ## 16246 16247# Be more Bourne compatible 16248DUALCASE=1; export DUALCASE # for MKS sh 16249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16250 emulate sh 16251 NULLCMD=: 16252 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16253 # is contrary to our usage. Disable this feature. 16254 alias -g '${1+"$@"}'='"$@"' 16255 setopt NO_GLOB_SUBST 16256else 16257 case `(set -o) 2>/dev/null` in #( 16258 *posix*) : 16259 set -o posix ;; #( 16260 *) : 16261 ;; 16262esac 16263fi 16264 16265 16266as_nl=' 16267' 16268export as_nl 16269# Printing a long string crashes Solaris 7 /usr/bin/printf. 16270as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16273# Prefer a ksh shell builtin over an external printf program on Solaris, 16274# but without wasting forks for bash or zsh. 16275if test -z "$BASH_VERSION$ZSH_VERSION" \ 16276 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16277 as_echo='print -r --' 16278 as_echo_n='print -rn --' 16279elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16280 as_echo='printf %s\n' 16281 as_echo_n='printf %s' 16282else 16283 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16284 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16285 as_echo_n='/usr/ucb/echo -n' 16286 else 16287 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16288 as_echo_n_body='eval 16289 arg=$1; 16290 case $arg in #( 16291 *"$as_nl"*) 16292 expr "X$arg" : "X\\(.*\\)$as_nl"; 16293 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16294 esac; 16295 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16296 ' 16297 export as_echo_n_body 16298 as_echo_n='sh -c $as_echo_n_body as_echo' 16299 fi 16300 export as_echo_body 16301 as_echo='sh -c $as_echo_body as_echo' 16302fi 16303 16304# The user is always right. 16305if test "${PATH_SEPARATOR+set}" != set; then 16306 PATH_SEPARATOR=: 16307 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16308 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16309 PATH_SEPARATOR=';' 16310 } 16311fi 16312 16313 16314# IFS 16315# We need space, tab and new line, in precisely that order. Quoting is 16316# there to prevent editors from complaining about space-tab. 16317# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16318# splitting by setting IFS to empty value.) 16319IFS=" "" $as_nl" 16320 16321# Find who we are. Look in the path if we contain no directory separator. 16322as_myself= 16323case $0 in #(( 16324 *[\\/]* ) as_myself=$0 ;; 16325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16326for as_dir in $PATH 16327do 16328 IFS=$as_save_IFS 16329 test -z "$as_dir" && as_dir=. 16330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16331 done 16332IFS=$as_save_IFS 16333 16334 ;; 16335esac 16336# We did not find ourselves, most probably we were run as `sh COMMAND' 16337# in which case we are not to be found in the path. 16338if test "x$as_myself" = x; then 16339 as_myself=$0 16340fi 16341if test ! -f "$as_myself"; then 16342 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16343 exit 1 16344fi 16345 16346# Unset variables that we do not need and which cause bugs (e.g. in 16347# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16348# suppresses any "Segmentation fault" message there. '((' could 16349# trigger a bug in pdksh 5.2.14. 16350for as_var in BASH_ENV ENV MAIL MAILPATH 16351do eval test x\${$as_var+set} = xset \ 16352 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16353done 16354PS1='$ ' 16355PS2='> ' 16356PS4='+ ' 16357 16358# NLS nuisances. 16359LC_ALL=C 16360export LC_ALL 16361LANGUAGE=C 16362export LANGUAGE 16363 16364# CDPATH. 16365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16366 16367 16368# as_fn_error STATUS ERROR [LINENO LOG_FD] 16369# ---------------------------------------- 16370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16372# script with STATUS, using 1 if that was 0. 16373as_fn_error () 16374{ 16375 as_status=$1; test $as_status -eq 0 && as_status=1 16376 if test "$4"; then 16377 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16379 fi 16380 $as_echo "$as_me: error: $2" >&2 16381 as_fn_exit $as_status 16382} # as_fn_error 16383 16384 16385# as_fn_set_status STATUS 16386# ----------------------- 16387# Set $? to STATUS, without forking. 16388as_fn_set_status () 16389{ 16390 return $1 16391} # as_fn_set_status 16392 16393# as_fn_exit STATUS 16394# ----------------- 16395# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16396as_fn_exit () 16397{ 16398 set +e 16399 as_fn_set_status $1 16400 exit $1 16401} # as_fn_exit 16402 16403# as_fn_unset VAR 16404# --------------- 16405# Portably unset VAR. 16406as_fn_unset () 16407{ 16408 { eval $1=; unset $1;} 16409} 16410as_unset=as_fn_unset 16411# as_fn_append VAR VALUE 16412# ---------------------- 16413# Append the text in VALUE to the end of the definition contained in VAR. Take 16414# advantage of any shell optimizations that allow amortized linear growth over 16415# repeated appends, instead of the typical quadratic growth present in naive 16416# implementations. 16417if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16418 eval 'as_fn_append () 16419 { 16420 eval $1+=\$2 16421 }' 16422else 16423 as_fn_append () 16424 { 16425 eval $1=\$$1\$2 16426 } 16427fi # as_fn_append 16428 16429# as_fn_arith ARG... 16430# ------------------ 16431# Perform arithmetic evaluation on the ARGs, and store the result in the 16432# global $as_val. Take advantage of shells that can avoid forks. The arguments 16433# must be portable across $(()) and expr. 16434if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16435 eval 'as_fn_arith () 16436 { 16437 as_val=$(( $* )) 16438 }' 16439else 16440 as_fn_arith () 16441 { 16442 as_val=`expr "$@" || test $? -eq 1` 16443 } 16444fi # as_fn_arith 16445 16446 16447if expr a : '\(a\)' >/dev/null 2>&1 && 16448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16449 as_expr=expr 16450else 16451 as_expr=false 16452fi 16453 16454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16455 as_basename=basename 16456else 16457 as_basename=false 16458fi 16459 16460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16461 as_dirname=dirname 16462else 16463 as_dirname=false 16464fi 16465 16466as_me=`$as_basename -- "$0" || 16467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16468 X"$0" : 'X\(//\)$' \| \ 16469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16470$as_echo X/"$0" | 16471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16472 s//\1/ 16473 q 16474 } 16475 /^X\/\(\/\/\)$/{ 16476 s//\1/ 16477 q 16478 } 16479 /^X\/\(\/\).*/{ 16480 s//\1/ 16481 q 16482 } 16483 s/.*/./; q'` 16484 16485# Avoid depending upon Character Ranges. 16486as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16488as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16489as_cr_digits='0123456789' 16490as_cr_alnum=$as_cr_Letters$as_cr_digits 16491 16492ECHO_C= ECHO_N= ECHO_T= 16493case `echo -n x` in #((((( 16494-n*) 16495 case `echo 'xy\c'` in 16496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16497 xy) ECHO_C='\c';; 16498 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16499 ECHO_T=' ';; 16500 esac;; 16501*) 16502 ECHO_N='-n';; 16503esac 16504 16505rm -f conf$$ conf$$.exe conf$$.file 16506if test -d conf$$.dir; then 16507 rm -f conf$$.dir/conf$$.file 16508else 16509 rm -f conf$$.dir 16510 mkdir conf$$.dir 2>/dev/null 16511fi 16512if (echo >conf$$.file) 2>/dev/null; then 16513 if ln -s conf$$.file conf$$ 2>/dev/null; then 16514 as_ln_s='ln -s' 16515 # ... but there are two gotchas: 16516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16518 # In both cases, we have to default to `cp -pR'. 16519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16520 as_ln_s='cp -pR' 16521 elif ln conf$$.file conf$$ 2>/dev/null; then 16522 as_ln_s=ln 16523 else 16524 as_ln_s='cp -pR' 16525 fi 16526else 16527 as_ln_s='cp -pR' 16528fi 16529rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16530rmdir conf$$.dir 2>/dev/null 16531 16532 16533# as_fn_mkdir_p 16534# ------------- 16535# Create "$as_dir" as a directory, including parents if necessary. 16536as_fn_mkdir_p () 16537{ 16538 16539 case $as_dir in #( 16540 -*) as_dir=./$as_dir;; 16541 esac 16542 test -d "$as_dir" || eval $as_mkdir_p || { 16543 as_dirs= 16544 while :; do 16545 case $as_dir in #( 16546 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16547 *) as_qdir=$as_dir;; 16548 esac 16549 as_dirs="'$as_qdir' $as_dirs" 16550 as_dir=`$as_dirname -- "$as_dir" || 16551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16552 X"$as_dir" : 'X\(//\)[^/]' \| \ 16553 X"$as_dir" : 'X\(//\)$' \| \ 16554 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16555$as_echo X"$as_dir" | 16556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16557 s//\1/ 16558 q 16559 } 16560 /^X\(\/\/\)[^/].*/{ 16561 s//\1/ 16562 q 16563 } 16564 /^X\(\/\/\)$/{ 16565 s//\1/ 16566 q 16567 } 16568 /^X\(\/\).*/{ 16569 s//\1/ 16570 q 16571 } 16572 s/.*/./; q'` 16573 test -d "$as_dir" && break 16574 done 16575 test -z "$as_dirs" || eval "mkdir $as_dirs" 16576 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16577 16578 16579} # as_fn_mkdir_p 16580if mkdir -p . 2>/dev/null; then 16581 as_mkdir_p='mkdir -p "$as_dir"' 16582else 16583 test -d ./-p && rmdir ./-p 16584 as_mkdir_p=false 16585fi 16586 16587 16588# as_fn_executable_p FILE 16589# ----------------------- 16590# Test if FILE is an executable regular file. 16591as_fn_executable_p () 16592{ 16593 test -f "$1" && test -x "$1" 16594} # as_fn_executable_p 16595as_test_x='test -x' 16596as_executable_p=as_fn_executable_p 16597 16598# Sed expression to map a string onto a valid CPP name. 16599as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16600 16601# Sed expression to map a string onto a valid variable name. 16602as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16603 16604 16605exec 6>&1 16606## ----------------------------------- ## 16607## Main body of $CONFIG_STATUS script. ## 16608## ----------------------------------- ## 16609_ASEOF 16610test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16611 16612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16613# Save the log message, to keep $0 and so on meaningful, and to 16614# report actual input values of CONFIG_FILES etc. instead of their 16615# values after options handling. 16616ac_log=" 16617This file was extended by ircd-ratbox $as_me stable, which was 16618generated by GNU Autoconf 2.69. Invocation command line was 16619 16620 CONFIG_FILES = $CONFIG_FILES 16621 CONFIG_HEADERS = $CONFIG_HEADERS 16622 CONFIG_LINKS = $CONFIG_LINKS 16623 CONFIG_COMMANDS = $CONFIG_COMMANDS 16624 $ $0 $@ 16625 16626on `(hostname || uname -n) 2>/dev/null | sed 1q` 16627" 16628 16629_ACEOF 16630 16631case $ac_config_files in *" 16632"*) set x $ac_config_files; shift; ac_config_files=$*;; 16633esac 16634 16635case $ac_config_headers in *" 16636"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16637esac 16638 16639 16640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16641# Files that config.status was made for. 16642config_files="$ac_config_files" 16643config_headers="$ac_config_headers" 16644config_commands="$ac_config_commands" 16645 16646_ACEOF 16647 16648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16649ac_cs_usage="\ 16650\`$as_me' instantiates files and other configuration actions 16651from templates according to the current configuration. Unless the files 16652and actions are specified as TAGs, all are instantiated by default. 16653 16654Usage: $0 [OPTION]... [TAG]... 16655 16656 -h, --help print this help, then exit 16657 -V, --version print version number and configuration settings, then exit 16658 --config print configuration, then exit 16659 -q, --quiet, --silent 16660 do not print progress messages 16661 -d, --debug don't remove temporary files 16662 --recheck update $as_me by reconfiguring in the same conditions 16663 --file=FILE[:TEMPLATE] 16664 instantiate the configuration file FILE 16665 --header=FILE[:TEMPLATE] 16666 instantiate the configuration header FILE 16667 16668Configuration files: 16669$config_files 16670 16671Configuration headers: 16672$config_headers 16673 16674Configuration commands: 16675$config_commands 16676 16677Report bugs to the package provider." 16678 16679_ACEOF 16680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16682ac_cs_version="\\ 16683ircd-ratbox config.status stable 16684configured by $0, generated by GNU Autoconf 2.69, 16685 with options \\"\$ac_cs_config\\" 16686 16687Copyright (C) 2012 Free Software Foundation, Inc. 16688This config.status script is free software; the Free Software Foundation 16689gives unlimited permission to copy, distribute and modify it." 16690 16691ac_pwd='$ac_pwd' 16692srcdir='$srcdir' 16693INSTALL='$INSTALL' 16694MKDIR_P='$MKDIR_P' 16695AWK='$AWK' 16696test -n "\$AWK" || AWK=awk 16697_ACEOF 16698 16699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16700# The default lists apply if the user does not specify any file. 16701ac_need_defaults=: 16702while test $# != 0 16703do 16704 case $1 in 16705 --*=?*) 16706 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16707 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16708 ac_shift=: 16709 ;; 16710 --*=) 16711 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16712 ac_optarg= 16713 ac_shift=: 16714 ;; 16715 *) 16716 ac_option=$1 16717 ac_optarg=$2 16718 ac_shift=shift 16719 ;; 16720 esac 16721 16722 case $ac_option in 16723 # Handling of the options. 16724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16725 ac_cs_recheck=: ;; 16726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16727 $as_echo "$ac_cs_version"; exit ;; 16728 --config | --confi | --conf | --con | --co | --c ) 16729 $as_echo "$ac_cs_config"; exit ;; 16730 --debug | --debu | --deb | --de | --d | -d ) 16731 debug=: ;; 16732 --file | --fil | --fi | --f ) 16733 $ac_shift 16734 case $ac_optarg in 16735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16736 '') as_fn_error $? "missing file argument" ;; 16737 esac 16738 as_fn_append CONFIG_FILES " '$ac_optarg'" 16739 ac_need_defaults=false;; 16740 --header | --heade | --head | --hea ) 16741 $ac_shift 16742 case $ac_optarg in 16743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16744 esac 16745 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16746 ac_need_defaults=false;; 16747 --he | --h) 16748 # Conflict between --help and --header 16749 as_fn_error $? "ambiguous option: \`$1' 16750Try \`$0 --help' for more information.";; 16751 --help | --hel | -h ) 16752 $as_echo "$ac_cs_usage"; exit ;; 16753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16754 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16755 ac_cs_silent=: ;; 16756 16757 # This is an error. 16758 -*) as_fn_error $? "unrecognized option: \`$1' 16759Try \`$0 --help' for more information." ;; 16760 16761 *) as_fn_append ac_config_targets " $1" 16762 ac_need_defaults=false ;; 16763 16764 esac 16765 shift 16766done 16767 16768ac_configure_extra_args= 16769 16770if $ac_cs_silent; then 16771 exec 6>/dev/null 16772 ac_configure_extra_args="$ac_configure_extra_args --silent" 16773fi 16774 16775_ACEOF 16776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16777if \$ac_cs_recheck; then 16778 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16779 shift 16780 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16781 CONFIG_SHELL='$SHELL' 16782 export CONFIG_SHELL 16783 exec "\$@" 16784fi 16785 16786_ACEOF 16787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16788exec 5>>config.log 16789{ 16790 echo 16791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16792## Running $as_me. ## 16793_ASBOX 16794 $as_echo "$ac_log" 16795} >&5 16796 16797_ACEOF 16798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16799# 16800# INIT-COMMANDS 16801# 16802AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16803 16804 16805# The HP-UX ksh and POSIX shell print the target directory to stdout 16806# if CDPATH is set. 16807(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16808 16809sed_quote_subst='$sed_quote_subst' 16810double_quote_subst='$double_quote_subst' 16811delay_variable_subst='$delay_variable_subst' 16812enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16813enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16814macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16815macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16816pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16817enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16818SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16819ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16820PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16821host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16822host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16823host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16824build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16825build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16826build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16827SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16828Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16829GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16830EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16831FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16832LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16833NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16834LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16835max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16836ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16837exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16838lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16839lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16840lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16841lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16842lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16843reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16844reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16845OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16846deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16847file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16848file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16849want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16850DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16851sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16852AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16853AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16854archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16855STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16856RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16857old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16858old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16859old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16860lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16861CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16862CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16863compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16864GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16865lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16866lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16867lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16868lt_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"`' 16869nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16870lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16871objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16872MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16873lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16874lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16875lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16876lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16877lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16878need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16879MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16880DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16881NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16882LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16883OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16884OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16885libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16886shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16887extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16888archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16889enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16890export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16891whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16892compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16893old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16894old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16895archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16896archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16897module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16898module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16899with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16900allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16901no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16902hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16903hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16904hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16905hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16906hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16907hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16908hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16909inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16910link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16911always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16912export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16913exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16914include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16915prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16916postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16917file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16918variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16919need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16920need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16921version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16922runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16923shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16924shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16925libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16926library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16927soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16928install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16929postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16930postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16931finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16932finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16933hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16934sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16935sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16936hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16937enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16938enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16939enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16940old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16941striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16942 16943LTCC='$LTCC' 16944LTCFLAGS='$LTCFLAGS' 16945compiler='$compiler_DEFAULT' 16946 16947# A function that is used when there is no print builtin or printf. 16948func_fallback_echo () 16949{ 16950 eval 'cat <<_LTECHO_EOF 16951\$1 16952_LTECHO_EOF' 16953} 16954 16955# Quote evaled strings. 16956for var in SHELL \ 16957ECHO \ 16958PATH_SEPARATOR \ 16959SED \ 16960GREP \ 16961EGREP \ 16962FGREP \ 16963LD \ 16964NM \ 16965LN_S \ 16966lt_SP2NL \ 16967lt_NL2SP \ 16968reload_flag \ 16969OBJDUMP \ 16970deplibs_check_method \ 16971file_magic_cmd \ 16972file_magic_glob \ 16973want_nocaseglob \ 16974DLLTOOL \ 16975sharedlib_from_linklib_cmd \ 16976AR \ 16977AR_FLAGS \ 16978archiver_list_spec \ 16979STRIP \ 16980RANLIB \ 16981CC \ 16982CFLAGS \ 16983compiler \ 16984lt_cv_sys_global_symbol_pipe \ 16985lt_cv_sys_global_symbol_to_cdecl \ 16986lt_cv_sys_global_symbol_to_c_name_address \ 16987lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16988nm_file_list_spec \ 16989lt_prog_compiler_no_builtin_flag \ 16990lt_prog_compiler_pic \ 16991lt_prog_compiler_wl \ 16992lt_prog_compiler_static \ 16993lt_cv_prog_compiler_c_o \ 16994need_locks \ 16995MANIFEST_TOOL \ 16996DSYMUTIL \ 16997NMEDIT \ 16998LIPO \ 16999OTOOL \ 17000OTOOL64 \ 17001shrext_cmds \ 17002export_dynamic_flag_spec \ 17003whole_archive_flag_spec \ 17004compiler_needs_object \ 17005with_gnu_ld \ 17006allow_undefined_flag \ 17007no_undefined_flag \ 17008hardcode_libdir_flag_spec \ 17009hardcode_libdir_separator \ 17010exclude_expsyms \ 17011include_expsyms \ 17012file_list_spec \ 17013variables_saved_for_relink \ 17014libname_spec \ 17015library_names_spec \ 17016soname_spec \ 17017install_override_mode \ 17018finish_eval \ 17019old_striplib \ 17020striplib; do 17021 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17022 *[\\\\\\\`\\"\\\$]*) 17023 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17024 ;; 17025 *) 17026 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17027 ;; 17028 esac 17029done 17030 17031# Double-quote double-evaled strings. 17032for var in reload_cmds \ 17033old_postinstall_cmds \ 17034old_postuninstall_cmds \ 17035old_archive_cmds \ 17036extract_expsyms_cmds \ 17037old_archive_from_new_cmds \ 17038old_archive_from_expsyms_cmds \ 17039archive_cmds \ 17040archive_expsym_cmds \ 17041module_cmds \ 17042module_expsym_cmds \ 17043export_symbols_cmds \ 17044prelink_cmds \ 17045postlink_cmds \ 17046postinstall_cmds \ 17047postuninstall_cmds \ 17048finish_cmds \ 17049sys_lib_search_path_spec \ 17050sys_lib_dlsearch_path_spec; do 17051 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17052 *[\\\\\\\`\\"\\\$]*) 17053 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17054 ;; 17055 *) 17056 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17057 ;; 17058 esac 17059done 17060 17061ac_aux_dir='$ac_aux_dir' 17062xsi_shell='$xsi_shell' 17063lt_shell_append='$lt_shell_append' 17064 17065# See if we are running on zsh, and set the options which allow our 17066# commands through without removal of \ escapes INIT. 17067if test -n "\${ZSH_VERSION+set}" ; then 17068 setopt NO_GLOB_SUBST 17069fi 17070 17071 17072 PACKAGE='$PACKAGE' 17073 VERSION='$VERSION' 17074 TIMESTAMP='$TIMESTAMP' 17075 RM='$RM' 17076 ofile='$ofile' 17077 17078 17079 17080 17081_ACEOF 17082 17083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17084 17085# Handling of arguments. 17086for ac_config_target in $ac_config_targets 17087do 17088 case $ac_config_target in 17089 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; 17090 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17091 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17093 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; 17094 "bandb/sqlite3/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/sqlite3/Makefile" ;; 17095 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; 17096 "resolver/Makefile") CONFIG_FILES="$CONFIG_FILES resolver/Makefile" ;; 17097 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 17098 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 17099 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17100 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; 17101 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 17102 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17103 "install-mod.sh") CONFIG_FILES="$CONFIG_FILES install-mod.sh" ;; 17104 17105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17106 esac 17107done 17108 17109 17110# If the user did not use the arguments to specify the items to instantiate, 17111# then the envvar interface is used. Set only those that are not. 17112# We use the long form for the default assignment because of an extremely 17113# bizarre bug on SunOS 4.1.3. 17114if $ac_need_defaults; then 17115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17118fi 17119 17120# Have a temporary directory for convenience. Make it in the build tree 17121# simply because there is no reason against having it here, and in addition, 17122# creating and moving files from /tmp can sometimes cause problems. 17123# Hook for its removal unless debugging. 17124# Note that there is a small window in which the directory will not be cleaned: 17125# after its creation but before its name has been assigned to `$tmp'. 17126$debug || 17127{ 17128 tmp= ac_tmp= 17129 trap 'exit_status=$? 17130 : "${ac_tmp:=$tmp}" 17131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17132' 0 17133 trap 'as_fn_exit 1' 1 2 13 15 17134} 17135# Create a (secure) tmp directory for tmp files. 17136 17137{ 17138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17139 test -d "$tmp" 17140} || 17141{ 17142 tmp=./conf$$-$RANDOM 17143 (umask 077 && mkdir "$tmp") 17144} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17145ac_tmp=$tmp 17146 17147# Set up the scripts for CONFIG_FILES section. 17148# No need to generate them if there are no CONFIG_FILES. 17149# This happens for instance with `./config.status config.h'. 17150if test -n "$CONFIG_FILES"; then 17151 17152 17153ac_cr=`echo X | tr X '\015'` 17154# On cygwin, bash can eat \r inside `` if the user requested igncr. 17155# But we know of no other shell where ac_cr would be empty at this 17156# point, so we can use a bashism as a fallback. 17157if test "x$ac_cr" = x; then 17158 eval ac_cr=\$\'\\r\' 17159fi 17160ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17161if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17162 ac_cs_awk_cr='\\r' 17163else 17164 ac_cs_awk_cr=$ac_cr 17165fi 17166 17167echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17168_ACEOF 17169 17170 17171{ 17172 echo "cat >conf$$subs.awk <<_ACEOF" && 17173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17174 echo "_ACEOF" 17175} >conf$$subs.sh || 17176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17177ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17178ac_delim='%!_!# ' 17179for ac_last_try in false false false false false :; do 17180 . ./conf$$subs.sh || 17181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17182 17183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17184 if test $ac_delim_n = $ac_delim_num; then 17185 break 17186 elif $ac_last_try; then 17187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17188 else 17189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17190 fi 17191done 17192rm -f conf$$subs.sh 17193 17194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17195cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17196_ACEOF 17197sed -n ' 17198h 17199s/^/S["/; s/!.*/"]=/ 17200p 17201g 17202s/^[^!]*!// 17203:repl 17204t repl 17205s/'"$ac_delim"'$// 17206t delim 17207:nl 17208h 17209s/\(.\{148\}\)..*/\1/ 17210t more1 17211s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17212p 17213n 17214b repl 17215:more1 17216s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17217p 17218g 17219s/.\{148\}// 17220t nl 17221:delim 17222h 17223s/\(.\{148\}\)..*/\1/ 17224t more2 17225s/["\\]/\\&/g; s/^/"/; s/$/"/ 17226p 17227b 17228:more2 17229s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17230p 17231g 17232s/.\{148\}// 17233t delim 17234' <conf$$subs.awk | sed ' 17235/^[^""]/{ 17236 N 17237 s/\n// 17238} 17239' >>$CONFIG_STATUS || ac_write_fail=1 17240rm -f conf$$subs.awk 17241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17242_ACAWK 17243cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17244 for (key in S) S_is_set[key] = 1 17245 FS = "" 17246 17247} 17248{ 17249 line = $ 0 17250 nfields = split(line, field, "@") 17251 substed = 0 17252 len = length(field[1]) 17253 for (i = 2; i < nfields; i++) { 17254 key = field[i] 17255 keylen = length(key) 17256 if (S_is_set[key]) { 17257 value = S[key] 17258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17259 len += length(value) + length(field[++i]) 17260 substed = 1 17261 } else 17262 len += 1 + keylen 17263 } 17264 17265 print line 17266} 17267 17268_ACAWK 17269_ACEOF 17270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17271if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17273else 17274 cat 17275fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17276 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17277_ACEOF 17278 17279# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17280# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17281# trailing colons and then remove the whole line if VPATH becomes empty 17282# (actually we leave an empty line to preserve line numbers). 17283if test "x$srcdir" = x.; then 17284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17285h 17286s/// 17287s/^/:/ 17288s/[ ]*$/:/ 17289s/:\$(srcdir):/:/g 17290s/:\${srcdir}:/:/g 17291s/:@srcdir@:/:/g 17292s/^:*// 17293s/:*$// 17294x 17295s/\(=[ ]*\).*/\1/ 17296G 17297s/\n// 17298s/^[^=]*=[ ]*$// 17299}' 17300fi 17301 17302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17303fi # test -n "$CONFIG_FILES" 17304 17305# Set up the scripts for CONFIG_HEADERS section. 17306# No need to generate them if there are no CONFIG_HEADERS. 17307# This happens for instance with `./config.status Makefile'. 17308if test -n "$CONFIG_HEADERS"; then 17309cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17310BEGIN { 17311_ACEOF 17312 17313# Transform confdefs.h into an awk script `defines.awk', embedded as 17314# here-document in config.status, that substitutes the proper values into 17315# config.h.in to produce config.h. 17316 17317# Create a delimiter string that does not exist in confdefs.h, to ease 17318# handling of long lines. 17319ac_delim='%!_!# ' 17320for ac_last_try in false false :; do 17321 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17322 if test -z "$ac_tt"; then 17323 break 17324 elif $ac_last_try; then 17325 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17326 else 17327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17328 fi 17329done 17330 17331# For the awk script, D is an array of macro values keyed by name, 17332# likewise P contains macro parameters if any. Preserve backslash 17333# newline sequences. 17334 17335ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17336sed -n ' 17337s/.\{148\}/&'"$ac_delim"'/g 17338t rset 17339:rset 17340s/^[ ]*#[ ]*define[ ][ ]*/ / 17341t def 17342d 17343:def 17344s/\\$// 17345t bsnl 17346s/["\\]/\\&/g 17347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17348D["\1"]=" \3"/p 17349s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17350d 17351:bsnl 17352s/["\\]/\\&/g 17353s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17354D["\1"]=" \3\\\\\\n"\\/p 17355t cont 17356s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17357t cont 17358d 17359:cont 17360n 17361s/.\{148\}/&'"$ac_delim"'/g 17362t clear 17363:clear 17364s/\\$// 17365t bsnlc 17366s/["\\]/\\&/g; s/^/"/; s/$/"/p 17367d 17368:bsnlc 17369s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17370b cont 17371' <confdefs.h | sed ' 17372s/'"$ac_delim"'/"\\\ 17373"/g' >>$CONFIG_STATUS || ac_write_fail=1 17374 17375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17376 for (key in D) D_is_set[key] = 1 17377 FS = "" 17378} 17379/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17380 line = \$ 0 17381 split(line, arg, " ") 17382 if (arg[1] == "#") { 17383 defundef = arg[2] 17384 mac1 = arg[3] 17385 } else { 17386 defundef = substr(arg[1], 2) 17387 mac1 = arg[2] 17388 } 17389 split(mac1, mac2, "(") #) 17390 macro = mac2[1] 17391 prefix = substr(line, 1, index(line, defundef) - 1) 17392 if (D_is_set[macro]) { 17393 # Preserve the white space surrounding the "#". 17394 print prefix "define", macro P[macro] D[macro] 17395 next 17396 } else { 17397 # Replace #undef with comments. This is necessary, for example, 17398 # in the case of _POSIX_SOURCE, which is predefined and required 17399 # on some systems where configure will not decide to define it. 17400 if (defundef == "undef") { 17401 print "/*", prefix defundef, macro, "*/" 17402 next 17403 } 17404 } 17405} 17406{ print } 17407_ACAWK 17408_ACEOF 17409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17410 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17411fi # test -n "$CONFIG_HEADERS" 17412 17413 17414eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17415shift 17416for ac_tag 17417do 17418 case $ac_tag in 17419 :[FHLC]) ac_mode=$ac_tag; continue;; 17420 esac 17421 case $ac_mode$ac_tag in 17422 :[FHL]*:*);; 17423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17424 :[FH]-) ac_tag=-:-;; 17425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17426 esac 17427 ac_save_IFS=$IFS 17428 IFS=: 17429 set x $ac_tag 17430 IFS=$ac_save_IFS 17431 shift 17432 ac_file=$1 17433 shift 17434 17435 case $ac_mode in 17436 :L) ac_source=$1;; 17437 :[FH]) 17438 ac_file_inputs= 17439 for ac_f 17440 do 17441 case $ac_f in 17442 -) ac_f="$ac_tmp/stdin";; 17443 *) # Look for the file first in the build tree, then in the source tree 17444 # (if the path is not absolute). The absolute path cannot be DOS-style, 17445 # because $ac_f cannot contain `:'. 17446 test -f "$ac_f" || 17447 case $ac_f in 17448 [\\/$]*) false;; 17449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17450 esac || 17451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17452 esac 17453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17454 as_fn_append ac_file_inputs " '$ac_f'" 17455 done 17456 17457 # Let's still pretend it is `configure' which instantiates (i.e., don't 17458 # use $as_me), people would be surprised to read: 17459 # /* config.h. Generated by config.status. */ 17460 configure_input='Generated from '` 17461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17462 `' by configure.' 17463 if test x"$ac_file" != x-; then 17464 configure_input="$ac_file. $configure_input" 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17466$as_echo "$as_me: creating $ac_file" >&6;} 17467 fi 17468 # Neutralize special characters interpreted by sed in replacement strings. 17469 case $configure_input in #( 17470 *\&* | *\|* | *\\* ) 17471 ac_sed_conf_input=`$as_echo "$configure_input" | 17472 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17473 *) ac_sed_conf_input=$configure_input;; 17474 esac 17475 17476 case $ac_tag in 17477 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17479 esac 17480 ;; 17481 esac 17482 17483 ac_dir=`$as_dirname -- "$ac_file" || 17484$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17485 X"$ac_file" : 'X\(//\)[^/]' \| \ 17486 X"$ac_file" : 'X\(//\)$' \| \ 17487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17488$as_echo X"$ac_file" | 17489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17490 s//\1/ 17491 q 17492 } 17493 /^X\(\/\/\)[^/].*/{ 17494 s//\1/ 17495 q 17496 } 17497 /^X\(\/\/\)$/{ 17498 s//\1/ 17499 q 17500 } 17501 /^X\(\/\).*/{ 17502 s//\1/ 17503 q 17504 } 17505 s/.*/./; q'` 17506 as_dir="$ac_dir"; as_fn_mkdir_p 17507 ac_builddir=. 17508 17509case "$ac_dir" in 17510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17511*) 17512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17513 # A ".." for each directory in $ac_dir_suffix. 17514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17515 case $ac_top_builddir_sub in 17516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17518 esac ;; 17519esac 17520ac_abs_top_builddir=$ac_pwd 17521ac_abs_builddir=$ac_pwd$ac_dir_suffix 17522# for backward compatibility: 17523ac_top_builddir=$ac_top_build_prefix 17524 17525case $srcdir in 17526 .) # We are building in place. 17527 ac_srcdir=. 17528 ac_top_srcdir=$ac_top_builddir_sub 17529 ac_abs_top_srcdir=$ac_pwd ;; 17530 [\\/]* | ?:[\\/]* ) # Absolute name. 17531 ac_srcdir=$srcdir$ac_dir_suffix; 17532 ac_top_srcdir=$srcdir 17533 ac_abs_top_srcdir=$srcdir ;; 17534 *) # Relative name. 17535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17536 ac_top_srcdir=$ac_top_build_prefix$srcdir 17537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17538esac 17539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17540 17541 17542 case $ac_mode in 17543 :F) 17544 # 17545 # CONFIG_FILE 17546 # 17547 17548 case $INSTALL in 17549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17551 esac 17552 ac_MKDIR_P=$MKDIR_P 17553 case $MKDIR_P in 17554 [\\/$]* | ?:[\\/]* ) ;; 17555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17556 esac 17557_ACEOF 17558 17559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17560# If the template does not know about datarootdir, expand it. 17561# FIXME: This hack should be removed a few years after 2.60. 17562ac_datarootdir_hack=; ac_datarootdir_seen= 17563ac_sed_dataroot=' 17564/datarootdir/ { 17565 p 17566 q 17567} 17568/@datadir@/p 17569/@docdir@/p 17570/@infodir@/p 17571/@localedir@/p 17572/@mandir@/p' 17573case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17574*datarootdir*) ac_datarootdir_seen=yes;; 17575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17577$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17578_ACEOF 17579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17580 ac_datarootdir_hack=' 17581 s&@datadir@&$datadir&g 17582 s&@docdir@&$docdir&g 17583 s&@infodir@&$infodir&g 17584 s&@localedir@&$localedir&g 17585 s&@mandir@&$mandir&g 17586 s&\\\${datarootdir}&$datarootdir&g' ;; 17587esac 17588_ACEOF 17589 17590# Neutralize VPATH when `$srcdir' = `.'. 17591# Shell code in configure.ac might set extrasub. 17592# FIXME: do we really want to maintain this feature? 17593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17594ac_sed_extra="$ac_vpsub 17595$extrasub 17596_ACEOF 17597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17598:t 17599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17600s|@configure_input@|$ac_sed_conf_input|;t t 17601s&@top_builddir@&$ac_top_builddir_sub&;t t 17602s&@top_build_prefix@&$ac_top_build_prefix&;t t 17603s&@srcdir@&$ac_srcdir&;t t 17604s&@abs_srcdir@&$ac_abs_srcdir&;t t 17605s&@top_srcdir@&$ac_top_srcdir&;t t 17606s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17607s&@builddir@&$ac_builddir&;t t 17608s&@abs_builddir@&$ac_abs_builddir&;t t 17609s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17610s&@INSTALL@&$ac_INSTALL&;t t 17611s&@MKDIR_P@&$ac_MKDIR_P&;t t 17612$ac_datarootdir_hack 17613" 17614eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17616 17617test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17620 "$ac_tmp/out"`; test -z "$ac_out"; } && 17621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17622which seems to be undefined. Please make sure it is defined" >&5 17623$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17624which seems to be undefined. Please make sure it is defined" >&2;} 17625 17626 rm -f "$ac_tmp/stdin" 17627 case $ac_file in 17628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17630 esac \ 17631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17632 ;; 17633 :H) 17634 # 17635 # CONFIG_HEADER 17636 # 17637 if test x"$ac_file" != x-; then 17638 { 17639 $as_echo "/* $configure_input */" \ 17640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17641 } >"$ac_tmp/config.h" \ 17642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17645$as_echo "$as_me: $ac_file is unchanged" >&6;} 17646 else 17647 rm -f "$ac_file" 17648 mv "$ac_tmp/config.h" "$ac_file" \ 17649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17650 fi 17651 else 17652 $as_echo "/* $configure_input */" \ 17653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17654 || as_fn_error $? "could not create -" "$LINENO" 5 17655 fi 17656# Compute "$ac_file"'s index in $config_headers. 17657_am_arg="$ac_file" 17658_am_stamp_count=1 17659for _am_header in $config_headers :; do 17660 case $_am_header in 17661 $_am_arg | $_am_arg:* ) 17662 break ;; 17663 * ) 17664 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17665 esac 17666done 17667echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17668$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17669 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17670 X"$_am_arg" : 'X\(//\)$' \| \ 17671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17672$as_echo X"$_am_arg" | 17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17674 s//\1/ 17675 q 17676 } 17677 /^X\(\/\/\)[^/].*/{ 17678 s//\1/ 17679 q 17680 } 17681 /^X\(\/\/\)$/{ 17682 s//\1/ 17683 q 17684 } 17685 /^X\(\/\).*/{ 17686 s//\1/ 17687 q 17688 } 17689 s/.*/./; q'`/stamp-h$_am_stamp_count 17690 ;; 17691 17692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17693$as_echo "$as_me: executing $ac_file commands" >&6;} 17694 ;; 17695 esac 17696 17697 17698 case $ac_file$ac_mode in 17699 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17700 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17701 # are listed without --file. Let's play safe and only enable the eval 17702 # if we detect the quoting. 17703 case $CONFIG_FILES in 17704 *\'*) eval set x "$CONFIG_FILES" ;; 17705 *) set x $CONFIG_FILES ;; 17706 esac 17707 shift 17708 for mf 17709 do 17710 # Strip MF so we end up with the name of the file. 17711 mf=`echo "$mf" | sed -e 's/:.*$//'` 17712 # Check whether this is an Automake generated Makefile or not. 17713 # We used to match only the files named `Makefile.in', but 17714 # some people rename them; so instead we look at the file content. 17715 # Grep'ing the first line is not enough: some people post-process 17716 # each Makefile.in and add a new line on top of each file to say so. 17717 # Grep'ing the whole file is not good either: AIX grep has a line 17718 # limit of 2048, but all sed's we know have understand at least 4000. 17719 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17720 dirpart=`$as_dirname -- "$mf" || 17721$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17722 X"$mf" : 'X\(//\)[^/]' \| \ 17723 X"$mf" : 'X\(//\)$' \| \ 17724 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17725$as_echo X"$mf" | 17726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17727 s//\1/ 17728 q 17729 } 17730 /^X\(\/\/\)[^/].*/{ 17731 s//\1/ 17732 q 17733 } 17734 /^X\(\/\/\)$/{ 17735 s//\1/ 17736 q 17737 } 17738 /^X\(\/\).*/{ 17739 s//\1/ 17740 q 17741 } 17742 s/.*/./; q'` 17743 else 17744 continue 17745 fi 17746 # Extract the definition of DEPDIR, am__include, and am__quote 17747 # from the Makefile without running `make'. 17748 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17749 test -z "$DEPDIR" && continue 17750 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17751 test -z "am__include" && continue 17752 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17753 # When using ansi2knr, U may be empty or an underscore; expand it 17754 U=`sed -n 's/^U = //p' < "$mf"` 17755 # Find all dependency output files, they are included files with 17756 # $(DEPDIR) in their names. We invoke sed twice because it is the 17757 # simplest approach to changing $(DEPDIR) to its actual value in the 17758 # expansion. 17759 for file in `sed -n " 17760 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17761 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17762 # Make sure the directory exists. 17763 test -f "$dirpart/$file" && continue 17764 fdir=`$as_dirname -- "$file" || 17765$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17766 X"$file" : 'X\(//\)[^/]' \| \ 17767 X"$file" : 'X\(//\)$' \| \ 17768 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17769$as_echo X"$file" | 17770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17771 s//\1/ 17772 q 17773 } 17774 /^X\(\/\/\)[^/].*/{ 17775 s//\1/ 17776 q 17777 } 17778 /^X\(\/\/\)$/{ 17779 s//\1/ 17780 q 17781 } 17782 /^X\(\/\).*/{ 17783 s//\1/ 17784 q 17785 } 17786 s/.*/./; q'` 17787 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17788 # echo "creating $dirpart/$file" 17789 echo '# dummy' > "$dirpart/$file" 17790 done 17791 done 17792} 17793 ;; 17794 "libtool":C) 17795 17796 # See if we are running on zsh, and set the options which allow our 17797 # commands through without removal of \ escapes. 17798 if test -n "${ZSH_VERSION+set}" ; then 17799 setopt NO_GLOB_SUBST 17800 fi 17801 17802 cfgfile="${ofile}T" 17803 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17804 $RM "$cfgfile" 17805 17806 cat <<_LT_EOF >> "$cfgfile" 17807#! $SHELL 17808 17809# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17810# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17812# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17813# 17814# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17815# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17816# Foundation, Inc. 17817# Written by Gordon Matzigkeit, 1996 17818# 17819# This file is part of GNU Libtool. 17820# 17821# GNU Libtool is free software; you can redistribute it and/or 17822# modify it under the terms of the GNU General Public License as 17823# published by the Free Software Foundation; either version 2 of 17824# the License, or (at your option) any later version. 17825# 17826# As a special exception to the GNU General Public License, 17827# if you distribute this file as part of a program or library that 17828# is built using GNU Libtool, you may include this file under the 17829# same distribution terms that you use for the rest of that program. 17830# 17831# GNU Libtool is distributed in the hope that it will be useful, 17832# but WITHOUT ANY WARRANTY; without even the implied warranty of 17833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17834# GNU General Public License for more details. 17835# 17836# You should have received a copy of the GNU General Public License 17837# along with GNU Libtool; see the file COPYING. If not, a copy 17838# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17839# obtained by writing to the Free Software Foundation, Inc., 17840# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17841 17842 17843# The names of the tagged configurations supported by this script. 17844available_tags="" 17845 17846# ### BEGIN LIBTOOL CONFIG 17847 17848# Whether or not to build shared libraries. 17849build_libtool_libs=$enable_shared 17850 17851# Whether or not to build static libraries. 17852build_old_libs=$enable_static 17853 17854# Which release of libtool.m4 was used? 17855macro_version=$macro_version 17856macro_revision=$macro_revision 17857 17858# What type of objects to build. 17859pic_mode=$pic_mode 17860 17861# Whether or not to optimize for fast installation. 17862fast_install=$enable_fast_install 17863 17864# Shell to use when invoking shell scripts. 17865SHELL=$lt_SHELL 17866 17867# An echo program that protects backslashes. 17868ECHO=$lt_ECHO 17869 17870# The PATH separator for the build system. 17871PATH_SEPARATOR=$lt_PATH_SEPARATOR 17872 17873# The host system. 17874host_alias=$host_alias 17875host=$host 17876host_os=$host_os 17877 17878# The build system. 17879build_alias=$build_alias 17880build=$build 17881build_os=$build_os 17882 17883# A sed program that does not truncate output. 17884SED=$lt_SED 17885 17886# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17887Xsed="\$SED -e 1s/^X//" 17888 17889# A grep program that handles long lines. 17890GREP=$lt_GREP 17891 17892# An ERE matcher. 17893EGREP=$lt_EGREP 17894 17895# A literal string matcher. 17896FGREP=$lt_FGREP 17897 17898# A BSD- or MS-compatible name lister. 17899NM=$lt_NM 17900 17901# Whether we need soft or hard links. 17902LN_S=$lt_LN_S 17903 17904# What is the maximum length of a command? 17905max_cmd_len=$max_cmd_len 17906 17907# Object file suffix (normally "o"). 17908objext=$ac_objext 17909 17910# Executable file suffix (normally ""). 17911exeext=$exeext 17912 17913# whether the shell understands "unset". 17914lt_unset=$lt_unset 17915 17916# turn spaces into newlines. 17917SP2NL=$lt_lt_SP2NL 17918 17919# turn newlines into spaces. 17920NL2SP=$lt_lt_NL2SP 17921 17922# convert \$build file names to \$host format. 17923to_host_file_cmd=$lt_cv_to_host_file_cmd 17924 17925# convert \$build files to toolchain format. 17926to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17927 17928# An object symbol dumper. 17929OBJDUMP=$lt_OBJDUMP 17930 17931# Method to check whether dependent libraries are shared objects. 17932deplibs_check_method=$lt_deplibs_check_method 17933 17934# Command to use when deplibs_check_method = "file_magic". 17935file_magic_cmd=$lt_file_magic_cmd 17936 17937# How to find potential files when deplibs_check_method = "file_magic". 17938file_magic_glob=$lt_file_magic_glob 17939 17940# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17941want_nocaseglob=$lt_want_nocaseglob 17942 17943# DLL creation program. 17944DLLTOOL=$lt_DLLTOOL 17945 17946# Command to associate shared and link libraries. 17947sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17948 17949# The archiver. 17950AR=$lt_AR 17951 17952# Flags to create an archive. 17953AR_FLAGS=$lt_AR_FLAGS 17954 17955# How to feed a file listing to the archiver. 17956archiver_list_spec=$lt_archiver_list_spec 17957 17958# A symbol stripping program. 17959STRIP=$lt_STRIP 17960 17961# Commands used to install an old-style archive. 17962RANLIB=$lt_RANLIB 17963old_postinstall_cmds=$lt_old_postinstall_cmds 17964old_postuninstall_cmds=$lt_old_postuninstall_cmds 17965 17966# Whether to use a lock for old archive extraction. 17967lock_old_archive_extraction=$lock_old_archive_extraction 17968 17969# A C compiler. 17970LTCC=$lt_CC 17971 17972# LTCC compiler flags. 17973LTCFLAGS=$lt_CFLAGS 17974 17975# Take the output of nm and produce a listing of raw symbols and C names. 17976global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17977 17978# Transform the output of nm in a proper C declaration. 17979global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17980 17981# Transform the output of nm in a C name address pair. 17982global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17983 17984# Transform the output of nm in a C name address pair when lib prefix is needed. 17985global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17986 17987# Specify filename containing input files for \$NM. 17988nm_file_list_spec=$lt_nm_file_list_spec 17989 17990# The root where to search for dependent libraries,and in which our libraries should be installed. 17991lt_sysroot=$lt_sysroot 17992 17993# The name of the directory that contains temporary libtool files. 17994objdir=$objdir 17995 17996# Used to examine libraries when file_magic_cmd begins with "file". 17997MAGIC_CMD=$MAGIC_CMD 17998 17999# Must we lock files when doing compilation? 18000need_locks=$lt_need_locks 18001 18002# Manifest tool. 18003MANIFEST_TOOL=$lt_MANIFEST_TOOL 18004 18005# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18006DSYMUTIL=$lt_DSYMUTIL 18007 18008# Tool to change global to local symbols on Mac OS X. 18009NMEDIT=$lt_NMEDIT 18010 18011# Tool to manipulate fat objects and archives on Mac OS X. 18012LIPO=$lt_LIPO 18013 18014# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18015OTOOL=$lt_OTOOL 18016 18017# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18018OTOOL64=$lt_OTOOL64 18019 18020# Old archive suffix (normally "a"). 18021libext=$libext 18022 18023# Shared library suffix (normally ".so"). 18024shrext_cmds=$lt_shrext_cmds 18025 18026# The commands to extract the exported symbol list from a shared archive. 18027extract_expsyms_cmds=$lt_extract_expsyms_cmds 18028 18029# Variables whose values should be saved in libtool wrapper scripts and 18030# restored at link time. 18031variables_saved_for_relink=$lt_variables_saved_for_relink 18032 18033# Do we need the "lib" prefix for modules? 18034need_lib_prefix=$need_lib_prefix 18035 18036# Do we need a version for libraries? 18037need_version=$need_version 18038 18039# Library versioning type. 18040version_type=$version_type 18041 18042# Shared library runtime path variable. 18043runpath_var=$runpath_var 18044 18045# Shared library path variable. 18046shlibpath_var=$shlibpath_var 18047 18048# Is shlibpath searched before the hard-coded library search path? 18049shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18050 18051# Format of library name prefix. 18052libname_spec=$lt_libname_spec 18053 18054# List of archive names. First name is the real one, the rest are links. 18055# The last name is the one that the linker finds with -lNAME 18056library_names_spec=$lt_library_names_spec 18057 18058# The coded name of the library, if different from the real name. 18059soname_spec=$lt_soname_spec 18060 18061# Permission mode override for installation of shared libraries. 18062install_override_mode=$lt_install_override_mode 18063 18064# Command to use after installation of a shared archive. 18065postinstall_cmds=$lt_postinstall_cmds 18066 18067# Command to use after uninstallation of a shared archive. 18068postuninstall_cmds=$lt_postuninstall_cmds 18069 18070# Commands used to finish a libtool library installation in a directory. 18071finish_cmds=$lt_finish_cmds 18072 18073# As "finish_cmds", except a single script fragment to be evaled but 18074# not shown. 18075finish_eval=$lt_finish_eval 18076 18077# Whether we should hardcode library paths into libraries. 18078hardcode_into_libs=$hardcode_into_libs 18079 18080# Compile-time system search path for libraries. 18081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18082 18083# Run-time system search path for libraries. 18084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18085 18086# Whether dlopen is supported. 18087dlopen_support=$enable_dlopen 18088 18089# Whether dlopen of programs is supported. 18090dlopen_self=$enable_dlopen_self 18091 18092# Whether dlopen of statically linked programs is supported. 18093dlopen_self_static=$enable_dlopen_self_static 18094 18095# Commands to strip libraries. 18096old_striplib=$lt_old_striplib 18097striplib=$lt_striplib 18098 18099 18100# The linker used to build libraries. 18101LD=$lt_LD 18102 18103# How to create reloadable object files. 18104reload_flag=$lt_reload_flag 18105reload_cmds=$lt_reload_cmds 18106 18107# Commands used to build an old-style archive. 18108old_archive_cmds=$lt_old_archive_cmds 18109 18110# A language specific compiler. 18111CC=$lt_compiler 18112 18113# Is the compiler the GNU compiler? 18114with_gcc=$GCC 18115 18116# Compiler flag to turn off builtin functions. 18117no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18118 18119# Additional compiler flags for building library objects. 18120pic_flag=$lt_lt_prog_compiler_pic 18121 18122# How to pass a linker flag through the compiler. 18123wl=$lt_lt_prog_compiler_wl 18124 18125# Compiler flag to prevent dynamic linking. 18126link_static_flag=$lt_lt_prog_compiler_static 18127 18128# Does compiler simultaneously support -c and -o options? 18129compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18130 18131# Whether or not to add -lc for building shared libraries. 18132build_libtool_need_lc=$archive_cmds_need_lc 18133 18134# Whether or not to disallow shared libs when runtime libs are static. 18135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18136 18137# Compiler flag to allow reflexive dlopens. 18138export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18139 18140# Compiler flag to generate shared objects directly from archives. 18141whole_archive_flag_spec=$lt_whole_archive_flag_spec 18142 18143# Whether the compiler copes with passing no objects directly. 18144compiler_needs_object=$lt_compiler_needs_object 18145 18146# Create an old-style archive from a shared archive. 18147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18148 18149# Create a temporary old-style archive to link instead of a shared archive. 18150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18151 18152# Commands used to build a shared archive. 18153archive_cmds=$lt_archive_cmds 18154archive_expsym_cmds=$lt_archive_expsym_cmds 18155 18156# Commands used to build a loadable module if different from building 18157# a shared archive. 18158module_cmds=$lt_module_cmds 18159module_expsym_cmds=$lt_module_expsym_cmds 18160 18161# Whether we are building with GNU ld or not. 18162with_gnu_ld=$lt_with_gnu_ld 18163 18164# Flag that allows shared libraries with undefined symbols to be built. 18165allow_undefined_flag=$lt_allow_undefined_flag 18166 18167# Flag that enforces no undefined symbols. 18168no_undefined_flag=$lt_no_undefined_flag 18169 18170# Flag to hardcode \$libdir into a binary during linking. 18171# This must work even if \$libdir does not exist 18172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18173 18174# Whether we need a single "-rpath" flag with a separated argument. 18175hardcode_libdir_separator=$lt_hardcode_libdir_separator 18176 18177# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18178# DIR into the resulting binary. 18179hardcode_direct=$hardcode_direct 18180 18181# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18182# DIR into the resulting binary and the resulting library dependency is 18183# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18184# library is relocated. 18185hardcode_direct_absolute=$hardcode_direct_absolute 18186 18187# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18188# into the resulting binary. 18189hardcode_minus_L=$hardcode_minus_L 18190 18191# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18192# into the resulting binary. 18193hardcode_shlibpath_var=$hardcode_shlibpath_var 18194 18195# Set to "yes" if building a shared library automatically hardcodes DIR 18196# into the library and all subsequent libraries and executables linked 18197# against it. 18198hardcode_automatic=$hardcode_automatic 18199 18200# Set to yes if linker adds runtime paths of dependent libraries 18201# to runtime path list. 18202inherit_rpath=$inherit_rpath 18203 18204# Whether libtool must link a program against all its dependency libraries. 18205link_all_deplibs=$link_all_deplibs 18206 18207# Set to "yes" if exported symbols are required. 18208always_export_symbols=$always_export_symbols 18209 18210# The commands to list exported symbols. 18211export_symbols_cmds=$lt_export_symbols_cmds 18212 18213# Symbols that should not be listed in the preloaded symbols. 18214exclude_expsyms=$lt_exclude_expsyms 18215 18216# Symbols that must always be exported. 18217include_expsyms=$lt_include_expsyms 18218 18219# Commands necessary for linking programs (against libraries) with templates. 18220prelink_cmds=$lt_prelink_cmds 18221 18222# Commands necessary for finishing linking programs. 18223postlink_cmds=$lt_postlink_cmds 18224 18225# Specify filename containing input files. 18226file_list_spec=$lt_file_list_spec 18227 18228# How to hardcode a shared library path into an executable. 18229hardcode_action=$hardcode_action 18230 18231# ### END LIBTOOL CONFIG 18232 18233_LT_EOF 18234 18235 case $host_os in 18236 aix3*) 18237 cat <<\_LT_EOF >> "$cfgfile" 18238# AIX sometimes has problems with the GCC collect2 program. For some 18239# reason, if we set the COLLECT_NAMES environment variable, the problems 18240# vanish in a puff of smoke. 18241if test "X${COLLECT_NAMES+set}" != Xset; then 18242 COLLECT_NAMES= 18243 export COLLECT_NAMES 18244fi 18245_LT_EOF 18246 ;; 18247 esac 18248 18249 18250ltmain="$ac_aux_dir/ltmain.sh" 18251 18252 18253 # We use sed instead of cat because bash on DJGPP gets confused if 18254 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18255 # text mode, it properly converts lines to CR/LF. This bash problem 18256 # is reportedly fixed, but why not run on old versions too? 18257 sed '$q' "$ltmain" >> "$cfgfile" \ 18258 || (rm -f "$cfgfile"; exit 1) 18259 18260 if test x"$xsi_shell" = xyes; then 18261 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18262func_dirname ()\ 18263{\ 18264\ case ${1} in\ 18265\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18266\ * ) func_dirname_result="${3}" ;;\ 18267\ esac\ 18268} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18269 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18271test 0 -eq $? || _lt_function_replace_fail=: 18272 18273 18274 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18275func_basename ()\ 18276{\ 18277\ func_basename_result="${1##*/}"\ 18278} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18279 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18281test 0 -eq $? || _lt_function_replace_fail=: 18282 18283 18284 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18285func_dirname_and_basename ()\ 18286{\ 18287\ case ${1} in\ 18288\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18289\ * ) func_dirname_result="${3}" ;;\ 18290\ esac\ 18291\ func_basename_result="${1##*/}"\ 18292} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18293 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18295test 0 -eq $? || _lt_function_replace_fail=: 18296 18297 18298 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18299func_stripname ()\ 18300{\ 18301\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18302\ # positional parameters, so assign one to ordinary parameter first.\ 18303\ func_stripname_result=${3}\ 18304\ func_stripname_result=${func_stripname_result#"${1}"}\ 18305\ func_stripname_result=${func_stripname_result%"${2}"}\ 18306} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18307 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18309test 0 -eq $? || _lt_function_replace_fail=: 18310 18311 18312 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18313func_split_long_opt ()\ 18314{\ 18315\ func_split_long_opt_name=${1%%=*}\ 18316\ func_split_long_opt_arg=${1#*=}\ 18317} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18318 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18320test 0 -eq $? || _lt_function_replace_fail=: 18321 18322 18323 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18324func_split_short_opt ()\ 18325{\ 18326\ func_split_short_opt_arg=${1#??}\ 18327\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18328} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18329 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18331test 0 -eq $? || _lt_function_replace_fail=: 18332 18333 18334 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18335func_lo2o ()\ 18336{\ 18337\ case ${1} in\ 18338\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18339\ *) func_lo2o_result=${1} ;;\ 18340\ esac\ 18341} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18342 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18344test 0 -eq $? || _lt_function_replace_fail=: 18345 18346 18347 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18348func_xform ()\ 18349{\ 18350 func_xform_result=${1%.*}.lo\ 18351} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18352 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18354test 0 -eq $? || _lt_function_replace_fail=: 18355 18356 18357 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18358func_arith ()\ 18359{\ 18360 func_arith_result=$(( $* ))\ 18361} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18362 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18364test 0 -eq $? || _lt_function_replace_fail=: 18365 18366 18367 sed -e '/^func_len ()$/,/^} # func_len /c\ 18368func_len ()\ 18369{\ 18370 func_len_result=${#1}\ 18371} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18372 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18374test 0 -eq $? || _lt_function_replace_fail=: 18375 18376fi 18377 18378if test x"$lt_shell_append" = xyes; then 18379 sed -e '/^func_append ()$/,/^} # func_append /c\ 18380func_append ()\ 18381{\ 18382 eval "${1}+=\\${2}"\ 18383} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18384 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18386test 0 -eq $? || _lt_function_replace_fail=: 18387 18388 18389 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18390func_append_quoted ()\ 18391{\ 18392\ func_quote_for_eval "${2}"\ 18393\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18394} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18395 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18397test 0 -eq $? || _lt_function_replace_fail=: 18398 18399 18400 # Save a `func_append' function call where possible by direct use of '+=' 18401 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18402 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18404 test 0 -eq $? || _lt_function_replace_fail=: 18405else 18406 # Save a `func_append' function call even when '+=' is not available 18407 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18408 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18410 test 0 -eq $? || _lt_function_replace_fail=: 18411fi 18412 18413if test x"$_lt_function_replace_fail" = x":"; then 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18415$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18416fi 18417 18418 18419 mv -f "$cfgfile" "$ofile" || 18420 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18421 chmod +x "$ofile" 18422 18423 ;; 18424 18425 esac 18426done # for ac_tag 18427 18428 18429as_fn_exit 0 18430_ACEOF 18431ac_clean_files=$ac_clean_files_save 18432 18433test $ac_write_fail = 0 || 18434 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18435 18436 18437# configure is writing to config.log, and then calls config.status. 18438# config.status does its own redirection, appending to config.log. 18439# Unfortunately, on DOS this fails, as config.log is still kept open 18440# by configure, so config.status won't be able to write to it; its 18441# output is simply discarded. So we exec the FD to /dev/null, 18442# effectively closing config.log, so it can be properly (re)opened and 18443# appended to by config.status. When coming back to configure, we 18444# need to make the FD available again. 18445if test "$no_create" != yes; then 18446 ac_cs_success=: 18447 ac_config_status_args= 18448 test "$silent" = yes && 18449 ac_config_status_args="$ac_config_status_args --quiet" 18450 exec 5>/dev/null 18451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18452 exec 5>>config.log 18453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18454 # would make configure fail if this is the last instruction. 18455 $ac_cs_success || as_fn_exit 1 18456fi 18457 18458# 18459# CONFIG_SUBDIRS section. 18460# 18461if test "$no_recursion" != yes; then 18462 18463 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 18464 # so they do not pile up. 18465 ac_sub_configure_args= 18466 ac_prev= 18467 eval "set x $ac_configure_args" 18468 shift 18469 for ac_arg 18470 do 18471 if test -n "$ac_prev"; then 18472 ac_prev= 18473 continue 18474 fi 18475 case $ac_arg in 18476 -cache-file | --cache-file | --cache-fil | --cache-fi \ 18477 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 18478 ac_prev=cache_file ;; 18479 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 18480 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 18481 | --c=*) 18482 ;; 18483 --config-cache | -C) 18484 ;; 18485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 18486 ac_prev=srcdir ;; 18487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 18488 ;; 18489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 18490 ac_prev=prefix ;; 18491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 18492 ;; 18493 --disable-option-checking) 18494 ;; 18495 *) 18496 case $ac_arg in 18497 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18498 esac 18499 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 18500 esac 18501 done 18502 18503 # Always prepend --prefix to ensure using the same prefix 18504 # in subdir configurations. 18505 ac_arg="--prefix=$prefix" 18506 case $ac_arg in 18507 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18508 esac 18509 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 18510 18511 # Pass --silent 18512 if test "$silent" = yes; then 18513 ac_sub_configure_args="--silent $ac_sub_configure_args" 18514 fi 18515 18516 # Always prepend --disable-option-checking to silence warnings, since 18517 # different subdirs can have different --enable and --with options. 18518 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 18519 18520 ac_popdir=`pwd` 18521 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 18522 18523 # Do not complain, so a configure script can configure whichever 18524 # parts of a large source tree are present. 18525 test -d "$srcdir/$ac_dir" || continue 18526 18527 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 18528 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 18529 $as_echo "$ac_msg" >&6 18530 as_dir="$ac_dir"; as_fn_mkdir_p 18531 ac_builddir=. 18532 18533case "$ac_dir" in 18534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18535*) 18536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18537 # A ".." for each directory in $ac_dir_suffix. 18538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18539 case $ac_top_builddir_sub in 18540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18542 esac ;; 18543esac 18544ac_abs_top_builddir=$ac_pwd 18545ac_abs_builddir=$ac_pwd$ac_dir_suffix 18546# for backward compatibility: 18547ac_top_builddir=$ac_top_build_prefix 18548 18549case $srcdir in 18550 .) # We are building in place. 18551 ac_srcdir=. 18552 ac_top_srcdir=$ac_top_builddir_sub 18553 ac_abs_top_srcdir=$ac_pwd ;; 18554 [\\/]* | ?:[\\/]* ) # Absolute name. 18555 ac_srcdir=$srcdir$ac_dir_suffix; 18556 ac_top_srcdir=$srcdir 18557 ac_abs_top_srcdir=$srcdir ;; 18558 *) # Relative name. 18559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18560 ac_top_srcdir=$ac_top_build_prefix$srcdir 18561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18562esac 18563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18564 18565 18566 cd "$ac_dir" 18567 18568 # Check for guested configure; otherwise get Cygnus style configure. 18569 if test -f "$ac_srcdir/configure.gnu"; then 18570 ac_sub_configure=$ac_srcdir/configure.gnu 18571 elif test -f "$ac_srcdir/configure"; then 18572 ac_sub_configure=$ac_srcdir/configure 18573 elif test -f "$ac_srcdir/configure.in"; then 18574 # This should be Cygnus configure. 18575 ac_sub_configure=$ac_aux_dir/configure 18576 else 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 18578$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 18579 ac_sub_configure= 18580 fi 18581 18582 # The recursion is here. 18583 if test -n "$ac_sub_configure"; then 18584 # Make the cache file name correct relative to the subdirectory. 18585 case $cache_file in 18586 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 18587 *) # Relative name. 18588 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 18589 esac 18590 18591 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 18592$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 18593 # The eval makes quoting arguments work. 18594 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 18595 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 18596 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 18597 fi 18598 18599 cd "$ac_popdir" 18600 done 18601fi 18602if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18604$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18605fi 18606 18607 18608 18609echo 18610echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" 18611echo 18612 18613echo "Installing into: $prefix" 18614 18615echo "Ziplinks ....................... $zlib" 18616 18617echo "OpenSSL ........................ $cf_enable_openssl" 18618 18619tmpresult=shared 18620 18621if test "x$enable_static" = "xyes"; then 18622 tmpresult=static 18623fi 18624 18625echo "Modules ........................ $tmpresult" 18626echo "IO Debugging hooks ............. $iodebug" 18627echo "Assert debugging ............... $assert" 18628echo "Small network .................. $small_net" 18629echo "ratbox-services compatibility .. $ratbox_services" 18630echo 18631echo "Configured limits:" 18632echo "NICKLEN ................. $NICKLEN" 18633echo 18634 18635